# Emacron Store v1 supported operation matrix

Generated from registered routes and typed OpenAPI. This list does not grant access. Read [authentication, ownership and retry rules](store-auth-ownership-v1.md) and the [machine-readable contract](store-api-v1.json).

Staff dashboard and provider webhook operations are inventoried separately in OpenAPI. They are not customer or merchant-key endpoints. Never forward employee credentials or embed merchant keys in browser code.

## `GET /api/shop/{slug}`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: none.
- Success: StoreSettings. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/analytics/events`

Audience: **public**. Proof: **Public**.

One observation per session/stage. Review/order stages require saved same-Store checkout ID and private token; order_placed must exist canonically. This is not payment, delivery or unique people. No identities or URLs accepted. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: session_token (PrivateToken, required); event (string, required); review_id (string); checkout_token (PrivateToken).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/analytics/revoke`

Audience: **public**. Proof: **Public**.

Removes only the current anonymous session and observations. Keep token private and in memory. Works when collection or Store paused. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: session_token (PrivateToken, required).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/analytics/session`

Audience: **public**. Proof: **Public**.

Explicit optional analytics consent. Server derives hosted/approved independent origin; localhost, bot/automation and DNT/GPC are excluded. Returns a session or recorded:false. No identity, URL or rawIP stored. Never required for shopping. No automatic write retry. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: consent (object, required); automated (boolean, required).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/analytics/settings`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/b2b`

Audience: **customer**. Proof: **StoreCustomer**.

Private approved company addresses and negotiated quantity prices only. Optional company-country markets use independently entered exact Store-currency prices; no automatic foreign exchange. A country profile and list must both match the approved company country. Pending/revoked membership never reveals company data. Public catalog remains retail. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: none.
- Success: B2bOwned. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/b2b`

Audience: **customer**. Proof: **StoreCustomer**.

Application only; neither matching company reference nor self-submitted address grants approval. Retain the exact request_key and payload after an uncertain response. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/cancellation-policy`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/addresses`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query purpose (string).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/addresses`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: id (string | null); address (Address); purpose (string); is_default (boolean); version (integer, required); remove (boolean).
- Success: Mutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/auth/challenges`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: SignIn.
- Success: Challenge. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/auth/logout`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: all_sessions (boolean).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/auth/methods`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/auth/refresh`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: refresh_token (PrivateToken, required).
- Success: Session. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/auth/verify`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: Verify.
- Success: Session. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/cancellation-requests`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer); query order_id (string).
- Body: none.
- Success: CancellationPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/cancellation-requests`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); order_id (string, required); reason_code (string, required); message (string, required); confirmed (object, required).
- Success: CancellationMutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/cancellation-requests/{id}/evidence`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: EvidencePage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/cancellation-requests/{id}/evidence`

Audience: **customer**. Proof: **StoreCustomer**.

Multipart image evidence only: JPEG/PNG/WebP, at most2MiB,3 photos per cancellation request; decoded/re-encoded privately, never a public media URL. Retry a retained upload operation instead of generating a new identity. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); confirmed (string, required); photo (string, required).
- Success: Evidence. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/cancellation-requests/{id}/evidence/{photoId}`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required); path photoId (string, required).
- Body: none.
- Success: string. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/cancellation-requests/{id}/withdraw`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); version (integer, required); confirmed (object, required).
- Success: CancellationMutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/cart`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: none.
- Success: Cart. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/cart`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); version (integer, required); items (array, required); mode (string).
- Success: Cart. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/complaints`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer); query order_id (string).
- Body: none.
- Success: ComplaintPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/complaints`

Audience: **customer**. Proof: **StoreCustomer**.

One open complaint per owned order. Save request_key before confirmation; retain exact bytes and identity after response loss. This creates one CRM Support ticket, not a contact, sale or Inbox conversation. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); confirmed (object, required); order_id (string, required); title (string, required); message (string, required).
- Success: ComplaintMutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/complaints/{id}`

Audience: **customer**. Proof: **StoreCustomer**.

20 customer-visible messages per page, displayed chronologically within each newest-first page. Internal notes, staff identities, CRM contact/conversation IDs and private object keys are excluded. Recheck current ownership on every read. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required); query message_page (integer).
- Body: none.
- Success: Complaint. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/complaints/{id}/evidence`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/complaints/{id}/evidence`

Audience: **customer**. Proof: **StoreCustomer**.

Explicit multipart upload of one JPEG/PNG/WebP still photo, up to 2MiB; normalized private JPEG max4096px, maximum3 per complaint. Reuse identical original file and request_key after uncertain result. No PDF/video or public URL. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); confirmed (string, required); photo (string, required).
- Success: Evidence. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/complaints/{id}/evidence/{photoId}`

Audience: **customer**. Proof: **StoreCustomer**.

Authenticated private JPEG bytes, no public URL; load only after explicit view and revoke the local Blob URL when finished. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required); path photoId (string, required).
- Body: none.
- Success: string. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/complaints/{id}/messages`

Audience: **customer**. Proof: **StoreCustomer**.

Append one private customer-visible Support reply only with the current saved complaint version. Closed/resolved threads reject new replies. No external email/WhatsApp send is implied. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); confirmed (object, required); version (integer, required); body (string, required).
- Success: ComplaintMutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/credit`

Audience: **customer**. Proof: **StoreCustomer**.

Owned Store credit only. Currency, exact available amount and original expiry remain separate from cash/provider receipts. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/credit/{id}/entries`

Audience: **customer**. Proof: **StoreCustomer**.

Requires the current same-Store customer to own this exact credit account. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required); query page (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/credit/redeem`

Audience: **customer**. Proof: **StoreCustomer**.

Pay a whole owned unpaid manual order using sufficient same-currency credit. No split payment or provider attempt. Keep the original operation identity after uncertainty; credit is never reported as a cash receipt. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); confirmed (object, required); account_id (string, required); order_id (string, required); version (integer, required).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/downloads`

Audience: **customer**. Proof: **StoreCustomer**.

Read only owned digital purchase metadata. Historical unrevoked receipts and current owned customer sessions remain available when sales pause. No private object key or public file URL is returned. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/downloads/{id}/download`

Audience: **customer**. Proof: **StoreCustomer**.

Explicit private byte transfer after current ownership/payment/expiry/refund/count checks. Retain request_key for a deliberate retry within10minutes; no automatic replay. A new identity consumes a new download. Saved content hash and size verified before response. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: confirmed (object, required); request_key (string, required).
- Success: string. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/exchange-requests`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer); query order_id (string).
- Body: none.
- Success: ExchangePage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/exchange-requests`

Audience: **customer**. Proof: **StoreCustomer**.

Creates linked original physical-return review and whole-order exchange once. Does not charge/refund, restock, reserve replacement inventory or book shipping. Preserve request_key and exact payload after an uncertain result. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); confirmed (object, required); order_id (string, required); replacement_items (array, required); condition (string, required); reason_code (string, required); message (string, required).
- Success: ExchangeMutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/exchange-requests/{id}`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: Exchange. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/exchange-requests/{id}/accept`

Audience: **customer**. Proof: **StoreCustomer**.

Explicitly accepts the saved actual replacement-order pricing and exact difference only after original physical return is received. Original refund and replacement full payment remain separate normal financial workflows; no automatic net charge or store credit is created. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); confirmed (object, required); version (integer, required).
- Success: ExchangeMutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/exchange-requests/{id}/withdraw`

Audience: **customer**. Proof: **StoreCustomer**.

Withdraws only an eligible unprocessed exchange/linked open return. Re-read current versions first. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); confirmed (object, required); version (integer, required).
- Success: ExchangeMutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/identities/challenges`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); method (string, required); destination (string, required); flow_token (PrivateToken, required); replace_identity_id (string | null).
- Success: Challenge. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/identities/remove`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); identity_id (string, required); confirmed (object, required).
- Success: Mutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/identities/verify`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: Verify.
- Success: Mutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/marketing`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/marketing`

Audience: **customer**. Proof: **StoreCustomer**.

Current same-Store customer session. Exact verified channel identity, explicit purpose consent and current version required. Withdrawal is available after identity removal. Keep request_key on uncertainty; never infer marketing consent from order updates or analytics. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); confirmed (object, required); channel (string, required); identity_id (string, required); version (integer, required); granted (boolean, required); purposes (array, required); policy_version (object, required).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/marketing/attribution`

Audience: **customer**. Proof: **Public**.

Original signed offer reference and private saved checkout required. Only a proved order of the campaign recipient verified Store customer is attributed, within 30 days of accepted submission. No identity merge, sale, payment or visitor fact is created. Unverified guests remain unattributed. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: review_id (string, required); checkout_token (PrivateToken, required); campaign_reference (string, required).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/notifications`

Audience: **customer**. Proof: **StoreCustomer**.

Owned account notices remain readable with a valid current session when new selling is paused. A notice is not an email or WhatsApp delivery receipt. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/notifications/{id}/read`

Audience: **customer**. Proof: **StoreCustomer**.

Marks only the current customer’s same-Store notice read. Does not delete it or mark another customer’s notice. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: confirmed (object, required).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/orders`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer).
- Body: none.
- Success: OrderPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/orders/{id}`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/orders/{id}/cancellation-eligibility`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: Eligibility. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/orders/{id}/complaint-eligibility`

Audience: **customer**. Proof: **StoreCustomer**.

Only a currently verified customer owning this placed/cancelled native order can inspect eligibility. New complaints require current Store and CRM Support package access. Existing owned thread reads remain available during Store pause. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/orders/{id}/exchange-eligibility`

Audience: **customer**. Proof: **StoreCustomer**.

Owned original order only. Supported exchange scope is the whole original order. Return windows/conditions apply. Replacement availability is advisory until a separate ordinary checkout reserves actual exact items; requesting an exchange holds no stock. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/orders/{id}/reorder`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/orders/{id}/return-eligibility`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: ReturnEligibility. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/orders/{orderId}/review-eligibility`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path orderId (string, required).
- Body: none.
- Success: Eligibility. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/orders/claim`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); review_id (string, required); checkout_token (PrivateToken, required); confirmed (object, required).
- Success: Mutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/physical-renewals`

Audience: **customer**. Proof: **StoreCustomer**.

Current same-Store customer history only. Paused/unpublished Stores retain owned history and cancellation; new cycles still require active Store and explicit rollout enablement. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/physical-renewals`

Audience: **customer**. Proof: **StoreCustomer**.

Creates a finite schedule from an owned eligible physical order and explicit review-and-pay consent. No mandate, charge, order or stock reservation is created by this request. Exact original products/options/quantities are retained. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); source_order_id (string, required); period (string, required); interval (object, required); total_count (integer, required); consent (object, required).
- Success: PhysicalRenewalSchedule. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/physical-renewals/{id}`

Audience: **customer**. Proof: **StoreCustomer**.

Current same-Store customer ownership is required, independent of the history page or current sale availability. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: PhysicalRenewalSchedule. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/physical-renewals/{id}/manage`

Audience: **customer**. Proof: **StoreCustomer**.

Once-only customer schedule action. Stops or skips future renewal cycles; existing placed orders remain subject to normal order cancellation and payment controls. Resume requires current sale eligibility. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); action (string, required); confirmed (object, required).
- Success: PhysicalRenewalSchedule. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/physical-renewals/{id}/prepare`

Audience: **customer**. Proof: **StoreCustomer**.

Supply and privately retain a caller-generated X-Store-Checkout token (64 hex). Prepared result is a frozen cycle seed, not reserved stock/payment. Normal POST reviews must include physical_cycle_id, the same request_key and checkout token plus the same customer session. Checkout reservation is atomic; unavailable cycles are skipped without payment. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required); header X-Store-Checkout (string, required).
- Body: request_key (string, required).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/privacy`

Audience: **customer**. Proof: **StoreCustomer**.

Recent authentication within10minutes and exact profile/receipt version required. review_id required for receipt actions. Deletion revokes sessions and receipts but preserves restricted statutory transaction/dispute facts. Retry the exact operation after unknown response, including deletion acknowledgement within24hours. Receipt rotation invalidates every previous link for that order; revoked links never remove signed-in owned history. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); confirmed (object, required); action (string, required); version (integer, required); review_id (string).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/privacy/availability`

Audience: **public**. Proof: **Public**.

Public availability explanation only. Existing owned sessions and unrevoked receipts retain supported history; this does not create a sign-in fallback or grant access to customer data. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/privacy/export`

Audience: **customer**. Proof: **StoreCustomer**.

Exports only the current customer’s account and supported owned records. Never includes keys, OTPs, token hashes, staff notes or unrelated customers. Download every page explicitly. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/privacy/receipts`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/product-reviews`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer).
- Body: none.
- Success: ProductReviewPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/product-reviews`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); order_id (string, required); line_id (string, required); rating (integer, required); title (string, required); body (string, required); version (integer, required).
- Success: ProductReview. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/product-reviews/{id}/media`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: EvidencePage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/product-reviews/{id}/media`

Audience: **customer**. Proof: **StoreCustomer**.

At most3 still JPEG/PNG/WebP photos,2MiB and4096px per side. Pixels are re-encoded with metadata removed. Upload finalization requeues the review for moderation. Never reuse an upload identity for changed bytes. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); confirmed (string, required); photo (string, required).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/product-reviews/{id}/media/{mediaId}`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required); path mediaId (string, required).
- Body: none.
- Success: string. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/product-reviews/{id}/media/{mediaId}/remove`

Audience: **customer**. Proof: **StoreCustomer**.

Removes display access, preserves the private operation history and requires review moderation again. Use the same UUID and expected version after an unknown outcome. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required); path mediaId (string, required).
- Body: request_key (string, required); confirmed (object, required); version (integer, required).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/product-reviews/{id}/report`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); reason (string, required).
- Success: Mutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/profile`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: none.
- Success: Profile. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/profile`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: name (string, required); version (integer, required); preferences (Preferences).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/return-requests`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer); query as_of (string); query order_id (string).
- Body: none.
- Success: ReturnRequestPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/return-requests`

Audience: **customer**. Proof: **StoreCustomer**.

Returns require at least one eligible exact shipped line; refund-only requests may have no lines and require requested_amount_minor. Return requests cannot set a refund amount. Review approval never moves stock or submits a refund. Current saved policy and outstanding quantities apply. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); confirmed (object, required); order_id (string, required); kind (string, required); condition (string, required); reason_code (string, required); message (string, required); lines (array, required); refund_requested (boolean); requested_amount_minor (string).
- Success: ReturnMutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/return-requests/{id}`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required); query page (integer); query as_of (string).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/return-requests/{id}/evidence`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: EvidencePage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/return-requests/{id}/evidence`

Audience: **customer**. Proof: **StoreCustomer**.

Private still-photo evidence, maximum3 photos and2MiB each; same identity and original bytes for uncertain upload recovery. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); confirmed (string, required); photo (string, required).
- Success: Evidence. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/return-requests/{id}/evidence/{photoId}`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required); path photoId (string, required).
- Body: none.
- Success: string. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/return-requests/{id}/withdraw`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); confirmed (object, required); version (integer, required).
- Success: ReturnMutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/sessions`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/sessions/revoke`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: session_id (string, required); confirmed (object, required).
- Success: Mutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/subscriptions`

Audience: **customer**. Proof: **StoreCustomer**.

Saved owned subscriptions remain readable during Store unpublication/package expiry. New mandate setup is separately gated. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/subscriptions`

Audience: **customer**. Proof: **StoreCustomer**.

Explicit finite recurring service-access consent. Feature defaults OFF. A prepared or unknown result is not payment or entitlement. Keep the same operation identity after a lost response. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: request_key (string, required); plan_id (string, required); terms_version (integer, required); consent (object, required).
- Success: RecurringSubscription. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/subscriptions/{id}`

Audience: **customer**. Proof: **StoreCustomer**.

Reconciles original-merchant invoice/payment evidence. Only final current unrefunded verified billing periods grant service access; no physical renewal or native paid-order claim. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/subscriptions/{id}/cancel`

Audience: **customer**. Proof: **StoreCustomer**.

Customer-owned, once-only original-merchant cancellation. Retains recovery after package expiry/unpublication. Unknown outcome requires read-back, never a new cancellation identity. The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); cancel_at_cycle_end (boolean, required).
- Success: RecurringSubscription. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/customer/wishlist`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); query page (integer).
- Body: none.
- Success: WishlistPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/wishlist`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required).
- Body: product_id (string, required); variant_id (string | null).
- Success: Mutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/customer/wishlist/{id}/remove`

Audience: **customer**. Proof: **StoreCustomer**.

The current customer session must belong to the slug’s Store. Never choose an arbitrary customer/workspace ID.

- Parameters: path slug (string, required); path id (string, required).
- Body: .
- Success: Mutation. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/delivery-choices`

Audience: **public**. Proof: **Public**.

Read-only native merchant-rule choices from current actual products/prices/tax/discounts. Does not reserve stock or pickup capacity. Unknown weight fails weight rates. COD limits use the final total. When the merchant enables Shiprocket pricing, carrier_quotes contains private opaque quote references bound to current cart, destination, payment type and five-minute expiry. Pass the selected carrier_quote_id with the review. Changing cart or destination requires fresh quotes. No booking is created. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: items (array, required); destination (object, required); delivery_method (string, required); discount_code (string).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/pickup-slots`

Audience: **public**. Proof: **Public**.

Next14localdays, recurring configured pickup windows and current capacity only. Availability is advisory until review/placement. Private capacity counts are not exposed. DST gaps and repeated ambiguous local times are omitted. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required); query service_id (string).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/product-by-slug/{productSlug}`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required); path productSlug (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/products`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required); query page (integer); query product_id (string); query search (string); query category (string); query category_id (string); query collection_id (string); query brand_id (string); query sort (string); query available (string); query tags (string); query attributes (string).
- Body: none.
- Success: ProductPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/products/{id}/options`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required); path id (string, required); query page (integer); query search (string).
- Body: none.
- Success: OptionPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/products/{productId}/reviews`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required); path productId (string, required); query page (integer); query rating (integer).
- Body: none.
- Success: ProductReviewPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/products/{productId}/reviews/{id}/media`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required); path productId (string, required); path id (string, required).
- Body: none.
- Success: EvidencePage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/products/{productId}/reviews/{id}/media/{mediaId}`

Audience: **public**. Proof: **Public**.

Read only while Store/product/review remain published and the purchase is eligible. No private object URL or storage key is disclosed. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required); path productId (string, required); path id (string, required); path mediaId (string, required).
- Body: none.
- Success: string. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/return-policy`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: none.
- Success: ReturnPolicy. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/reviews`

Audience: **checkout**. Proof: **StoreCheckout**.

Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.

- Parameters: path slug (string, required).
- Body: ReviewInput.
- Success: Review. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/reviews/{id}`

Audience: **checkout**. Proof: **StoreCheckout or StoreTracking**.

Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.

- Parameters: path slug (string, required); path id (string, required); header X-Store-Tracking (string).
- Body: none.
- Success: Review. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/reviews/{id}/payment`

Audience: **checkout**. Proof: **StoreCheckout or StoreTracking**.

Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.

- Parameters: path slug (string, required); path id (string, required); header X-Store-Tracking (string).
- Body: none.
- Success: Payment. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/reviews/{id}/payment`

Audience: **checkout**. Proof: **StoreCheckout**.

Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.

- Parameters: path slug (string, required); path id (string, required).
- Body: request_key (string, required); confirmed (object, required).
- Success: Payment. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/reviews/{id}/payment/reconcile`

Audience: **checkout**. Proof: **StoreCheckout**.

Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.

- Parameters: path slug (string, required); path id (string, required).
- Body: attempt_id (string, required).
- Success: Payment. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/reviews/{id}/place`

Audience: **checkout**. Proof: **StoreCheckout**.

Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.

- Parameters: path slug (string, required); path id (string, required).
- Body: confirmed (object, required); customer (Buyer, required); future_supply_confirmed (boolean).
- Success: Review. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/reviews/{id}/release`

Audience: **checkout**. Proof: **StoreCheckout**.

Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.

- Parameters: path slug (string, required); path id (string, required).
- Body: .
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/reviews/{id}/shipments`

Audience: **checkout**. Proof: **StoreCheckout or StoreTracking**.

Retain the original X-Store-Checkout bearer, even if the creation response is lost. Read order/review status before retrying any write. Tracking-only proof can read supported receipts but cannot place/release/create payment.

- Parameters: path slug (string, required); path id (string, required); query page (integer); header X-Store-Tracking (string).
- Body: none.
- Success: ShipmentPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/reviews/{reviewId}/downloads`

Audience: **public**. Proof: **StoreCheckout or StoreTracking**.

Read only owned digital purchase metadata. Historical unrevoked receipts and current owned customer sessions remain available when sales pause. No private object key or public file URL is returned. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required); path reviewId (string, required); query page (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/reviews/{reviewId}/downloads/{id}/download`

Audience: **public**. Proof: **StoreCheckout or StoreTracking**.

Explicit private byte transfer after current ownership/payment/expiry/refund/count checks. Retain request_key for a deliberate retry within10minutes; no automatic replay. A new identity consumes a new download. Saved content hash and size verified before response. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required); path reviewId (string, required); path id (string, required).
- Body: confirmed (object, required); request_key (string, required).
- Success: string. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/sitemap`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required); query page (integer).
- Body: none.
- Success: SitemapPage. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/shop/{slug}/subscription-plans`

Audience: **public**. Proof: **Public**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/shop/{slug}/whatsapp-selection`

Audience: **public**. Proof: **Public**.

Opaque handoff token from the intended WhatsApp conversation. Exact selected native options are repriced and reviewed separately. Expires in one hour; no customer sign-in, stock hold or payment occurs here. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path slug (string, required).
- Body: token (PrivateToken, required).
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/v1/store/merchant/capabilities`

Audience: **merchant-server**. Proof: **StoreMerchant**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: none.
- Body: none.
- Success: MerchantCapabilities. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/v1/store/merchant/inventory`

Audience: **merchant-server**. Proof: **StoreMerchant**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: query after (string); query limit (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/v1/store/merchant/orders`

Audience: **merchant-server**. Proof: **StoreMerchant**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: query after (string); query limit (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/v1/store/merchant/orders/{id}/shipping`

Audience: **merchant-server**. Proof: **StoreMerchant**.

Requires orders:read and current unrestricted issuer access. Customer details and payment information are excluded. Shipment and event histories paginate independently on the same page parameter. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path id (string, required); query page (integer).
- Body: none.
- Success: MerchantShippingRead. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `POST /api/v1/store/merchant/orders/{id}/shipping`

Audience: **merchant-server**. Proof: **StoreMerchant**.

Requires opt-in shipping:write and current fulfillment permission. Retain request_key across uncertain retries. Exact fulfillment quantities use normal order guards; tracking only reports facts, never payment, physical return receipt, restock, carrier booking or pickup. Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: path id (string, required).
- Body: MerchantShippingWrite.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/v1/store/merchant/products`

Audience: **merchant-server**. Proof: **StoreMerchant**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: query after (string); query limit (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## `GET /api/v1/store/merchant/variants`

Audience: **merchant-server**. Proof: **StoreMerchant**.

Every endpoint retains current publication, package, grant, record, origin and provider guards.

- Parameters: query after (string); query limit (integer).
- Body: none.
- Success: object. Error responses: 400, 401, 403, 404, 409, 413, 415, 429, 503.
- Automatic write replay: **never**. Keep the original prepared identity and read saved facts after uncertainty.

## Contract evolution

Major1 is additive; no deprecation is scheduled. SDK1.3.0 adds owned complaint/thread/photo helpers alongside exchange/account-notice helpers. Unsupported provider/carrier/campaign capabilities are not implied.
