> For the complete documentation index, see [llms.txt](https://docs.ezeebit.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ezeebit.com/wallets-and-withdrawal/accept-conversion-quote.md).

# Accept Conversion Quote

Execute a conversion before its quote expires.

**Live:**

<mark style="color:green;">`POST`</mark> [<mark style="color:blue;">https://api.ezeebit.com/open/api/v1/merchant/wallet/conversion/accept</mark>](https://api.ezeebit.com/open/api/v1/merchant/wallet/conversion/accept)

**UAT:**

<mark style="color:green;">`POST`</mark> [<mark style="color:blue;">https://uat-api.ezeebit.com/open/api/v1/merchant/wallet/conversion/accept</mark>](https://uat-api.ezeebit.com/open/api/v1/merchant/wallet/conversion/accept)

## Headers

| Name                   | Type   | Required | Value                          |
| ---------------------- | ------ | -------- | ------------------------------ |
| Content-Type           | string | Y        | application/json               |
| Ezeebit-Timestamp      | long   | Y        | Unix timestamp in milliseconds |
| Ezeebit-Nonce          | string | Y        | 32 characters                  |
| Ezeebit-Certificate-SN | string | Y        | API key issued by Ezeebit Pay  |
| Ezeebit-Signature      | string | Y        | Uppercase SHA512 signature     |

## Request Body

```json
{
  "quoteId": "c2a4f8e0-1b3d-4c5e-9f7a-6b8d0e2f4a1c"
}
```

## Form data

| Parameter | Type   | Required | Description                             |
| --------- | ------ | -------- | --------------------------------------- |
| quoteId   | string | Yes      | Quote ID from Request Conversion Quote. |

Accepted quotes cannot be reused. If market execution fails, any source-wallet debit is reversed automatically.

A quote requested with `customerAccountId` executes against that customer account, and the response returns its `customerAccountId`. For a conversion on your own wallets it is `null`.

## Response

| Status | Description                                 |
| ------ | ------------------------------------------- |
| 200    | Conversion completed                        |
| 10059  | Quote not found                             |
| 10060  | Quote expired                               |
| 10061  | Quote already accepted                      |
| 10062  | Insufficient source balance                 |
| 10063  | Wallet balance changed; request a new quote |
| 10064  | Source wallet missing                       |
| 10065  | Destination wallet missing                  |
| 10066  | Execution failed; debit reversed            |
| 10067  | USDT float temporarily insufficient         |
| 10100  | Merchant KYB verification is not complete   |
| 10108  | Customer account is frozen                  |

{% tabs %}
{% tab title="200" %}

```json
{
  "code": 200,
  "msg": "success",
  "data": {
    "conversionId": "d7f1c3a2-8e4b-4a9d-b6c1-2f5e8a9d0c3b",
    "inputAmount": "1000.00",
    "outputAmount": "52.63",
    "rate": "19.0000",
    "status": "COMPLETED",
    "timestamp": 1755680415000,
    "customerAccountId": null
  }
}
```

{% endtab %}

{% tab title="10060" %}

```json
{
  "code": 10060,
  "msg": "Quote has expired — please request a new quote",
  "data": null
}
```

{% endtab %}

{% tab title="10100" %}

```json
{
  "code": 10100,
  "msg": "Merchant KYB verification is not complete",
  "data": null
}
```

{% endtab %}
{% endtabs %}
