Transfer Inquiry Status API
Request Header Attributes
Following are the parameters to be sent in the request header:
Content-Type
Indicates the media type of the resource. value: application/json
X-TIMESTAMP
Timestamp in ISO8601 format, Example: 2024-05-14T18:54:57+07:00
Authorization
Represents Access Token (B2B) of a request; string starts with keyword “Bearer ” followed by Access Token (B2B)
X-SIGNATURE
Signature generated by encrypting HTTP method, relative path, access token, minified request body, and timestamp
X-PARTNER-ID
Unique ID for a partner given by Durianpay upon completing registration. Its value is same as the X-CLIENT-KEY
X-EXTERNAL-ID
Unique messaging reference identifier generated by merchant and should be unique within the same day
CHANNEL-ID
Device identification on which the API services is currently being accessed by the merchant. Possible value: 95221
Request Body Attributes
Following are the parameters to be sent in the request body:
originalPartnerReferenceNo
originalPartnerReferenceNo merchant send when submitting interbank transfer request
originalReferenceNo
Original referenceNo durianpay returned when submitting interbank transfer request (value should be dis_item_xxx)
serviceCode
Transaction type of the original transaction request. Value: 18
for bank transfer
additionalInfo
JSON object with keys: deviceId and channel. example: {"deviceId": "1234567", "channel": "mobilephone"}
Hide items object
Field | Type | Description |
---|---|---|
deviceIdOptional | string | device id of the request source |
channelOptional | string | channel of the request source |
curl --location 'https://api.durianpay.id/v1.0/transfer/status' \
--header 'X-TIMESTAMP: 2024-05-14T18:54:57+07:00' \
--header 'X-SIGNATURE: pCA+q832pxHnTPm1Kdbfu1am37J9XFeGH13JGYqHv7Ww4Tb3Hrc5xRew+4y2tN4wiAPnHmvXcJ1Tyf94jK5gHQ==' \
--header 'X-PARTNER-ID: partner_id' \
--header 'X-EXTERNAL-ID: random_external_id' \
--header 'CHANNEL-ID: 95221' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJEdXJpYW4gTW9uZXkiLCJleHAiOjE3MTU1OTM3NTYsImlhdCI' \
--data '{
"originalPartnerReferenceNo": "111111111",
"originalReferenceNo": "dis_item_vhLkXOtB0s6619",
"serviceCode": "18",
"additionalInfo": {
"deviceId": "12345679237",
"channel": "mobilephone"
}
}'
Response Code
200 - Status - success
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
{ "additionalInfo": { "channel": "mobilephone", "deviceId": "12345679237" }, "amount": { "currency": "IDR", "value": "20000.00" }, "beneficiaryAccountNo": "123123123", "beneficiaryBankCode": "002", "currency": "IDR", "latestTransactionStatus": "00", "transactionStatusDesc": "success" "originalPartnerReferenceNo": "111111111", "originalReferenceNo": "dis_item_vhLkXOtB0s6619", "referenceNumber": "123123", "serviceCode": "18", "sourceAccountNo": "123123", "transactionId": "123123", "responseCode": "2003600", "responseMessage": "Successful", }
200 - Status - processing
200 - Status - failed
400 - Bad Request - Invalid Mandatory Field
400 - Bad Request - Invalid Field Format
400 - Unauthorized - Missing Header
401 - Unauthorized - Invalid Token
401 - Unauthorized - Invalid Signature
404 - Not Found
409 - Conflict
500 - Internal Server Error
504 - Gateway Timeout