Overview
Merchant APIs power core Pepay payment flows for merchants: invoices, token catalogs, settlement preferences, events, and webhooks. Use these endpoints from your backend or trusted server environment.Authentication
Merchant APIs use a merchant-scoped API key:- Header:
x-api-key: <merchant_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.
What belongs here
/api/v1/invoices/*for creating and managing invoices./api/v1/merchant/tokens*for token availability and search./api/v1/events/*and/api/v1/ws/tokenfor realtime events.- Settlement and merchant settings under
/api/v1/merchant/*.
Related APIs
- Commerce APIs use
x-commerce-api-keyand live under/api/commerce/*. - Payor APIs use session headers (
x-session-token,x-signature) for checkout UIs.

