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.

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 return report_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 in data. 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.

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 returns data.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.