Skip to main content

Overview

This reference covers every endpoint you need to integrate with PCX as an external organisation. It includes authentication, payments, transactions, virtual accounts, payment links, beneficiaries, and bank validation utilities. If you need access to any endpoint not listed here, contact support@pcxpay.com.

Authentication

Every request requires two headers:
HeaderValue
AuthorizationBearer <jwt> for user-facing flows, or the literal string NONE
X-Api-KeyYour API key for server-to-server calls, or the literal string NONE
Pass NONE for whichever header you are not using. Most server-to-server integrations will set Authorization: NONE and provide a valid X-Api-Key. Base URL: https://prod-api.pcxpay.com/v1

Getting your API key

Use the Create API key endpoint to generate a key programmatically, or create one from your PCX dashboard. The full key value is shown once at creation only — store it securely.

Pagination

All list endpoints use cursor-based pagination. Pass the last_evaluated_key value from the previous response’s meta block as a query parameter on the next request. When last_evaluated_key is null, you have reached the last page.

Errors

All errors follow a consistent shape:
{
  "message": "A description of what went wrong",
  "status": "error"
}
Status codeMeaning
400Invalid request — check your request body or parameters
401Missing or invalid credentials
403Insufficient role for this operation
404Resource not found
500Internal server error — contact support if this persists