Dark Mode

Manual Payment for Invoice API


The following endpoint creates a manual payment for an Invoice:

/invoices/manual_transaction

Request Attributes

Following are the parameters to be sent in the request body:

id

String
Mandatory

Unique identifier of the Invoice to be paid.

amount

String
Mandatory

Amount paid manually for the Invoice.

Example
curl -X POST \
  https://api.durianpay.id/v1/invoices/manual_pay \
  -H 'authorization: [Base64({Your_Server_Key}:)]' \
  -H 'content-type: application/json' \
  -d '{
    "id": "inv_0dIWbudjjf84078",
    "amount": "10000.23"
    }'

Response Code

200 - Success

1
2
3
4
{
        "message": "Manual Payment for inv_0dIWbudjjf84078 is successful."
        "response_code": "0000"
}

400 - Invalid Request

401 - Unauthorized Access

404 - Not Found

422 - Unprocessable Entity

500 - Internal Server Error