Available APIs
Appstle Subscriptions exposes two REST API surfaces. Pick the one that matches where your code runs:- Admin API — server-side, authenticated with
X-API-Key. For backend integrations, mobile apps, automation, and admin dashboards. Browse the full reference under Admin API in the sidebar. - Storefront API — customer-facing, accessed through Shopify App Proxy. For custom subscription portals on your storefront. Browse the full reference under Storefront API in the sidebar.
Which API should you use?
- Use the Admin API when…
- Use the Storefront API when…
- You are building a server-side integration (backend service, CRM connector, helpdesk plugin)
- You are building a mobile app (iOS or Android)
- You need to manage subscriptions programmatically on behalf of merchants
- You want to run bulk operations or scheduled automation
- You are building an admin dashboard or reporting tool
- Your code runs anywhere outside a customer’s browser on the storefront
Admin API requests require an
X-API-Key header. Keys are created in the Appstle dashboard under More → API Access. Never expose keys in client-side code.Key features
Subscription management
Create, update, pause, resume, and cancel subscription contracts. Full lifecycle control from initial checkout through cancellation.
Billing & payments
Process payments, handle billing failures, update payment methods, and manage billing cycles and retry logic.
Product catalog
Configure subscription-eligible products, manage selling plans, handle product swaps, and set up Build-a-Box bundles.
Order fulfillment
Manage subscription order cycles, skip upcoming orders, reschedule billing dates, and control delivery schedules.
Reporting & analytics
Access revenue metrics, billing history, order counts per subscription contract, and detailed past-order reports.
Loyalty & rewards
Integrate loyalty programs that let customers earn and redeem points on their subscription orders.
Customization
Apply custom CSS, configure label translations, and manage theme settings for the storefront widget and customer portal.
Automation
Connect with Shopify Flow, build Klaviyo flows on the events Appstle sends, listen to JavaScript storefront events, and receive real-time webhook notifications.
Base URL
All Admin API endpoints use:HTTP status codes
API responses use these HTTP status codes.
An unexpected server error comes back as HTTP
400, not 500, and the body keeps the real status:
status in the body, not only the HTTP code. A 400 whose body has status 500 failed on the server. A request that leaves out a parameter the call needs can fail this way too: the body above came from skip-upcoming-order sent without subscriptionContractId. Check the request against the API reference first. If it’s correct, wait a few seconds and send it once more. Before you resend a PUT, POST or DELETE, read the record back, because the change may have been saved before the error. Don’t retry in a loop: an endpoint that keeps failing is rate limited. If the second try fails too, contact support@appstle.com with the store’s myshopify.com domain, the path, the time of the call and the value of the X-Trace-Id response header.
A missing or invalid API key returns 401 with this body in both cases:
403, not 404 or 405, and a failure on the server comes back as 400 with status 500 in the body. See Errors.
Next steps
Authentication
Create API keys and learn how to authenticate every request.
Quickstart
Make your first API call in under five minutes.
Integration guide
End-to-end walkthrough covering the most common integration workflows.
Webhooks
Receive real-time event notifications when subscriptions change.
API changelog
Dated changes to the Admin API, Storefront API, Shopify Flow and JavaScript events, with what to do about each.