Request Quote

Requests quote

POST https://api.sandbox.coindirect.com/api/v1/quote

Requests a quote. Use an estimate query parameter if you want to get a quote estimation instead of creating a new one.

Query Parameters

NameTypeDescription

estimate

Boolean

True if you want to get a quote estimation with no real quote to be created

Headers

NameTypeDescription

Authorization*

String

HAWK Token. See API Authentication page

Request Body

NameTypeDescription

merchantId

string

Merchant ID

from

string

From currency code e.g. ETH

to

string

To currency code e.g. EUR

payInMethod

string

wallet

payOtMethod

sting

wallet if you convert funds between your wallets

amountIn

number

Quote amount

{
  "id": 93403,
  "from": "EUR",
  "to": "ETH",
  "amountIn": 31.000000000000000000,
  "amountDue": 31.000000000000000000,
  "amountOut": 0.008933300000000000,
  "price": 3470.162202097800000000,
  "quoteStatus": "PENDING",
  "paymentStatus": "PENDING",
  "acceptanceExpiryDate": 1640875693683,
  "paymentExpiryDate": 1640876572459,
  "paymentReceiptDate": null,
  "payInLegs": [],
  "payInMethod": {
    "id": 5,
    "code": "wallet",
    "settlementCurrency": "EUR",
    "requestedCurrency": null,
    "estimatedExchangeRate": null,
    "accountMethods": []
  },
  "payOutMethod": {
    "id": 3,
    "code": "wallet",
    "currency": "ETH",
    "accountMethods": [
      {
        "id": 161,
        "display": null
      }
    ]
  },
  "uuid": "379a66e4-d402-48f4-a2a9-d4735ef2c79f",
  "payOutInstruction": null,
  "payInInstruction": null,
  "usePayInMethod": null,
  "usePayOutMethod": null,
  "fee": 0.310000000000000006,
  "processingFee": 0E-18,
  "type": "FIXED",
  "netPrice": 3470.162202097800000000,
  "grossPrice": 3470.162202097800000000,
  "amountInGross": 31,
  "amountInNet": 31.000000000000000000,
  "fees": {
    "percentage": {
      "service": 0.0100,
      "processing": 0.0000
    },
    "value": {
      "service": 0.31,
      "processing": 0
    }
  },
  "dateCreated": 1640875673705,
  "lastUpdated": 1640875673705
}

Last updated