Overview
Pepay Commerce APIs power product search, carts, checkout invoicing, order tracking, and commerce payment status. Key ideas:- Base path:
/api/commerce/* - Merchant addresses:
/api/v1/commerce/merchant/addresses - SDK mapping:
pepay.commerce.* - Typical flow: Search → Merchant carts → Checkout invoice → Orders → Payments
Authentication
Commerce requests use a commerce-scoped API key:x-commerce-api-key: ck_...
- Merchant operations (server-to-server):
x-commerce-api-key - Wallet-auth operations (not included here):
x-commerce-api-key+User-Authorization: Bearer <userAccessToken>
Request
Start by checking the Commerce service status:Response
RepresentativeGET /api/commerce/status response:
Errors
401missing/invalid commerce API key429rate limits (retry with backoff; respectRetry-Afterwhen present)5xxtransient errors (retry where safe)

