Skip to main content

Response

smilepayz teamsLess than 1 minute



Response



Tips

response headers

API header format structure for balance inquiry response :

AreaFieldAttributeTypeDescription
HeaderContent-TypeMandatoryStringString represents indicate the media type of the resource (application/json)
X-TIMESTAMPMandatoryStringMerchant's current local time in yyyy-MM-ddTHH:mm:ssTZD format

Tips

Response Body

AreaFieldAttributeTypeDescription
codeMandatoryStringString Response code success = "00"
messageMandatoryStringString Response message
BodyresponseCodeMandatoryString(32)Response code
responseMessageMandatoryString(64)Response description
referenceNoMandatoryStringTransaction identifier on service provider system. Must be filled upon successful transaction
partnerReferenceNoOptionalStringTransaction identifier on service consumer system
accountNoOptionalStringThe account of merchant
nameOptionalStringMerchant name
accountInfosMandatoryList(AccountInfo)The balance of account ,Refer to Data AccountInfo
accountNoOptionalStringThe account of merchant
additionalInfoOptionalStringAdditional Information

Tips

Example Body – Balance Inquiry Response:


{
    "accountInfos": [
        {
            "balanceType": "BALANCE",
            "registrationStatusCode": "0001",
            "status": "0001"
            "amount": {
                "currency": "IDR",
                "value": "200000.00"
            },
            "availableBalance": {
                "currency": "IDR",
                "value": "130000.00"
            },
            "currentMultilateralLimit": {
                "currency": "IDR",
                "value": "10000.00"
            },
            "floatAmount": {
                "currency": "IDR",
                "value": "50000.00"
            },
            "holdAmount": {
                "currency": "IDR",
                "value": "20000.00"
            },
            "ledgerBalance": {
                "currency": "IDR",
                "value": "30000.00"
            }
        }
    ],
    "accountNo": "12345678",
    "additionalInfo": {
        "channel": "mobilephone",
        "deviceId": "12345678"
    },
    "name": "merchant name",
    "partnerReferenceNo": "2020102900000000000001",
    "referenceNo": "2020102977770000000009",
    "responseCode": "2001100",
    "responseMessage": "Request has been processed successfully",
    "code": "00",
    "message": "successfully"
}
Last update: