curl --request GET \
--url https://{cluster}.voucherify.io/v1/campaigns/{campaignId}/transactions \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "data",
"data": [
{
"id": "vtx_0f9159e2a055e41e16",
"source_id": null,
"voucher_id": "v_GNSRFoVlW2ny8uTOHhXRGvkwocR9jQ44",
"campaign_id": "camp_5Hn0NM3Uf77tC3IV3kX5un36",
"source": null,
"reason": null,
"type": "POINTS_REDEMPTION",
"details": {
"balance": {
"type": "loyalty_card",
"total": 283,
"object": "balance",
"points": -50,
"balance": 23,
"operation_type": "AUTOMATIC",
"related_object": {
"id": "v_GNSRFoVlW2ny8uTOHhXRGvkwocR9jQ44",
"type": "voucher"
}
},
"redemption": {
"id": "r_0f9159e29815e41e08"
},
"reward": {
"id": "rew_GCq9usMjLffVacs0mlyMmDZo",
"name": "Material"
}
},
"related_transaction_id": null,
"created_at": "2024-10-24T12:19:45.597Z"
},
{
"id": "vtx_0f9159e1a48b219c95",
"source_id": null,
"voucher_id": "v_GNSRFoVlW2ny8uTOHhXRGvkwocR9jQ44",
"campaign_id": "camp_5Hn0NM3Uf77tC3IV3kX5un36",
"source": "voucherify-web-ui",
"reason": "Apology addition",
"type": "POINTS_ADDITION",
"details": {
"balance": {
"type": "loyalty_card",
"total": 283,
"object": "balance",
"points": 50,
"balance": 73,
"operation_type": "MANUAL",
"related_object": {
"id": "v_GNSRFoVlW2ny8uTOHhXRGvkwocR9jQ44",
"type": "voucher"
}
}
},
"related_transaction_id": null,
"created_at": "2024-10-24T12:19:44.902Z"
}
],
"has_more": true,
"more_starting_after": "vtx_0f9159e1a48b219c95"
}List Campaign Transactions
Retrieves all transactions for the campaign with the given campaign ID or campaign name. The id filter denotes the unique transaction identifier.
The endpoint works only for gift card and legacy loyalty campaigns.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/campaigns/{campaignId}/transactions \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{
"object": "list",
"data_ref": "data",
"data": [
{
"id": "vtx_0f9159e2a055e41e16",
"source_id": null,
"voucher_id": "v_GNSRFoVlW2ny8uTOHhXRGvkwocR9jQ44",
"campaign_id": "camp_5Hn0NM3Uf77tC3IV3kX5un36",
"source": null,
"reason": null,
"type": "POINTS_REDEMPTION",
"details": {
"balance": {
"type": "loyalty_card",
"total": 283,
"object": "balance",
"points": -50,
"balance": 23,
"operation_type": "AUTOMATIC",
"related_object": {
"id": "v_GNSRFoVlW2ny8uTOHhXRGvkwocR9jQ44",
"type": "voucher"
}
},
"redemption": {
"id": "r_0f9159e29815e41e08"
},
"reward": {
"id": "rew_GCq9usMjLffVacs0mlyMmDZo",
"name": "Material"
}
},
"related_transaction_id": null,
"created_at": "2024-10-24T12:19:45.597Z"
},
{
"id": "vtx_0f9159e1a48b219c95",
"source_id": null,
"voucher_id": "v_GNSRFoVlW2ny8uTOHhXRGvkwocR9jQ44",
"campaign_id": "camp_5Hn0NM3Uf77tC3IV3kX5un36",
"source": "voucherify-web-ui",
"reason": "Apology addition",
"type": "POINTS_ADDITION",
"details": {
"balance": {
"type": "loyalty_card",
"total": 283,
"object": "balance",
"points": 50,
"balance": 73,
"operation_type": "MANUAL",
"related_object": {
"id": "v_GNSRFoVlW2ny8uTOHhXRGvkwocR9jQ44",
"type": "voucher"
}
}
},
"related_transaction_id": null,
"created_at": "2024-10-24T12:19:44.902Z"
}
],
"has_more": true,
"more_starting_after": "vtx_0f9159e1a48b219c95"
}Authorizations
Scopes
Path Parameters
Query Parameters
Response
Returns a dictionary with a data property that contains an array of transactions. The maximum number of transactions returned is determined by the limit query parameter. Each entry in the array is a separate transaction object. If more results are available, the has_more flag has value true and the value of the more_starting_after property can be used to retrieve another page of results.
Response body schema for GET v1/campaigns/{campaignId}/transactions.
As query results are always limited (by the limit parameter), the has_more flag indicates if there are more records for given filter parameters. This lets you know if you can run another request (with a different paging or a different start date filter) to get more records returned in the results.

