- You must have a Shopify store.
- You must have Ongoing Subscriptions installed and have selected the Enterprise level plan.
You can create your API token through the Ongoing Subscriptions merchant dashboard.
Ongoing Subscriptions -> Settings -> Api Token -> Create Token
Once you generate your token you must make sure that you copy it. After you close the modal the token will never be able to be retrieved again.
If you lose your token, or as an added security precaution you can rotate your API tokens to invalidate stale tokens.
In the same section where you created your original token, you can select “Rotate Token” to immediately invalidate your existing tokens and create a new one.
Connecting a development sandbox store is highly recommended before using the Ongoing API on your production environment.
The base url for the api is
All requests to the Rest API should contain the following required header parameters:
The myshopify domain for a shop.
curl --location --request GET 'https://app.ongoingsubscriptions.com/api/v1/subscriptions?status=ACTIVE' \ --header 'X-Ongoing-Api-Token: 178|T6E4Sr0gLp3imrtFfrdow4KebYvkc2k8R7DlTMoJ' \ --header 'X-Ongoing-User-Id: ongoing-dev.myshopify.com'