跳转到主要内容
POST
/
v1
/
issuing
/
reports
Create Report
curl --request POST \
  --url https://api-sandbox.uqpaytech.com/api/v1/issuing/reports \
  --header 'Content-Type: application/json' \
  --header 'x-auth-token: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "report_type": "SETTLEMENT",
  "start_time": "2024-03-21T17:17:32+08:00",
  "end_time": "2024-03-21T17:17:32+08:00"
}
'
{
  "report_id": "c0cef051-29c5-4796-b86a-cd5b684bfad7"
}

Documentation Index

Fetch the complete documentation index at: https://developers-sandbox.uqpaytech.com/llms.txt

Use this file to discover all available pages before exploring further.

授权

x-auth-token
string
header
必填

The API token for login provided by UQPay.

请求头

x-idempotency-key
string<uuid>
必填

A unique identifier (UUID) used to maintain operation idempotency, ensuring that repeated executions of the same operation do not result in unintended effects or duplication. It helps preserve data consistency in the face of network errors, retries, or failures.

x-on-behalf-of
string

Specifies the sub-account on whose behalf the request is made. This should be set to the account_id, which can be retrieved via the List Connected Accounts endpoint. If omitted or empty, the request is executed using the master account. More information at Connected Accounts.

请求体

application/json
report_type
string
必填

The type of report file, only SETTLEMENT and LEDGER can be accepted currently.

示例:

"SETTLEMENT"

start_time
string
必填

The earliest time for transaction.

示例:

"2024-03-21T17:17:32+08:00"

end_time
string
必填

The latest timestamp for transaction.

示例:

"2024-03-21T17:17:32+08:00"

响应

200 - application/json

Create report successfully.

report_id
string
必填

Unique identifier for the report.

示例:

"c0cef051-29c5-4796-b86a-cd5b684bfad7"