curl --request GET \
--url 'https://api-test.paiera.com/v1/swap/quote/retrieve?quote_id=swap_quote_example_001' \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS'
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"quote_id": "swap_quote_example_001",
"status": "LOCKED",
"quote_mode": "SOURCE",
"source_currency": "USDT",
"source_amount": "100.000000",
"destination_currency": "USD",
"destination_amount": "100.00",
"exchange_rate": "1"
}
}
FX
Retrieve Swap Quote
Retrieve a swap quote and its use status.
curl --request GET \
--url 'https://api-test.paiera.com/v1/swap/quote/retrieve?quote_id=swap_quote_example_001' \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS'
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"quote_id": "swap_quote_example_001",
"status": "LOCKED",
"quote_mode": "SOURCE",
"source_currency": "USDT",
"source_amount": "100.000000",
"destination_currency": "USD",
"destination_amount": "100.00",
"exchange_rate": "1"
}
}
The quote response includes
See Error codes and Webhooks.
LOCKED/USED/EXPIRED state, amount mode and use information. Quote state is different from order state.
Query Parameters
string(64)
required
1..64; letters, digits, underscores and hyphens
Quote ID
Response
The standard response envelope contains an object indata. See Swap quote for all item fields. Check success and code even on HTTP 200.
string
Business result code. Use this value for programmatic handling.
string
Result description; do not parse the message to classify failures.
string
Included when tracing context exists.
integer
Response time as Unix epoch milliseconds.
boolean
Whether the operation succeeded; check this even on HTTP 200.
object
Endpoint-specific business data; optional fields depend on state and availability.
Show Response fields
Show Response fields
string(64)
Quote ID. Query input limit: 64 characters.
string
Quote status.
LOCKED/USED/EXPIRED.string(16)
Quote amount mode.
SOURCE/DESTINATION.string(64)
Consuming swap order ID. After an order uses the quote.
string
Quote use time. 19 / 24. After quote use.
string
Quote creation time. 19 / 24.
string
Quote update time. 19 / 24.
string(16)
Source currency. Currency code.
string
Source amount. Fiat 2/stablecoin 6 decimal places.
string(16)
Destination currency. Currency code.
string
Destination amount. Fiat 2/stablecoin 6 decimal places.
string
Fee amount. Fee-currency precision.
string(16)
Fee currency. Currency code.
string
Total debit amount. Source-currency precision.
string
Customer exchange rate. Up to 6 decimal places; HALF_UP rounding; trailing zeros removed.
string
Quote expiry. 19 / 24. When quote expiry exists.
curl --request GET \
--url 'https://api-test.paiera.com/v1/swap/quote/retrieve?quote_id=swap_quote_example_001' \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS'
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"quote_id": "swap_quote_example_001",
"status": "LOCKED",
"quote_mode": "SOURCE",
"source_currency": "USDT",
"source_amount": "100.000000",
"destination_currency": "USD",
"destination_amount": "100.00",
"exchange_rate": "1"
}
}
