Transfer to Bank
Specification
The Following tabel is spesification for this API :
API Name | Transfer to Bank |
---|---|
Function | This API is used for merchant to do transfer to Bank request via Paydia Bisnis |
Service Code | 43 |
Method | POST |
URL | /snap/v1.0/emoney/transfer-bank |
Accept | application/json |
Content Type | application/json |
Related Service | Transfer to Bank |
Request
The following part will be describe about parameter of request in this API:
Request Parameter
The following table is a list of request parameter in this API:
Header
The following table is Header of Request Parameters :
No | Name | Type | Length | Required | Condition | Remarks |
---|---|---|---|---|---|---|
1 | Content-Type | String | Variable, 127 max | Mandatory | - | Content type, value always application/json |
2 | Authorization | String | Variable | Mandatory | - | Contains B2B Bearer JWT Token, you've got it from Access Token B2B |
3 | X-TIMESTAMP | String | Fixed, 25 max | Mandatory | - | Transaction date time, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time) |
4 | X-PARTNER-ID | String | Variable, 36 max | Mandatory | - | ID for partner was generated by Paydia. Unique ID for a partner |
5 | X-EXTERNAL-ID | String | Variable, 36 max | Mandatory | - | Unique messaging reference ID generated by merchant. Numeric String. Reference number that should be unique in the same day |
6 | CHANNEL-ID | String | Variable, 5 max | Mandatory | - | Device identification on which the API services is currently being accessed by the end user (customer) |
7 | X-SIGNATURE | String | Variable | Mandatory | - | Signature need to be generated with Symmetric Signature method |
Body
The following table is a body of request parameter:
No | Name | Type | Length | Required | Condition | Remarks |
---|---|---|---|---|---|---|
1 | partnerReferenceNo | String | Variable, 64 max | Mandatory | - | Unique transaction identifier on partner system which assigned to each transaction |
2 | beneficiaryAccountNumber | String | Variable, 32 max | Mandatory | - | Destination account number |
3 | beneficiaryBankCode | String | Variable, 8 max | Mandatory | - | Beneficiary Bank code |
4 | amount | Money | Variable | Mandatory | - | Contains two sub-fields:
|
5 | additionalInfo | JSON Object | Variable | Optional | - | Additional information |
6 | additionalInfo.transactionPurpose | String | Variable, 64 max | Optional | - | Transfer method, if not send default 1 (Pemindahan Dana) |
Request Sample
The following script is a request sample of this API:
POST /snap/v1.0/emoney/transfer-bank
X-TIMESTAMP: 2024-08-03T16:02:02+07:00
X-PARTNER-ID: 4abbcb6ce30229994c76169006e0dc9c
X-SIGNATURE: oIEcElFux6Vfzbj7CHLZQjmZN3G1zPyx1X66bp+TP4PyudWltv//Wt5w6W444EXkWAFBCRuyH5biQakIoeM69Q==
X-EXTERNAL-ID: 1722675729
CHANNEL-ID: 272
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQYXlkaWEiLCJpYXQiOjE3MjI2NzM0NzksImV4cCI6MTcyMjc1OTg3OSwiZGF0YSI6eyJlbnYiOiJwcm9kdWN0aW9uIn19.S6vpO_TFlsIgbUN3H3Hq7yDjhka1g3unLnOrDbDvWF0
{
"partnerReferenceNo": "67d6fc85-9b4d-42be-85a2-b8abdca68a80",
"beneficiaryAccountNumber": "3647075923",
"beneficiaryBankCode": "014",
"amount": {
"value": "15000.00",
"currency": "IDR"
}
}
Response
The following part will be describe about parameter of response in this API:
Response Parameter
The following table is a list of response parameter in this API:
Body
The following table is a body of response parameter:
No | Name | Type | Length | Required | Condition | Remarks |
---|---|---|---|---|---|---|
1 | responseCode | String | Fixed, 7 max | Mandatory | - | Refer to response code list |
2 | responseMessage | String | Variable, 150 max | Mandatory | - | Refer to response code list |
3 | referenceNo | String | Variable, 64 max | Mandatory | - | Transaction identifier on Paydia |
4 | partnerReferenceNo | String | Variable, 64 max | Mandatory | - | Unique transaction identifier on partner system which assigned to each transaction |
5 | transactionDate | String | Fixed, 25 max | Mandatory | - | Transaction date, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time) |
6 | referenceNumber | String | Variable, 64 max | Mandatory | - | Reference number |
7 | additionalInfo | JSON Object | Variable | Mandatory | - | Additional information |
8 | additionalInfo.transactionStatus | String | Fixed, 2 max | Mandatory | - | Transaction status. Contains values:
|
9 | additionalInfo.transactionStatusDesc | String | Variable, 32 max | Mandatory | - | Transaction status description. Contains values:
|
10 | additionalInfo.balance | Money | Variable | Mandatory | - | Additional information of merchant's balance. Contains two sub-fields:
|
Response Sample
The following script is a response sample of this API:
{
"responseCode": "2004300",
"responseMessage": "Successful",
"referenceNo": "a63807c0-583d-4750-8528-7b8c9d930220",
"partnerReferenceNo": "67d6fc85-9b4d-42be-85a2-b8abdca68a80",
"transactionDate": "2024-08-03T16:02:06+07:00",
"referenceNumber": "a63807c0-583d-4750-8528-7b8c9d930220",
"additionalInfo": {
"transactionStatus": "Pending",
"transactionStatusDesc": "03",
"balance": {
"value": "19712531.00",
"currency": "IDR"
}
}
}
Response Code and Message
The following table is the list response code and message of Transfer to Bank API:
No | Response Code | Response Message | Remarks |
---|---|---|---|
1 | 2004300 | Successful | Success to be processed |
2 | 4004301 | Invalid Field Format | Invalid format for certain field |
3 | 4004302 | Invalid Mandatory Field | Missing or invalid format on mandatory field |
4 | 4014300 | Unauthorized. [reason] | General unauthorized error |
5 | 4014301 | Invalid Token (B2B) | Invalid or Expired Access Token |
6 | 4034301 | Feature Not Allowed | Feature Not Allowed |
7 | 4034302 | Exceeds Transaction Amount Limit | Minimum or maximum amount limit |
8 | 4034314 | Insufficient funds | Not enough balance merchant |
9 | 4044303 | Bank Not Supported By Switch | Bank not supported by switch |
10 | 4044311 | Invalid Account | Destination account invalid |
11 | 4094300 | Conflict | Cannot use same X-EXTERNAL-ID in same day |
12 | 4094301 | Duplicate partnerReferenceNo | Duplicate partnerReferenceNo |
13 | 5004302 | Backend system failure | 500 internal server error |