Authorizations
Path Parameters
Example:
Query Parameters
Required range:
1 <= x <= 100Available options:
id, -id curl --request GET \
--url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/transactions \
--header 'Authorization: Bearer <token>' \
--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"
}Retrieves all transactions for the campaign with the given campaign ID or campaign name.
curl --request GET \
--url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/transactions \
--header 'Authorization: Bearer <token>' \
--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"
}1 <= x <= 100id, -id Show child attributes
Was this page helpful?