Skip to main content

Who is this for?

You work with returns data for a Shopify brand. You are most likely a developer that works directly for a brand, or at a B2B company which works with brands (3PL, WMS, CX automation, etc.)

Base URL

https://api.fratereturns.com/api

Preview

Look how easy it is to query returns data for a client:
And I get a response like:

How to get an API token?

Create an API Token from the Frate app: API token UI example Once you create it, it will only be available for a one-time-copy, to make sure to copy it right away to your password manager. Then, in every request to Frate, use that value for the header X-Frate-Api-Token.

What is the rate limit?

You can make up to 300 requests per minute per API key. If the limit is exceeded, the API will respond with a 429 Too Many Requests status. In this case, pause API calls briefly before retrying.

How to make a paginated request?

There are two types of pagination found in the API.

Limit/offset

The following endpoints support limit/offset based pagination: ReturnGroups.

Cursor

The following endpoints support cursor based pagination: AllowlistItems.

How do I handle errors?

We don’t have a great error system at the moment. If you see an error, get in contact with support.