ShopEazydevelopers
API referenceMerchant API BetaStock

Raw materials, A to Z

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

What the shop holds but does not sell: stock on hand, unit, cost and reorder point. Quantities are in the unit family's base (grams, millilitres, millimetres, or each).

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

Paged: { items, nextCursor }, limit (default 100, at most 200) and an opaque cursor.

Authorization

merchantOAuth listings: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: listings:read

Path Parameters

storeId*string

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

Query Parameters

cursor?string

The nextCursor of the previous page, unchanged. A cursor that is not one we gave you is 400 bad_request.

limit?integer

Page size: default 100, at most 200 (more is 200; a missing or unusable value is 100).

Range1 <= value <= 200
Default100

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/materials' \  -H 'Authorization: Bearer <access_token>'
Example Response
{  "data": {    "items": [],    "nextCursor": null  }}