Dark Mode

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 for Conflict
  • 11 is service code for balance inquiry, and
  • 00 together with 409 HTTP code indicates same X-External-ID or partnerReferenceNo 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