GoSmarter Logo
GoSmarter API Gateway

OrderLineItemTagRequirements


List order line item tag requirements

GET
https://api.gosmarter.ai
/api/company/{companyId}/order-line-item-tag-requirements

Returns all active required/preferred inventory-tag requirements for the company's order line items.

List order line item tag requirements › path Parameters

companyId
​string · uuid · required

The unique identifier of the company

List order line item tag requirements › Headers

GoSmarter-Api-Key
​string · required

The 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 line item tag requirements › Responses

Active tag requirements

orderLineItemId
​string · uuid

The order line item the requirement belongs to

tagId
​string · uuid

The inventory tag required or preferred of the supplying stock

requirement
​string

'Required' (hard constraint) or 'Preferred' (soft preference)


List tag requirements for an order line item

GET
https://api.gosmarter.ai
/api/company/{companyId}/order-line-items/{orderLineItemId}/tag-requirements

Returns the active required/preferred inventory-tag requirements of the specified order line item. Empty when the line item has none (or does not exist for the company).

List tag requirements for an order line item › path Parameters

companyId
​string · uuid · required

The unique identifier of the company

orderLineItemId
​string · uuid · required

The unique identifier of the order line item

List tag requirements for an order line item › Headers

GoSmarter-Api-Key
​string · required

The 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 requirements for an order line item › Responses

Active tag requirements of the line item

orderLineItemId
​string · uuid

The order line item the requirement belongs to

tagId
​string · uuid

The inventory tag required or preferred of the supplying stock

requirement
​string

'Required' (hard constraint) or 'Preferred' (soft preference)


Set tag requirements for an order line item

PUT
https://api.gosmarter.ai
/api/company/{companyId}/order-line-items/{orderLineItemId}/tag-requirements

Replaces the required and preferred inventory-tag requirements of an order line item with the provided sets. Both lists must be supplied; pass empty lists to clear. A tag cannot be both required and preferred, and every tag must be an active inventory tag of the company.

Set tag requirements for an order line item › path Parameters

companyId
​string · uuid · required

The unique identifier of the company

orderLineItemId
​string · uuid · required

The unique identifier of the order line item

Set tag requirements for an order line item › Headers

GoSmarter-Api-Key
​string · required

The GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.

Set tag requirements for an order line item › Request Body

requiredTagIds
​string[]
preferredTagIds
​string[]

Set tag requirements for an order line item › Responses

The line item's active tag requirements after the change

orderLineItemId
​string · uuid

The order line item the requirement belongs to

tagId
​string · uuid

The inventory tag required or preferred of the supplying stock

requirement
​string

'Required' (hard constraint) or 'Preferred' (soft preference)