Skip to main content

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:
Send the token in the Authorization header of each request:
Tokens last 15 minutes and carry only the scopes you gave the app. A request outside them returns 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 the X-Api-Key header:
For new integrations, use a private app.

Connection tokens

Some endpoints act on a single connection with a connection token instead. Send it in the Authorization header: