Welcome to Durianpay's API Documentation! Our APIs empower businesses to integrate seamless payment solutions into their applications. Built on RESTful architecture, our APIs are reliable, scalable, and easy to use, enabling developers to deliver exceptional payment experiences.
REST API
REST API (Representational State Transfer) is a web architecture that facilitates communication over HTTP using methods like GET, POST, PUT, and DELETE. It employs JSON for efficient and straightforward data exchange.
Sandbox & Live Mode
Durianpay supports two modes: Sandbox and Live. Sandbox Mode is a testing environment that replicates real-world API behavior without processing actual transactions, ideal for integration testing. Live Mode is designed for production and handles real transactions securely.
By default, you are provided with Sandbox Mode to test your integration. Live Mode is activated upon successful KYB and onboarding verification. Once enabled, you can seamlessly switch between modes via the toggle in the top-left corner of your dashboard.
Below are the details for the Sandbox and Live URLs in Durianpay:
- Sandbox Base URL : https://api-sandbox.durianpay.id
- Live Base URL: https://api.durianpay.id
- Full Live URL: {base_url}/{version}/{api-name} , Example:
- Normal API: https://api.durianpay.id/v1/payments/charge
- SNAP API: https://api.durianpay.id/v1.0/access-token/b2b
To interact with the API, ensure you use the correct credentials and URL according to the mode:
- Sandbox Mode: Use the sandbox credentials and sandbox URL.
- Live Mode: Use the live credentials and live URL.
You can access this credentials information via Menu Settings - API Keys in respective mode.
API Overview
Explore our suite of APIs designed to streamline your payment processes.