OrderTagRules
List all order tag rules
Retrieves all order tag rules for the specified company, including linked tag information.
path Parameters
companyIdThe unique identifier of the company
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
List all order tag rules › Responses
List of order tag rules
createdAtTimestamp when the rule was created (UTC)
updatedAtTimestamp when the rule was last updated (UTC)
tagNameName of the linked tag
tagColorColor of the linked tag
ruleIdUnique identifier for the rule
companyIdIdentifier of the owning company
tagIdTag to assign when rule matches
nameRule name (must be unique within company)
descriptionOptional description
ruleJsonJSON representation of the rule logic
isActiveWhether the rule is active and should be evaluated
activeWhether the rule exists (false = soft-deleted)
lastModifiedByID of the user who last modified this rule
isSystemRuleTrue for rules provisioned by a subscribed Rule Pack — read-only (cannot be edited), but can be deleted
Create new order tag rule
Creates a new order tag rule for the specified company. The rule will be automatically evaluated against existing orders. Returns 409 Conflict if a soft-deleted rule with the same name already exists.
path Parameters
companyIdThe unique identifier of the company
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Create new order tag rule › Request Body
tagIdTag to assign when rule matches
nameRule name (must be unique within company)
descriptionOptional description
ruleJsonJSON representation of the rule logic
isActiveWhether the rule is active and should be evaluated
Create new order tag rule › Responses
Rule created successfully
ruleIdUnique identifier for the rule
companyIdIdentifier of the owning company
tagIdTag to assign when rule matches
nameRule name (must be unique within company)
descriptionOptional description
ruleJsonJSON representation of the rule logic
isActiveWhether the rule is active and should be evaluated
activeWhether the rule exists (false = soft-deleted)
lastModifiedByID of the user who last modified this rule
isSystemRuleTrue for rules provisioned by a subscribed Rule Pack — read-only (cannot be edited), but can be deleted
Get order tag rule
Retrieves a specific order tag rule by ID with linked tag information.
path Parameters
companyIdThe unique identifier of the company
ruleIdThe unique identifier of the rule
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Get order tag rule › Responses
The order tag rule
createdAtTimestamp when the rule was created (UTC)
updatedAtTimestamp when the rule was last updated (UTC)
tagNameName of the linked tag
tagColorColor of the linked tag
ruleIdUnique identifier for the rule
companyIdIdentifier of the owning company
tagIdTag to assign when rule matches
nameRule name (must be unique within company)
descriptionOptional description
ruleJsonJSON representation of the rule logic
isActiveWhether the rule is active and should be evaluated
activeWhether the rule exists (false = soft-deleted)
lastModifiedByID of the user who last modified this rule
isSystemRuleTrue for rules provisioned by a subscribed Rule Pack — read-only (cannot be edited), but can be deleted
Update order tag rule
Updates an existing order tag rule. The rule will be re-evaluated against all orders.
path Parameters
companyIdThe unique identifier of the company
ruleIdThe unique identifier of the rule
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Update order tag rule › Request Body
tagIdTag to assign when rule matches
nameRule name (must be unique within company)
descriptionOptional description
ruleJsonJSON representation of the rule logic
isActiveWhether the rule is active and should be evaluated
Update order tag rule › Responses
Rule updated successfully
ruleIdUnique identifier for the rule
companyIdIdentifier of the owning company
tagIdTag to assign when rule matches
nameRule name (must be unique within company)
descriptionOptional description
ruleJsonJSON representation of the rule logic
isActiveWhether the rule is active and should be evaluated
activeWhether the rule exists (false = soft-deleted)
lastModifiedByID of the user who last modified this rule
isSystemRuleTrue for rules provisioned by a subscribed Rule Pack — read-only (cannot be edited), but can be deleted
Soft-delete order tag rule
Soft-deletes an order tag rule. The rule is marked inactive and hidden from the rules list.
path Parameters
companyIdThe unique identifier of the company
ruleIdThe unique identifier of the rule
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Soft-delete order tag rule › Responses
Rule soft-deleted successfully
Get order tag rule change history
Returns the full temporal audit history for an order tag rule, most recent changes first.
path Parameters
companyIdThe unique identifier of the company
ruleIdThe unique identifier of the rule
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Get order tag rule change history › Responses
Audit history returned successfully
changedAtchangedByIdchangedByNamechangeTypeentityTypeentityLabelList deleted order tag rules
Retrieves all soft-deleted order tag rules for the specified company.
path Parameters
companyIdThe unique identifier of the company
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
List deleted order tag rules › Responses
List of soft-deleted order tag rules
createdAtTimestamp when the rule was created (UTC)
updatedAtTimestamp when the rule was last updated (UTC)
tagNameName of the linked tag
tagColorColor of the linked tag
ruleIdUnique identifier for the rule
companyIdIdentifier of the owning company
tagIdTag to assign when rule matches
nameRule name (must be unique within company)
descriptionOptional description
ruleJsonJSON representation of the rule logic
isActiveWhether the rule is active and should be evaluated
activeWhether the rule exists (false = soft-deleted)
lastModifiedByID of the user who last modified this rule
isSystemRuleTrue for rules provisioned by a subscribed Rule Pack — read-only (cannot be edited), but can be deleted
Restore soft-deleted order tag rule
Restores a soft-deleted order tag rule and triggers re-evaluation of order tagging so that matching orders regain the rule-assigned tag.
path Parameters
companyIdThe unique identifier of the company
ruleIdThe unique identifier of the rule to restore
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Restore soft-deleted order tag rule › Responses
Rule restored successfully
ruleIdUnique identifier for the rule
companyIdIdentifier of the owning company
tagIdTag to assign when rule matches
nameRule name (must be unique within company)
descriptionOptional description
ruleJsonJSON representation of the rule logic
isActiveWhether the rule is active and should be evaluated
activeWhether the rule exists (false = soft-deleted)
lastModifiedByID of the user who last modified this rule
isSystemRuleTrue for rules provisioned by a subscribed Rule Pack — read-only (cannot be edited), but can be deleted

