Get Quote

GET
/api/v1/quotes/{quoteId}

Get quote details by ID

Authorization

headerX-Api-Key<token>

API key in format: sti_env_prefix_secret

Path Parameters

quoteId*string

Quote ID

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

Default Response

application/json
  1. response
quote_id*QuoteId

UUID

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
source*

Source currency and amount

destination*

Destination currency and amount with payment network

fees*
exchange_rate*number

Exchange rate applied (1 source = X destination). All-in (destination amount / source amount) on standard quotes. On Price Lock quotes it is the commercial rate: the market benchmark after the conversion fee only; the processing fee is never inside it (see fees.processing_fee)

Range0 < value
exchange_rate_precise?string

Exact exchange_rate as an 18-decimal string: all-in on standard quotes, the commercial rate on Price Lock quotes. Available for fixed exact-in and exact-out quotes; never derive amounts from the exchange_rate float when this is available

Match^\d+(\.\d+)?$
expires_at*string

Quote expiration timestamp

Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Formatdate-time
rate_lock?

Present only when the quoted rate is held once the transfer is created (rate lock). Absent when the rate is indicative and set at execution

created_at*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
Formatdate-time
status*string

Quote status in display format

Value in"active""expired""used""cancelled""preview"
payment_method_requirements?
metadata?
Example Request
curl -X GET 'https://api.sandbox.stables.money/api/v1/quotes/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "quote_id": "3c071a1d-db86-46a7-9dc8-72ba3fbca992",  "source": {    "currency": "string",    "network": "string",    "amount": "string"  },  "destination": {    "currency": "string",    "network": "string",    "amount": "string"  },  "fees": {    "fx_fee": {      "currency": "string",      "network": "arbitrum",      "amount": "string"    },    "integrator_fee": {      "currency": "string",      "network": "arbitrum",      "amount": "string"    },    "developer_fee": {      "currency": "string",      "network": "arbitrum",      "amount": "string"    },    "platform_fee": {      "currency": "string",      "network": "arbitrum",      "amount": "string"    },    "withdrawal_fee": {      "currency": "string",      "network": "arbitrum",      "amount": "string"    },    "processing_fee": {      "currency": "string",      "network": "arbitrum",      "amount": "string"    },    "payment_method_fee": {      "currency": "string",      "network": "arbitrum",      "amount": "string"    },    "network_fee": {      "currency": "string",      "network": "string",      "amount": "string"    },    "total_fee": {      "currency": "string",      "network": "arbitrum",      "amount": "string"    }  },  "exchange_rate": 1,  "exchange_rate_precise": "string",  "expires_at": "2019-08-24T14:15:22Z",  "rate_lock": {    "accept_by": "2019-08-24T14:15:22Z",    "hold_minutes": 1  },  "created_at": "2019-08-24T14:15:22Z",  "status": "active",  "payment_method_requirements": {    "address": {      "required": true,      "required_fields": [        "street"      ]    }  },  "metadata": {    "property1": "string",    "property2": "string"  }}