Skip to main content
POST
Batch assign/unassign rewards

Authorizations

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

Path Parameters

programId
string
required

Unique program identifier.

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

Body

application/json

Request body schema for POST /v2/loyalties/programs/{programId}/rewards/batch.

assign
object[] | null

Rewards to assign, each with its stock configuration.

Maximum array length: 10
unassign
object[] | null

Rewards to unassign.

Maximum array length: 10
options
object | null

Batch behavior. Defaults to strict mode when omitted.

Response

Batch processing result.

Response body schema for POST /v2/loyalties/programs/{programId}/rewards/batch.

assigned
object[] | null

Assignments created by the batch, or null when no assign operations were requested.

unassigned
object[] | null

Assignments removed by the batch, or null when no unassign operations were requested.