curl --request POST \
--url https://api-test.paiera.ai/v1/report/export \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--header 'Content-Type: application/json' \
--data '{
"report_type": "BALANCE",
"file_type": "XLSX",
"start_time": "2026-11-01 00:00:00",
"end_time": "2026-11-02 23:59:59",
"time_zone": "Asia/Shanghai",
"parameters": {
"currency": "USD"
}
}'
{
"code": "success",
"message": "success",
"trace_id": "EXAMPLE_TRACE_ID",
"timestamp": 1793778640833,
"data": {
"task_id": "EXAMPLE_TASK_ID",
"report_id": "EXAMPLE_REPORT_ID",
"report_type": "BALANCE",
"file_type": "XLSX",
"parameters": {
"currency": "USD"
},
"status": "PROCESSING",
"start_time": "2026-10-31T16:00:00.000Z",
"end_time": "2026-11-02T15:59:59.000Z",
"created_at": "2026-11-04T07:50:40.827Z",
"updated_at": "2026-11-04T07:50:40.827Z"
},
"success": true
}
Report
Export Report
Export a report asynchronously as XLSX.
curl --request POST \
--url https://api-test.paiera.ai/v1/report/export \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--header 'Content-Type: application/json' \
--data '{
"report_type": "BALANCE",
"file_type": "XLSX",
"start_time": "2026-11-01 00:00:00",
"end_time": "2026-11-02 23:59:59",
"time_zone": "Asia/Shanghai",
"parameters": {
"currency": "USD"
}
}'
{
"code": "success",
"message": "success",
"trace_id": "EXAMPLE_TRACE_ID",
"timestamp": 1793778640833,
"data": {
"task_id": "EXAMPLE_TASK_ID",
"report_id": "EXAMPLE_REPORT_ID",
"report_type": "BALANCE",
"file_type": "XLSX",
"parameters": {
"currency": "USD"
},
"status": "PROCESSING",
"start_time": "2026-10-31T16:00:00.000Z",
"end_time": "2026-11-02T15:59:59.000Z",
"created_at": "2026-11-04T07:50:40.827Z",
"updated_at": "2026-11-04T07:50:40.827Z"
},
"success": true
}
Create a report asynchronously, then use the returned
report_id to query its status. The initial status is usually PROCESSING; file information is usually unavailable until generation completes.
Body Parameters
Field lengths describe database storage capacity, not guaranteed API maximum-length validation. Fields without a listed length have no independent fixed-length limit in the supplied contract.string(32)
required
Report type:
TRANSACTION (transaction report), BALANCE (single-currency balance statement), or CRYPTO_CHECKOUT (stablecoin checkout report).string(16)
Only
XLSX is supported for new exports. Always send "file_type": "XLSX" explicitly: the implementation’s fallback is CSV, which is not enabled for this API configuration.string | integer (int64)
Range start. Defaults to 30 days before
end_time. Use yyyy-MM-dd HH:mm:ss (19 characters recommended), ISO 8601, or a Unix timestamp in seconds or milliseconds.string | integer (int64)
Range end. Defaults to the current time. Accepts the same formats as
start_time. Send both boundaries explicitly to avoid a time-dependent default range.string
Time zone, such as
Asia/Shanghai, America/New_York, or UTC. Overrides the authenticated merchant’s configured time zone; that configured zone is used when omitted.object
Report filters. Required for
BALANCE, together with currency. JSON storage capacity is 65,535 UTF-8 bytes for the complete serialized object, not characters.Show Filter fields
Show Filter fields
string
Required for
BALANCE, for example USD or USDT. Also supports transaction-report currency filtering. Do not send a top-level currency field.Time handling
Local dates and times without an offset use the selected time zone and are normalized to UTC. Unix timestamps and ISO 8601 values with an explicit offset already identify an instant and are not shifted again. Responses use UTC ISO 8601 timestamps. Date-only, slash-separated, and local date-time strings with milliseconds are also accepted. Invalid zone IDs, invalid calendar dates, reversed ranges, and nonexistent or ambiguous local times during daylight saving transitions returnreport_request_invalid. For an ambiguous local time, send ISO 8601 with an explicit offset. A failed profile lookup or a missing or invalid configured zone does not silently fall back to the server time zone; a profile lookup failure does not create a task.
Do not send template_code; template selection is managed by the service.
Response
The standard response envelope contains a report object indata. Check success and code even on HTTP 200. Null-valued business fields are normally omitted. Lengths below describe storage capacity, not guaranteed API maximum-length validation.
string
Business result code.
string
Result description.
string
Trace ID, usually 32 characters.
integer (int64)
Response timestamp in Unix milliseconds.
boolean
Whether the API call succeeded. A query for a report with
status=FAILED still returns success=true.object
Report information.
Show Report fields
Show Report fields
string(64)
Export task ID.
string(64)
Report record ID. Use this value to query the report.
string(32)
Report type:
TRANSACTION, BALANCE, or CRYPTO_CHECKOUT.string(16)
File format. New exports support
XLSX only.object
Original report filters. An empty object is retained as
{}. JSON storage capacity is 65,535 UTF-8 bytes.string(32)
Report generation status:
PROCESSING, SUCCESS, or FAILED. This is separate from the top-level success field.string
Report range start, in UTC ISO 8601 (usually 24 characters).
string
Report range end, in UTC ISO 8601 (usually 24 characters).
string(512)
Generated file ID, returned when available. Pass as
fileId to Download File.string(256)
Generated filename, returned when available. Pass as
fileName to the download request.string
Failure reason, returned when available. TEXT storage capacity is 65,535 UTF-8 bytes.
string(64)
Generation failure code, when available for a failed report.
string
Creation time, in UTC ISO 8601 (usually 24 characters).
string
Last update time, in UTC ISO 8601 (usually 24 characters).
Errors
See Report Errors for request, configuration, dependency, and asynchronous generation errors, and Common Errors for shared authentication and permission failures. Dependency failures and null data are errors, not successful empty results. When generation fails, a successful query returnsdata.status=FAILED with fail_code and fail_reason when available. Handle API failures using the top-level code, and generation failures using data.fail_code.
curl --request POST \
--url https://api-test.paiera.ai/v1/report/export \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--header 'Content-Type: application/json' \
--data '{
"report_type": "BALANCE",
"file_type": "XLSX",
"start_time": "2026-11-01 00:00:00",
"end_time": "2026-11-02 23:59:59",
"time_zone": "Asia/Shanghai",
"parameters": {
"currency": "USD"
}
}'
{
"code": "success",
"message": "success",
"trace_id": "EXAMPLE_TRACE_ID",
"timestamp": 1793778640833,
"data": {
"task_id": "EXAMPLE_TASK_ID",
"report_id": "EXAMPLE_REPORT_ID",
"report_type": "BALANCE",
"file_type": "XLSX",
"parameters": {
"currency": "USD"
},
"status": "PROCESSING",
"start_time": "2026-10-31T16:00:00.000Z",
"end_time": "2026-11-02T15:59:59.000Z",
"created_at": "2026-11-04T07:50:40.827Z",
"updated_at": "2026-11-04T07:50:40.827Z"
},
"success": true
}
