Create program
Changed on<Badge color="gray">Documentation in progress</Badge>
This documentation is in progress. The parameters, fields, request and response bodies, and other data may be subject to change. If you need more information or you want to share feedback, contact Voucherify support or your Technical Account Manager.
</Info>Creates a new loyalty program. The program can be created with status DRAFT (default) or ACTIVE. When created as ACTIVE, the program must be connected to at least one active card definition and at least one active earning rule (provided via card_definitions and earning_rules arrays), otherwise the request is rejected with 423 Locked (keys missing_active_card_definition / missing_active_earning_rule). Optionally assigns card definitions, earning rules, rewards and tier structures in the same request.
Request
- Base URLhttps://api.voucherify.io
- URLhttps://api.voucherify.io/v2/loyalties/programs
- Auth
- API key in header X-App-Id and API key in header X-App-Token
- or HTTP bearer
Request body
Example request
{
"validity_hours": {
"daily": [
{
"start_time": "09:00",
"end_time": "17:00"
}
]
}
}Response
Program created. Response includes the ids of resources assigned during creation.
Changes
- breaking
added to the
//////request propertyallOflist - breaking
added to the
//////request propertyallOflist - breaking
added to the
//////request propertyallOflist - breaking
the
//////request property type changed fromobjectto no type - breaking
the
//////request property type changed fromobjectto no type - breaking
the
//////request property type changed fromobjectto no type - warning
removed the request property
/////// - warning
removed the request property
/////// - warning
removed the request property
///////
- breaking
- breaking
added the new required request property
/////// - breaking
added the new required request property
/////// - breaking
added the new required request property
/////// - breaking
the
//////request property type changed from no type toobject - breaking
the
//////request property type changed from no type toobject - breaking
the
//////request property type changed from no type toobject - warning
removed from the
//////request propertyallOflist - warning
removed from the
//////request propertyallOflist - warning
removed from the
//////request propertyallOflist
- breaking