API Reference
/- Mock update a refund
Create refund for a payment
List all refunds
Retrieve a refund
Refund
Mock update a refund
Mark an in_progress refund as successful
Security
JWT
PATCH
curl -i -X PATCH \
https://api.glomopay.com/api/v1/refunds/refund_E602dMzgjpDC/mock_update_status \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"status": "success"
}'Refund updated successfully
The status of the refund.
Enum:"success""failed""action_required""pending""under_review"
Example:"success"
The amount you want to receive in cents. For example, 1000 cents is $10.00. The currency is determined by the currency field. Cents is a general term for the smallest unit of currency in any currency. It does not necessarily mean USD cents.
Example:1000
The Unique Transaction Reference (UTR) number associated with the refund.
Example:"UTR123456789"
Timestamp representing when the refund was created
Example:"2021-06-01T12:00:00Z"
Timestamp representing when the refund was last updated
Example:"2021-06-01T12:00:00Z"
Response
- object
- object (2)
{ "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, "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z", "request_id": false }