Orders
Tenant id (uuid v4)
Unique internal identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eA unique string used in the UI and controlled by the user
external-order-numberA unique string used in the UI and controlled by the user
marketplace_order_numberA unique identifier for each order from external system
external-order-idSystem-generated order key for internal reference
order-key-123Additional comments or info for the order
fragileIndicates if this is an internal company order (e.g., to replenish warehouse stocks)
falseIndicates whether the order has been marked as deleted
falsePriority level of the order
MediumPossible values: Unique identifier of the associated client
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eUnique identifier of the associated counterparty
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eTimestamp when the order was created
2025-01-23T17:01:31.692ZReturned when the rate limit is exceeded
GET /api/v1/public/orders HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"external_order_number": "external-order-number",
"marketplace_order_number": "marketplace_order_number",
"external_order_id": "external-order-id",
"order_key": "order-key-123",
"comment": "fragile",
"to_stock": false,
"is_deleted": false,
"priority": "Medium",
"client_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"counterparty_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"created_at": "2025-01-23T17:01:31.692Z"
}
]Tenant id (uuid v4)
A unique string used in the UI and controlled by the user
ON-12345A unique identifier for each order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eA unique string used in the UI and controlled by the user
MON-986-456Additional comments or info for the order
needs extra packingThe date when the order should be produced (ISO 8601 format)
2024-05-17T11:21:47.898ZThe date when the order was created in an external system (ISO 8601 format)
2024-05-14T11:21:47.898ZIndicates if this is an internal company order (e.g., to replenish warehouse stocks)
falseUnique internal identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eA unique string used in the UI and controlled by the user
external-order-numberSystem-generated order key for internal reference
O-EX-1A unique identifier for each order from external system
external-order-idA unique string used in the UI and controlled by the user
marketplace_order_numberAdditional comments or info for the order
extra packagingReturned when the rate limit is exceeded
POST /api/v1/public/orders HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 1155
{
"external_order_number": "ON-12345",
"external_order_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"marketplace_order_number": "MON-986-456",
"comment": "needs extra packing",
"deadline_at": "2024-05-17T11:21:47.898Z",
"external_created_at": "2024-05-14T11:21:47.898Z",
"to_stock": false,
"client": {
"name": "Client name",
"external_client_id": "123456",
"phone": "937-99-92",
"email": "client@gmail.com",
"company": "Client company"
},
"primary_client": {
"name": "Client name",
"external_client_id": "123456",
"phone": "937-99-92",
"email": "client@gmail.com",
"company": "Client company"
},
"line_items": [
{
"line_item_id": "557657-8654-89i76",
"barcode": "13465678767",
"deadline_at": "2024-05-17T11:21:47.898Z",
"planned_start_date": "2025-04-08T16:56:27.640Z",
"external_created_at": "2025-04-08T16:56:27.640Z",
"external_user_id": "128f1827-a7c3-48bd-bba4-7ffb7abed583",
"shipping_deadline": "2025-04-08T16:56:27.640Z",
"quantity": 3,
"line_item_note": "Should be smooth",
"marketplace_note": "Gift wrapping requested",
"route_id": "route-abc-123",
"tags": [
"urgent",
"fragile"
],
"attachments": [
{
"file_name": "technical_drawing.pdf",
"url": "https://cdn.example.com/files/technical_drawing.pdf",
"is_primary": true
}
]
}
]
}{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"external_order_number": "external-order-number",
"order_key": "O-EX-1",
"external_order_id": "external-order-id",
"marketplace_order_number": "marketplace_order_number",
"marketplace_note": "extra packaging",
"line_items": [
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"line_item_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"barcode": "453454334234",
"sku": "product-84620",
"name": "Super product",
"quantity": 10,
"line_item_note": "extra packaging",
"productions": [
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"production_key": "new-production-key",
"created_at": "2025-01-22T16:48:25.616Z"
}
]
}
]
}Tenant id (uuid v4)
Unique internal identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eA unique string used in the UI and controlled by the user
external-order-numberSystem-generated order key for internal reference
O-EX-1A unique identifier for each order from external system
external-order-idA unique string used in the UI and controlled by the user
marketplace_order_numberAdditional comments or info for the order
extra packagingReturned when the rate limit is exceeded
GET /api/public/orders/{external_order_id} HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Accept: */*
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"external_order_number": "external-order-number",
"order_key": "O-EX-1",
"external_order_id": "external-order-id",
"marketplace_order_number": "marketplace_order_number",
"marketplace_note": "extra packaging",
"line_items": [
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"line_item_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"barcode": "453454334234",
"sku": "product-84620",
"name": "Super product",
"quantity": 10,
"line_item_note": "extra packaging",
"productions": [
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"production_key": "new-production-key",
"created_at": "2025-01-22T16:48:25.616Z"
}
]
}
]
}The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eTenant id (uuid v4)
Unique internal identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eA unique string used in the UI and controlled by the user
external-order-numberA unique string used in the UI and controlled by the user
marketplace_order_numberA unique identifier for each order from external system
external-order-idSystem-generated order key for internal reference
order-key-123Additional comments or info for the order
fragileIndicates if this is an internal company order (e.g., to replenish warehouse stocks)
falseIndicates whether the order has been marked as deleted
falsePriority level of the order
MediumPossible values: Unique identifier of the associated client
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eUnique identifier of the associated counterparty
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eTimestamp when the order was created
2025-01-23T17:01:31.692ZReturned when the rate limit is exceeded
POST /api/v1/public/orders/{external_order_id} HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Accept: */*
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"external_order_number": "external-order-number",
"marketplace_order_number": "marketplace_order_number",
"external_order_id": "external-order-id",
"order_key": "order-key-123",
"comment": "fragile",
"to_stock": false,
"is_deleted": false,
"priority": "Medium",
"client_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"counterparty_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"created_at": "2025-01-23T17:01:31.692Z"
}The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eTenant id (uuid v4)
A unique string used in the UI and controlled by the user
ON-12345A unique string used in the UI and controlled by the user
MON-986-456Additional comments or info for the order
extra packagingThe date when the order should be produced (ISO 8601 format)
2025-01-22T16:48:25.617ZThe date when the order was created in an external system (ISO 8601 format)
2025-01-22T16:48:25.618ZIndicates if this is an internal company order (e.g., to replenish warehouse stocks)
trueUnique internal identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eA unique string used in the UI and controlled by the user
external-order-numberSystem-generated order key for internal reference
O-EX-1A unique identifier for each order from external system
external-order-idA unique string used in the UI and controlled by the user
marketplace_order_numberAdditional comments or info for the order
extra packagingReturned when the rate limit is exceeded
PUT /api/v1/public/orders/{external_order_id} HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 953
{
"external_order_number": "ON-12345",
"marketplace_order_number": "MON-986-456",
"comment": "extra packaging",
"deadline_at": "2025-01-22T16:48:25.617Z",
"external_created_at": "2025-01-22T16:48:25.618Z",
"to_stock": true,
"client": {
"name": "Client name",
"external_client_id": "123456",
"phone": "937-99-92",
"email": "client@gmail.com",
"company": "Client company"
},
"primary_client": {
"name": "Client name",
"external_client_id": "123456",
"phone": "937-99-92",
"email": "client@gmail.com",
"company": "Client company"
},
"line_items": [
{
"line_item_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"barcode": "453454334234",
"deadline_at": "2025-01-22T16:48:25.616Z",
"external_user_id": "128f1827-a7c3-48bd-bba4-7ffb7abed583",
"planned_start_date": "2025-04-08T16:56:27.640Z",
"external_created_at": "2025-04-08T16:56:27.640Z",
"shipping_deadline": "2025-04-08T16:56:27.640Z",
"quantity": 10,
"line_item_note": "extra packaging",
"marketplace_note": "Special handling required",
"route_id": "route-abc-123"
}
]
}{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"external_order_number": "external-order-number",
"order_key": "O-EX-1",
"external_order_id": "external-order-id",
"marketplace_order_number": "marketplace_order_number",
"marketplace_note": "extra packaging",
"line_items": [
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"line_item_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"barcode": "453454334234",
"sku": "product-84620",
"name": "Super product",
"quantity": 10,
"line_item_note": "extra packaging",
"productions": [
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"production_key": "new-production-key",
"created_at": "2025-01-22T16:48:25.616Z"
}
]
}
]
}The unique identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eTenant id (uuid v4)
Unique internal identifier of the order
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eA unique string used in the UI and controlled by the user
external-order-numberA unique string used in the UI and controlled by the user
marketplace_order_numberA unique identifier for each order from external system
external-order-idSystem-generated order key for internal reference
order-key-123Additional comments or info for the order
fragileIndicates if this is an internal company order (e.g., to replenish warehouse stocks)
falseIndicates whether the order has been marked as deleted
falsePriority level of the order
MediumPossible values: Unique identifier of the associated client
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eUnique identifier of the associated counterparty
b86fa12a-76fc-46f5-8a3e-bf39e7be4c4eTimestamp when the order was created
2025-01-23T17:01:31.692ZReturned when the rate limit is exceeded
DELETE /api/v1/public/orders/{external_order_id} HTTP/1.1
Host: api-stage.hesh.tech
x-api-key: YOUR_API_KEY
Accept: */*
{
"id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"external_order_number": "external-order-number",
"marketplace_order_number": "marketplace_order_number",
"external_order_id": "external-order-id",
"order_key": "order-key-123",
"comment": "fragile",
"to_stock": false,
"is_deleted": false,
"priority": "Medium",
"client_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"counterparty_id": "b86fa12a-76fc-46f5-8a3e-bf39e7be4c4e",
"created_at": "2025-01-23T17:01:31.692Z"
}Last updated

