Dark Mode

Invoice Fetch by ID API


The following endpoint retrieves the details of a single Invoice

/invoices/:id

Path Attributes

id

String
Mandatory

Unique identifier of the Invoice to be retrieved

Query Attributes

Example
curl -X GET \
  https://api.durianpay.id/v1/invoices/inv_mJH2hKOSYb3514 \
  -H 'authorization: [Base64({Your_Server_Key}:)]' \
  -H 'content-type: application/json' \

Response Code

200 - Success

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
    "id": "inv_mJH2hKOSYb3514",
    "customer_id": "cus_ViPeX4iBYp2233",
    "title": "sample title",
    "invoice_ref_id": "inv_ref_001",
    "amount": "15001.00",
    "remaining_amount": "10001.00"
    "currency": "IDR",
    "status": "outstanding",
    "is_live": true,
    "is_partial_transaction_enabled": true,
    "partial_transaction_config": {
        "min_acceptable_amount": "10000.00"
    }
    "start_date": "2022-03-28T00:00:00Z"
    "due_date": "2022-03-29T00:00:00Z",
    "is_blocked": false,
    "invoice_url": "",
    "metadata": null,
    "created_at": "2022-03-28T14:39:37.860426Z",
    "response_code": "0000"
}

401 - Unauthorized Access

400 - Bad Request

404 - Not Found

500 - Internal Server Error