v1

latestOpenAPI 3.1.02026-07-26500375.1 KB

Refund Fetch

The following endpoint retrieves list of all Refunds created

get/refunds

Query parameters

fromstring

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

tostring

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

skipinteger

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

limitinteger

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

Response

200

Example response

{
  "data": {
    "refund": [
      {
        "id": "rfn_lCs4X0M9gB0135",
        "merchant_id": "mer_MsCtIPhqRc8045",
        "status": "approved",
        "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",
        "type": "instant",
        "customer_id": "cus_0lyb30V7O16812",
        "refund_partial": "partial",
        "customer_name": "Ar",
        "customer_email": "arifiseng@gmail.com",
        "customer_phone": "8572281712",
        "created_by": 50,
        "created_by_name": "Arif Bud",
        "updated_by": 50,
        "updated_by_name": "Arif Bud"
      }
    ],
    "total_data": 2
  }
}