Skip to main content
1

Register your app

In the EasyOrders developer dashboard, create an app. Set:
  • a redirect URL, e.g. http://localhost:3000/auth/callback while you develop;
  • the scopes your app needs, e.g. read_orders and read_shipping.
Copy the client_id and the client_secret. The secret is shown once.
2

Send the merchant to the consent page

Build a PKCE pair and a state, then redirect the merchant (or yourself, on your own test store):
See Authentication for building code_challenge.
3

Exchange the code

EasyOrders redirects back with ?code=eo_code_...&state=xyz123. Within one minute, exchange it from your server:
Keep the access_token, refresh_token and store_id from the answer.
4

Make your first call

Read the store’s shipping settings:
Then list the last orders:

Next

Refresh tokens

Access tokens last one hour. Refresh them, once each.

Errors

One error shape, and stable codes to branch on.