curl --request POST \
--url https://api-test.paiera.com/v1/swap/list \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--header 'Content-Type: application/json' \
--data '{
"page_no": 1,
"page_size": 20
}'
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"page_no": 1,
"page_size": 20,
"total_count": 1,
"page_list": [
{
"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
List Swap Transactions
Filter and paginate swap orders.
curl --request POST \
--url https://api-test.paiera.com/v1/swap/list \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--header 'Content-Type: application/json' \
--data '{
"page_no": 1,
"page_size": 20
}'
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"page_no": 1,
"page_size": 20,
"total_count": 1,
"page_list": [
{
"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"
}
]
}
}
A JSON body is required;
See Error codes and Webhooks.
{} uses defaults. Date filters use yyyy-MM-dd HH:mm:ss, include the end second and reject an end before the start. OpenAPI filters quote/review_remark/trace_timeline. List fields are populated by the list service rather than assumed identical to detail.
Body Parameters
string
Optional time zone, for example
Asia/Shanghai.integer
Default 1; minimum 1
Page number
integer
Default 20; range 1..100
Page size
string(64)
1..64; letters, digits, underscores and hyphens
Exact platform order ID
string(64)
1..64; letters, digits, underscores and hyphens
Exact merchant reference
string
19 characters; yyyy-MM-dd HH:mm:ss, UTC
Created-time lower bound
string
Same format; inclusive end second; must not precede start
Created-time upper bound
Response
The standard response envelope contains a paginated object indata. See Swap order for all item fields. Pagination fields are data.page_no, data.page_size, data.total_count and data.page_list. 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
integer
Current page number.
integer
Page size; defaults and limits are endpoint-specific.
integer
Total matching records; parse without losing int64 precision.
object[]
Current result rows; a successful no-match query returns [].
Show Item fields
Show Item 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 POST \
--url https://api-test.paiera.com/v1/swap/list \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--header 'Content-Type: application/json' \
--data '{
"page_no": 1,
"page_size": 20
}'
{
"code": "success",
"message": "success",
"timestamp": 1793145600000,
"success": true,
"data": {
"page_no": 1,
"page_size": 20,
"total_count": 1,
"page_list": [
{
"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"
}
]
}
}
