> ## Documentation Index
> Fetch the complete documentation index at: https://exchanger-api.iexexchanger.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Check your integration before launch

> Verify Exchanger API access, contracts, and quotas. Then exercise writes, retries, and webhook delivery on a separate test exchange.

Run your acceptance checks against the version of Exchanger API your integration will use. You can perform read checks against the production URL. Exercise order creation, receipt uploads, retries, and notifications with separate keys and synthetic data on a test exchange.

## 1. Connect to the exchange

Public `GET /api/v3/ping` checks whether the API responds. Signed `GET /api/v3/private/ping` checks the API key and signature. Follow the [quickstart](https://exchanger-api.iexexchanger.com/en/start/quickstart.md) to make both requests and inspect the HTTP responses.

Sign diagnostic calls with the key your integration will use.

| Request | What to check |
| - | - |
| `GET /api/v3/private/health/client` | `result.health` covers the account, key, scopes, security settings, quotas, and subscription state. Use `public-api:client:health:read` or `public-api:client:read`. If the API rejects access before returning diagnostics, check the response's `error.code`. |
| `GET /api/v3/private/usage` | Requires `public-api:usage:read`. Check `result.quota.day` and `result.quota.month`, then `result.usage.hour`, `result.usage.day`, and `result.usage.month`. |

Check the [key's permissions](https://exchanger-api.iexexchanger.com/en/start/access.md) against your planned operations. For `429`, distinguish `rate_limit_exceeded` from `quota_exceeded`. For a rate limit, honor `Retry-After` when present. For quota exhaustion, check `error.details.resets_at` or `X-Api-Quota-Reset`. Account for both quota periods when you schedule polling. [Handle rate limits and quotas](https://exchanger-api.iexexchanger.com/en/guides/reliability/errors.md).

## 2. Verify contract versions

The `/api/v3` prefix identifies the HTTP route version. The response shape, signature, route snapshot, and webhooks are versioned separately. Check these contracts after an exchange update using public operations that require no token.

| Request | Where to read the result |
| - | - |
| `GET /api/v3/public/contracts` | `result.contracts` lists contract keys, versions, and associated schemas. |
| `GET /api/v3/public/contracts/{contract}` | `result.contract`. For example, pass `request-signature` or `webhook-payload`. |
| `GET /api/v3/public/schemas` | `result.schemas` lists the installation's available schemas. |
| `GET /api/v3/public/schemas/{schema}` | `result.schema` contains a JSON Schema. Request `success-envelope.v1` for the success envelope. |

API responses include `X-Api-Version`, `X-Api-Envelope-Version`, and `X-Api-Webhook-Payload-Version`. Find operation definitions in the [OpenAPI reference](https://exchanger-api.iexexchanger.com/en/api.md). Check which versions your exchange exposes against the actual installation.

## 3. Exercise writes and failures on a test exchange

* Send `POST /api/v3/private/exchange/orders/preflight`. Confirm that you can use its result to explain missing fields before the customer creates an order.
* If the built-in sandbox is enabled and your key has `public-api:sandbox:run`, call `POST /api/v3/private/sandbox/exchange/orders/simulate`. Check `result.simulation.preflight` and `will_create_order: false`. Look up the `api.sandbox.simulated` event by `event_id`.
* For an end-to-end run, use a separate test exchange or an isolated iEXExchanger sandbox. `POST /api/v3/private/exchange/orders` creates an order on the installation that receives the request. Test creation, confirmation, retrieval of payment instructions, and repeat writes on the test installation.
* Interrupt a test request after sending it and recover the result using the [saved operation key](https://exchanger-api.iexexchanger.com/en/guides/reliability/idempotency.md). Confirm that retrying leaves you with one order. Set a retry limit, timeout, and delay.
* Create a [webhook subscription](https://exchanger-api.iexexchanger.com/en/guides/reliability/webhooks.md). Verify the signature, retry a delivery with the same event ID, and read the current resource state through the API. Simulate a missed notification and confirm that reconciliation restores your state.

## 4. Set up diagnostics

Record the time, HTTP method and path template, status, `error.code`, `X-Request-Id`, and `X-Correlation-Id`. Add the ID of the created order or received event and its processing outcome. Share these details with the exchange operator when reporting an issue. Keep tokens, HMAC secrets, and personal data out of logs.

After switching, run the public and signed ping against the production URL. Recheck scopes and quotas. Use the production key only with the production exchange.

> [accordion] Prompt for a launch review
>
> ```text theme={null}
> Review a [STACK] Exchanger API integration before launch. Inspect the repository, configuration names and existing tests. Limit the review to operations the client actually calls over HTTP. Keep credentials out of the review output and do not send requests to a production exchange.
>
> Check each route's scopes, server-side secret storage, signing input, monetary precision and error handling against the contract. For writes, inspect timeout recovery and operation keys. If the client receives webhooks, check v2 verification, durable storage before 2xx and duplicate handling. Distinguish per-minute rate limits from exhausted quotas. Confirm diagnostic reports preserve request IDs and redact secrets and personal data.
>
> Run the published signature vector and local fixture tests for 401, 429 and a timeout using synthetic data. For each finding identify the affected route, code location, observed consequence and a verification step. Finish with the scenarios that passed, the unverified scenarios and why, and the remaining checks that require a test installation.
>
> Documentation
> https://exchanger-api.iexexchanger.com/en/guides/reliability/production
> https://exchanger-api.iexexchanger.com/en/guides/reliability/errors
> https://exchanger-api.iexexchanger.com/en/start/authentication
> ```


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