The Export object

/exports endpoint allows you to retrieve Voucherify objects such as vouchers, redemptions, publications, customers, and points expirations as a CSV file. This functionality works asynchronously and comes down to 3 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 get it)

With parameters you can select which fields will be exported and filter out the relevant data

    "fields": [
    "filters": {
      "categories": {
        "conditions": {
          "$in": [

Fields values

Here is a list of the fields you can export for particular objects.

"metadata.X" where X is a single metadata property
"metadata.X" where X is a single metadata property
"metadata.X" where X is a single metadata property
customer"name, id"
"metadata.X" where X is a single metadata property

Pagination and example request

Voucherify allows you to specify the timeframe for the records you want to retrieve. Thanks to this mechanism it should easy to implement a pagination mechanism. See the example of request body:

      "order":"-created_at", // results start from the latest resources, "created_at" sorts from the oldest to the newest resources

An export request will almost always result in a single file being generated by the system. However, in the case when your volume of data is large, the system can split the results into multiple chunks.

Response schema

channelInfo how the export was triggered. Returns the channel that was used to generate the particular export.API
exported_objectvoucher, redemption, customer or publicationvoucher
parametersDefines fields and filters for retrieved objects { "fields": [ "code", "voucher_type" ], "filters": { "categories": { "conditions": { "$in": [ "postman" ] } } } }
resultURL to a CSV file{ "url": "" }
user_idIdentifies the specific user who initiated the export through the Voucherify Dashboard; this user_id is returned when the channel value is WEBSITE.user_g24UoRO3Caxu7FCT4n5tpYEa3zUG0FrH