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 payment_link.
The unique identifier of document linked to payment_link. 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 payment_link
Date when the payment_link will expire. Expiry can not be less than or equal to current date and can be upto 6 months in future.
The amount in cents for which invoice was generated. It can be more than the amount requested in this payment_link
The frequency at which you want to remind customers, valid values are 1(remind everyday), 2(remind every alternate day), 7(remind every week), 14(remind every alternate week).
The price_id of the price to be used for the payment link. Note: If you are a platform user then price_id is a required field.
- Production server
https://api.glomopay.com/api/v1/payin
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.glomopay.com/api/v1/payin \
-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",
"expires_at": "2025-02-15T00:00:00.000Z",
"invoice_amount": 1000,
"reminder_frequency": 7,
"price_id": "price_E602dMzgjpDC",
"product": {
"name": "ShieldGuard Insurance",
"description": "Flexible insurance for belongings, travel, and digital assets; easy to manage"
}
}'
Payment link created successfully
The unique identifier of customer linked to payment_link.
The unique identifier of document linked to payment_link. This document entity should contain the required documents to process incoming payments. Refer this Document entity for more details.
The status of the payment_link.
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 payment_link
Date when the payment_link will expire. Expiry can not be less than or equal to current date and can be upto 6 months in future.
Last time when the customer was reminded to complete the payment by visiting the link
The amount in cents for which invoice was generated. It can be more than the amount requested in this payment_link
Sharable link which should be shared with customer you want to receive money from. This link gets generated only after the payin has been reviewed and moved to in_progress
The frequency at which you want to remind customers, valid values are 1(remind everyday), 2(remind every alternate day), 7(remind every week), 14(remind every alternate week).
The price_id of the price to be used for the payment link. Note: If you are a platform user then price_id is a required field.
Timestamp representing when the payment_link was created
{ "id": "payin_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", "expires_at": "2025-02-15T00:00:00.000Z", "last_reminder_sent_at": "2024-09-13T06:32:34.340Z", "invoice_amount": 1000, "payment_link": "https://staging-api.glomopay-eng.com/v1/payin/pl/8f31597d-e085-497a-b80f-ae97ea9422a0", "reminder_frequency": 7, "price_id": "price_E602dMzgjpDC", "product": { "name": "ShieldGuard Insurance", "description": "Flexible insurance for belongings, travel, and digital assets; easy to manage" }, "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" }
Status of payment link 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/payin
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.glomopay.com/api/v1/payin?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/payin/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.glomopay.com/api/v1/payin/payin_678a4c88hpAjf \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Payment link retrieved successfully
The unique identifier of customer linked to payment_link.
The unique identifier of document linked to payment_link. This document entity should contain the required documents to process incoming payments. Refer this Document entity for more details.
The status of the payment_link.
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 payment_link
Date when the payment_link will expire. Expiry can not be less than or equal to current date and can be upto 6 months in future.
Last time when the customer was reminded to complete the payment by visiting the link
The amount in cents for which invoice was generated. It can be more than the amount requested in this payment_link
Sharable link which should be shared with customer you want to receive money from. This link gets generated only after the payin has been reviewed and moved to in_progress
The frequency at which you want to remind customers, valid values are 1(remind everyday), 2(remind every alternate day), 7(remind every week), 14(remind every alternate week).
The price_id of the price to be used for the payment link. Note: If you are a platform user then price_id is a required field.
Timestamp representing when the payment_link was created
{ "id": "payin_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", "expires_at": "2025-02-15T00:00:00.000Z", "last_reminder_sent_at": "2024-09-13T06:32:34.340Z", "invoice_amount": 1000, "payment_link": "https://staging-api.glomopay-eng.com/v1/payin/pl/8f31597d-e085-497a-b80f-ae97ea9422a0", "reminder_frequency": 7, "price_id": "price_E602dMzgjpDC", "product": { "name": "ShieldGuard Insurance", "description": "Flexible insurance for belongings, travel, and digital assets; easy to manage" }, "created_at": "2021-06-01T12:00:00Z", "updated_at": "2021-06-01T12:00:00Z" }