Creates refund for a payment entity if the payment is in success state and no other refund exists.
The reason for the refund.
The unique identifier of payment linked to refund.
The url of document that is uploaded for refund.
The amount to refund in cents. Required for partial refunds. If not provided, the full payment amount will be refunded. For example, 1000 cents is $10.00. The currency is determined by the payment's currency.
curl -i -X POST \
https://api.glomopay.com/api/v1/refunds \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"reason": "Requested By Customer",
"payment_id": "payt_E602dMzgjpDC",
"document_id": "doc_E602dMd2adDC",
"document_url": "https://www.example.com/documents/invoice.pdf",
"file_name": "invoice",
"amount": 1000,
"request_id": "unique_refund_request_id_123"
}'Refund created successfully
The status of the refund.
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.
The Unique Transaction Reference (UTR) number associated with the refund.
Timestamp representing when the refund was created
Timestamp representing when the refund was last updated
- 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 }