v1

latestOpenAPI 3.0.1MIT2026-07-263151,3912.3 MB
Programs

Batch assign/unassign earning rules

<Warning>

<Badge color="yellow">BETA endpoint</Badge>

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.

</Warning>

Assigns and/or unassigns earning rules to/from a program in a single batch. Unassign operations are processed before assign operations. When the program is ACTIVE, the batch is validated to leave at least one active earning rule assigned. In strict mode (default) missing earning rules or missing assignments cause the whole batch to fail.

post/v2/loyalties/programs/{programId}/earning-rules/batch

Path parameters

idstring required

Unique program identifier.

Request body

Response

Batch processing result.