PPylon Developers
ApiRefunds

List refunds

Returns a paginated list of refunds for the current tenant.

GET
/api/v1/payments/refunds
AuthorizationBearer <token>

Enter your bearer token from the Pylon Auth API.

In: header

Query Parameters

page?integer
Default1
Formatint32
pageSize?integer
Default20
Formatint32
status?string
reason?string

Response Body

application/json

curl -X GET "https://loading/api/v1/payments/refunds"
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "paymentIntentId": "8a86594b-ac91-4146-aa27-ff5b5bb4a688",
      "orderId": "b3e1eced-f2bd-4d8c-9765-fbc9d1d222d5",
      "amount": 0.1,
      "currency": "string",
      "reason": "string",
      "status": "string",
      "requestedAt": "2019-08-24T14:15:22Z",
      "processedAt": "2019-08-24T14:15:22Z",
      "failureReason": null
    }
  ],
  "meta": {
    "totalCount": 0,
    "page": 0,
    "pageSize": 0,
    "totalPages": 0,
    "hasNext": true,
    "hasPrevious": true
  },
  "links": null
}