curl --request POST \
--url https://api-test.paiera.ai/v1/report/query \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--header 'Content-Type: application/json' \
--data '{
"report_id": "REPORT_ID_FROM_EXPORT"
}'
{
"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": "SUCCESS",
"file_id": "EXAMPLE_FILE_ID",
"file_name": "statement_USD_20261101000000-20261102235959.xlsx",
"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
Query Report
Retrieve report generation status and file information by report ID.
curl --request POST \
--url https://api-test.paiera.ai/v1/report/query \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--header 'Content-Type: application/json' \
--data '{
"report_id": "REPORT_ID_FROM_EXPORT"
}'
{
"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": "SUCCESS",
"file_id": "EXAMPLE_FILE_ID",
"file_name": "statement_USD_20261101000000-20261102235959.xlsx",
"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
}
Query a report by
The authenticated merchant identity determines report ownership. Missing, deleted, or inaccessible reports return
report_id to obtain its generation status and available file information. A successful API call does not mean generation succeeded: inspect data.status.
Body Parameters
string(64)
required
Report record ID returned by Export Report. Do not supply
task_id, user_id, or entity identifiers.report_not_found without disclosing another user’s data. Reports in PROCESSING, SUCCESS, and FAILED can all be queried.
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)
Stored file format. New exports support
XLSX only; historical reports retain their original format.object
Original report filters. An empty object is retained as
{}. JSON storage capacity is 65,535 UTF-8 bytes.Show Filter fields
Show Filter fields
string
Currency filter used for the report, when present. Examples include
USD and USDT.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 after successful generation. Pass as
fileId to Download File.string(256)
Generated filename, returned when available after successful generation. 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/query \
--header 'Authorization: Basic YOUR_BASE64_CREDENTIALS' \
--header 'Content-Type: application/json' \
--data '{
"report_id": "REPORT_ID_FROM_EXPORT"
}'
{
"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": "SUCCESS",
"file_id": "EXAMPLE_FILE_ID",
"file_name": "statement_USD_20261101000000-20261102235959.xlsx",
"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
}
