> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gochameleon.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors and troubleshooting

> Handle invalid requests, key mismatches, and safe retries.

API errors use a JSON envelope with `code`, `message`, `details`, and `request_id`. Preserve the request ID when diagnosing a failed call; never log the Authorization header.

| HTTP status | Typical cause | Action |
| - | - | - |
| 400 | Invalid fields, idempotency key, or billing restrictions | Inspect field errors; correct the request |
| 401 | Missing, revoked, invalid, or wrong-environment key | Check the bearer key and API origin |
| 403 | Access or organization restrictions | Check your organization's access |
| 404 | Payment not found in this organization | Check the payment ID, organization, and environment |
| 409 | Idempotency conflict or missing settlement wallet | Reuse the original payload, or configure the wallet |
| 429 | Rate limit exceeded | Honor `Retry-After` when present and back off |
| 5xx | Server could not complete the response | Retry creation with the same key and body |

For `settlement_wallet_required`, add an active Arc USDC wallet in the matching environment. For an idempotency conflict, don't blindly generate a new key: first confirm whether the original payment should be reused.

If the playground returns 404 for a newly documented endpoint, ensure that API release is deployed to the selected server. These docs can be previewed independently of a backend deployment.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.