Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Unique validation rule ID.
"val_TU4de3EP4dlL"
Query Parameters
If this flag is set to true
, the previous assignment with the same data will be deleted and a new one will be added.
Body
Specify the resource that you would like to assign the validation rule to.
Request body schema for POST v1/validation-rules/{validationRuleId}/assignments
.
Defines the related object, e.g. voucher
.
voucher
, promotion_tier
, campaign
, earning_rule
, distribution
, reward_assignment
Unique related object ID assigned by Voucherify, e.g. v_lfZi4rcEGe0sN9gmnj40bzwK2FH6QUno
for a voucher.
Response
Returns a validation rules assignment object.
Response body for POST v1/validation-rules/{validationRuleId}/assignments
.
This is an object representing a validation rule assignment.
Validation rule assignment ID.
"asgm_74F7QZoYbUoljwQO"
Validation rule ID.
"val_4j7DCRm2IS59"
The resource ID to which the validation rule was assigned.
"v_JtWunK6jUo7X2qOFj0SyRHq4p9tgENlT"
The type of resource to which the validation rule was assigned.
voucher
, campaign
, earning_rule
, reward_assignment
, promotion_tier
, distribution
Timestamp representing the date and time when the validation rule assignment was created. The value is shown in the ISO 8601 format.
"2022-02-17T08:18:15.085Z"
The type of the object represented by the ID.
validation_rules_assignment