v1

latestOpenAPI 3.0.1MIT2026-07-263151,3912.3 MB
Loyalties

Export Loyalty Campaign Transactions

Export transactions is an asynchronous process that generates a CSV file with the data about or point movements on all loyalty cards in a given campaign.

To export transactions:

  1. In the export request, use parameters to select which fields will be exported, in what order, and which data will be filtered.
  2. Use the returned id to track the export status with the GET Export method.
  3. In the GET Export method, when the returned status field has the DONE value, the export file has been generated.
  4. Use the URL in the result property to download the file. You must be logged to your Voucherify account on a given cluster in the browser to be able to download the file.

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

An example export file can look as follows:

FieldDefinitionExample Export
idUnique transaction ID.vtx_0cb7811f1c07765800
typeTransaction type.- POINTS_ACCRUAL<br />- POINTS_REDEMPTION<br />- POINTS_REFUND<br />- POINTS_ADDITION<br />- POINTS_REMOVAL<br />- POINTS_EXPIRATION<br />- POINTS_TRANSFER_IN<br />- POINTS_TRANSFER_OUT
source_idUnique transaction source ID. Optional and only in manual operations: POINTS_ADDITION, POINTS_REMOVAL, POINTS_TRANSFER_OUT.8638
reasonContains the reason for the transaction if one was included originally. Optional and only in the following manual operations: POINTS_ADDITION, POINTS_REMOVAL, POINTS_TRANSFER_OUT, POINTS_TRANSFER_IN.Apology for sending a broken item
balanceThe gift card or loyalty card balance after the transaction.
amountThe amount of gift card or loyalty card credits being allocated during the transaction. This value can either be negative or positive depending on the nature of the transaction.
created_atTimestamp in ISO 8601 format representing the date and time when the transaction was created.2024-10-09T09:16:32.521Z
voucher_idUnique voucher ID.v_dky7ksKfPX50Wb2Bxvcoeb1xT20b6tcp
sourceChannel through which the transaction was initiated.API
detailsMore detailed information stored in the form of JSON.Provides more details related to the transaction in the form of an object.
related_transaction_idUnique transaction ID related to a receiver/donor card in the case of a points transfer from/to another card.vtx_0c9afe802593b34b80

👍 Export Campaign Transactions

This method works in the same way the POST Export Campaign Transactions does, but it is limited to loyalty campaigns only. The POST Export Campaign Transactions method can also export gift card campaign transactions.

post/v1/loyalties/{campaignId}/transactions/export

Request body

Example request

{
  "parameters": {
    "filters": {
      "created_at": {
        "conditions": {
          "$after": "2024-01-01T00:00:00.000Z",
          "$before": "2024-01-01T00:00:00.000Z"
        }
      }
    }
  }
}

Response

An object representing an export.

idstring required

Unique export ID.

object'export' required

The type of object being represented. This object stores information about the export.

created_atstring date-time required

Timestamp representing the date and time when the export was scheduled in ISO 8601 format.

status'SCHEDULED' required

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.

channel'API' required

The channel through which the export was triggered.

exported_object'voucher_transactions' required

The type of exported object.

user_idstring nullable required

Identifies the specific user who initiated the export through the Voucherify Dashboard; returned when the channel value is WEBSITE.

Example response

{
  "id": "exp_FFfp9o7daWuJqJCKp5xqqli4",
  "created_at": "2022-04-28T11:23:20.922Z",
  "parameters": {
    "filters": {
      "created_at": {
        "conditions": {
          "$after": "2024-01-01T00:00:00.000Z",
          "$before": "2024-01-01T00:00:00.000Z"
        }
      }
    }
  },
  "user_id": "user_g24UoRO3Caxu7FCT4n5tpYEa3zUG0FrH"
}