ShopEazydevelopers
API referenceMerchant API BetaStorefront

Every page block and the designs it can take

Beta
Credentials
  • OAuth access token
Scopes
store:read
GET
/v1/merchant/stores/{storeId}/storefront/block-designs

Each block type with its designs, first the default. A design's id is what the block's layout takes in savePage and setHomeSections (the default is never stored). niche (bakery, fashion, salon, tours, events, services, handmade, shop) puts the designs that suit that kind of shop first; absent, the store's own from its category. allowed is false for a block the store's plan can't add. A block with no designs has one look.

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

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

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.

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 100 (more is 100; a missing or unusable value is 100).

Range1 <= value <= 100
Default100
niche?string

Put designs for this kind of shop first. Absent, the store's own.

Value in"bakery""fashion""salon""tours""events""services""handmade""shop"

Response Body

OK

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.shopeazy.co/v1/merchant/stores/<storeId>/storefront/block-designs' \  -H 'Authorization: Bearer <access_token>'
Example Response
{  "data": {    "niche": "string",    "items": [      {        "type": "string",        "showpiece": true,        "allowed": true,        "designs": [          {            "id": "string",            "name": "string",            "default": true,            "goodFor": [              "string"            ]          }        ]      }    ],    "nextCursor": "string"  }}