Configuration
Generate report from data
Using this endpoint with the query parameter **save** set to true, will result in an **201**
response, otherwise, the response will be **200**.
#### Generate PDF report for transaction:
First, fetch the transaction from [Get transaction](/api-reference/default/transactions_id_get).
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:
- template_id=checkout_transaction_order
- template_data_path=/checkout/v1/transactions/{transaction.id}
- template_accept=application/pdf
- template_accept_language=en
**scopes**:
- admin:reports
- write:reports
- read:reports
POST
api_reports_generation_post
Authorizations
Bearer authentication (token authentication) should be used for accessing the API.
Use Get Token to get an access token for client credentials. Pass the token in the request header:
where the access_token is JSON Web Tokens (JWT).
Path Parameters
Query Parameters
The timezone for the report List of timezones: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones Defaults to Europe/Oslo
examples:
- Europe/Stockholm
- Europe/London
- Europe/Helsinki
Response
Report file
The response is of type string.