All Collections
API
Get subscriptions by order ID in Monto via API
Get subscriptions by order ID in Monto via API
Updated over a week ago

Getting started:

All requests require authenticating (see here).

Before making any API request. Please make sure there are no syncing issues with your shop. These issues are pretty rare, but it must be fixed before sending any API request. Please visit Monto > Site > Options (or click here) to confirm you don't see an error like below. If you do, simply connect site at which point Monto will re-index and you'll be clear to interact with the API.

Calling Stripe subscription IDs by Webflow order ID:

You can retrieve a list of subscriptions (since there may be more than one per order) related to a Webflow order by sending an API request like so:

GET  https://api.monto.io/orders/{order_id}/subscriptions?api_key=...

Path params:

order_id - string. Unique identifier for an order in Webflow.

Code responses:

200 Request was successful

401 Provided access token is invalid or does not have access to requested resource

404 Requested order_id not found

429 Too many requests

Body Response with 200 code:

{
"subscriptions": [
{
"stripe_id": "sub_XXXXXXXXXXXX",
"status": "trialing",
"created_at": "2022-11-15T20:48:15.000000Z"
},
{
"stripe_id": "sub_YYYYYYYYYY",
"status": "active",
"created_at": "2022-11-15T20:48:18.000000Z"
},
{
"stripe_id": "sub_ZZZZZZZZZZZZZ",
"status": "canceled",
"created_at": "2022-11-15T20:48:21.000000Z"
}
]
}

Did this answer your question?