Dark Mode

Refund Fetch API


The following endpoint retrieves list of all Refunds created

/refunds

Run in Postman

Query Attributes

from

String
Optional

Timestamp (in YYYY-MM-DD format) from when the refunds should be fetched

to

String
Optional

Timestamp (in YYYY-MM-DD format) up till when refunds are to be fetched

skip

Integer
Optional

The number of refunds to be skipped. The default value is 0. This can be used for pagination, in combination with count

limit

Integer
Optional

Number of refunds to be fetched. Default value is 25. This can be used for pagination, in combination with the skip parameter

Example
curl -X GET \
  'https://api.durianpay.id/v1/refunds?skip=0&limit=10&search=&from=2021-01-19&to=2021-12-19&filter=%5B%5D' \
  -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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
  "data": {
    "refund": [
      {
        "id": "rfn_lCs4X0M9gB0135",
        "merchant_id": "mer_MsCtIPhqRc8045",
        "status": "approved",
        "disbursement_id": null,
        "total_amount": "10000.00",
        "created_at": "2021-06-29T15:43:49.998179Z",
        "updated_at": "2021-06-29T15:43:54.634024Z",
        "approved_at": "2021-06-29T15:43:54.634024Z",
        "payment_id": "pay_jkQXIs4Zhw7801",
        "refund_ref_id": null,
        "is_live": false,
        "type": "instant",
        "order_id": "",
        "customer_id": "cus_0lyb30V7O16812",
        "refund_partial": "partial",
        "refund_notes": "",
        "payment_paid_amount": "",
        "payment_details_type": "",
        "payment_method_id": "",
        "customer_name": "Ar",
        "customer_email": "arifiseng@gmail.com",
        "customer_phone": "8572281712",
        "destination": null,
        "ewallet_name": null,
        "account_name": null,
        "account_number": null,
        "created_by": 50,
        "created_by_name": "Arif Bud",
        "updated_by": 50,
        "updated_by_name": "Arif Bud",
        "history": null,
        "source": "",
        "allow_retrigger": false
      },
      {
        "id": "rfn_10rCPdp09a3775",
        "merchant_id": "mer_MsCtIPhqRc8045",
        "status": "approved",
        "disbursement_id": null,
        "total_amount": "10000.00",
        "created_at": "2021-06-29T14:47:41.204717Z",
        "updated_at": "2021-06-29T14:47:46.704391Z",
        "approved_at": "2021-06-29T14:47:46.704391Z",
        "payment_id": "pay_jkQXIs4Zhw7801",
        "refund_ref_id": null,
        "is_live": false,
        "type": "instant",
        "order_id": "",
        "customer_id": "cus_0lyb30V7O16812",
        "refund_partial": "partial",
        "refund_notes": "",
        "payment_paid_amount": "",
        "payment_details_type": "",
        "payment_method_id": "",
        "customer_name": "Ar",
        "customer_email": "arifiseng@gmail.com",
        "customer_phone": "8572281712",
        "destination": null,
        "ewallet_name": null,
        "account_name": null,
        "account_number": null,
        "created_by": 50,
        "created_by_name": "Arif Bud",
        "updated_by": 50,
        "updated_by_name": "Arif Bud",
        "history": null,
        "source": "",
        "allow_retrigger": false
      }
    ],
    "total_data": 2
  }
}

400 - Invalid Request

401 - Unauthorized Access