Export Loyalty Card Transactions with campaign ID
curl --request POST \
--url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/members/{memberId}/transactions/export \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"parameters": {
"order": "-created_at",
"fields": [
"id",
"type",
"source_id",
"reason",
"balance",
"amount",
"created_at",
"voucher_id",
"campaign_id",
"details",
"related_transaction_id"
]
}
}
'{
"id": "exp_8Fwd6Z8NS67ZH314KRtm5xXE",
"object": "export",
"created_at": "2023-03-21T13:50:43.286Z",
"status": "SCHEDULED",
"channel": "API",
"exported_object": "voucher_transactions",
"parameters": {
"order": "-created_at",
"fields": [
"id",
"type",
"source_id",
"reason",
"balance",
"amount",
"created_at",
"voucher_id",
"campaign_id",
"details",
"related_transaction_id"
],
"filters": {
"voucher_id": {
"conditions": {
"$in": [
"LOYALTY-CARD-2IAoDNF"
]
}
}
}
},
"result": null,
"user_id": null
}
Export Loyalty Card Transactions with campaign ID
deprecated
Legacy loyalty API
This endpoint belongs to the legacy loyalty API (/v1/loyalties).
Voucherify will not develop new features for this API. However, critical issues may still receive fixes.
For new integrations, use Loyalty v2.
If you have questions, contact Voucherify support.
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 - POINTS_ADDITION - POINTS_REMOVAL - POINTS_TRANSFER_OUT - POINTS_ACCRUAL - POINTS_REFUND - 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 - voucherify-web-ui - 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 |
POST
/
v1
/
loyalties
/
{campaignId}
/
members
/
{memberId}
/
transactions
/
export
Export Loyalty Card Transactions with campaign ID
curl --request POST \
--url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/members/{memberId}/transactions/export \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"parameters": {
"order": "-created_at",
"fields": [
"id",
"type",
"source_id",
"reason",
"balance",
"amount",
"created_at",
"voucher_id",
"campaign_id",
"details",
"related_transaction_id"
]
}
}
'{
"id": "exp_8Fwd6Z8NS67ZH314KRtm5xXE",
"object": "export",
"created_at": "2023-03-21T13:50:43.286Z",
"status": "SCHEDULED",
"channel": "API",
"exported_object": "voucher_transactions",
"parameters": {
"order": "-created_at",
"fields": [
"id",
"type",
"source_id",
"reason",
"balance",
"amount",
"created_at",
"voucher_id",
"campaign_id",
"details",
"related_transaction_id"
],
"filters": {
"voucher_id": {
"conditions": {
"$in": [
"LOYALTY-CARD-2IAoDNF"
]
}
}
}
},
"result": null,
"user_id": null
}
Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
Body
application/json
Specify the parameters and filters for the transaction export.
Request body schema for POST v1/loyalties/members/{memberId}/transactions/export and for POST v1/loyalties/{campaignId}/members/{memberId}/transactions/export.
Response
Returns an export object.
Response body schema for POST v1/loyalties/members/{memberId}/transactions/export and for POST v1/loyalties/{campaignId}/members/{memberId}/transactions/export.

