Batch assign/unassign card definitions
curl --request POST \
--url https://api.voucherify.io/v2/loyalties/programs/{id}/card-definitions/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"assign": [
{
"id": "<string>"
}
],
"unassign": [
{
"id": "<string>"
}
]
}
'{
"assigned": [
{
"card_type": "<string>",
"card_definition_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"object": "<string>"
}
],
"unassigned": [
{
"card_type": "<string>",
"card_definition_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"object": "<string>"
}
]
}Batch assign/unassign card definitions
⚠️ BETA endpoint
This is a work-in-progress documentation of a BETA endpoint. The parameters, fields, request and response bodies, and other data may subject to change. If you want to share feedback or improvements, contact Voucherify support or your Technical Account Manager.
Assigns and/or unassigns card definitions to/from a program in a single batch. Program must be in DRAFT status.
POST
/
v2
/
loyalties
/
programs
/
{id}
/
card-definitions
/
batch
Batch assign/unassign card definitions
curl --request POST \
--url https://api.voucherify.io/v2/loyalties/programs/{id}/card-definitions/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"assign": [
{
"id": "<string>"
}
],
"unassign": [
{
"id": "<string>"
}
]
}
'{
"assigned": [
{
"card_type": "<string>",
"card_definition_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"object": "<string>"
}
],
"unassigned": [
{
"card_type": "<string>",
"card_definition_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"object": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Unique program identifier
Pattern:
^lprg_[a-f0-9]+$Body
application/json
Last modified on June 2, 2026
Was this page helpful?
⌘I

