Core Payments docs
Accept card and bank payments, save payment methods to customers, refund, and hear about every change through signed webhooks, all from one JSON API.
Quickstart
Take a test payment end to end: customer, card, charge and refund.
API basics
Keys, test and live mode, amounts, idempotency, pagination and metadata.
Webhooks
Get signed events at your URL when payments and customers change.
API reference
Every endpoint, parameter and object, with request and response examples.
A charge in one request
curl https://api.corepayments.app/v1/charges \
-H "Authorization: Bearer $COREPAYMENTS_SECRET_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order_1042" \
-d '{"amount": 2000, "currency": "usd", "payment_method": "pm_..."}' Amounts are in cents, every POST takes an Idempotency-Key, and test keys never move
money. Start with the quickstart.