---
title: "Export Loyalty Card Transactions"
method: POST
path: "/v1/loyalties/members/{memberId}/transactions/export"
tags: ["Loyalties"]
---

# Export Loyalty Card Transactions

`POST /v1/loyalties/members/{memberId}/transactions/export`

Export transactions that are associated with point movements on a loyalty card.

| **Field** | **Definition** | **Example Export** |
|:---|:---|:---|
| id | Unique transaction ID assigned by Voucherify. | vtx_0cb7811f1c07765800 |
| type | Transaction type. | - `POINTS_EXPIRATION` <br /> - `POINTS_ADDITION` <br /> - `POINTS_REMOVAL` <br /> - `POINTS_TRANSFER_OUT` <br /> - `POINTS_ACCRUAL` <br /> - `POINTS_REFUND` <br /> - `POINTS_REDEMPTION` |
| source_id | Custom source ID of the transaction if one was included originally. | source_id_custom |
| reason | Contains the reason for the transaction if one was included originally. |  |
| balance | The loyalty card balance after the transaction. |  |
| amount | The amount of loyalty points being allocated during the transaction. This value can either be negative or positive depending on the nature of the transaction. |  |
| created_at | Timestamp in ISO 8601 format representing the date and time when the transaction was created. | 2022-03-09T09:16:32.521Z  |
| voucher_id | Unique Voucher ID. | v_dky7ksKfPX50Wb2Bxvcoeb1xT20b6tcp |
| campaign_id | Parent campaign ID. | camp_FNYR4jhqZBM9xTptxDGgeNBV |
| source|  Channel through which the transaction was initiated. | - `API` <br /> - `voucherify-web-ui` <br /> - `Automation` |
| details | More detailed information stored in the form of a JSON. | Provides more details related to the transaction in the form of an object. |
| related_transaction_id | Unique transaction ID related to a receiver/donor card in the case of a points transfer from/to another card. | vtx_0c9afe802593b34b80 |

## Request body

- LoyaltiesMembersTransactionsExportCreateRequestBody — Request body schema for **POST** `v1/loyalties/members/{memberId}/transactions/export` and for **POST** `v1/loyalties/{campaignId}/members/{memberId}/transactions/export`.
  - `parameters` object — List of available fields and filters that can be exported with an order along with the sorting order of the returned data.
    - `order` '-created_at' | 'created_at'
    - `fields` ExportVoucherTransactionsFields[] — Array of strings containing the data in the export. These fields define the headers in the CSV file.
    - `filters` ExportVoucherTransactionsFilters
      - `junction` 'and' | 'or' — Logical Operator Between Filters. Filter by conditions set on the `junction` parameter indicating how the `conditions` should be accounted for in the query. An `AND` is an all-inclusive logical operator, meaning the `AND` operator displays a record if **ALL** the conditions separated by AND are TRUE, while an `OR` operator displays a record if **ANY** of the conditions separated by OR is TRUE.
      - `created_at` FieldConditions
        - `conditions` FiltersCondition
          - `$in` union[]
            - union
              - …
          - `$not_in` union[]
            - union
              - …
          - `$is` union[]
            - union
              - …
          - `$is_days_ago` union[]
            - union
              - …
          - `$is_days_in_future` union[]
            - union
              - …
          - `$is_not` union[]
            - union
              - …
          - `$has_value` union[]
            - union
              - …
          - `$is_unknown` union[]
            - union
              - …
          - `$contains` union[]
            - union
              - …
          - `$not_contain` union[]
            - union
              - …
          - `$starts_with` union[]
            - union
              - …
          - `$ends_with` union[]
            - union
              - …
          - `$more_than` union[]
            - union
              - …
          - `$less_than` union[]
            - union
              - …
          - `$more_than_ago` union[]
            - union
              - …
          - `$less_than_ago` union[]
            - union
              - …
          - `$more_than_future` union[]
            - union
              - …
          - `$less_than_future` union[]
            - union
              - …
          - `$more_than_equal` union[]
            - union
              - …
          - `$less_than_equal` union[]
            - union
              - …
          - `$after` union[]
            - union
              - …
          - `$before` union[]
            - union
              - …
          - `$count` union[]
            - union
              - …
          - `$count_less` union[]
            - union
              - …
          - `$count_more` union[]
            - union
              - …
      - `voucher_id` FieldConditions
        - `conditions` FiltersCondition
          - `$in` union[]
            - union
              - …
          - `$not_in` union[]
            - union
              - …
          - `$is` union[]
            - union
              - …
          - `$is_days_ago` union[]
            - union
              - …
          - `$is_days_in_future` union[]
            - union
              - …
          - `$is_not` union[]
            - union
              - …
          - `$has_value` union[]
            - union
              - …
          - `$is_unknown` union[]
            - union
              - …
          - `$contains` union[]
            - union
              - …
          - `$not_contain` union[]
            - union
              - …
          - `$starts_with` union[]
            - union
              - …
          - `$ends_with` union[]
            - union
              - …
          - `$more_than` union[]
            - union
              - …
          - `$less_than` union[]
            - union
              - …
          - `$more_than_ago` union[]
            - union
              - …
          - `$less_than_ago` union[]
            - union
              - …
          - `$more_than_future` union[]
            - union
              - …
          - `$less_than_future` union[]
            - union
              - …
          - `$more_than_equal` union[]
            - union
              - …
          - `$less_than_equal` union[]
            - union
              - …
          - `$after` union[]
            - union
              - …
          - `$before` union[]
            - union
              - …
          - `$count` union[]
            - union
              - …
          - `$count_less` union[]
            - union
              - …
          - `$count_more` union[]
            - union
              - …
      - `campaign_id` FieldConditions
        - `conditions` FiltersCondition
          - `$in` union[]
            - union
              - …
          - `$not_in` union[]
            - union
              - …
          - `$is` union[]
            - union
              - …
          - `$is_days_ago` union[]
            - union
              - …
          - `$is_days_in_future` union[]
            - union
              - …
          - `$is_not` union[]
            - union
              - …
          - `$has_value` union[]
            - union
              - …
          - `$is_unknown` union[]
            - union
              - …
          - `$contains` union[]
            - union
              - …
          - `$not_contain` union[]
            - union
              - …
          - `$starts_with` union[]
            - union
              - …
          - `$ends_with` union[]
            - union
              - …
          - `$more_than` union[]
            - union
              - …
          - `$less_than` union[]
            - union
              - …
          - `$more_than_ago` union[]
            - union
              - …
          - `$less_than_ago` union[]
            - union
              - …
          - `$more_than_future` union[]
            - union
              - …
          - `$less_than_future` union[]
            - union
              - …
          - `$more_than_equal` union[]
            - union
              - …
          - `$less_than_equal` union[]
            - union
              - …
          - `$after` union[]
            - union
              - …
          - `$before` union[]
            - union
              - …
          - `$count` union[]
            - union
              - …
          - `$count_less` union[]
            - union
              - …
          - `$count_more` union[]
            - union
              - …

## Response `200`

Returns an export object.

- LoyaltiesMembersTransactionsExportCreateResponseBody
  - `id` string, required — Unique export ID.
  - `object` 'export', required — The type of object being represented. This object stores information about the export.
  - `created_at` string, 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` string — The channel through which the export was triggered.
  - `result` object, nullable, required — Contains the URL of the CSV file.
  - `user_id` string, required — Identifies the specific user who initiated the export through the Voucherify Dashboard; returned when the channel value is WEBSITE.
  - `exported_object` 'voucher_transactions', required — The type of object to be exported.
  - `parameters` object — List of available fields and filters that can be exported with an order along with the sorting order of the returned data.
    - `order` '-created_at' | 'created_at'
    - `fields` ExportVoucherTransactionsFields[] — Array of strings containing the data in the export. These fields define the headers in the CSV file.
    - `filters` ExportVoucherTransactionsFilters
      - `junction` 'and' | 'or' — Logical Operator Between Filters. Filter by conditions set on the `junction` parameter indicating how the `conditions` should be accounted for in the query. An `AND` is an all-inclusive logical operator, meaning the `AND` operator displays a record if **ALL** the conditions separated by AND are TRUE, while an `OR` operator displays a record if **ANY** of the conditions separated by OR is TRUE.
      - `created_at` FieldConditions
        - `conditions` FiltersCondition
          - `$in` union[]
            - union
              - …
          - `$not_in` union[]
            - union
              - …
          - `$is` union[]
            - union
              - …
          - `$is_days_ago` union[]
            - union
              - …
          - `$is_days_in_future` union[]
            - union
              - …
          - `$is_not` union[]
            - union
              - …
          - `$has_value` union[]
            - union
              - …
          - `$is_unknown` union[]
            - union
              - …
          - `$contains` union[]
            - union
              - …
          - `$not_contain` union[]
            - union
              - …
          - `$starts_with` union[]
            - union
              - …
          - `$ends_with` union[]
            - union
              - …
          - `$more_than` union[]
            - union
              - …
          - `$less_than` union[]
            - union
              - …
          - `$more_than_ago` union[]
            - union
              - …
          - `$less_than_ago` union[]
            - union
              - …
          - `$more_than_future` union[]
            - union
              - …
          - `$less_than_future` union[]
            - union
              - …
          - `$more_than_equal` union[]
            - union
              - …
          - `$less_than_equal` union[]
            - union
              - …
          - `$after` union[]
            - union
              - …
          - `$before` union[]
            - union
              - …
          - `$count` union[]
            - union
              - …
          - `$count_less` union[]
            - union
              - …
          - `$count_more` union[]
            - union
              - …
      - `voucher_id` FieldConditions
        - `conditions` FiltersCondition
          - `$in` union[]
            - union
              - …
          - `$not_in` union[]
            - union
              - …
          - `$is` union[]
            - union
              - …
          - `$is_days_ago` union[]
            - union
              - …
          - `$is_days_in_future` union[]
            - union
              - …
          - `$is_not` union[]
            - union
              - …
          - `$has_value` union[]
            - union
              - …
          - `$is_unknown` union[]
            - union
              - …
          - `$contains` union[]
            - union
              - …
          - `$not_contain` union[]
            - union
              - …
          - `$starts_with` union[]
            - union
              - …
          - `$ends_with` union[]
            - union
              - …
          - `$more_than` union[]
            - union
              - …
          - `$less_than` union[]
            - union
              - …
          - `$more_than_ago` union[]
            - union
              - …
          - `$less_than_ago` union[]
            - union
              - …
          - `$more_than_future` union[]
            - union
              - …
          - `$less_than_future` union[]
            - union
              - …
          - `$more_than_equal` union[]
            - union
              - …
          - `$less_than_equal` union[]
            - union
              - …
          - `$after` union[]
            - union
              - …
          - `$before` union[]
            - union
              - …
          - `$count` union[]
            - union
              - …
          - `$count_less` union[]
            - union
              - …
          - `$count_more` union[]
            - union
              - …
      - `campaign_id` FieldConditions
        - `conditions` FiltersCondition
          - `$in` union[]
            - union
              - …
          - `$not_in` union[]
            - union
              - …
          - `$is` union[]
            - union
              - …
          - `$is_days_ago` union[]
            - union
              - …
          - `$is_days_in_future` union[]
            - union
              - …
          - `$is_not` union[]
            - union
              - …
          - `$has_value` union[]
            - union
              - …
          - `$is_unknown` union[]
            - union
              - …
          - `$contains` union[]
            - union
              - …
          - `$not_contain` union[]
            - union
              - …
          - `$starts_with` union[]
            - union
              - …
          - `$ends_with` union[]
            - union
              - …
          - `$more_than` union[]
            - union
              - …
          - `$less_than` union[]
            - union
              - …
          - `$more_than_ago` union[]
            - union
              - …
          - `$less_than_ago` union[]
            - union
              - …
          - `$more_than_future` union[]
            - union
              - …
          - `$less_than_future` union[]
            - union
              - …
          - `$more_than_equal` union[]
            - union
              - …
          - `$less_than_equal` union[]
            - union
              - …
          - `$after` union[]
            - union
              - …
          - `$before` union[]
            - union
              - …
          - `$count` union[]
            - union
              - …
          - `$count_less` union[]
            - union
              - …
          - `$count_more` union[]
            - union
              - …

## Other responses

- `404` — Returns an error if the voucher code does not exist or has been deleted.

---

[API](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions.md) · [All operations](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voucherifyio/voucherify-api-async-actions/versions/4982266e0494/schema)
