Overview
This page documents the merchant invoice contract used bypepay.
Authentication
Merchant invoice APIs accept either:x-api-key: <merchant_api_key>, orAuthorization: Bearer <jwt>
Request
Endpoints (SDK-supported):POST /api/v1/invoices(create)GET /api/v1/invoices(list)GET /api/v1/invoices/customer/{customerId}(list by customer)GET /api/v1/invoices/{invoiceId}(retrieve)GET /api/v1/invoices/{invoiceId}/status(status)GET /api/v1/invoices/totals(totals)
GET /api/v1/payments/payment-statusPOST /api/v1/invoice/{invoiceId}/verifyGET /api/v1/invoice/{invoiceId}/verify
Response
Example response (create):Errors
401/403missing/invalid auth400invalid invoice payload429rate limits
Examples
Pagination + status semantics:- List endpoints use cursor pagination (see Pagination).
- Common status fields:
- Invoice status:
unpaid,underpaid,paid,expired,canceled - Payment receipt status:
pending,underpaid,confirmed,manual_retry - Settlement status (merchant-safe):
pending,processing,manual,failed,settled
- Invoice status:

