Download OpenAPI specification:Download
Added new endpoint for fetching reports metadata
Removed not implemented endpoint from spec
Added new save flag for persisting reports
Added new response for when the save flag is used to persist reports
Using this endpoint with the query parameter save set to true, will result in an 201 response, otherwise, the response will be 200.
First, fetch the transaction from Get transaction.
Store the transaction in the transaction
variable and send this payload:
[
{
"key": "transaction",
"path": "/checkout/v1/transactions/{transaction.id}",
"data": transaction
}
]
with these query parameters set:
scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
template_id required | string The template to generate report from example:
|
template_data_path required | string Path to the data for the report examples:
|
template_accept required | string The Content-Type for the report examples:
|
template_accept_language required | string The Content-Language for the report examples:
|
template_accept_timezone | string <iana-timezone> The timezone for the report List of timezones: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones Defaults to Europe/Oslo examples:
|
data_from | string <date-time> The start of the data interval |
data_to | string <date-time> The end of the data interval |
schedule | string Enum: "monthly" "weekly" "daily" "custom" "none" Schedule for the report |
save | boolean Whether to save the generated report in s3 or not, if set to true returns 201 |
key required | string |
path required | string |
data required | object |
[- {
- "key": "string",
- "path": "string",
- "data": { }
}
]
"string"
Get list of report metadata for the account
Scopes:
aid required | string <^[PT]{1}\d{8}$> = 9 characters An id that uniquely identifies the account. |
limit | integer [ 1 .. 100 ] Default: 10 A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items. |
starting_after | string cursor for use in pagination. starting_after is an object ID
that defines your place in the list. For instance, if you make
a list request and receive 100 objects, end the result contains
|
{- "reports": [
- {
- "id": "string",
- "report_job_id": "string",
- "account_id": "string",
- "template_id": "string",
- "content_type": "application/pdf",
- "content_language": "en",
- "created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
- "created_at": "2019-08-24T14:15:22Z",
- "data_from": "2019-08-24T14:15:22Z",
- "data_to": "2019-08-24T14:15:22Z",
- "schedule": "string",
- "report_file_name": "string",
- "custom_report_name": "string",
- "report_config_id": "string",
- "data_type": "string",
- "signed_url": "string",
- "report_filters": [
- {
- "filter": "operation_payout_destination",
- "value": "string"
}
]
}
], - "starting_after": "string"
}