Documentation Index
Fetch the complete documentation index at: https://docs-alpha.pepay.io/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Merchant carts are designed for server-managed commerce flows where the merchant backend controls cart state (customerId, wallet, items) and later creates an invoice/checkout.Authentication
Requires a commerce-scoped API key:x-commerce-api-key: ck_....
Request
Endpoints:GET /api/commerce/merchant/cartsPOST /api/commerce/merchant/cartsPOST /api/commerce/merchant/carts/itemsPUT /api/commerce/merchant/carts/items/{itemId}DELETE /api/commerce/merchant/carts/items/{itemId}DELETE /api/commerce/merchant/cartsPOST /api/commerce/merchant/carts/validateGET /api/commerce/merchant/carts/totals
Response
RepresentativeGET /api/commerce/merchant/carts response:
Errors
401missing/invalid commerce API key400validation or business rule violation (invalid wallet, item schema, etc.)

