Disbursement

Status Inquiry

Status Inquiry is an optional service Espay Disbursement provides that allows you to check the status of your latest transaction.
Type Value
Service Code
36
Name
API Transaction Status Inquiry
HTTP Method
POST

Flow

You send the required parameters to make a request, and Espay Disbursement will respond in JSON format.

API URL

Environment URL
Sandbox
Port of HTTPS (443)
https://sandbox-api.espay.id/api/v1.0/transfer/status
Production
Port of HTTPS (443)
https://api.espay.id/api/v1.0/transfer/status

Headers

Name Type Mandatory Description
Content-Type
String
Y
Content of your request body.

Example:
application/json
X-TIMESTAMP
String (25)
Y
Customer's current local date and time.

Format:
yyyy-MM-ddThh:mi:ssTZD (ISO 8601)

Example:
2024-03-14T07:49:28+07:00
X-SIGNATURE
String (255)
Y
Code used to validate transactions. Learn Signatures Asymmetric
X-EXTERNAL-ID
String (32)
Y
Numeric String. Reference number that should be unique on the same day.
X-PARTNER-ID
String (50)
Y
Merchant Code from Espay team.

Example:
SGWYESSISHOP
CHANNEL-ID
String (5)
Y
Channel id.

Value:
Espay
Authorization-Customer
String
Y
Access Token from B2B. Learn Access Token B2B

Format:
Bearer (access token).

Example:
Bearer ZDE1MTQxM2QwODE2Zj UyNjk3ZmY0NTA3ZDgwZ Tg2ZDcyNmQ4MTNlYw
Y: Yes, O: Optional, C: Conditional

Request Parameters

Parameter Type Mandatory Description
originalPartnerReferenceNo
String (64)
Y
Unique reference code from merchant.
transactionDate
String (25)
Y
Date and time of the transaction.

Format:
yyyy-MM- ddThh:mi:ssTZD (ISO 8601).

Example:
2022-08-21T14:56:11+07:00
Y: Yes, O: Optional, C: Conditional

Response Parameters

Parameter Type Mandatory Description
responseCode
String (7)
Y
Response Code.

Format:
HTTP code + Service code + Error code. Click here

Example:
200+36+00 = 2003600.
responseMessage
String (150)
Y
Response description.
originalPartnerReferenceNo
String (64)
Y
Unique reference code from merchant.
beneficiaryAccountNo
String (34)
Y
Beneficiary account number.
referenceNumber
String (30)
Y
Reference number from system.
sourceAccountNo
String (34)
O
Source account number.
latestTransactionStatus
String (2)
Y
Latest transaction status.

Format:
  • Success: 00
  • Init: 01
  • Pending: 03
  • Failed: 06
Y: Yes, O: Optional, C: Conditional

Try It!

Anda bisa coba masukkan data sesuai dengan input yang telah disediakan. Setelah itu Anda submit dan lihat hasilnya!































Sample Headers

Content-Type:application/json
X-TIMESTAMP:2024-03-14T07:49:28+07:00
X-SIGNATURE:tshxW1VwZnjWoxh4PAuStAvUW/kMVIQT1Tev6jiv9eIPtV1X0DyDV0eC1uV9Zl6DuJ1AP21b9JWLb68VggIJ5v6jz0q+KMsa5XZBHNqIZK4IctExYee2YqxPRKf70pEw26KAhk34ZEXMwIdiOOGzqWmm+6ZmU+iQRmxiOKFiyRhszNeGjrOMoKw+ElAWg5qpTHNCsnr2jDfJve6FxN+CTy2EZVVqaK26rnX5yRy6s4pQgcZTpd5o9Jb9FL05WVNGdqDVjHCfdx9V6ocNTP/4IMIw3ofQbXqxtPIDK5p0mgzOtG2ICvwEXle5Ytry7SIyogiVazj1G/ck3O0gqXNUrg==
X-EXTERNAL-ID:d3be5aec-155b-4b46-bfee-3fd55363d0f4
X-PARTNER-ID:SGWYESSISHOP
CHANNEL-ID:ESPAY
Authorization:Bearer tm8FSKFSIk3Fb90oqkyDFXLnFXOkwVhHACtvBudP7ZRCTQCmKth45OeUvd7lS44OTyMzo5k5H/XxQlGF2SHR4A==
             
































Sample Request

{
    "originalPartnerReferenceNo":"20220929184790130077",
    "transactionDate": "2024-03-13T07:49:28+07:00"
}
             








Sample Positive Response

{
    "responseCode": "2003600",
    "responseMessage": "Succesful", 
    "originalPartnerReferenceNo": "20220929184790130077",
    "beneficiaryAccountNo": "4123703141", 
    "referenceNumber": "0867220929100755", 
    "sourceAccountNo": "701075323", 
    "latestTransactionStatus": "00"
}
              


Sample Negative Response

    
{
    "responseCode": "4013601",
    "responseMessage": "Invalid Token (B2B)"
}

              





CURL

curl --location 'https://sandbox-api.espay.id/api/v1.0/transfer/status' \
--header 'Content-Type: application/json' \
--header 'X-TIMESTAMP: 2024-03-14T07:49:28+07:00' \
--header 'X-SIGNATURE: tshxW1VwZnjWoxh4PAuStAvUW/kMVIQT1Tev6jiv9eIPtV1X0DyDV0eC1uV9Zl6DuJ1AP21b9JWLb68VggIJ5v6jz0q+KMsa5XZBHNqIZK4IctExYee2YqxPRKf70pEw26KAhk34ZEXMwIdiOOGzqWmm+6ZmU+iQRmxiOKFiyRhszNeGjrOMoKw+ElAWg5qpTHNCsnr2jDfJve6FxN+CTy2EZVVqaK26rnX5yRy6s4pQgcZTpd5o9Jb9FL05WVNGdqDVjHCfdx9V6ocNTP/4IMIw3ofQbXqxtPIDK5p0mgzOtG2ICvwEXle5Ytry7SIyogiVazj1G/ck3O0gqXNUrg==' \
--header 'X-EXTERNAL-ID: f6e4f3ff-be47-48f9-ab32-4dc21e1909bb' \
--header 'X-PARTNER-ID: SGWYESSISHOP' \
--header 'CHANNEL-ID: ESPAY' \
--header 'Authorization: Bearer tm8FSKFSIk3Fb90oqkyDFXLnFXOkwVhHACtvBudP7ZRCTQCmKth45OeUvd7lS44OTyMzo5k5H/XxQlGF2SHR4A==' \
--data '{
    "originalPartnerReferenceNo":"20220929184790130077",
    "transactionDate": "2024-03-13T07:49:28+07:00"
}'
              
Scroll to Top