Production item tags
This method allows you to add tags to a specific production item (line item) in an order. Optionally, you can choose to apply the tags to nested (child) production items as well.
Notes
If all parameters are passed correctly, the system adds the specified tags to the selected production item (line item) and all its nested production items (child productions), if they exist, provided that the
apply_to_nested_productionsparameter is set totrue.If the `apply_to_nested_productions parameter is not provided, the system adds the tags only to the main production item (line item), and the nested production items (child productions) remain unchanged.
If at least one parameter is missing or incorrect, the system returns a 400 Bad Request error, indicating incomplete or invalid data in the request.
The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eThe unique identifier of the production item
557657-8654-89i76Tenant id (uuid v4)
A list of tags to be added to the production item
["Rush order","High priority"]Determines if the tags should be applied to nested (child) production items. "true" — Tags are inherited by nested productions. "false" — Tags are not inherited by nested productions. Default option: "false" if not specified.
falsePOST /api/v1/public/orders/{external_order_id}/line-items/{line_item_id}/tags HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
x-tenant-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"tags": [
"Rush order",
"High priority"
],
"apply_to_nested_productions": false
}{
"message": "The operation was done successfully"
}This method allows to replaces existing tags with the specified list of new tags for a specific line item (production). Optionally, it can also replace tags for all nested (child) productions if specified.
Notes
If all parameters are passed correctly, the system replaces the tags that were passed in this request for the line items (productions), which IDs were passed in the request with replacing tags of the subitems (child productions) if the specified line items (productions) have any.
If the
apply_to_nested_productionsparameter is not provided, the system replaces the tags that were passed in this request for the line items (productions), which IDs were passed in the request without replacing tags of the subitems (child productions) if the specified line items (productions) have any.If at least one parameter is missing or incorrect, the system returns a 400 Bad Request error, indicating incomplete or invalid data in the request.
The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eThe unique identifier of the production item
557657-8654-89i76Tenant id (uuid v4)
A list of tags to be added to the production item
["Rush order","High priority"]Determines if the tags should be applied to nested (child) production items. "true" — Tags are inherited by nested productions. "false" — Tags are not inherited by nested productions. Default option: "false" if not specified.
falsePUT /api/v1/public/orders/{external_order_id}/line-items/{line_item_id}/tags HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
x-tenant-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"tags": [
"Rush order",
"High priority"
],
"apply_to_nested_productions": false
}{
"message": "The operation was done successfully"
}This method allows to delete existing tags with the specified list of new tags for a specific line item (production). Optionally, it can also delete tags for all nested (child) productions if specified.
Notes
If all parameters are passed correctly, the system deletes the tags that were passed in this request for the line items (productions), which IDs were passed in the request with deleting tags of the subitems (child productions) if the specified line items (productions) have any.
If the
apply_to_nested_productionsparameter is not provided, the system deletes the tags that were passed in this request for the line items (productions), which IDs were passed in the request without deleting tags of the subitems (child productions) if the specified line items (productions) have any.If at least one parameter is missing or incorrect, the system returns a 400 Bad Request error, indicating incomplete or invalid data in the request.
The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eThe unique identifier of the production item
557657-8654-89i76["Rush order","High priority"]falseTenant id (uuid v4)
DELETE /api/v1/public/orders/{external_order_id}/line-items/{line_item_id}/tags?tags=text HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
x-tenant-id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
{
"message": "The operation was done successfully"
}Adds specified tags to all productions (line items) linked to a given order. Optionally, it can also add these tags to all nested (child) productions if specified.
Notes
If all parameters are passed correctly, The system adds the tags that were passed in this request to all line items (productions), connected with the order, which ID was passed in the request, with adding the subitems (child productions).
If the
apply_to_nested_productionsparameter is not provided, the system adds the tags that were passed in this request to all line items (productions), connected with the order, which ID was passed in the request, without adding the subitems (child productions) if the line items (productions) have any.If at least one parameter is missing or incorrect, the system returns a 400 Bad Request error, indicating incomplete or invalid data in the request.
The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eTenant id (uuid v4)
A list of tags to be added to the production item
["Rush order","High priority"]Determines if the tags should be applied to nested (child) production items. "true" — Tags are inherited by nested productions. "false" — Tags are not inherited by nested productions. Default option: "false" if not specified.
falsePOST /api/v1/public/orders/{external_order_id}/tags HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
x-tenant-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"tags": [
"Rush order",
"High priority"
],
"apply_to_nested_productions": false
}{
"message": "The operation was done successfully"
}This method allows to replaces existing tags with the specified list of new tags for all productions in this order. Optionally, it can also replace tags for all nested (child) productions if specified.
Notes
If all parameters are passed correctly, the system replaces the tags that were passed in this request for the all line items (productions), which IDs were passed in the request with replacing tags of the subitems (child productions) if the specified line items (productions) have any.
If the
apply_to_nested_productionsparameter is not provided, the system replaces the tags that were passed in this request for the all line items (productions), which IDs were passed in the request without replacing tags of the subitems (child productions) if the specified line items (productions) have any.If at least one parameter is missing or incorrect, the system returns a 400 Bad Request error, indicating incomplete or invalid data in the request.
The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eTenant id (uuid v4)
A list of tags to be added to the production item
["Rush order","High priority"]Determines if the tags should be applied to nested (child) production items. "true" — Tags are inherited by nested productions. "false" — Tags are not inherited by nested productions. Default option: "false" if not specified.
falsePUT /api/v1/public/orders/{external_order_id}/tags HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
x-tenant-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"tags": [
"Rush order",
"High priority"
],
"apply_to_nested_productions": false
}{
"message": "The operation was done successfully"
}This method allows to delete existing tags with the specified list of new tags for all productions in this order. Optionally, it can also delete tags for all nested (child) productions if specified.
Notes
If all parameters are passed correctly, the system deletes the tags that were passed in this request for the all line items (productions), which IDs were passed in the request with deleting tags of the subitems (child productions).
If the
apply_to_nested_productionsparameter is not provided, the system deletes the tags that were passed in this request for the all line items (productions), which IDs were passed in the request without deleting tags of the subitems (child productions).If at least one parameter is missing or incorrect, the system returns a 400 Bad Request error, indicating incomplete or invalid data in the request.
The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e["Rush order","High priority"]falseTenant id (uuid v4)
DELETE /api/v1/public/orders/{external_order_id}/tags?tags=text HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
x-tenant-id: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
{
"message": "The operation was done successfully"
}Last updated