- Print
- DarkLight
Get an order rule by ID
The unique identifier for the order rule.
Successful response
Status of the response
Number of order rules to skip before starting to fetch.
The maximum number of order rules to return.
The total number of order rules that match the search.
The total number of order rules that match the search.
Apply this rule to the very next order received, regardless of the order number.
Order id associated with rule
The order number associated with a rule. Represents the sequential order number of the customer's lifetime orders under a specific contract, starting at 1 and incrementing with every committed order.
The active status of a rule. Inactive rules are editable and visible in the admin UI, but are not run against orders. 1 is active and 0 is inactive.
Id of the product to be added by this order rule.
Type of item given by the order rule. Gift is a free item, while Product is a paid item.
Quantity of the product to be added by this order rule
The exclusive status of a rule. If there is an exclusive rule for a given order, no other rules will be applied to that order. 1 is exclusive and 0 is not exclusive.
The earliest order delivery date this rule will be valid for (inclusive).
The latest order delivery date this rule will be valid for (inclusive).
A field to store any additional information about the rule.
The name of the subscription type that this rule will apply for. Note this is only for display purposes and does not affect the rule.
The rule's priority determines the order in which it is applied. A priority of 1 means it has the highest priority and will be applied before others.
Always include rules will always be applied to orders, regardless of the order number.
The id of the subscription type this rule will apply for. If undefined or null, the order rule will apply to all subscription types.
Unauthorized response
Status of the response, in this case "error".
Unauthorized error message.
Not Found response
Status of the response
Not Found error message
Detail of the error