Confirming quote

Confirm quote

PATCH /api/public/v1/exchange/quotes/:id

This endpoint confirmes quotes.

Headers

Name
Value

Content-Type

application/vnd.api+json

Authorization

Bearer <api_key>

Path Parameters

Name
Type
Description

id

string

Quote ID.

Response

{
  "data": {
    "id": "0592492e-0088-446c-98fa-7149c8734939",
    "type": "exchangeQuotes",
    "attributes": {
      "expiresAt": "2024-07-01T14:12:08.475Z",
      "amountCharged": "59.47",
      "amountReceived": "0.001",
      "rate": "58880.0",
      "exchangeFee": "0.59",
      "exchangeFeeCurrency": "EUR",
      "rateCurrency": "EUR",
      "amountChargedCurrency": "EUR",
      "amountReceivedCurrency": "BTC"
    },
    "relationships": {
      "exchangeOrder": {
        "data": {
          "type": "orders",
          "id": "58530d58-6ffd-4b6b-a6bf-204c9dd056bc"
        }
      }
    }
  },
  "included": [
    {
      "id": "58530d58-6ffd-4b6b-a6bf-204c9dd056bc",
      "type": "orders",
      "attributes": {
        "baseCode": "EUR",
        "quoteCode": "BTC",
        "quantity": "59.47"
      }
    }
  ],
  "meta": {},
  "jsonapi": {
    "version": "1.0"
  }
}

Response Body

Name
Type
Description

data.id

string

Quote ID.

data.type

string

Entity type returned. Always exchangeQuotes.

data.attributes

object

A set of quote attributes.

data.attributes.amountCharged

string

Amount to be debited from your accountChargedId.

data.attributes.amountChargedCurrency

string

Account charged currency code.

data.attributes.amountReceivedCurrency

string

Account received cyrrency code.

data.attributes.amountReceived

string

Amount to be credited to your accountReceivedId.

data.attributes.rate

string

Exchange rate.

data.attributes.rateCurrency

string

Exchange rate currency code.

data.attributes.exchangeFee

string

Txn fee amount.

data.attributes.exchangeFeeCurrency

string

Fee currency code.

data.attributes.expiresAt

string

Quote expiry timestamp.

Last updated