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
Commerce APIs power product search, carts, checkout invoicing, order tracking, and commerce payment status. Use these endpoints from your server when you need real-world purchase flows.Authentication
Commerce APIs use a commerce-scoped API key:- Header:
x-commerce-api-key: <commerce_key> - Keys are created in the Pepay Dashboard: https://pepay.io/sign-in
- Keep keys server-side; never embed them in browser or mobile apps. Key management (create/list/revoke) is handled in the dashboard and is not part of the public API reference.
Typical flow
- Search inventory → 2) Build a cart → 3) Create a checkout invoice → 4) Track orders → 5) Poll payments.
Related APIs
- Merchant APIs use
x-api-keyfor invoices, tokens, settlement, and events. - Payor APIs use session headers (
x-session-token,x-signature) for checkout UIs.
Request
Use a commerce API key in the request header:Response
Errors
401missing or invalidx-commerce-api-key403key exists but lacks required scope429rate-limit applied for burst traffic
Examples
- Keep commerce keys server-side and proxy frontend requests through your backend.

