OrderLineItemTagRules
List all order line item tag rules
Retrieves all order line item 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 line item tag rules › Responses
List of order line item 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 line item tag rule
Creates a new order line item tag rule for the specified company. The rule will be automatically evaluated against existing line items. 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 line item 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 line item 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 line item tag rule
Retrieves a specific order line item 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 line item tag rule › Responses
The order line item 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 line item tag rule
Updates an existing order line item tag rule. The rule will be re-evaluated against all line items.
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 line item 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 line item 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 line item tag rule
Soft-deletes an order line item 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 line item tag rule › Responses
Rule soft-deleted successfully
Get order line item tag rule change history
Returns the full temporal audit history for an order line item 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 line item tag rule change history › Responses
Audit history returned successfully
changedAtchangedByIdchangedByNamechangeTypeentityTypeentityLabelList deleted order line item tag rules
Retrieves all soft-deleted order line item 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 line item tag rules › Responses
List of soft-deleted order line item 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 line item tag rule
Restores a soft-deleted order line item tag rule and triggers re-evaluation of line item tagging so that matching line items 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 line item 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

