Errors & conventions
- Base URLs: see Environments for the staging and production hosts.
- Format: JSON request and response bodies;
Content-Type: application/json. - Amounts: integer minor units where the reference says so — check each field's schema.
- HTTP status codes:
2xxsuccess ·400invalid input ·401bad/missing credentials ·404not found ·409conflict (e.g. already captured) ·422unprocessable (declined). - Idempotency & retries: send an
Idempotency-Keyon payment requests; for calls that don't accept one, re-check with aGETbefore retrying.