Response Code and Response Message
Overview
In general, there are two types of response to a request in SNAP, Successful
and Failed
. Successful
response is indicated with HTTP code of 2xx
while 4xx
and 5xx
indicates error (from client side or server/Durianpay side).
Please refer to table below for list of Response Code, Response Message, and its meaning.
Successful Response
HTTP Code | Service Code | Case Code | Response Message | Description |
---|---|---|---|---|
200 | any | 00 | Successful | Successful |
202 | any | 00 | Request In Progress | Transaction still on process |
Error Response
HTTP Code | Service Code | Case Code | Response Message | Description |
---|---|---|---|---|
400 | any | 00 | Bad Request | General request failed error, including message parsing failed. |
400 | any | 01 | Invalid Field Format {field name} | Invalid format |
400 | any | 02 | Invalid Mandatory Field {field name} | Missing or invalid format on mandatory field |
401 | any | 00 | Unauthorized [reason] | General unauthorized error (No Interface Def, API is Invalid, Oauth Failed, Verify Client Secret Fail, Client Forbidden Access API, Unknown Client, Key not Found, Invalid Signature) |
401 | any | 01 | Invalid Token (B2B) | Token found in request is invalid (Access Token Not Exist, Access Token Expiry) |
401 | any | 03 | Token Not Found (B2B) | Token not found in the system. This occurs on any API that requires token as input parameter |
403 | any | 00 | Transaction Expired | Transaction expired |
403 | any | 18 | Inactive Card/Account/Customer | Indicates inactive account |
404 | any | 01 | Transaction Not Found | Transaction not found |
404 | any | 11 | Invalid Card/Account/Customer [info]/Virtual Account | Card information may be invalid, or the card account may be blacklisted, or Virtual Account number may be invalid. |
409 | any | 00 | Conflict | Cannot use same X-EXTERNAL-ID in same day |
409 | any | 01 | Duplicate partnerReferenceNo | Transaction has previously been processed indicates the same partnerReferenceNo already success |
500 | any | 00 | General Error | General Error |
500 | Any | 01 | Internal Server Error | Unknown Internal Server Failure, Please retry the process again |
504 | any | 00 | Timeout | Timeout from the issuer |