Skip to main content

Refund Fetch by ID API

The following endpoint retrieves the details of a single refund

/refunds/:id

Path parameters#

Fieldis required?Description
idmandatorystring Unique identifier of the Refund to be retrieved

Example#

curl -u <YOUR_SECRET_KEY> \
-X GET https://api.durianpay.id/v1/refunds/rfn_lCs4X0M9gB0135 \
-H "content-type: application/json"'

Response#

{
"data": {
"id": "rfn_lCs4X0M9gB0135",
"ref_id": null,
"amount": "10000.00",
"refund_type": "partial",
"status": "approved",
"created_at": "2021-06-29T15:43:49.998179Z",
"updated_at": "2021-06-29T15:43:54.634024Z",
"approved_at": "2021-06-29T15:43:54.634024Z",
"source": "api",
"customer_id": "cus_0lyb30V7O16812",
"customer_name": "John Doe",
"customer_email": "john@doe.com",
"customer_phone": "0812778161"
}
}