Dark Mode

Generate Checkout URL


The following endpoint generates checkout url for customer:

/invoices/generate_checkout_url/:customer_id
Example
curl -X POST \
  https://api.durianpay.id/v1/generate_checkout_url/cus_ViPeX4iBYp2233 \
  -H 'authorization: [Base64({Your_Server_Key}:)]' 

Response Code

200 - Success

1
2
3
4
5
{
        "url": "merchant.durianpay.id",
        "expiry": "2023-01-22T10:00:00.000Z"
        "response_code": "0000"
}

400 - Invalid Request

401 - Unauthorized Access

404 - Not Found

422 - Unprocessable Entity

500 - Internal Server Error