GladysDevelopers

List a payment's refunds

Choose a TEST app to send requests from the playground.
get/payments/{reference}/refunds

Authorization

BearerAuth
headerAuthorizationBearer <token>

An access token from POST /oauth/token: client_credentials for your own app, or authorization_code for a user who connected it.

Path Parameters

reference*string

Payment reference

Response Body

OK

application/json
  1. response
data?array<>
error?
message?string
meta?
success?boolean
curl -X GET "https://example.com/payments/string/refunds"
{  "error": {    "code": "string",    "details": {      "property1": "string",      "property2": "string"    },    "message": "string"  },  "message": "string",  "meta": {    "pagination": {      "next_cursor": "string",      "page": 0,      "per_page": 0,      "total_items": 0,      "total_pages": 0    }  },  "success": true,  "data": [    {      "amount": "1500.00",      "created_at": "string",      "currency": "string",      "environment": "LIVE",      "metadata": "string",      "payment_reference": "string",      "reason": "string",      "reference": "string"    }  ]}