Production Items
Authorizations
x-api-keystringRequired
Path parameters
external_order_idstringRequiredExample:
The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eline_item_idstringRequiredExample:
The unique identifier of the production item
557657-8654-89i76Header parameters
x-tenant-idstring · uuidOptional
Tenant id (uuid v4)
Body
file_namestringOptionalExample:
File name
technical_drawing.pdfurlstringRequiredExample:
URL of the file
https://cdn.example.com/files/technical_drawing.pdfis_primarybooleanOptionalExample:
Marks image as primary line item image
falseResponses
201Success
application/json
messagestringRequiredExample:
Message returned from API confirming the operation
The operation was done successfully429
Returned when the rate limit is exceeded
post/api/v1/public/orders/{external_order_id}/line-items/{line_item_id}/attachments
POST /api/v1/public/orders/{external_order_id}/line-items/{line_item_id}/attachments HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 116
{
"file_name": "technical_drawing.pdf",
"url": "https://cdn.example.com/files/technical_drawing.pdf",
"is_primary": false
}{
"message": "The operation was done successfully"
}Authorizations
x-api-keystringRequired
Path parameters
external_order_idstringRequiredExample:
The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eline_item_idstringRequiredExample:
The unique identifier of the production item
557657-8654-89i76Header parameters
x-tenant-idstring · uuidOptional
Tenant id (uuid v4)
Responses
200Success
application/json
429
Returned when the rate limit is exceeded
get/api/v1/public/orders/state/{external_order_id}/line-items/{line_item_id}
GET /api/v1/public/orders/state/{external_order_id}/line-items/{line_item_id} HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"current": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"production_workflow_id": "123e4567-e89b-12d3-a456-426614174000",
"task": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"task_key": "text",
"status": "Reopened",
"is_in_queue": true,
"is_reopened": true,
"reopened_task_key": "text"
},
"nestedWorkflow": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "To_Do",
"production_key": "text"
}
},
"previous": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"production_workflow_id": "123e4567-e89b-12d3-a456-426614174000",
"task": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"task_key": "text",
"status": "Reopened",
"is_in_queue": true,
"is_reopened": true,
"reopened_task_key": "text"
},
"nestedWorkflow": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "To_Do",
"production_key": "text"
}
}
],
"next": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"production_workflow_id": "123e4567-e89b-12d3-a456-426614174000",
"task": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"task_key": "text",
"status": "Reopened",
"is_in_queue": true,
"is_reopened": true,
"reopened_task_key": "text"
},
"nestedWorkflow": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "To_Do",
"production_key": "text"
}
}
]
}
]Authorizations
x-api-keystringRequired
Path parameters
workflow_idstringRequiredExample:
Internal unique identifier of the Production Workflow
859ab706-979e-4645-8b8e-b3ec3fd89858Header parameters
x-tenant-idstring · uuidOptional
Tenant id (uuid v4)
Responses
200Success
application/json
429
Returned when the rate limit is exceeded
get/api/v1/public/orders/state/{workflow_id}
GET /api/v1/public/orders/state/{workflow_id} HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"current": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"production_workflow_id": "123e4567-e89b-12d3-a456-426614174000",
"task": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"task_key": "text",
"status": "Reopened",
"is_in_queue": true,
"is_reopened": true,
"reopened_task_key": "text"
},
"nestedWorkflow": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "To_Do",
"production_key": "text"
}
},
"previous": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"production_workflow_id": "123e4567-e89b-12d3-a456-426614174000",
"task": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"task_key": "text",
"status": "Reopened",
"is_in_queue": true,
"is_reopened": true,
"reopened_task_key": "text"
},
"nestedWorkflow": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "To_Do",
"production_key": "text"
}
}
],
"next": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"production_workflow_id": "123e4567-e89b-12d3-a456-426614174000",
"task": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "text",
"task_key": "text",
"status": "Reopened",
"is_in_queue": true,
"is_reopened": true,
"reopened_task_key": "text"
},
"nestedWorkflow": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "To_Do",
"production_key": "text"
}
}
]
}
]Last updated

