Skip to content

Retrieve a refund

Request

Retrieves a single refund by ID, including its current status.

A failed refund carries error_code and error_message, but these are not yet the specific reason recorded against the refund — every failure currently reports the same generic bank-failure value. Do not branch on them.

The refund must belong to the merchant the API key authenticates as — an ID that exists but belongs to another merchant returns 404, not 403. An ID that is not a well-formed refund ID is rejected with 400 before any lookup happens.

Security
JWT
Path
idstringrequired

The unique identifier for the refund. Starts with refund_ followed by letters and digits. An ID of any other shape is rejected with 400 and a message saying it must start with refund_; a well-formed ID that doesn't match a refund on your account returns 404.

Example:refund_E602dMzgjpDC
curl -i -X GET \
  https://api.glomopay.com/api/v1/refunds/refund_E602dMzgjpDC \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Refund found

Bodyapplication/json
idstringread-only

The unique identifier for the refund.

Example:"refund_6776d57dnbTWj"
customer_idstring

The unique identifier of customer linked to refund.

Example:"cust_E602dMzgjpDC"
payment_idstring

The unique identifier of payment linked to refund.

Example:"payt_E602dMzgjpDC"
reasonstring

The reason for the refund. For a refund you created, this is the reason you sent.

Glomo also refunds some payments itself, and those refunds appear in your refund list with one of two further reasons that you cannot send:

  • Refunded For Subscription Verification — the refund of a small charge used to verify the card when a subscription was set up.
  • Refunded For Subscription Card Update — the refund of a small charge used to verify a new card when the card on a subscription was replaced.
Enum:"Requested By Customer""Fraudulent""Duplicate""Others""Refunded For Subscription Verification""Refunded For Subscription Card Update"
Example:"Requested By Customer"
feesobject

The fees charged for the refund.

balance_usedobject

The balance deducted to process the refund, with amount in the smallest unit of currency.

documentsArray of any
statusstringread-only

The status of the refund.

  • in_progress — the refund has been accepted and is being sent back to the customer.
  • under_review — the refund is being reviewed by Glomo before it is processed.
  • action_required — Glomo needs more information before the refund can proceed. Respond to the open RFI to continue.
  • success — the refund has been paid out. Terminal.
  • failed — the refund could not be completed. Terminal.
  • cancelled — the refund was stopped before it was paid out. Terminal.
Enum:"in_progress""under_review""action_required""success""failed""cancelled"
Example:"success"
currencystring, (iso-4217)

The currency code in ISO 4217 format. For example, USD.

Example:"USD"
amountnumber, >= 1

The refund amount, in the smallest unit of currency (cents for USD). 1000 is $10.00 when currency is USD. currency is the payment's payment_currency (the currency the customer paid in), or its converted_currency when the payment has no payment_currency, so it can differ from the currency of the amount you send when creating the refund.

Example:1000
utrstringread-only

The Unique Transaction Reference (UTR) number associated with the refund.

Example:"UTR123456789"
partial_refundbooleanread-only

Indicates whether the refund is a partial refund.

Example:false
request_idstring or nullread-only

The request_id you sent when creating this refund; null if you sent none. Look the refund up with GET /v1/refunds?request_id=<your_request_id>.

Example:"your-internal-id"
created_atstring, (date-time)read-only

When the refund was created, as an ISO 8601 date-time in UTC.

Example:"2021-06-01T12:00:00Z"
updated_atstring, (date-time)read-only

When the refund was last updated, as an ISO 8601 date-time in UTC.

Example:"2021-06-01T12:00:00Z"
Response
{ "id": "refund_6776d57dnbTWj", "customer_id": "cust_E602dMzgjpDC", "payment_id": "payt_E602dMzgjpDC", "reason": "Requested By Customer", "fees": { "fx_fees": { … }, "txn_fees": { … } }, "balance_used": { "currency": "USD", "amount": 1000 }, "documents": [ { … } ], "status": "success", "currency": "USD", "amount": 1000, "utr": "UTR123456789", "partial_refund": false, "request_id": "your-internal-id", "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" }