---
title: Confirm a fiat to crypto quote
endpoint: POST /api/v1/buy/confirm
description: Buy
---

`POST /api/v1/buy/confirm`

## Request

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `callbackUrl` | string | optional | `https://www.example.com/payment-completed` | After the order is finished, we will send a request to this url. |
| `partnerOrderIdentifier` | string | optional | `4ea2b5e9-a413-4359-a8f6-9263ae8a0ee7` | Unique identifier provided by the partner. |
| `quote` | string | required | `eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJlbmNyeXB0ZWQiOiJ0b2tlbiJ9.gj80-9FPf_Wl7CGg2eDEFHokoEVtXIT7l4F88ztgxnhGIuhjOrhZ6xZLT3vuJPKXam_jQskm1PuM7T0OQdawDw` | The quote generated by the sell/quote endpoint. |
| `returnUrl` | string | required | `https://www.example.com/payment-finished` | After the payment is finished, we will redirect the user to this url. |
| `walletAddress` | string | required | `3FZbgi29cpjq2GjdwV8eyHuJJnkLtktZc5` | The wallet address we send the cryptos to after the payment is completed. |
| `destinationTag` | string\|integer | optional | `ABC12345` | The destination tag where we send the cryptos to after the payment is completed. |
| `walletType` | one of | optional | `unhosted` | The type of wallet to which the funds will be sent. |

## Responses

| Status | Meaning |
| --- | --- |
| 201 | Returns a URL to pay for the order. |
| 400 | A list of possible errors for this endpoint. |

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `orderId` | integer | required |  | The order id. |
| `paymentUrl` | string | required | `https://www.example.com/pay?id=1234` | The URL the user should be redirected to, to complete their payment. |
| `expiresAt` | date-time | optional | `2025-04-07T18:30:00Z` | The expiry date-time that expires this confirmed quote. After this period it's no longer possible to pay for this order. The date does not apply for order that are paid through bank transfer. |
