API specification for Glomo (1.0.0)
The Glomo API follows REST architecture, utilizing resource-oriented URLs for clarity. It handles form-encoded request bodies, delivers responses in JSON format, and operates with standard HTTP methods, authentication, and response codes.
You can download the complete API collection by using the download options on the right.
https://api.glomopay.com/api/v1/
- Production server
https://api.glomopay.com/api/v1/refunds/{id}/update_rfi
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://api.glomopay.com/api/v1/refunds/refu_E602dMzgjpDC/update_rfi \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"documents": [
{
"id": "doc_nYUqLpuYQ0M8",
"rfi_doc_id": "rfidoc_nYUqLpuYQ0M8"
}
]
}'
Document attached 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.
Timestamp representing when the refund was created
{ "id": "refund_6776d57dnbTWj", "customer_id": "cust_E602dMzgjpDC", "payment_id": "payt_E602dMzgjpDC", "reason": "Requested by Customer", "fx_fee": { "amount": 1000, "currency": "USD" }, "txn_fee": { "amount": 1000, "currency": "USD" }, "documents": [ { … } ], "status": "success", "currency": "USD", "amount": 1000, "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" }
- Production server
https://api.glomopay.com/api/v1/refunds/{id}/mock_update_status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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.
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.
Timestamp representing when the refund was created
{ "id": "refund_6776d57dnbTWj", "customer_id": "cust_E602dMzgjpDC", "payment_id": "payt_E602dMzgjpDC", "reason": "Requested by Customer", "fx_fee": { "amount": 1000, "currency": "USD" }, "txn_fee": { "amount": 1000, "currency": "USD" }, "documents": [ { … } ], "status": "success", "currency": "USD", "amount": 1000, "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" }