ShopEazydevelopers
API referenceMerchant API BetaPages

The blocks of one ready-made section, built from this shop

Beta
Credentials
  • OAuth access token
Scopes
design:write
Role
Owners and admins only. Staff get 403 forbidden.
Plan
Growth. A plan without it gets 403 plan_limit.
GET
/v1/merchant/stores/{storeId}/pages/sections/{sectionId}

A section (a hero, best sellers, reviews, ...) is turned into blocks from the shop's own data, on the server, so the plan is checked and nothing points at a listing that has just gone. The blocks are returned, not saved: put them in a draft with savePage. An unknown sectionId is 400 bad_request; a shop without what the section needs yet (for example no listings) is 422 validation_error.

Plan: Growth (403 plan_limit below it, naming the section). It writes nothing and spends no credits: despite the "AI section" label in the ticket it is deterministic, so it is a GET with no Idempotency-Key; AI-written pages are buildPageWithAi. Below Growth only the Starter sections (bestsellers, meet-the-maker, visit-us) are built.

Access: OAuth scope design:write; owner/admin only; not write-gated.

Authorization

merchantOAuth design:write
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: design:write

Path Parameters

storeId*string

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

sectionId*string

A ready-made section id, as the page editor offers them.

Response Body

OK

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