OrderTags
List all order tags
Retrieves all order tags for the specified company, including usage counts.
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 tags › Responses
List of order tags with usage counts
usageCountNumber of orders currently assigned this tag
createdAtupdatedAttagIdUnique identifier for the tag
companyIdIdentifier of the owning company
nameTag name (must be unique within company)
colorHex color code for the tag
descriptionOptional description
activeWhether the tag is active (false = soft-deleted)
lastModifiedByID of the user who last modified this tag
isSystemTagTrue for tags provisioned by a subscribed Rule Pack — read-only, managed via subscribe/unsubscribe
severityRule Pack severity (Block/Flag/Audit) this tag represents; null for company-authored tags
Create new order tag
Creates a new order tag for the specified company. Returns 409 Conflict if a soft-deleted tag 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 › Request Body
nameTag name (must be unique within company)
colorHex color code for the tag
descriptionOptional description
Create new order tag › Responses
Tag created successfully
tagIdUnique identifier for the tag
companyIdIdentifier of the owning company
nameTag name (must be unique within company)
colorHex color code for the tag
descriptionOptional description
activeWhether the tag is active (false = soft-deleted)
lastModifiedByID of the user who last modified this tag
isSystemTagTrue for tags provisioned by a subscribed Rule Pack — read-only, managed via subscribe/unsubscribe
severityRule Pack severity (Block/Flag/Audit) this tag represents; null for company-authored tags
Update order tag
Updates an existing order tag. Changes to name and color will be reflected everywhere the tag appears.
path Parameters
companyIdThe unique identifier of the company
tagIdThe unique identifier of the tag
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 › Request Body
nameTag name (must be unique within company)
colorHex color code for the tag
descriptionOptional description
Update order tag › Responses
Tag updated successfully
tagIdUnique identifier for the tag
companyIdIdentifier of the owning company
nameTag name (must be unique within company)
colorHex color code for the tag
descriptionOptional description
activeWhether the tag is active (false = soft-deleted)
lastModifiedByID of the user who last modified this tag
isSystemTagTrue for tags provisioned by a subscribed Rule Pack — read-only, managed via subscribe/unsubscribe
severityRule Pack severity (Block/Flag/Audit) this tag represents; null for company-authored tags
Soft-delete order tag
Soft-deletes an order tag. The tag is marked inactive and hidden from the tag list. Deleted tags can be restored via POST /company/{companyId}/order-tags/{tagId}/restore.
path Parameters
companyIdThe unique identifier of the company
tagIdThe unique identifier of the tag
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 › Responses
Tag soft-deleted successfully
Get order tag change history
Returns the full temporal audit history for an order tag, most recent changes first.
path Parameters
companyIdThe unique identifier of the company
tagIdThe unique identifier of the tag
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 change history › Responses
Audit history returned successfully
changedAtchangedByIdchangedByNamechangeTypeentityTypeentityLabelList deleted order tags
Retrieves all soft-deleted order tags 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 tags › Responses
List of soft-deleted order tags
usageCountNumber of orders currently assigned this tag
createdAtupdatedAttagIdUnique identifier for the tag
companyIdIdentifier of the owning company
nameTag name (must be unique within company)
colorHex color code for the tag
descriptionOptional description
activeWhether the tag is active (false = soft-deleted)
lastModifiedByID of the user who last modified this tag
isSystemTagTrue for tags provisioned by a subscribed Rule Pack — read-only, managed via subscribe/unsubscribe
severityRule Pack severity (Block/Flag/Audit) this tag represents; null for company-authored tags
Restore soft-deleted order tag
Restores a soft-deleted order tag so it can be used again.
path Parameters
companyIdThe unique identifier of the company
tagIdThe unique identifier of the tag 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 › Responses
Tag restored successfully
tagIdUnique identifier for the tag
companyIdIdentifier of the owning company
nameTag name (must be unique within company)
colorHex color code for the tag
descriptionOptional description
activeWhether the tag is active (false = soft-deleted)
lastModifiedByID of the user who last modified this tag
isSystemTagTrue for tags provisioned by a subscribed Rule Pack — read-only, managed via subscribe/unsubscribe
severityRule Pack severity (Block/Flag/Audit) this tag represents; null for company-authored tags
List order tag assignments
Returns all tag assignments for orders in 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 order tag assignments › Responses
List of tag assignments
orderIdThe order identifier
tagIdUnique identifier for the tag
companyIdIdentifier of the owning company
nameTag name
colorHex color code for the tag
descriptionOptional description of the tag
assignedByRuleIdRule that assigned this tag (null if manually assigned)
isSystemTagTrue for tags provisioned by a subscribed Rule Pack
severityRule Pack severity (Block/Flag/Audit) this tag represents; null for company-authored tags
List tag assignments for an order
Returns all tag assignments for the specified order.
path Parameters
companyIdThe unique identifier of the company
orderIdThe unique identifier of the order
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 tag assignments for an order › Responses
Tag assignments for the order
orderIdThe order identifier
tagIdUnique identifier for the tag
companyIdIdentifier of the owning company
nameTag name
colorHex color code for the tag
descriptionOptional description of the tag
assignedByRuleIdRule that assigned this tag (null if manually assigned)
isSystemTagTrue for tags provisioned by a subscribed Rule Pack
severityRule Pack severity (Block/Flag/Audit) this tag represents; null for company-authored tags
Set manual tag assignments
Replaces all manual tag assignments for an order with the provided set. Rule-based assignments are not affected. Pass an empty list to clear all manual tags.
path Parameters
companyIdThe unique identifier of the company
orderIdThe unique identifier of the order
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.
Set manual tag assignments › Responses
Updated manual tag assignments
assignmentIdUnique identifier for the assignment
orderIdOrder identifier
tagIdTag identifier
assignedByRuleIdRule that assigned this tag (null if manual)
assignedAtTimestamp when the tag was assigned (UTC)

