---
title: "Create a conversion"
method: POST
path: "/convert"
tags: ["Convert"]
---

# Create a conversion

`POST /convert`

## Request

- Base URL: `https://api.pinkwallet.com/v1`
- URL: `https://api.pinkwallet.com/v1/convert`
- Auth: HTTP bearer

## Headers

- `Idempotency-Key` string

## Request body

- ConversionCreate
  - `from_asset` string
  - `to_asset` string
  - `from_amount` string: A decimal amount as a string, e.g. "250.00".
  - `quote_id` string

## Response `200`

The executed conversion.

- Conversion
  - `id` string
  - `object` 'conversion'
  - `status` 'filled' | 'pending' | 'failed'
  - `from_asset` string
  - `to_asset` string
  - `from_amount` string: A decimal amount as a string, e.g. "250.00".
  - `to_amount` string: A decimal amount as a string, e.g. "250.00".
  - `rate` string
  - `fee` string: A decimal amount as a string, e.g. "250.00".

## Other responses

- `402`: Error response.

---

[API](https://skmtc.dev/pinkwallet/apis/pinkwallet-api.md) · [All operations](https://skmtc.dev/pinkwallet/apis/pinkwallet-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pinkwallet/apis/pinkwallet-api/revisions/27c2921effe3?raw)
