Skip to main content
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>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.voucherify.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

X-App-Id
string
header
required
X-App-Token
string
header
required

Path Parameters

id
string
required

Unique program identifier

Pattern: ^lprg_[a-f0-9]+$

Body

application/json
assign
object[] | null

Card definitions to assign

Maximum array length: 10
unassign
object[] | null

Card definitions to unassign

Maximum array length: 10

Response

Batch processing result

assigned
object[] | null

Successfully assigned card definitions (null if no assign operations)

unassigned
object[] | null

Successfully unassigned card definitions (null if no unassign operations)

Last modified on May 11, 2026