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/
The unique identifier of customer linked to order.
The unique identifier of document linked to order. This document entity should contain the required documents to process incoming payments. Refer this Document entity for more details.
The currency code in ISO 4217 format. Supported currencies: USD,EUR and GBP.
The amount you want to receive, a positive integer representing the smallest currency unit. For example, if the amount is $299.00, then pass 29900 in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to represent an amount of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, for amount ï¿¥295, pass the value as 295.
Description about the invoice submitted with order
The amount in cents for which invoice was generated. It can be more than the amount requested in this order
- Production server
https://api.glomopay.com/api/v1/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.glomopay.com/api/v1/orders \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"customer_id": "cust_E602dMzgjpDC",
"document_id": "doc_nYUqLpuYQ0M8",
"currency": "USD",
"amount": 1000,
"purpose_code": "P1401",
"invoice_number": "RG12FF590",
"invoice_description": "Payment requested for services provided",
"invoice_amount": 1000,
"product": {
"name": "ShieldGuard Insurance",
"description": "Flexible insurance for belongings, travel, and digital assets; easy to manage"
},
"notes": {
"key1": "value1",
"key2": "value2"
}
}'
Order created successfully
The unique identifier of document linked to order. This document entity should contain the required documents to process incoming payments. Refer this Document entity for more details.
The status of the Order.
The currency code in ISO 4217 format. Supported currencies: USD,EUR and GBP.
The amount you want to receive, a positive integer representing the smallest currency unit. For example, if the amount is $299.00, then pass 29900 in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to represent an amount of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, for amount ï¿¥295, pass the value as 295.
Description about the invoice submitted with order
The amount in cents for which invoice was generated. It can be more than the amount requested in this order
Timestamp representing when the order was created
{ "id": "order_678a4c88hpAjf", "customer_id": "cust_E602dMzgjpDC", "document_id": "doc_nYUqLpuYQ0M8", "status": "success", "currency": "USD", "amount": 1000, "purpose_code": "P1401", "invoice_number": "RG12FF590", "invoice_description": "Payment requested for services provided", "invoice_amount": 1000, "product": { "name": "ShieldGuard Insurance", "description": "Flexible insurance for belongings, travel, and digital assets; easy to manage" }, "notes": { "key1": "value1", "key2": "value2" }, "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" }
Status of order to filter
ISO-8601 timestamp in UTC to filter resources created before this time. Use this to avoid Page drift
issue. See Pagination parameters for more details.
ISO-8601 timestamp in UTC to filter resources created after this time. Use this to avoid Page drift
issue. See Pagination parameters for more details.
- Production server
https://api.glomopay.com/api/v1/orders
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.glomopay.com/api/v1/orders?customer_id=string&status=active&before=2025-02-18T12%3A03%3A44Z&after=2025-01-18T12%3A03%3A44Z&per_page=20&page=1' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "data": [ { … } ], "page_meta": { "current": 2, "previous": 1, "next": 3, "per_page": 20, "pages": 10, "count": 200 } }
- Production server
https://api.glomopay.com/api/v1/orders/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.glomopay.com/api/v1/orders/order_678a4c88hpAjf \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Payment link retrieved successfully
The unique identifier of document linked to order. This document entity should contain the required documents to process incoming payments. Refer this Document entity for more details.
The status of the Order.
The currency code in ISO 4217 format. Supported currencies: USD,EUR and GBP.
The amount you want to receive, a positive integer representing the smallest currency unit. For example, if the amount is $299.00, then pass 29900 in this field. In the case of three decimal currencies, such as KWD, BHD and OMR, to represent an amount of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, for amount ï¿¥295, pass the value as 295.
Description about the invoice submitted with order
The amount in cents for which invoice was generated. It can be more than the amount requested in this order
Timestamp representing when the order was created
{ "id": "order_678a4c88hpAjf", "customer_id": "cust_E602dMzgjpDC", "document_id": "doc_nYUqLpuYQ0M8", "status": "success", "currency": "USD", "amount": 1000, "purpose_code": "P1401", "invoice_number": "RG12FF590", "invoice_description": "Payment requested for services provided", "invoice_amount": 1000, "product": { "name": "ShieldGuard Insurance", "description": "Flexible insurance for belongings, travel, and digital assets; easy to manage" }, "notes": { "key1": "value1", "key2": "value2" }, "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" }