When creating an order, validity and expiry rules that are associated with the product being purchased will be inherited by the cards created as part of that order.
However, if you want to override these validity or expiry rules, you can pass in validity_rules and expiry_config variables as part of the OrderItemInput object.
Validity Rule Type
ID
Format
Description
Valid From
1
UTC date in Y-m-d H:i:s format
The date the purchase is valid from
Valid Until
2
UTC date in Y-m-d H:i:s format
The date the purchase is valid until
Valid Seconds After Purchase
3
Integer
The number of seconds after the purchase has been made that it is valid from
To use the validity_rules follow the example below: