Skip to main content

Account Inquiry - Transfer to Bank

Specification

The Following tabel is spesification for this API :

API NameAccount Inquiry - Transfer to Bank
FunctionThis API is used for merchant to do inquiry Bank account info via Paydia Bisnis
Service Code42
MethodPOST
URL/snap/v1.0/emoney/bank-account-inquiry
Acceptapplication/json
Content Typeapplication/json
Related ServiceTransfer 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:

The following table is Header of Request Parameters :

NoNameTypeLengthRequiredConditionRemarks
1Content-TypeStringVariable, 127 maxMandatory-Content type, value always application/json
2AuthorizationStringVariableMandatory-Contains B2B Bearer JWT Token, you've got it from Access Token B2B
3X-TIMESTAMPStringFixed, 25 maxMandatory-Transaction date time, in format YYYY-MM-DDTHH:mm:ss+07:00. Time must be in GMT+7 (Jakarta time)
4X-PARTNER-IDStringVariable, 36 maxMandatory-ID for partner was generated by Paydia. Unique ID for a partner
5X-EXTERNAL-IDStringVariable, 36 maxMandatory-Unique messaging reference ID generated by merchant. Numeric String. Reference number that should be unique in the same day
6CHANNEL-IDStringVariable, 5 maxMandatory-Device identification on which the API services is currently being accessed by the end user (customer)
7X-SIGNATUREStringVariableMandatory-Signature need to be generated with Symmetric Signature method

Body

The following table is a body of request parameter:

NoNameTypeLengthRequiredConditionRemarks
1partnerReferenceNoStringVariable, 64 maxMandatory-Unique transaction identifier on partner system which assigned to each transaction
2beneficiaryAccountNumberStringVariable, 32 maxMandatory-Destination account number
3amountMoneyVariableOptional-Contains two sub-fields:
  1. Value: Transaction amount, including the cents
  2. Currency: Currency code based on ISO
4additionalInfoJSON ObjectVariableMandatory-Additional information
5additionalInfo.beneficiaryBankCodeStringVariable, 8 maxMandatory-Additional information of beneficiary Bank code

Request Sample

The following script is a request sample of this API:

POST /snap/v1.0/emoney/bank-account-inquiry 
X-TIMESTAMP: 2024-08-02T23:08:18+07:00
X-PARTNER-ID: 4abbcb6ce30229994c76169006e0dc9c
X-SIGNATURE: wDDkmyZ7Qa02pUKOGLYaASLW8nJ+uY/iQPnzbIalOisgxuRYVVW2Cx4CilB9f9BS4x0A0dKqIp3DEKCMCoPrHQ==
X-EXTERNAL-ID: 1722614914
CHANNEL-ID: 636
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJQYXlkaWEiLCJpYXQiOjE3MjI2MTQ4OTIsImV4cCI6MTcyMjcwMTI5MiwiZGF0YSI6eyJlbnYiOiJwcm9kdWN0aW9uIn19.l_To-VKXxMqP_fcls6D0JbaLeJX_a1Oq6h59EauNK1s

{
"partnerReferenceNo": "ca901922-9406-43c2-a4e9-04a0266c0e91",
"beneficiaryAccountNumber": "3647075923",
"amount": {
"value": "12000.00",
"currency": "IDR"
},
"additionalInfo": {
"beneficiaryBankCode": "014"
}
}

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:

NoNameTypeLengthRequiredConditionRemarks
1responseCodeStringFixed, 7 maxMandatory-Refer to response code list
2responseMessageStringVariable, 150 maxMandatory-Refer to response code list
3referenceNoStringVariable, 64 maxOptional-Transaction identifier on Paydia
4partnerReferenceNoStringVariable, 64 maxMandatory-Unique transaction identifier on partner system which assigned to each transaction
5beneficiaryAccountNumberStringVariable, 32 maxMandatory-Beneficiary account number
6beneficiaryAccountNameStringVariable, 64 maxMandatory-Beneficiary account name
7beneficiaryBankCodeStringVariable, 8 maxMandatory-Beneficiary Bank code
8beneficiaryBankNameStringVariable, 25 maxMandatory-Beneficiary Bank name
9amountMoneyVariableOptional-Amount. Contains two sub-fields:
  1. Value: Transaction amount, including the cents
  2. Currency: Currency code based on ISO
10additionalInfoJSON ObjectVariableMandatory-Additional information
11additionalInfo.balanceMoneyVariableMandatory-Additional information of merchant's balance. Contains two sub-fields:
  1. Value: Transaction amount, including the cents
  2. Currency: Currency code based on ISO

Response Sample

The following script is a response sample of this API:

{
"responseCode": "2004200",
"responseMessage": "Successful",
"referenceNo": "d2d2e3ba-9e22-471e-9c09-fe79905a803b",
"partnerReferenceNo": "ca901922-9406-43c2-a4e9-04a0266c0e91",
"beneficiaryAccountNumber": "3647075923",
"beneficiaryAccountName": "Putri Padmasari",
"beneficiaryBankCode": "014",
"beneficiaryBankName": "BANK BCA",
"amount": {
"value": "12000.00",
"currency": "IDR"
},
"additionalInfo": {
"balance": {
"value": "19787531.00",
"currency": "IDR"
}
}
}

Response Code and Message

The following table is the list response code and message of Account Inquiry API:

NoResponse CodeResponse MessageRemarks
12004200SuccessfulSuccess to be processed
24004201Invalid Field FormatInvalid format for certain field
34004202Invalid Mandatory FieldMissing or invalid format on mandatory field
44014200Unauthorized. [reason]General unauthorized error
54014201Invalid Token (B2B)Invalid or Expired Access Token
64034201Feature Not AllowedFeature Not Allowed
74044203Bank Not Supported By SwitchBank not supported by switch
84044211Invalid AccountDestination account invalid
94094200ConflictCannot use same X-EXTERNAL-ID in same day
104094201Duplicate partnerReferenceNoDuplicate partnerReferenceNo
115004202Backend system failure500 internal server error