- vouchers,
- redemptions,
- publications,
- customers,
- order and point expirations to a CSV file
How to export data to CSV
-
Trigger the export with Create Export and store the
idof the export object you’ll get in the response from Voucherify. -
Get the export’s status providing the
idand take a look at thestatusfield from the response. If it’s stillSCHEDULED, this means that the export is still in progress and you should ask later. -
When the status is finally
DONE, theresultwill store the URL as in the example below:
- To download the export file, use the provided URL together with authentication headers.
Download URL base differs by region. The
result.url returned by Get Export points at a region-specific host, not the standard API host:- Europe:
https://download.voucherify.io - US:
https://us1.download.voucherify.io - Asia:
https://as1.download.voucherify.io
token query parameter embedded in result.url identifies the export — it does not replace your API credentials. Every download request must also include your X-App-Id and X-App-Token headers (or an OAuth token). Without them, the download responds with 401 Unauthorized.The download token is short-lived. If you receive a 401 Unauthorized even though your headers are correct, the token in result.url has likely expired. Call Get Export again to obtain a fresh result.url and download immediately.
