ShopEazydevelopers
API referenceMerchant API BetaBilling

The business's referral link, credit banked and who signed up through it

Beta
Credentials
  • OAuth access token
Scopes
store:read
GET
/v1/merchant/stores/{storeId}/referral

The link is made on the first ask. A business that subscribes through it gets its next month free; when it pays again the referrer gets a month free too (up to 6 a year).

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

Path Parameters

storeId*string

A store the person can reach. Any other id answers 404, never 403.

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/referral' \  -H 'Authorization: Bearer <access_token>'
Example Response
{  "data": {    "link": "https://shopeazy.co/r/jabus-plant-shop",    "creditBanked": {      "amount": 0,      "currency": "ZAR"    },    "referred": []  }}