List discount codes
- Credentials
- OAuth access token
- Scopes
marketing:read
Access: OAuth scope marketing:read (a grant with marketing:write passes too); not write-gated.
Paged: { items, nextCursor }, limit (default 50, at most 200) and an opaque cursor.
merchantOAuth marketing:readAuthorizationBearer <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: marketing:read
storeId*stringA store the person can reach. Any other id answers 404, never 403.
active?booleantrue = only live codes; false = everything not live.
cursor?stringThe nextCursor of the previous page, unchanged. A cursor that is not one we gave you is 400 bad_request.
limit?integerPage size: default 50, at most 200 (more is 200; a missing or unusable value is 50).
1 <= value <= 20050OK
application/json- response
data*curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/discounts' \ -H 'Authorization: Bearer <access_token>'{ "data": { "items": [ { "id": "POTS50", "code": "POTS50", "kind": "fixed", "kindLabel": "Rand off", "status": "active", "state": "live", "note": null, "offer": "R50,00 off", "used": 0, "usageLimit": null, "usageLabel": "Used 0", "updatedAt": 1792924393615 }, { "id": "SPRING10", "code": "SPRING10", "kind": "percent", "kindLabel": "Percentage off", "status": "active", "state": "live", "note": null, "offer": "10% off", "used": 0, "usageLimit": 200, "usageLabel": "Used 0 / 200", "updatedAt": 1792924393230 } ], "nextCursor": null }}Every tag in use on listings and customers, A to Z GET
Tags are not stored on their own: they come from the listings (outside archived kits) and customers that carry them. Access: OAuth scope `customers:read`; not write-gated. Paged: `{ items, nextCursor }`, `limit` (default 100, at most 500) and an opaque `cursor`.
Create a discount code POST
Access: OAuth scope `marketing:write`; write-gated by the subscription.