Overview
The Subtotal API lets brands and developers build experiences around customer-permissioned retail purchases. The Subtotal API follows REST principles and uses standard HTTP methods and JSON payloads, making it straightforward to work with in any modern programming language or framework.Base URL
Append an endpoint to the base URL root address to form a complete request URL.Authentication
Authenticate with an access token from a private app. Create the app under Settings → Developers in the Subtotal Dashboard, install it to get a client ID and secret, then exchange them for a token from your server:Authorization header of each request:
403 insufficient_scope. See Private apps for scopes, webhooks and secret rotation.
Apps that other brands install use the OAuth authorization-code flow instead. See Partner apps.
API keys
Existing API keys keep working. Send the key in theX-Api-Key header:
Connection tokens
Some endpoints act on a single connection with a connection token instead. Send it in theAuthorization header: