Dark Mode

Sandbox Mode


Overview

We are providing sandbox for you to test functionality of the API after you implement our SNAP API. Sandbox environment will not affect your production transactions. To use sandbox, you can follow several steps mentioned here.

  • Implement authentication as usual
  • Use the URL of sandbox https://api-sandbox.durianpay.id/v1.0
  • To simulate various case you can refer to following guidelines.

Transaction API

Success Case

Case To TestRequest BodyRequest HeaderExample of Expected Result
Request Still In Progressfollows example for respective serviceuse X-External-ID: 202001{ "responseCode": "2021800", "responseMessage": "Request In Progress" ... (rest of response body)}
Successfulfollows example for respective serviceuse X-External-ID: 200001{ "responseCode": "2001800", "responseMessage": "Success" ... (rest of response body)}

Failure Case

Case To TestRequest BodyRequest HeaderExample of Expected Result
Unauthorized Invalid B2B tokenfollows example for respective serviceuse X-External-ID: 401001{ "responseCode": "4011101", "responseMessage": "Invalid Token (B2B)" }
Unauthorized Invalid X-Signaturefollows example for respective serviceuse X-External-ID: 401002{"responseCode":"4011100","responseMessage":"Unauthorized Invalid X-Signature"}
Invalid Mandatory Fieldfollows example for respective serviceuse X-External-ID: 400002{"responseCode":"4001102","responseMessage":"Invalid Mandatory Field" }
Invalid Field Formatfollows example for respective serviceuse X-External-ID: 400001{"responseCode":"4001101","responseMessage":"Invalid Field Format" }
Invalid X-External-ID (value has been used previously)follows example for respective serviceuse X-External-ID: 409001{"responseCode":"4093800","responseMessage":"Conflict"}
Duplicate partnerReferenceNo (value has been used previously)follows example for respective serviceuse X-External-ID: 409002{"responseCode":"4093801","responseMessage":"Duplicate partnerReferenceNo"}
Internal Server Error (from Durianpay side)follows example for respective serviceuse X-External-ID: 500001{"responseCode":"5001101","responseMessage":"Internal Server Error"}
Gateway Timeout (from Durianpay side)follows example for respective serviceuse X-External-ID: 504001{"responseCode":"5041100","responseMessage":"Timeout"}