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/
Filter subscriptions by status.
Filter subscriptions with a particular start date, in UTC timezone and ISO 8601 format (YYYY-MM-DD).
Filter subscriptions with a particular end date, in UTC timezone and ISO 8601 format (YYYY-MM-DD).
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/subscriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.glomopay.com/api/v1/subscriptions?status=active&customer_id=cust_5JU9yv0lGSUP&start_date=2024-01-01&end_date=2024-12-31&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 } }
Unique identifier of the customer associated with this subscription.
Name of the product being subscribed to.
Description of the product.
Description of the subscription plan.
The amount in the smallest currency unit. For example, if the amount is $299.00, then 29900 is passed 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.
The currency code in ISO 4217 format.
Used in combination with interval_count to define the billing cycle frequency.
Number of intervals between a billing cycle, used in combination with interval_type. Valid combinations:
- Monthly: interval_type='month', interval_count=1
- Quarterly: interval_type='month', interval_count=3
- Half-yearly: interval_type='month', interval_count=6
- Yearly: interval_type='year', interval_count=1
Total number of billing cycles for the subscription. A subscription can have a lifetime of 10 years. Maximum billing cycles therefore depend on interval:
- Monthly (interval_type='month', interval_count=1): max 120 cycles
- Quarterly (interval_type='month', interval_count=3): max 40 cycles
- Half-yearly (interval_type='month', interval_count=6): max 20 cycles
- Yearly (interval_type='year', interval_count=1): max 10 cycles
Start date of the subscription in UTC timezone and ISO 8601 format (YYYY-MM-DD). Must be today or in the future.
Expiration date for the subscription payment link in UTC timezone and ISO 8601 format (YYYY-MM-DD). Must be >= start_date and cannot be more than 6 months from start_date.
Whether to send notification e-mails to customers for subscription lifecycle changes.
- Production server
https://api.glomopay.com/api/v1/subscriptions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.glomopay.com/api/v1/subscriptions \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"customer_id": "cust_5JU9yv0lGSUP",
"product_name": "ShieldGuard Insurance",
"product_description": "Flexible, monthly insurance for belongings, travel, and digital assets; easy to manage",
"plan_name": "ShieldGuard Lite",
"plan_description": "Simple, monthly insurance plan that covers your basic belongings and key digital assets",
"amount": 1000,
"currency": "USD",
"interval_type": "month",
"interval_count": 1,
"billing_cycles": 12,
"start_date": "2025-01-01",
"expires_at": "2025-01-07",
"notify_customer": true,
"starts_with_first_payment": true
}'
Subscription created successfully
Unique identifier of the customer associated with this subscription.
Description of the product.
Description of the subscription plan.
Current status of the subscription.
The amount in the smallest currency unit. For example, if the amount is $299.00, then 29900 is passed 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.
The currency code in ISO 4217 format.
Used in combination with interval_count to define the billing cycle frequency.
Number of intervals between a billing cycle, used in combination with interval_type. Valid combinations:
- Monthly: interval_type='month', interval_count=1
- Quarterly: interval_type='month', interval_count=3
- Half-yearly: interval_type='month', interval_count=6
- Yearly: interval_type='year', interval_count=1
Start date of the subscription in UTC timezone and ISO 8601 format (YYYY-MM-DD).
The date on which the subscription ends in UTC timezone and ISO 8601 format (YYYY-MM-DD).
Expiration date for the subscription payment link in UTC timezone and ISO 8601 format (YYYY-MM-DD).
Date of the next scheduled payment in UTC timezone and ISO 8601 format (YYYY-MM-DD).
URL for the subscription payment page. Your customer can use this URL to make the first payment and activate the subscription.
{ "id": "sub_5JU9yv0lGSUP", "customer_id": "cust_5JU9yv0lGSUP", "product_name": "ShieldGuard Insurance", "product_description": "Flexible, monthly insurance for belongings, travel, and digital assets; easy to manage", "plan_name": "ShieldGuard Lite", "plan_description": "Simple, monthly insurance plan that covers your basic belongings and key digital assets", "status": "active", "amount": 1000, "currency": "USD", "interval_type": "month", "interval_count": 1, "billing_cycles": 12, "start_date": "2025-01-01", "end_date": "2025-12-01", "expires_at": "2025-01-07", "next_payment_date": "2025-02-01", "subscription_link_url": "https://checkout.glomopay.com/subscription/sub_5JU9yv0lGSUP", "cancelled_at": "2025-01-15" }
- Production server
https://api.glomopay.com/api/v1/subscriptions/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://api.glomopay.com/api/v1/subscriptions/sub_5JU9yv0lGSUP \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'
Subscription details retrieved successfully
Unique identifier of the customer associated with this subscription.
Description of the product.
Description of the subscription plan.
Current status of the subscription.
The amount in the smallest currency unit. For example, if the amount is $299.00, then 29900 is passed 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.
The currency code in ISO 4217 format.
Used in combination with interval_count to define the billing cycle frequency.
Number of intervals between a billing cycle, used in combination with interval_type. Valid combinations:
- Monthly: interval_type='month', interval_count=1
- Quarterly: interval_type='month', interval_count=3
- Half-yearly: interval_type='month', interval_count=6
- Yearly: interval_type='year', interval_count=1
Start date of the subscription in UTC timezone and ISO 8601 format (YYYY-MM-DD).
The date on which the subscription ends in UTC timezone and ISO 8601 format (YYYY-MM-DD).
Expiration date for the subscription payment link in UTC timezone and ISO 8601 format (YYYY-MM-DD).
Date of the next scheduled payment in UTC timezone and ISO 8601 format (YYYY-MM-DD).
URL for the subscription payment page. Your customer can use this URL to make the first payment and activate the subscription.
{ "id": "sub_5JU9yv0lGSUP", "customer_id": "cust_5JU9yv0lGSUP", "product_name": "ShieldGuard Insurance", "product_description": "Flexible, monthly insurance for belongings, travel, and digital assets; easy to manage", "plan_name": "ShieldGuard Lite", "plan_description": "Simple, monthly insurance plan that covers your basic belongings and key digital assets", "status": "active", "amount": 1000, "currency": "USD", "interval_type": "month", "interval_count": 1, "billing_cycles": 12, "start_date": "2025-01-01", "end_date": "2025-12-01", "expires_at": "2025-01-07", "next_payment_date": "2025-02-01", "subscription_link_url": "https://checkout.glomopay.com/subscription/sub_5JU9yv0lGSUP", "cancelled_at": "2025-01-15" }