curl --request GET \
--url 'https://api-test.paiera.com/v1/swap/retrieve?transaction_id=swap_example_001' \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS'
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"swap_reference_id": "swap_example_001",
"transaction_id": "swap_example_001",
"quote_id": "swap_quote_example_001",
"status": "PROCESSING",
"source_currency": "USDT",
"source_amount": "100.000000",
"destination_currency": "USD",
"destination_amount": "100.00"
}
}
FX
Retrieve Swap Transaction
Retrieve a swap using exactly one identifier.
curl --request GET \
--url 'https://api-test.paiera.com/v1/swap/retrieve?transaction_id=swap_example_001' \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS'
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"swap_reference_id": "swap_example_001",
"transaction_id": "swap_example_001",
"quote_id": "swap_quote_example_001",
"status": "PROCESSING",
"source_currency": "USDT",
"source_amount": "100.000000",
"destination_currency": "USD",
"destination_amount": "100.00"
}
}
Supply exactly one of
See Error codes and Webhooks.
transaction_id or swap_reference_id; sending both is an identifier conflict. OpenAPI removes quote, review_remark and trace_timeline. Internal channel details are not returned.
Query Parameters
string(64)
1..64; letters, digits, underscores and hyphens
Exactly one identifier
Platform swap transaction ID
string(64)
1..64; letters, digits, underscores and hyphens
Exactly one identifier
Merchant swap reference
Response
The standard response envelope contains an object indata. See Swap order 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)
Merchant swap reference. Creation input 1..64.
string(64)
Platform swap transaction ID. Query input: 1..64 characters.
string(64)
Quote ID.
string(32)
External order status.
CREATED/PROCESSING/COMPLETED/FAILED.string(16)
Source currency. Currency code.
string
Source principal. 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(128)
Failure code. On failure.
string(1024)
Failure reason. On failure.
string
Referenced quote expiry. 19 / 24. Detail/list when available; filtered from create.
string
Order creation time. 19 / 24.
string
Update time. 19 / 24.
string
Completion time. 19 / 24. Detail/list after completion.
curl --request GET \
--url 'https://api-test.paiera.com/v1/swap/retrieve?transaction_id=swap_example_001' \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS'
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"swap_reference_id": "swap_example_001",
"transaction_id": "swap_example_001",
"quote_id": "swap_quote_example_001",
"status": "PROCESSING",
"source_currency": "USDT",
"source_amount": "100.000000",
"destination_currency": "USD",
"destination_amount": "100.00"
}
}
