API reference
Complete reference for the Pay.com REST API, including authentication, endpoints, and error handling.
The Pay.com API is a REST API organized around predictable, resource-oriented URLs. It accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs. Before you integrate, read Authentication, Idempotency and retries, and Pagination and filtering.
Use the sandbox to develop and validate your integration before connecting
to live banking networks. Objects created in the sandbox include
test_mode: true. Amounts are integers in the minor currency unit (the
smallest unit), for example 1000 for $10.00.
Before you start
Read these pages before making your first request.
Environments
Base URLs and key prefixes for sandbox and live.
Authentication
Authenticate API requests with HTTP Basic auth and scoped keys.
Idempotency and retries
Retry API calls safely with an idempotency key.
Errors
HTTP status codes, error objects, and payment decline codes.
Core resources
The Pay.com API is built around these core objects.
Charges
Capture funds from a customer immediately.
Holds
Reserve funds with a pre-authorization for later capture or release.
Refunds
Return settled funds to the customer's original payment method.
Payouts
Send funds from your merchant account to a customer's card, bank, or wallet.
Sessions
Create payment, setup, and tokenization sessions for Pay.com.js.
Guides
Follow these step-by-step integration guides for common workflows.