Skip to main content

Base URL

OAuth endpoints

These endpoints handle authentication and token management for your app.

User login

Authenticates a dashboard user ({"email", "password"}) and returns {"data": {"access_token", "refresh_token", "expires_in", ...}}. The access_token is the dashboard user JWT required by the install endpoints below — app access tokens and personal access tokens are rejected there. Refresh with POST /v1/auth/refresh {"refreshToken"}. See Installing Your App.

Install an app (authorize/approve)

Creates an installation on a store and returns a single-use authorization code. Requires a dashboard user JWT for a user with access to the store. Response: {"data": {"code": "...", "redirectUri": "https://...?code=..."}}. Full walkthrough and error table: Installing Your App. To preview an app’s consent payload first: POST /v1/oauth/authorize with {"clientId", "redirectUri"} (same auth).

Exchange tokens

Exchange an authorization code, refresh token, or client credentials for access tokens. See Authentication for detailed examples. Response:

Revoke a token

Revoke an access or refresh token. Response: 200 OK on success.

Verify session token

Verify an embedded app session token and retrieve user context. See Embedded Apps for details. Response:
This endpoint is rate-limited to 30 requests per minute per IP address.

Using access tokens

Once you have an access token, include it in the Authorization header of every API request:
Your access token is scoped to the store that installed your app and the permissions the merchant granted. You can use it to call any OrderProtection API endpoint that falls within your granted scopes.

Available APIs

With a valid access token, you can access these OrderProtection APIs:

Orders

Read and manage orders. Requires order:read or order:update scope.

Claims

Read and manage claims. Requires claim:read, claim:update, or claim:manage scope.

Products

Read and manage products. Requires product:read or product:update scope.

Fulfillments

Read and manage fulfillments. Requires order:read scope.

Partner API (v2)

Manage settings, pricing rules, quotes, widgets, and A/B-test contexts via OAuth. Partner-only endpoints under /v2.

Error responses

When a request fails, the API returns a JSON error response:

Common error codes

If you receive a 401 response, try refreshing your access token. If that also fails, the merchant may have uninstalled your app.