ShopEazydevelopers
API referenceMerchant API BetaSession

Who is signed in, and every store they can act on

Beta
Credentials
  • OAuth access token
Scopes
store:read
GET
/v1/merchant/session

A person with no ShopEazy profile yet gets stores: [] and defaultStoreId: null (they go to onboarding).

Access: OAuth scope store:read; not write-gated.

Authorization

merchantOAuth store:read
headerAuthorizationBearer <token>

OAuth 2.1 (authorization code + PKCE S256, public clients, dynamic registration) for connected AI apps. Effective power is scopes granted AND the person's role today AND the plan. orders:refund, billing:write and team:write are opt-in on the consent screen. Write implies read for marketing:read and messages:read, so a grant holding marketing:write passes a marketing:read check, and messages:send passes messages:read.

Scope: store:read

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.shopeazy.co/v1/merchant/session' \  -H 'Authorization: Bearer <access_token>'
Example Response
{  "data": {    "user": {      "id": "npqAR4xoxDVcFhxPnTvXJiOAMwNO",      "email": "jabu.nkosi@example.com",      "displayName": "Jabu Nkosi",      "photoURL": null    },    "stores": [      {        "id": "w82oaN7OkGK7BykWs2Ag",        "workspaceId": "EjblZNtyBUWK7jGqf7ST",        "name": "Jabu's Plant Shop",        "slug": "jabus-plant-shop",        "logoUrl": null,        "currency": "ZAR",        "role": "owner",        "kitTypes": [          "physical",          "service",          "ticketing"        ]      }    ],    "defaultStoreId": "w82oaN7OkGK7BykWs2Ag",    "grant": {      "id": "6Iu0fUYMTBNiWTTfVBmF",      "clientName": "Example app",      "scopes": [        "store:read",        "listings:read",        "listings:write"      ],      "storeIds": null    }  }}