1
Register your app
In the EasyOrders developer dashboard, create an app. Set:
- a redirect URL, e.g.
http://localhost:3000/auth/callbackwhile you develop; - the scopes your app needs, e.g.
read_ordersandread_shipping.
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 See Authentication for building
state, then redirect the merchant (or yourself, on your own test store):code_challenge.3
Exchange the code
EasyOrders redirects back with Keep the
?code=eo_code_...&state=xyz123. Within one minute, exchange it from your server: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.