Response
Introduction
SNAP API has its own standardized Response Code and Response Message for each of endpoint. In general, the response code will consist of 7 digits with HTTP code, Service Code, and Case Code scheme.
Example
For example, when doing request of balance query to https://api.durianpay.id/v1.0/balance-inquiry
with the same X-External-ID twice, merchant will receive error with code 4091100
where:
409
is HTTP code forConflict
11
is service code for balance inquiry, and00
together with409
HTTP code indicates sameX-External-ID
orpartnerReferenceNo
is being used twice.
Reference
HTTP code used is following the standard defined by RFC 9110
List of Service Code is listed here
Full table of Response Code, Response Message and its meaning is avaialble here