Skip to main content

Base URL

OAuth endpoints

These endpoints handle authentication and token management for your app.

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 read_orders or write_orders scope.

Claims

Read and manage claims. Requires read_claims, write_claims, or manage_claims scope.

Products

Read and manage products. Requires read_products or write_products scope.

Fulfillments

Read and manage fulfillments. Requires read_orders 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.