> ## 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.

# Versions and compatibility

> Check route, signature and schema versions on your exchange and find replacements for deprecated request and response fields.

Use the base path `/api/v3`. In the published specification, `info.version` is `4.0.0` and `openapi: 3.1.0` identifies the specification format. Send HTTP requests to `/api/v3`.

## Check versions on your exchange

Set the exchange domain below. Both requests are public and require no credentials. The first lists the API contract versions that the exchange uses. The second returns the compact notification schema.

```bash theme={null}
EXCHANGE_URL='https://your-exchange'
curl --fail --silent --show-error "$EXCHANGE_URL/api/v3/public/contracts" \
  | jq -r '.result.contracts[] | [.key, .version] | @tsv'
curl --fail --silent --show-error "$EXCHANGE_URL/api/v3/public/schemas/webhook-notification.v2" \
  | jq '.result.schema'
```

| Registry key | Current value |
| - | - |
| `route-api` | `v3` |
| `success-envelope`, `error-envelope` | `api-envelope-v1`, `api-error-v1` |
| `request-signature`, `webhook-signature` | `hmac-sha256-v2` |
| `webhook-payload` | `webhook-payload-v2` |
| `operation-contract` | `operation-contract-v1` |
| `route-snapshot`, `route-capabilities` | `route-snapshot-v1`, `route-capabilities-v1` |
| `idempotency`, `cursor-pagination` | `idempotency-key-v1`, `cursor-v1` |
| `schema-registry`, `client-health` | `schema-registry-v1`, `client-health-v1` |

Send `X-Api-Signature-Version: v2` when signing private requests. For incoming webhooks, check `X-Webhook-Signature-Version: v2` and the JSON field `payload_version: "v2"`. Requests and webhooks use separate signing strings and secrets. [Sign a request](https://exchanger-api.iexexchanger.com/en/start/authentication.md) · [Verify a webhook](https://exchanger-api.iexexchanger.com/en/guides/reliability/webhooks.md).

## Replace deprecated fields

| Field | What to use |
| - | - |
| `error.type` | Read `error.code` in your error handler. |
| `selected_fee_type`, `selector_fees` | Send the fee choices from the route contract in `selected_fees`. |
| `checkbox_fees` | Send the selected checkboxes in `checkbox_agreements`. The server calculates fees. |
| `email` on order creation | The order uses the API key owner's email address. Omit this field. |
| `income_code` on payment confirmation | Attach a receipt through `POST /api/v3/private/exchange/orders/{order}/receipts`. |

After an exchange update, compare the versions of the contracts your client consumes. Check a known signature and send a test notification. Ask the exchange operator when a change takes effect on their installation. [API changelog](https://exchanger-api.iexexchanger.com/en/guides/resources/changelog.md) · [Production checks](https://exchanger-api.iexexchanger.com/en/guides/reliability/production.md).


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