Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
A code that identifies the voucher or a unique voucher ID assigned by Voucherify, i.e. v_TzD19aeNiqGc9LWciMWknyEZT8IW7u4u
.
"2CpRCE2c"
Body
Specify the parameters for the camapign transaction export.
Request body schema for POST v1/vouchers/transactions/export
.
Contains the parameters that define the data to be exported. List of available fields and filters that can be exported with a gift card or loyalty card transactions export along with the sorting order of the returned data.
Response
Returns an export object.
Response body schema for POST v1/vouchers/{code}/transactions/export
.
This is an object representing an export.
Using this endpoint, you can export voucher transactions as a CSV file. This functionality works asynchronously and comes down to the following steps: create an export object and return its id so you can track its status, trigger a CSV file generation, change the status to SCHEDULED when the generation is over, store the file in S3 and change the status to DONE. Now you can download it.
With parameters you can select which fields will be exported. An export request will almost always result in a single file being generated by the system. However, when your volume of data is large, the system may split the results into multiple chunks.
Unique export ID.
"exp_FFfp9o7daWuJqJCKp5xqqli4"
The type of object being represented. This object stores information about the export
.
export
Timestamp representing the date and time when the export was scheduled in ISO 8601 format.
"2022-04-28T11:23:20.922Z"
Status of the export. Informs you whether the export has already been completed, i.e. indicates whether the file containing the exported data has been generated.
SCHEDULED
The channel through which the export was triggered.
The type of exported object.
voucher_transactions
List of available fields and filters that can be exported with gift card or loyalty card transactions along with the sorting order of the returned data.
Contains the URL of the CSV file.
Identifies the specific user who initiated the export through the Voucherify Dashboard; returned when the channel
value is WEBSITE
.
"user_g24UoRO3Caxu7FCT4n5tpYEa3zUG0FrH"