Your systems, talking to Palletable.
Push orders, stock and deliveries into Palletable from your own website, ERP or software — and pull stock levels and order status back out whenever you need them. No re-typing, no CSV uploads: both systems stay in step.
- Token + secret pairs
- Module-level access
- Revoke any time
Palletable// send to Palletable { "customer": "Acme Ltd", "items": [{ "sku": "AWD-120", "qty": 120 }] }
// pull from Palletable { "sku": "AWD-120", "on_hand": 1840, "allocated": 120 }
Send it in. Pull it back out.
Both systems stay in step, with no re-typing and no CSV uploads.
Push new work from your own website, ERP or software the moment it happens on your side.
- Orders
- Deliveries
// send to Palletable { "customer": "Acme Ltd", "items": [{ "sku": "AWD-120", "qty": 120 }] }
Ask for the live picture whenever you need it and get clean data back for your own software.
- Stock levels
- Order status
// pull from Palletable { "sku": "AWD-120", "on_hand": 1840, "allocated": 120 }
Example requests shown for illustration.
You decide what a key can reach.
Every key belongs to your organisation and only reaches what you give it.
- Token + secretPublic ID, private proof
- Module-level accessPick modules and accounts
- Secret shown onceStored one-way, reset any time
- Revoke any timeDelete it and it stops at once
plt_tk_9fK2x…Qe7aPublic••••••••••••••Shown onceInventory Management
GET/v1/stock/quantityGet stock quantity
Returns how much of one stock code you hold. Leave out location_labels to count every location at the site, or pass one or more labels to count only stock held in those kinds of location.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Inventory Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site the stock is held at, exactly as it appears in Palletable, for example "Default". Stock codes are unique within a site. |
stock_codeRequired | string | The stock code to look up, for example AWD-120. Must match exactly. |
location_labelsOptional | string[] | Only count stock held in locations with one of these labels: "Supermarket", "Warehouse" or "Bulk". Several labels are combined, so ["Warehouse","Bulk"] counts both. Omit it to count every location. |
// request body { "site": "Default", "stock_code": "AWD-120", "location_labels": ["Warehouse", "Bulk"] }
curl -X GET "$PALLETABLE_API/v1/stock/quantity" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "stock_code": "AWD-120", "location_labels": ["Warehouse", "Bulk"] }'
Responses
Pick a status code to see what comes back.
The stock code was found. total_qty adds up the locations listed, so it only counts the labels you asked for. If the code exists but none of its stock is in those locations you still get 200, with total_qty of 0 and an empty locations list.
{
"stock_code": "AWD-120",
"description": "Aluminium wall dowel, 120mm",
"unit_measure": "each",
"site": "Default",
"location_labels": ["Warehouse", "Bulk"],
"total_qty": 1840,
"locations": [
{
"location_name": "Warehouse A",
"location_label": "Warehouse",
"qty": 1240
},
{
"location_name": "Bulk Bay 2",
"location_label": "Bulk",
"qty": 600
}
]
}
| Field | Type | Description |
|---|---|---|
stock_code | string | The stock code you asked for. |
description | string | The stock item’s description. |
unit_measure | string | What qty is counted in, for example each or kg. |
site | string | The name of the site the stock is held at. |
location_labels | string[] | null | The labels you filtered by, or null when you didn’t filter. |
total_qty | number | Quantity across the locations listed. |
locations | object[] | One entry per location holding it: location_name, location_label and qty. |
The request body isn’t valid. A required field is missing, a field is the wrong type, or location_labels contains something other than Supermarket, Warehouse or Bulk.
{
"error": {
"code": "invalid_request",
"message": "location_labels must only contain: Supermarket, Warehouse, Bulk"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Inventory Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Inventory Management"
}
}
We couldn’t find what you asked for. Either the stock code doesn’t exist at that site, or there is no site with that name. Check stock_code and site.
{
"error": {
"code": "not_found",
"message": "Stock code AWD-999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/stock/locationsList locations
Returns every supermarket, warehouse and bulk location at a site. Use it to see which names and location_labels you can expect to find stock in.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Inventory Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
{
"site": "Default"
}
curl -X GET "$PALLETABLE_API/v1/stock/locations" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default" }'
Responses
Pick a status code to see what comes back.
The site was found. A site with no locations set up returns 200 with an empty locations list.
{
"site": "Default",
"locations": [
{
"location_name": "Pick Wall",
"location_label": "Supermarket"
},
{
"location_name": "Warehouse A",
"location_label": "Warehouse"
},
{
"location_name": "Warehouse B",
"location_label": "Warehouse"
},
{
"location_name": "Bulk Bay 2",
"location_label": "Bulk"
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The name of the site you asked for. |
locations | object[] | One entry per location, listed by label then name: location_name and location_label. |
The request body isn’t valid. site is missing or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site is required and must be a string"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Inventory Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Inventory Management"
}
}
We couldn’t find what you asked for. There is no site with that name. Check site.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/stock/listList stock
Returns the stock codes held at a site with their total quantity. Narrow the list by category, by a search of the code or description, by location label, or to only the items running below their minimum quantity.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Inventory Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
categoryOptional | string | Only items in this category. |
searchOptional | string | Only items whose code or description contains this text. |
location_labelsOptional | string[] | Only include locations with one of these labels: "Supermarket", "Warehouse" or "Bulk". Omit to include every location. |
below_minimumOptional | boolean | true returns only items that have fallen below their minimum quantity. Defaults to false. |
{
"site": "Default",
"category": "Fixings",
"below_minimum": false
}
curl -X GET "$PALLETABLE_API/v1/stock/list" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "category": "Fixings", "below_minimum": false }'
Responses
Pick a status code to see what comes back.
Here is the list. total_qty adds up the locations that match your filters. No matches returns 200 with an empty list.
{
"site": "Default",
"count": 2,
"items": [
{
"stock_code": "AWD-120",
"description": "Aluminium wall dowel, 120mm",
"category": "Fixings",
"unit_measure": "each",
"total_qty": 1980
},
{
"stock_code": "AWD-160",
"description": "Aluminium wall dowel, 160mm",
"category": "Fixings",
"unit_measure": "each",
"total_qty": 420
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The site you asked for. |
count | integer | How many items matched. |
items | object[] | Each item: stock_code, description, category, unit_measure and total_qty. Sorted by stock code. |
The request body isn’t valid. A field is the wrong type, or location_labels contains something other than Supermarket, Warehouse or Bulk.
{
"error": {
"code": "invalid_request",
"message": "location_labels must only contain: Supermarket, Warehouse, Bulk"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Inventory Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Inventory Management"
}
}
We couldn’t find what you asked for. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/stock/infoGet stock info
Returns everything we hold about one stock code: its category, supplier and lead time, unit cost and total price, and how much is in each supermarket, warehouse and bulk location.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Inventory Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
stock_codeRequired | string | The stock code, for example AWD-120. Must match exactly. |
{
"site": "Default",
"stock_code": "AWD-120"
}
curl -X GET "$PALLETABLE_API/v1/stock/info" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "stock_code": "AWD-120" }'
Responses
Pick a status code to see what comes back.
The stock code was found. Quantities cover every location at the site. Fields that haven’t been set up for the item come back as null.
{
"stock_code": "AWD-120",
"description": "Aluminium wall dowel, 120mm",
"category": "Fixings",
"unit_measure": "each",
"site": "Default",
"supplier": "Hartwell Supplies Ltd",
"lead_time_days": 14,
"unit_cost": 0.42,
"total_qty": 1980,
"total_price": 831.6,
"locations": [
{
"location_name": "Pick Wall",
"location_label": "Supermarket",
"qty": 140
},
{
"location_name": "Warehouse A",
"location_label": "Warehouse",
"qty": 1240
},
{
"location_name": "Bulk Bay 2",
"location_label": "Bulk",
"qty": 600
}
]
}
| Field | Type | Description |
|---|---|---|
stock_code | string | The stock code you asked for. |
description | string | null | The stock item’s description. |
category | string | null | The category the item is filed under. |
unit_measure | string | null | What quantities are counted in, for example each or kg. |
site | string | The site the stock is held at. |
supplier | string | null | The supplier you buy it from. |
lead_time_days | integer | null | How many days the supplier takes to deliver. |
unit_cost | number | null | What one unit costs. |
total_qty | number | Quantity held across every location. |
total_price | number | null | unit_cost multiplied by total_qty, or null when there is no unit cost. |
locations | object[] | One entry per location holding it: location_name, location_label and qty. |
The request body isn’t valid. site or stock_code is missing, or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site and stock_code are required and must be strings"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Inventory Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Inventory Management"
}
}
We couldn’t find what you asked for. Either the stock code doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Stock code AWD-999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/stock/historyGet stock history
Returns the audit trail for one stock code: every count, adjustment, delivery and transfer, with the quantity before and after, who made it and when. Newest first.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Inventory Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
stock_codeRequired | string | The stock code, for example AWD-120. Must match exactly. |
date_fromOptional | date | Only changes on or after this date, as YYYY-MM-DD. |
date_toOptional | date | Only changes on or before this date, as YYYY-MM-DD. |
{
"site": "Default",
"stock_code": "AWD-120",
"date_from": "2026-11-01"
}
curl -X GET "$PALLETABLE_API/v1/stock/history" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "stock_code": "AWD-120", "date_from": "2026-11-01" }'
Responses
Pick a status code to see what comes back.
Here is the history. Nothing in the date range returns 200 with an empty transactions list.
{
"stock_code": "AWD-120",
"site": "Default",
"transactions": [
{
"type": "Delivery",
"location_name": "Warehouse A",
"location_label": "Warehouse",
"qty_before": 1100,
"qty_after": 1240,
"change": 140,
"by": "Priya Shah",
"at": "2026-11-10T09:41:00Z"
},
{
"type": "Transfer Out",
"location_name": "Warehouse A",
"location_label": "Warehouse",
"qty_before": 1100,
"qty_after": 1040,
"change": -60,
"by": "Priya Shah",
"at": "2026-11-03T14:02:00Z"
}
]
}
| Field | Type | Description |
|---|---|---|
stock_code | string | The stock code you asked for. |
site | string | The site. |
transactions | object[] | Each change: type (for example Count, Adjustment, Delivery, Transfer In, Transfer Out), location_name, location_label, qty_before, qty_after, change (signed), by (the account’s name) and at (UTC). |
The request body isn’t valid. A required field is missing, a date isn’t YYYY-MM-DD, or date_from is after date_to.
{
"error": {
"code": "invalid_request",
"message": "date_from must be on or before date_to"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Inventory Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Inventory Management"
}
}
We couldn’t find what you asked for. Either the stock code doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Stock code AWD-999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/stock/adjustAdjust stock quantity
Adds stock to, or takes stock off, one location. Every adjustment creates an entry in the stock audit trail, the same as an adjustment made in the Palletable app, so it appears in your stock history and flowcharts. A quantity can’t be taken below zero.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Inventory Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
stock_codeRequired | string | The stock code, for example AWD-120. Must match exactly. |
locationRequired | string | The name of a stock location at the site, for example "Warehouse A". |
changeRequired | number | How much to add (positive) or remove (negative), for example 50 or -12. |
reasonOptional | string | Why the stock changed, for example "Damaged in transit". Saved with the audit-trail entry. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"stock_code": "AWD-120",
"location": "Warehouse A",
"change": -40,
"reason": "Damaged in transit",
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/stock/adjust" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "stock_code": "AWD-120", "location": "Warehouse A", "change": -40, "reason": "Damaged in transit", "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The quantity was changed and logged. The response shows the quantity before and after, and the transaction_id of the audit-trail entry.
{
"stock_code": "AWD-120",
"site": "Default",
"location_name": "Warehouse A",
"location_label": "Warehouse",
"previous_qty": 1240,
"new_qty": 1200,
"change": -40,
"transaction_id": 48213
}
| Field | Type | Description |
|---|---|---|
stock_code | string | The stock code. |
site | string | The site. |
location_name | string | The location that changed. |
location_label | string | Its label. |
previous_qty | number | Quantity before the change. |
new_qty | number | Quantity after the change. |
change | number | The change you made. |
transaction_id | integer | The ID of the audit-trail entry created for this change. |
The change can’t be made. A field is missing or isn’t a number, or the change would take the quantity below zero.
{
"error": {
"code": "invalid_request",
"message": "That would take the quantity below zero"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Inventory Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Inventory Management"
}
}
We couldn’t find what you asked for. The site, stock code or location doesn’t exist, or that stock code isn’t held in that location.
{
"error": {
"code": "not_found",
"message": "AWD-120 is not held in location Warehouse A"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/stock/transferTransfer stock between locations
Moves stock from one location to another at the same site in a single step. Both changes are recorded in the audit trail, and either both happen or neither does.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Inventory Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
stock_codeRequired | string | The stock code, for example AWD-120. Must match exactly. |
from_locationRequired | string | The location to take stock from. |
to_locationRequired | string | The location to move it to. It must already hold this stock code. |
qtyRequired | number | How much to move. Must be above zero. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"stock_code": "AWD-120",
"from_location": "Warehouse A",
"to_location": "Pick Wall",
"qty": 100,
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/stock/transfer" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "stock_code": "AWD-120", "from_location": "Warehouse A", "to_location": "Pick Wall", "qty": 100, "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The stock was moved. The response shows each location’s new quantity.
{
"stock_code": "AWD-120",
"site": "Default",
"qty": 100,
"from": {
"location_name": "Warehouse A",
"location_label": "Warehouse",
"new_qty": 1140
},
"to": {
"location_name": "Pick Wall",
"location_label": "Supermarket",
"new_qty": 240
}
}
| Field | Type | Description |
|---|---|---|
stock_code | string | The stock code moved. |
site | string | The site. |
qty | number | How much was moved. |
from | object | The source: location_name, location_label and new_qty. |
to | object | The destination, in the same shape. |
The transfer can’t be made. A field is missing, qty isn’t above zero, the two locations are the same, or the source doesn’t hold enough.
{
"error": {
"code": "invalid_request",
"message": "Warehouse A only holds 60 of AWD-120"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Inventory Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Inventory Management"
}
}
We couldn’t find what you asked for. The site, stock code or one of the locations doesn’t exist, or the stock code isn’t held in both.
{
"error": {
"code": "not_found",
"message": "AWD-120 is not held in location Pick Wall"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/stock/itemsCreate stock item
Adds a new stock code at a site. It starts with no quantity in any location; use Adjust stock to put stock in.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Inventory Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
stock_codeRequired | string | The new stock code. Must not already exist at the site. |
descriptionOptional | string | What the item is. |
categoryOptional | string | The category it is filed under. |
unit_measureOptional | string | What quantities are counted in, for example each or kg. |
unit_costOptional | number | What one unit costs. |
supplierOptional | string | The name of an existing supplier at the site. |
lead_time_daysOptional | integer | How many days the supplier takes to deliver. |
top_up_daysOptional | integer | How many days of demand to order enough to cover. |
threshold_qtyOptional | number | Re-order when stock falls to this quantity. |
cycle_classOptional | string | The cycle-count class for the item. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"stock_code": "AWD-200",
"description": "Aluminium wall dowel, 200mm",
"category": "Fixings",
"unit_measure": "each",
"unit_cost": 0.58,
"supplier": "Hartwell Supplies Ltd",
"lead_time_days": 14,
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/stock/items" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "stock_code": "AWD-200", "description": "Aluminium wall dowel, 200mm", "category": "Fixings", "unit_measure": "each", "unit_cost": 0.58, "supplier": "Hartwell Supplies Ltd", "lead_time_days": 14, "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The stock code was created. Anything you didn’t send comes back as null.
{
"stock_code": "AWD-200",
"site": "Default",
"description": "Aluminium wall dowel, 200mm",
"category": "Fixings",
"unit_measure": "each",
"unit_cost": 0.58,
"supplier": "Hartwell Supplies Ltd",
"lead_time_days": 14,
"top_up_days": null,
"threshold_qty": null,
"cycle_class": null
}
| Field | Type | Description |
|---|---|---|
stock_code | string | The new stock code. |
site | string | The site. |
description … cycle_class | mixed | Each field you can send, as saved. Fields you left out are null. |
The request body isn’t valid. A required field is missing, a value is the wrong type, or the supplier doesn’t exist at the site.
{
"error": {
"code": "invalid_request",
"message": "Supplier Hartwell Supplies Ltd was not found at site Default"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Inventory Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Inventory Management"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
That stock code already exists at the site.
{
"error": {
"code": "conflict",
"message": "Stock code AWD-200 already exists at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
PATCH/v1/stock/itemsUpdate stock item
Changes details of an existing stock code. Only the fields you send are changed. Send null to clear an optional field.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Inventory Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
stock_codeRequired | string | The stock code, for example AWD-120. Must match exactly. |
descriptionOptional | string | What the item is. |
categoryOptional | string | The category it is filed under. |
unit_measureOptional | string | What quantities are counted in, for example each or kg. |
unit_costOptional | number | What one unit costs. |
supplierOptional | string | The name of an existing supplier at the site. |
lead_time_daysOptional | integer | How many days the supplier takes to deliver. |
top_up_daysOptional | integer | How many days of demand to order enough to cover. |
threshold_qtyOptional | number | Re-order when stock falls to this quantity. |
cycle_classOptional | string | The cycle-count class for the item. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"stock_code": "AWD-120",
"unit_cost": 0.45,
"lead_time_days": 10,
"performed_by": "Sam Taylor"
}
curl -X PATCH "$PALLETABLE_API/v1/stock/items" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "stock_code": "AWD-120", "unit_cost": 0.45, "lead_time_days": 10, "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The stock code was updated. The response shows the item as it is now.
{
"stock_code": "AWD-120",
"site": "Default",
"description": "Aluminium wall dowel, 120mm",
"category": "Fixings",
"unit_measure": "each",
"unit_cost": 0.45,
"supplier": "Hartwell Supplies Ltd",
"lead_time_days": 10,
"top_up_days": 30,
"threshold_qty": 500,
"cycle_class": "A"
}
| Field | Type | Description |
|---|---|---|
stock_code | string | The stock code. |
site | string | The site. |
description … cycle_class | mixed | Each field you can send, as saved. |
The request body isn’t valid. A value is the wrong type, or the supplier doesn’t exist at the site.
{
"error": {
"code": "invalid_request",
"message": "Supplier Hartwell Supplies Ltd was not found at site Default"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Inventory Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Inventory Management"
}
}
We couldn’t find what you asked for. Either the stock code doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Stock code AWD-999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
Procurement
GET/v1/suppliersList suppliers
Returns the suppliers you buy from at a site, sorted by name.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
searchOptional | string | Only suppliers whose name contains this text. |
{
"site": "Default",
"search": "hart"
}
curl -X GET "$PALLETABLE_API/v1/suppliers" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "search": "hart" }'
Responses
Pick a status code to see what comes back.
Here are the suppliers. No matches returns 200 with an empty list.
{
"site": "Default",
"suppliers": [
{
"supplier_name": "Hartwell Supplies Ltd",
"email": "orders@hartwell.example",
"address": "12 Mill Lane, Leeds",
"postcode": "LS1 4AB",
"country": "United Kingdom"
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
suppliers | object[] | Each supplier: supplier_name, email, address, postcode and country. |
The request body isn’t valid. site is missing or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site is required and must be a string"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/suppliersCreate supplier
Adds a supplier at a site so it can be linked to stock codes and purchase orders.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
supplier_nameRequired | string | The supplier’s name. Must be unique at the site. |
addressOptional | string | Where the supplier is. Printed as the “From” address on purchase orders. |
postcodeOptional | string | Postcode. |
countryOptional | string | Country. |
emailOptional | string | Where purchase orders are emailed. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"supplier_name": "Hartwell Supplies Ltd",
"email": "orders@hartwell.example",
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/suppliers" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "supplier_name": "Hartwell Supplies Ltd", "email": "orders@hartwell.example", "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The supplier was created.
{
"site": "Default",
"supplier_name": "Hartwell Supplies Ltd",
"email": "orders@hartwell.example",
"address": "12 Mill Lane, Leeds",
"postcode": "LS1 4AB",
"country": "United Kingdom"
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
supplier_name | string | The supplier’s name. |
email | string | null | Where purchase orders are emailed. |
address | string | null | Where the supplier is. |
postcode | string | null | Postcode. |
country | string | null | Country. |
The request body isn’t valid. supplier_name is missing or empty, or a value is the wrong type.
{
"error": {
"code": "invalid_request",
"message": "supplier_name is required"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
That supplier already exists at the site.
{
"error": {
"code": "conflict",
"message": "Supplier Hartwell Supplies Ltd already exists at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/suppliers/scorecardGet supplier scorecard
Returns how a supplier is performing over a date range: the on-time score, what you have spent, the value of orders raised and the live value of the stock they supply. The range can be up to 366 days and defaults to the last 30.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
supplierRequired | string | The supplier’s name. |
date_fromOptional | date | Start of the range, as YYYY-MM-DD. |
date_toOptional | date | End of the range, as YYYY-MM-DD. |
{
"site": "Default",
"supplier": "Hartwell Supplies Ltd",
"date_from": "2026-10-13",
"date_to": "2026-11-12"
}
curl -X GET "$PALLETABLE_API/v1/suppliers/scorecard" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "supplier": "Hartwell Supplies Ltd", "date_from": "2026-10-13", "date_to": "2026-11-12" }'
Responses
Pick a status code to see what comes back.
Here is the scorecard. on_time_percent is null when none of the supplier’s orders delivered in the range has a verdict.
{
"supplier": "Hartwell Supplies Ltd",
"site": "Default",
"date_from": "2026-10-13",
"date_to": "2026-11-12",
"on_time_percent": 92.0,
"orders_delivered": 12,
"order_value": 5230.5,
"stock_value": 3180.25
}
| Field | Type | Description |
|---|---|---|
supplier | string | The supplier. |
site | string | The site. |
date_from / date_to | date | The range used. |
on_time_percent | number | null | The percentage of the supplier’s orders delivered in the range that arrived on time. |
orders_delivered | integer | Orders delivered in the range. |
order_value | number | The value of orders raised in the range. |
stock_value | number | The live value of the stock they supply (quantity multiplied by unit cost). |
The request body isn’t valid. A required field is missing, date_from is after date_to, or the range is longer than 366 days.
{
"error": {
"code": "invalid_request",
"message": "Choose a range of 366 days or fewer"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find what you asked for. Either the supplier doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Supplier Hartwell Supplies Ltd was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/purchase-ordersList purchase orders
Returns the purchase orders at a site, newest first. Filter by status, search the number, name or supplier, or find orders delivered in a date range.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
statusOptional | string | One of Suggested, Requested, Awaiting Approval, Open, Delivered or Closed. |
searchOptional | string | Matches the purchase order number, name or supplier. |
delivered_fromOptional | date | Only orders delivered on or after this date. |
delivered_toOptional | date | Only orders delivered on or before this date. |
{
"site": "Default",
"status": "Open"
}
curl -X GET "$PALLETABLE_API/v1/purchase-orders" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "status": "Open" }'
Responses
Pick a status code to see what comes back.
Here are the purchase orders. No matches returns 200 with an empty list.
{
"site": "Default",
"count": 1,
"purchase_orders": [
{
"po_number": "PO-0231",
"po_name": "Fixings restock",
"supplier": "Hartwell Supplies Ltd",
"status": "Open",
"due_date": "2026-11-28",
"late": false,
"total_value": 420.0,
"line_count": 1
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
count | integer | How many matched. |
purchase_orders | object[] | Each order: po_number, po_name, supplier, status, due_date, late, total_value and line_count. |
The request body isn’t valid. status isn’t one of the allowed values, or a date isn’t YYYY-MM-DD.
{
"error": {
"code": "invalid_request",
"message": "status must be one of: Suggested, Requested, Awaiting Approval, Open, Delivered, Closed"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/purchase-orders/detailsGet purchase order
Returns one purchase order with all of its lines.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
po_numberRequired | string | The purchase order’s number, for example PO-0231. |
{
"site": "Default",
"po_number": "PO-0231"
}
curl -X GET "$PALLETABLE_API/v1/purchase-orders/details" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "po_number": "PO-0231" }'
Responses
Pick a status code to see what comes back.
The purchase order was found. Lines that have no unit cost come back with null costs and aren’t counted in total_value.
{
"po_number": "PO-0231",
"po_name": "Fixings restock",
"site": "Default",
"supplier": "Hartwell Supplies Ltd",
"status": "Open",
"due_date": "2026-11-28",
"late": false,
"total_value": 420.0,
"lines": [
{
"stock_code": "AWD-120",
"description": "Aluminium wall dowel, 120mm",
"order_qty": 1000,
"unit_cost": 0.42,
"total_cost": 420.0,
"expected_delivery": "2026-11-26"
}
]
}
| Field | Type | Description |
|---|---|---|
po_number | string | The purchase order’s number. |
po_name | string | null | Its name. |
site | string | The site. |
supplier | string | null | The supplier it is raised against. |
status | string | One of Suggested, Requested, Awaiting Approval, Open, Delivered or Closed. |
due_date | date | null | When it is due, as YYYY-MM-DD. |
late | boolean | true when it is open and past its due date. |
total_value | number | The sum of the line totals. |
lines | object[] | One entry per line: stock_code, description, order_qty, unit_cost, total_cost and expected_delivery. |
The request body isn’t valid. site or po_number is missing, or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site and po_number are required and must be strings"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find what you asked for. Either the purchase order doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Purchase order PO-9999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/purchase-ordersCreate purchase order
Raises a purchase order against a supplier, with its lines. Cost, supplier and lead time on each line are copied from the stock code unless you send them. If the order’s total goes over the limit set for your key’s account it is created as Awaiting Approval.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
po_numberRequired | string | The order’s number. Must be unique at the site. |
supplierRequired | string | The supplier’s name. |
po_nameOptional | string | A name for the order. |
due_dateOptional | date | When it is due, as YYYY-MM-DD. |
linesRequired | object[] | At least one line: stock_code and qty are required; unit_cost and expected_delivery are optional. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"po_number": "PO-0231",
"supplier": "Hartwell Supplies Ltd",
"po_name": "Fixings restock",
"due_date": "2026-11-28",
"lines": [
{
"stock_code": "AWD-120",
"qty": 1000,
"expected_delivery": "2026-11-26"
}
],
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/purchase-orders" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "po_number": "PO-0231", "supplier": "Hartwell Supplies Ltd", "po_name": "Fixings restock", "due_date": "2026-11-28", "lines": [ { "stock_code": "AWD-120", "qty": 1000, "expected_delivery": "2026-11-26" } ], "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The purchase order was created. It is Open unless it needed approval.
{
"po_number": "PO-0231",
"po_name": "Fixings restock",
"site": "Default",
"supplier": "Hartwell Supplies Ltd",
"status": "Open",
"due_date": "2026-11-28",
"late": false,
"total_value": 420.0,
"lines": [
{
"stock_code": "AWD-120",
"description": "Aluminium wall dowel, 120mm",
"order_qty": 1000,
"unit_cost": 0.42,
"total_cost": 420.0,
"expected_delivery": "2026-11-26"
}
]
}
| Field | Type | Description |
|---|---|---|
po_number | string | The purchase order’s number. |
po_name | string | null | Its name. |
site | string | The site. |
supplier | string | null | The supplier it is raised against. |
status | string | One of Suggested, Requested, Awaiting Approval, Open, Delivered or Closed. |
due_date | date | null | When it is due, as YYYY-MM-DD. |
late | boolean | true when it is open and past its due date. |
total_value | number | The sum of the line totals. |
lines | object[] | The lines as saved. |
The request body isn’t valid. A required field is missing, a quantity isn’t above zero, or the supplier or a stock code doesn’t exist at the site.
{
"error": {
"code": "invalid_request",
"message": "Stock code AWD-999 was not found at site Default"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
That purchase order number is already in use at the site.
{
"error": {
"code": "conflict",
"message": "Purchase order PO-0231 already exists at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
PATCH/v1/purchase-ordersUpdate purchase order
Changes a purchase order’s name, supplier, due date or status. Only the fields you send are changed. Send null for due_date to clear it.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
po_numberRequired | string | The order to change. |
new_po_numberOptional | string | A new number for the order. |
po_nameOptional | string | A new name. |
supplierOptional | string | A different supplier, by name. |
due_dateOptional | date | null | A new due date, as YYYY-MM-DD. |
statusOptional | string | A new status. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"po_number": "PO-0231",
"due_date": "2026-12-05",
"performed_by": "Sam Taylor"
}
curl -X PATCH "$PALLETABLE_API/v1/purchase-orders" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "po_number": "PO-0231", "due_date": "2026-12-05", "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The purchase order was updated. The response shows it as it is now.
{
"po_number": "PO-0231",
"po_name": "Fixings restock",
"site": "Default",
"supplier": "Hartwell Supplies Ltd",
"status": "Open",
"due_date": "2026-11-28",
"late": false,
"total_value": 420.0,
"lines": [
{
"stock_code": "AWD-120",
"description": "Aluminium wall dowel, 120mm",
"order_qty": 1000,
"unit_cost": 0.42,
"total_cost": 420.0,
"expected_delivery": "2026-11-26"
}
]
}
| Field | Type | Description |
|---|---|---|
po_number | string | The purchase order’s number. |
po_name | string | null | Its name. |
site | string | The site. |
supplier | string | null | The supplier it is raised against. |
status | string | One of Suggested, Requested, Awaiting Approval, Open, Delivered or Closed. |
due_date | date | null | When it is due, as YYYY-MM-DD. |
late | boolean | true when it is open and past its due date. |
total_value | number | The sum of the line totals. |
lines | object[] | The lines on the order. |
The request body isn’t valid. A value is the wrong type, status isn’t allowed, or the supplier doesn’t exist at the site.
{
"error": {
"code": "invalid_request",
"message": "Supplier Hartwell Supplies Ltd was not found at site Default"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find what you asked for. Either the purchase order doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Purchase order PO-9999 was not found at site Default"
}
}
That purchase order number is already in use at the site.
{
"error": {
"code": "conflict",
"message": "Purchase order PO-0232 already exists at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/purchase-orders/deliveriesBook in a delivery
Books in what arrived against a purchase order, all or nothing. Stock goes up in the location you choose for each line and a Delivery is recorded in the audit trail. The order closes as Delivered. Anything that arrived short moves onto a new open order named with “- Remaining”, unless you say not to.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
po_numberRequired | string | The order being delivered. |
linesRequired | object[] | Every line on the order, each once: stock_code, delivered_qty and location (a Warehouse or Bulk location that already holds the item). |
leave_remainingOptional | boolean | true (default) moves a shortfall onto a new “- Remaining” order. false closes the order at what arrived. |
on_timeOptional | boolean | Whether the delivery was on time. If left out, each line is judged against its expected delivery date. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"po_number": "PO-0231",
"lines": [
{
"stock_code": "AWD-120",
"delivered_qty": 900,
"location": "Warehouse A"
}
],
"leave_remaining": true,
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/purchase-orders/deliveries" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "po_number": "PO-0231", "lines": [ { "stock_code": "AWD-120", "delivered_qty": 900, "location": "Warehouse A" } ], "leave_remaining": true, "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The delivery was booked in. remaining_po_number is the new order holding any shortfall, or null if nothing is outstanding.
{
"po_number": "PO-0231",
"site": "Default",
"status": "Delivered",
"remaining_po_number": "PO-0231 - Remaining",
"lines": [
{
"stock_code": "AWD-120",
"ordered_qty": 1000,
"delivered_qty": 900,
"location_name": "Warehouse A",
"new_qty": 2140
}
]
}
| Field | Type | Description |
|---|---|---|
po_number | string | The order delivered. |
site | string | The site. |
status | string | Always Delivered. |
remaining_po_number | string | null | The new order holding any shortfall. |
lines | object[] | Each line: stock_code, ordered_qty, delivered_qty, location_name and the location’s new_qty. |
The delivery can’t be booked in. A line is missing, a quantity isn’t a number, a location isn’t a Warehouse or Bulk location holding the item, or the order has already been delivered. Nothing is booked.
{
"error": {
"code": "invalid_request",
"message": "Purchase order PO-0231 has already been delivered"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find what you asked for. Either the purchase order doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Purchase order PO-9999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/deliveriesBook in stock without a purchase order
Books stock in when there is no purchase order, for example a delivery you didn’t raise an order for. Every line is checked first, and if any is invalid nothing is booked.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
linesRequired | object[] | At least one line: stock_code, qty (above zero) and optionally location (a Warehouse or Bulk location). If you leave out the location the site’s Warehouse is used. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"lines": [
{
"stock_code": "AWD-120",
"qty": 250,
"location": "Warehouse A"
}
],
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/deliveries" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "lines": [ { "stock_code": "AWD-120", "qty": 250, "location": "Warehouse A" } ], "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The stock was booked in.
{
"site": "Default",
"lines": [
{
"stock_code": "AWD-120",
"qty": 250,
"location_name": "Warehouse A",
"new_qty": 1490
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
lines | object[] | Each line: stock_code, qty, location_name and the location’s new_qty. |
One or more lines are invalid, so nothing was booked. The error lists the position of each bad line.
{
"error": {
"code": "invalid_request",
"message": "Line 1: AWD-999 is not a stock code at site Default"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/suggested-ordersGet suggested orders
Returns what Palletable suggests you order at a site, worked out from recent usage and each supplier’s lead time. Nothing is ordered automatically; a person or your own system decides what to raise.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
{
"site": "Default"
}
curl -X GET "$PALLETABLE_API/v1/suggested-orders" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default" }'
Responses
Pick a status code to see what comes back.
Here are the suggestions. Nothing needing to be ordered returns 200 with an empty list.
{
"site": "Default",
"suggestions": [
{
"stock_code": "AWD-120",
"description": "Aluminium wall dowel, 120mm",
"supplier": "Hartwell Supplies Ltd",
"current_qty": 420,
"on_order_qty": 0,
"daily_usage": 38.5,
"suggested_qty": 1200
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
suggestions | object[] | Each suggestion: stock_code, description, supplier, current_qty (supermarket and warehouse stock), on_order_qty, daily_usage and suggested_qty. |
The request body isn’t valid. site is missing or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site is required and must be a string"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/requested-stockRequest stock
Asks for a quantity of a stock code to be ordered. It joins the site’s Requested Stock list and counts as already on order, so it isn’t suggested twice. Asking again for the same code changes its quantity.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
stock_codeRequired | string | The stock code, for example AWD-120. Must match exactly. |
qtyRequired | number | How much to request. Must be above zero. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"stock_code": "AWD-120",
"qty": 500,
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/requested-stock" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "stock_code": "AWD-120", "qty": 500, "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The request was saved.
{
"site": "Default",
"stock_code": "AWD-120",
"requested_qty": 500
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
stock_code | string | The stock code requested. |
requested_qty | number | The quantity now requested. |
The request body isn’t valid. A field is missing or qty isn’t above zero.
{
"error": {
"code": "invalid_request",
"message": "qty must be above zero"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find what you asked for. Either the stock code doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Stock code AWD-999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/price-historyGet price history
Returns every unit price you have paid for a stock code on real orders (open or delivered), by supplier, newest first. Suggested, requested and cancelled orders aren’t included.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Procurement.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
stock_codeRequired | string | The stock code, for example AWD-120. Must match exactly. |
{
"site": "Default",
"stock_code": "AWD-120"
}
curl -X GET "$PALLETABLE_API/v1/price-history" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "stock_code": "AWD-120" }'
Responses
Pick a status code to see what comes back.
Here is the price history. A code that has never been ordered returns 200 with an empty list.
{
"stock_code": "AWD-120",
"site": "Default",
"prices": [
{
"date": "2026-11-10",
"po_number": "PO-0231",
"supplier": "Hartwell Supplies Ltd",
"qty": 1000,
"unit_cost": 0.42
},
{
"date": "2026-08-04",
"po_number": "PO-0187",
"supplier": "Hartwell Supplies Ltd",
"qty": 800,
"unit_cost": 0.39
}
]
}
| Field | Type | Description |
|---|---|---|
stock_code | string | The stock code. |
site | string | The site. |
prices | object[] | Each price: date, po_number, supplier, qty and unit_cost. |
The request body isn’t valid. site or stock_code is missing, or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site and stock_code are required and must be strings"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Procurement, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Procurement"
}
}
We couldn’t find what you asked for. Either the stock code doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Stock code AWD-999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
Order Management
GET/v1/productsList products
Returns the product SKUs you can put on an order, with the attributes each one needs a value for. Use it to build valid orders.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
searchOptional | string | Only products whose SKU or alias contains this text. |
{
"site": "Default"
}
curl -X GET "$PALLETABLE_API/v1/products" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default" }'
Responses
Pick a status code to see what comes back.
Here are the products. No matches returns 200 with an empty list.
{
"site": "Default",
"products": [
{
"product_sku": "CANVAS-30x40",
"alias": "Canvas print 30x40cm",
"category": "Canvas prints",
"attributes": [
{
"name": "Frame colour",
"type": "text"
},
{
"name": "Finish",
"type": "text"
}
]
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
products | object[] | Each product: product_sku, alias, category and attributes (each with a name and a type of text, whole number, decimal or yes/no). |
The request body isn’t valid. site is missing or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site is required and must be a string"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/ordersCreate or update order
Creates an order from items and quantities. Every unit gets its own unique 12-digit barcode. For a single item send one entry in items with a qty of 1. One request can hold up to 500 item lines and 5,000 units in total.
If an order with the same order_number already exists at the site, it is updated instead of refused, and the response is 200 (a new order is 201). Only the order fields you send are changed. Each item line is matched to the order’s existing units by product and attributes, and its qty is the total you want for that line: a higher number adds units with new barcodes, a lower number removes the surplus. Existing barcodes never change, and lines you leave out are left alone. Units that are already shipped, in a batch or being worked on are never changed or removed.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired* | string | The name of the site, exactly as it appears in Palletable, for example "Default". *Send this or site_id. |
site_idRequired* | integer | The site’s id, as an alternative to site. If you send both they must be the same site. |
create_missingOptional | boolean | Defaults to false. When true, a client or product SKU that doesn’t exist yet is created with just its name, and any attribute the product doesn’t have is added to it (a new attribute’s type is taken from the value you send: text, whole number, decimal or true/false). Attributes you leave out are not required. Creating SKUs or attributes also needs the key to have Manufacturing Setup with Product SKUs. The response lists what was created. |
order_numberOptional | string | Your own order number. If left out or blank the next automatic ORD- number is used. If it already exists at the site, that order is updated. |
order_dateOptional | datetime | When the order was placed. Defaults to now. |
due_dateOptional | datetime | When it is due. Orders without a due date aren’t judged on time. |
clientOptional | string | The name of an existing client at the site. |
customerOptional | string | The customer’s name. Up to 200 characters. |
delivery_addressOptional | string | The street line. Up to 500 characters. |
delivery_address_cityOptional | string | The town or city. Up to 200 characters. |
delivery_address_countyOptional | string | The county or state. Up to 200 characters. |
delivery_postcodeOptional | string | Up to 20 characters. |
destination_countryOptional | string | Up to 200 characters. |
recipient_phoneOptional | string | The recipient’s phone number, for the courier. Up to 50 characters. |
recipient_emailOptional | string | The recipient’s email address, for the courier. Up to 254 characters. |
packagingOptional | string | How the order is packed, for example "A4+ Colompack envelope". Up to 200 characters. |
weightOptional | number | The parcel’s weight in kilograms. Zero or more. |
heightOptional | number | The parcel’s height in millimetres. Zero or more. |
widthOptional | number | The parcel’s width in millimetres. Zero or more. |
depthOptional | number | The parcel’s depth in millimetres. Zero or more. |
volumeOptional | number | The parcel’s volume in cubic millimetres. Zero or more. Stored as sent: it isn’t worked out from the height, width and depth. |
courierOptional | string | The courier. |
courier_serviceOptional | string | The courier’s service. |
itemsRequired | object[] | The products ordered. A line can also carry its own courier and courier_service, which replace the order’s for that line. Each has a product (the SKU), attributes (a value for every attribute the product has, as an object of name and value), qty (whole number, default 1) and an optional sale_price per unit. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"order_number": "ORD-1042",
"due_date": "2026-11-19",
"client": "Acme Ltd",
"customer": "J. Patel",
"delivery_address": "4 Station Road, Leeds",
"delivery_address_city": "Leeds",
"delivery_address_county": "West Yorkshire",
"delivery_postcode": "LS1 4AB",
"destination_country": "United Kingdom",
"recipient_phone": "+44 113 496 0000",
"recipient_email": "j.patel@example.com",
"packaging": "A4+ Colompack envelope",
"weight": 1.2,
"height": 400,
"width": 300,
"depth": 50,
"volume": 6000000,
"items": [
{
"product": "CANVAS-30x40",
"attributes": {
"Frame colour": "Black",
"Finish": "Matte"
},
"qty": 2,
"sale_price": 24.5
}
],
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/orders" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "order_number": "ORD-1042", "due_date": "2026-11-19", "client": "Acme Ltd", "customer": "J. Patel", "delivery_address": "4 Station Road, Leeds", "delivery_address_city": "Leeds", "delivery_address_county": "West Yorkshire", "delivery_postcode": "LS1 4AB", "destination_country": "United Kingdom", "recipient_phone": "+44 113 496 0000", "recipient_email": "j.patel@example.com", "packaging": "A4+ Colompack envelope", "weight": 1.2, "height": 400, "width": 300, "depth": 50, "volume": 6000000, "items": [ { "product": "CANVAS-30x40", "attributes": { "Frame colour": "Black", "Finish": "Matte" }, "qty": 2, "sale_price": 24.5 } ], "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The order was created. Each unit comes back with its barcode.
{
"order_number": "ORD-1042",
"site": "Default",
"order_date": "2026-11-12T09:30:00Z",
"due_date": "2026-11-19T00:00:00Z",
"client": "Acme Ltd",
"customer": "J. Patel",
"delivery_address": "4 Station Road, Leeds",
"delivery_address_city": "Leeds",
"delivery_address_county": "West Yorkshire",
"delivery_postcode": "LS1 4AB",
"destination_country": "United Kingdom",
"recipient_phone": "+44 113 496 0000",
"recipient_email": "j.patel@example.com",
"packaging": "A4+ Colompack envelope",
"weight": 1.2,
"height": 400,
"width": 300,
"depth": 50,
"volume": 6000000,
"courier": "DPD",
"courier_service": "Next day",
"item_count": 2,
"items": [
{
"barcode": "482910357716",
"product": "CANVAS-30x40"
},
{
"barcode": "730164829351",
"product": "CANVAS-30x40"
}
]
}
| Field | Type | Description |
|---|---|---|
order_number | string | The order’s number. |
site | string | The site. |
order_date | datetime | When it was placed (UTC). |
due_date | datetime | null | When it is due (UTC). |
client | string | null | The client, if one is set. |
customer | string | null | The customer’s name. |
delivery_address | string | null | The street line of the address. |
delivery_address_city | string | null | The town or city. |
delivery_address_county | string | null | The county or state. |
delivery_postcode | string | null | Postcode. |
destination_country | string | null | Country. |
recipient_phone | string | null | The recipient’s phone number. |
recipient_email | string | null | The recipient’s email address. |
packaging | string | null | How the order is packed. |
weight | number | null | Weight in kilograms. |
height | number | null | Height in millimetres. |
width | number | null | Width in millimetres. |
depth | number | null | Depth in millimetres. |
volume | number | null | Volume in cubic millimetres. |
courier | string | null | The courier. |
courier_service | string | null | The courier’s service. |
created | object | What create_missing had to create: client, products, attributes and product_attributes (SKU and attribute pairs newly linked). Empty when nothing was created. |
item_count | integer | How many units were created. |
items | object[] | One entry per unit: its barcode and product. |
The request body isn’t valid. A required field is missing, a product or client doesn’t exist at the site, an attribute value is missing or the wrong type, or the request is over 500 item lines or 5,000 units.
{
"error": {
"code": "invalid_request",
"message": "CANVAS-30x40 needs a value for Finish"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
The update would change units that can no longer change, for example lowering a qty below the number already shipped, batched or in production. Nothing is saved.
{
"error": {
"code": "conflict",
"message": "Order ORD-1042: can't reduce AWD-120 to 2 because 3 of its 5 units are already shipped, batched or in production"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/ordersList open orders
Returns the orders at a site that are still to ship, newest first. Filter by order date or due date. Up to 5,000 units are returned at a time (20,000 at most).
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
order_fromOptional | date | Only orders placed on or after this date. |
order_toOptional | date | Only orders placed on or before this date. |
due_fromOptional | date | Only orders due on or after this date. |
due_toOptional | date | Only orders due on or before this date. |
limitOptional | integer | Most units to return. Defaults to 5,000. |
{
"site": "Default",
"due_from": "2026-11-12",
"due_to": "2026-11-30"
}
curl -X GET "$PALLETABLE_API/v1/orders" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "due_from": "2026-11-12", "due_to": "2026-11-30" }'
Responses
Pick a status code to see what comes back.
Here are the open orders. No matches returns 200 with an empty list.
{
"site": "Default",
"count": 1,
"orders": [
{
"order_number": "ORD-1042",
"order_date": "2026-11-12T09:30:00Z",
"due_date": "2026-11-19T00:00:00Z",
"client": "Acme Ltd",
"customer": "J. Patel",
"item_count": 2
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
count | integer | How many orders matched. |
orders | object[] | Each order: order_number, order_date, due_date, client, customer and item_count. |
The request body isn’t valid. A date isn’t YYYY-MM-DD, or a range starts after it ends.
{
"error": {
"code": "invalid_request",
"message": "A date range must start on or before it ends"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/orders/detailsGet order
Returns one order with every unit on it, shipped or not.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
order_numberRequired | string | The order’s number, for example ORD-1042. |
{
"site": "Default",
"order_number": "ORD-1042"
}
curl -X GET "$PALLETABLE_API/v1/orders/details" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "order_number": "ORD-1042" }'
Responses
Pick a status code to see what comes back.
The order was found.
{
"order_number": "ORD-1042",
"site": "Default",
"order_date": "2026-11-12T09:30:00Z",
"due_date": "2026-11-19T00:00:00Z",
"client": "Acme Ltd",
"customer": "J. Patel",
"delivery_address": "4 Station Road, Leeds",
"delivery_address_city": "Leeds",
"delivery_address_county": "West Yorkshire",
"delivery_postcode": "LS1 4AB",
"destination_country": "United Kingdom",
"recipient_phone": "+44 113 496 0000",
"recipient_email": "j.patel@example.com",
"packaging": "A4+ Colompack envelope",
"weight": 1.2,
"height": 400,
"width": 300,
"depth": 50,
"volume": 6000000,
"courier": "DPD",
"courier_service": "Next day",
"items": [
{
"barcode": "482910357716",
"product": "CANVAS-30x40",
"attributes": {
"Frame colour": "Black",
"Finish": "Matte"
},
"sale_price": 24.5,
"shipped": false
}
]
}
| Field | Type | Description |
|---|---|---|
order_number | string | The order’s number. |
site | string | The site. |
order_date | datetime | When it was placed (UTC). |
due_date | datetime | null | When it is due (UTC). |
client | string | null | The client, if one is set. |
customer | string | null | The customer’s name. |
delivery_address | string | null | The street line of the address. |
delivery_address_city | string | null | The town or city. |
delivery_address_county | string | null | The county or state. |
delivery_postcode | string | null | Postcode. |
destination_country | string | null | Country. |
recipient_phone | string | null | The recipient’s phone number. |
recipient_email | string | null | The recipient’s email address. |
packaging | string | null | How the order is packed. |
weight | number | null | Weight in kilograms. |
height | number | null | Height in millimetres. |
width | number | null | Width in millimetres. |
depth | number | null | Depth in millimetres. |
volume | number | null | Volume in cubic millimetres. |
courier | string | null | The courier. |
courier_service | string | null | The courier’s service. |
items | object[] | One entry per unit: barcode, product, attributes, sale_price and shipped. |
The request body isn’t valid. site or order_number is missing, or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site and order_number are required and must be strings"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find what you asked for. Either the order doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Order ORD-9999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/orders/statusGet order status
Returns where an order is up to. Every unit is listed with each scan it has had at a workstation: who scanned it and when. A unit is wherever its last scan says it is.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
order_numberRequired | string | The order’s number. |
{
"site": "Default",
"order_number": "ORD-1042"
}
curl -X GET "$PALLETABLE_API/v1/orders/status" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "order_number": "ORD-1042" }'
Responses
Pick a status code to see what comes back.
The order was found. shipped is true once every unit has shipped. A unit with no scans yet has an empty scans list.
{
"order_number": "ORD-1042",
"site": "Default",
"shipped": false,
"items": [
{
"barcode": "482910357716",
"product": "CANVAS-30x40",
"shipped": false,
"scans": [
{
"workstation": "Print 1",
"scanned_by": "Priya Shah",
"scanned_at": "2026-11-12T10:15:00Z"
},
{
"workstation": "Packing 1",
"scanned_by": "Tom Reid",
"scanned_at": "2026-11-12T13:40:00Z"
}
]
}
]
}
| Field | Type | Description |
|---|---|---|
order_number | string | The order. |
site | string | The site. |
shipped | boolean | true when every unit has shipped. |
items | object[] | Each unit: barcode, product, shipped and scans, oldest first, each with workstation, scanned_by and scanned_at (UTC). |
The request body isn’t valid. site or order_number is missing, or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site and order_number are required and must be strings"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find what you asked for. Either the order doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Order ORD-9999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
PATCH/v1/ordersUpdate order
Changes the details of an order. Only the fields you send are changed, and they apply to every unit on the order.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
order_numberRequired | string | The order to change. |
order_dateOptional | datetime | When the order was placed. Defaults to now. |
due_dateOptional | datetime | When it is due. Orders without a due date aren’t judged on time. |
clientOptional | string | The name of an existing client at the site. |
customerOptional | string | The customer’s name. Up to 200 characters. |
delivery_addressOptional | string | The street line. Up to 500 characters. |
delivery_address_cityOptional | string | The town or city. Up to 200 characters. |
delivery_address_countyOptional | string | The county or state. Up to 200 characters. |
delivery_postcodeOptional | string | Up to 20 characters. |
destination_countryOptional | string | Up to 200 characters. |
recipient_phoneOptional | string | The recipient’s phone number, for the courier. Up to 50 characters. |
recipient_emailOptional | string | The recipient’s email address, for the courier. Up to 254 characters. |
packagingOptional | string | How the order is packed, for example "A4+ Colompack envelope". Up to 200 characters. |
weightOptional | number | The parcel’s weight in kilograms. Zero or more. |
heightOptional | number | The parcel’s height in millimetres. Zero or more. |
widthOptional | number | The parcel’s width in millimetres. Zero or more. |
depthOptional | number | The parcel’s depth in millimetres. Zero or more. |
volumeOptional | number | The parcel’s volume in cubic millimetres. Zero or more. Stored as sent: it isn’t worked out from the height, width and depth. |
courierOptional | string | The courier. |
courier_serviceOptional | string | The courier’s service. |
shippedOptional | boolean | Mark every unit shipped or not shipped. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"order_number": "ORD-1042",
"due_date": "2026-11-22",
"courier": "DPD",
"courier_service": "Next day",
"performed_by": "Sam Taylor"
}
curl -X PATCH "$PALLETABLE_API/v1/orders" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "order_number": "ORD-1042", "due_date": "2026-11-22", "courier": "DPD", "courier_service": "Next day", "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The order was updated. The response shows it as it is now.
{
"order_number": "ORD-1042",
"site": "Default",
"order_date": "2026-11-12T09:30:00Z",
"due_date": "2026-11-19T00:00:00Z",
"client": "Acme Ltd",
"customer": "J. Patel",
"delivery_address": "4 Station Road, Leeds",
"delivery_address_city": "Leeds",
"delivery_address_county": "West Yorkshire",
"delivery_postcode": "LS1 4AB",
"destination_country": "United Kingdom",
"recipient_phone": "+44 113 496 0000",
"recipient_email": "j.patel@example.com",
"packaging": "A4+ Colompack envelope",
"weight": 1.2,
"height": 400,
"width": 300,
"depth": 50,
"volume": 6000000,
"courier": "DPD",
"courier_service": "Next day"
}
| Field | Type | Description |
|---|---|---|
order_number | string | The order’s number. |
site | string | The site. |
order_date | datetime | When it was placed (UTC). |
due_date | datetime | null | When it is due (UTC). |
client | string | null | The client, if one is set. |
customer | string | null | The customer’s name. |
delivery_address | string | null | The street line of the address. |
delivery_address_city | string | null | The town or city. |
delivery_address_county | string | null | The county or state. |
delivery_postcode | string | null | Postcode. |
destination_country | string | null | Country. |
recipient_phone | string | null | The recipient’s phone number. |
recipient_email | string | null | The recipient’s email address. |
packaging | string | null | How the order is packed. |
weight | number | null | Weight in kilograms. |
height | number | null | Height in millimetres. |
width | number | null | Width in millimetres. |
depth | number | null | Depth in millimetres. |
volume | number | null | Volume in cubic millimetres. |
courier | string | null | The courier. |
courier_service | string | null | The courier’s service. |
The request body isn’t valid. A value is the wrong type, too long, or the client doesn’t exist at the site.
{
"error": {
"code": "invalid_request",
"message": "delivery_postcode must be 20 characters or fewer"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find what you asked for. Either the order doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Order ORD-9999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
DELETE/v1/ordersDelete order
Deletes an order and every unit on it. This can’t be undone.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
order_numberRequired | string | The order to delete. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"order_number": "ORD-1042",
"performed_by": "Sam Taylor"
}
curl -X DELETE "$PALLETABLE_API/v1/orders" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "order_number": "ORD-1042", "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The order was deleted.
{
"order_number": "ORD-1042",
"site": "Default",
"deleted_items": 2
}
| Field | Type | Description |
|---|---|---|
order_number | string | The order deleted. |
site | string | The site. |
deleted_items | integer | How many units were deleted. |
The request body isn’t valid. site or order_number is missing, or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site and order_number are required and must be strings"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find what you asked for. Either the order doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Order ORD-9999 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/scansRecord scans
Records items as scanned at a workstation, as if an operator scanned them at an Order Tagger station. Up to 5,000 items at once, all or nothing. An item already scanned at that workstation is skipped, not logged twice. At a shipping station this also marks the items shipped.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
workstationRequired | string | The name of a workstation at the site. |
itemsRequired | string[] | The barcodes of the items scanned. |
notesOptional | string | A note saved on every scan. Up to 1,000 characters. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"workstation": "Packing 1",
"items": ["482910357716", "730164829351"],
"notes": "Packed by robot cell 2",
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/scans" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "workstation": "Packing 1", "items": [ "482910357716", "730164829351" ], "notes": "Packed by robot cell 2", "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The scans were recorded. skipped counts items that already had a scan at that workstation.
{
"site": "Default",
"workstation": "Packing 1",
"logged": 2,
"skipped": 0
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
workstation | string | The workstation. |
logged | integer | Scans recorded. |
skipped | integer | Items skipped because they were already scanned there. |
The request body isn’t valid. A field is missing, there are more than 5,000 items, or notes is over 1,000 characters.
{
"error": {
"code": "invalid_request",
"message": "items must contain between 1 and 5000 barcodes"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find what you asked for. The site or workstation doesn’t exist, or a barcode isn’t an item at that site. Nothing is recorded.
{
"error": {
"code": "not_found",
"message": "Barcode 482910357716 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/clientsList clients
Returns the clients at a site.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
searchOptional | string | Only clients whose name contains this text. |
{
"site": "Default"
}
curl -X GET "$PALLETABLE_API/v1/clients" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default" }'
Responses
Pick a status code to see what comes back.
Here are the clients. No matches returns 200 with an empty list.
{
"site": "Default",
"clients": [
{
"client_name": "Acme Ltd"
},
{
"client_name": "Birch & Co"
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
clients | object[] | Each client: client_name. |
The request body isn’t valid. site is missing or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site is required and must be a string"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/clientsCreate client
Adds a client so orders can be filed against it and reported on.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
client_nameRequired | string | The client’s name. Up to 120 characters. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"client_name": "Acme Ltd",
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/clients" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "client_name": "Acme Ltd", "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The client was created.
{
"site": "Default",
"client_name": "Acme Ltd"
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
client_name | string | The client created. |
The request body isn’t valid. client_name is missing, empty or over 120 characters.
{
"error": {
"code": "invalid_request",
"message": "client_name must be 120 characters or fewer"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
That client already exists at the site.
{
"error": {
"code": "conflict",
"message": "Client Acme Ltd already exists at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/clients/analyticsGet client analytics
Returns how a client has ordered over a date range of up to 366 days: orders, units, spend, on-time performance and a split of units by product.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
clientRequired | string | The client’s name. |
date_fromRequired | date | Start of the range, as YYYY-MM-DD. |
date_toRequired | date | End of the range, as YYYY-MM-DD. |
{
"site": "Default",
"client": "Acme Ltd",
"date_from": "2026-10-13",
"date_to": "2026-11-12"
}
curl -X GET "$PALLETABLE_API/v1/clients/analytics" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "client": "Acme Ltd", "date_from": "2026-10-13", "date_to": "2026-11-12" }'
Responses
Pick a status code to see what comes back.
Here are the figures. A client with no orders in the range returns zeros.
{
"client": "Acme Ltd",
"site": "Default",
"date_from": "2026-10-13",
"date_to": "2026-11-12",
"orders": 38,
"units": 214,
"spend": 5230.5,
"average_spend_per_order": 137.6,
"on_time_percent": 97.4,
"products": [
{
"alias": "Canvas print 30x40cm",
"units": 120
},
{
"alias": "Canvas print 50x70cm",
"units": 94
}
]
}
| Field | Type | Description |
|---|---|---|
client | string | The client. |
site | string | The site. |
date_from / date_to | date | The range used. |
orders | integer | Orders placed in the range. |
units | integer | Units ordered. |
spend | number | Money spent. |
average_spend_per_order | number | Spend divided by orders. |
on_time_percent | number | null | Share of shipped items that shipped on time. |
products | object[] | Units by product alias: alias and units. |
The request body isn’t valid. A required field is missing, date_from is after date_to, or the range is longer than 366 days.
{
"error": {
"code": "invalid_request",
"message": "The range can be at most 366 days"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find what you asked for. Either the client doesn’t exist at that site, or there is no site with that name.
{
"error": {
"code": "not_found",
"message": "Client Acme Ltd was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/orders/slaGet on-time (SLA) performance
Returns how many shipped items were on time or late over a range of up to 366 days, plus the items still unshipped. Each shipped item is judged against its due date.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
date_fromRequired | date | Start of the range, as YYYY-MM-DD. |
date_toRequired | date | End of the range, as YYYY-MM-DD. |
clientOptional | string | Only this client’s orders. |
count_byOptional | string | "units" (default) or "orders". |
include_weekendsOptional | boolean | true (default) counts calendar days. false counts working days, Monday to Friday. |
{
"site": "Default",
"date_from": "2026-10-13",
"date_to": "2026-11-12",
"count_by": "units",
"include_weekends": false
}
curl -X GET "$PALLETABLE_API/v1/orders/sla" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "date_from": "2026-10-13", "date_to": "2026-11-12", "count_by": "units", "include_weekends": false }'
Responses
Pick a status code to see what comes back.
Here are the figures. on_time_percent is null when nothing in the range has been judged.
{
"site": "Default",
"date_from": "2026-10-13",
"date_to": "2026-11-12",
"count_by": "units",
"include_weekends": false,
"on_time": 482,
"late": 18,
"unshipped": 64,
"on_time_percent": 96.4,
"by_category": [
{
"category": "Canvas prints",
"on_time": 310,
"late": 9,
"unshipped": 40
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
date_from / date_to | date | The range used. |
count_by | string | Whether figures are units or orders. |
include_weekends | boolean | Whether weekends were counted. |
on_time | integer | Shipped on or before the due date. |
late | integer | Shipped after the due date. |
unshipped | integer | Not yet shipped. |
on_time_percent | number | null | On time divided by on time plus late. |
by_category | object[] | The same counts per product category. |
The request body isn’t valid. A required field is missing, count_by isn’t units or orders, date_from is after date_to, or the range is longer than 366 days.
{
"error": {
"code": "invalid_request",
"message": "The range can be at most 366 days"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
GET/v1/batchesList batches
Returns the production batches at a site, newest first.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
{
"site": "Default"
}
curl -X GET "$PALLETABLE_API/v1/batches" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default" }'
Responses
Pick a status code to see what comes back.
Here are the batches. A site with no batches returns 200 with an empty list.
{
"site": "Default",
"batches": [
{
"batch_id": "BATCH-0003",
"item_count": 38,
"created_at": "2026-11-12T08:55:00Z"
}
]
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
batches | object[] | Each batch: batch_id, item_count and created_at (UTC). |
The request body isn’t valid. site is missing or isn’t a string.
{
"error": {
"code": "invalid_request",
"message": "site is required and must be a string"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find the site. There is no site with that name.
{
"error": {
"code": "not_found",
"message": "Site Default was not found"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
POST/v1/batchesCreate batch
Groups items from many orders into one batch (named like BATCH-0004) so they can be completed with a single scan. A batch holds up to 20,000 items. An item already in a batch is skipped.
Headers
X-Palletable-TokenYour key’s public token, plt_tk_…
X-Palletable-SecretYour key’s private secret, plt_sk_…
Content-Typeapplication/json
The key must have access to Order Management.
Request body
Send these fields as JSON in the body of the request.
| Field | Type | Description |
|---|---|---|
siteRequired | string | The name of the site, exactly as it appears in Palletable, for example "Default". |
itemsRequired | string[] | The barcodes of the items to batch. |
workstationOptional | string | The name of a Batch Creator workstation. Every item is logged there as it is batched. |
performed_byOptional | string | Who made this change, for example "Sam Taylor" or "Nightly ERP sync". It is saved on the audit-trail entry and shown in Palletable as the person who did it. If you leave it out, the entry is attributed to your API key’s name. |
{
"site": "Default",
"items": ["482910357716", "730164829351"],
"workstation": "Batch Creator",
"performed_by": "Sam Taylor"
}
curl -X POST "$PALLETABLE_API/v1/batches" \ -H "X-Palletable-Token: plt_tk_..." \ -H "X-Palletable-Secret: plt_sk_..." \ -H "Content-Type: application/json" \ -d '{ "site": "Default", "items": [ "482910357716", "730164829351" ], "workstation": "Batch Creator", "performed_by": "Sam Taylor" }'
Responses
Pick a status code to see what comes back.
The batch was created. skipped counts items that were already in a batch.
{
"site": "Default",
"batch_id": "BATCH-0004",
"item_count": 2,
"skipped": 0
}
| Field | Type | Description |
|---|---|---|
site | string | The site. |
batch_id | string | The new batch. |
item_count | integer | Items in the batch. |
skipped | integer | Items left out because they were already in a batch. |
The batch can’t be made. A field is missing, there are more than 20,000 items, or every item is already in a batch.
{
"error": {
"code": "invalid_request",
"message": "Every chosen item is already in a batch"
}
}
We couldn’t identify the key. The token or secret is missing, wrong, or the key has been deleted.
{
"error": {
"code": "unauthorised",
"message": "Missing or invalid API token or secret"
}
}
The key is valid but isn’t allowed to do this. It doesn’t have access to Order Management, or to the site you asked for.
{
"error": {
"code": "forbidden",
"message": "This API key does not have access to Order Management"
}
}
We couldn’t find what you asked for. The site or workstation doesn’t exist, or a barcode isn’t an item at that site.
{
"error": {
"code": "not_found",
"message": "Barcode 482910357716 was not found at site Default"
}
}
Something went wrong on our side. Try again in a moment. If it keeps happening, contact us.
{
"error": {
"code": "server_error",
"message": "Something went wrong. Please try again."
}
}
Webhooks
Get told the moment something happens in Palletable, instead of asking for it. Add your URL and choose your events in Palletable, then we send each one to you as it happens.
GUIDEReceiving webhooksWhat we send and how to reply
A webhook is Palletable calling your system when something happens, so you don’t have to keep asking. You add the URL, choose the events you want and get your signing secret in Palletable. After that, each event is sent to your URL as a POST.
Headers
X-Palletable-EventThe event name, for example po.delivered.
X-Palletable-DeliveryA unique ID for this attempt to deliver it.
X-Palletable-TimestampWhen we sent it, as a Unix timestamp in seconds. Used in the signature.
X-Palletable-SignatureThe signature to check, sha256=…
Content-Typeapplication/json
Body
Every event uses the same envelope. Only the contents of data change.
| Field | Type | Description |
|---|---|---|
id | string | A unique ID for this event. The same event sent again after a failure keeps the same id, so you can use it to ignore duplicates. |
event | string | The event name, for example order.dispatched. |
created_at | string | When it happened, in UTC (ISO 8601). |
site | string | The name of the site it happened at. |
performed_by | string | null | Who caused it: the performed_by you sent on an API call, the name of the Palletable user, or your API key’s name. null when the system did it, for example stock falling below its minimum. |
data | object | The details of the event. Each event below lists its fields. |
{
"id": "evt_8f3a91c2d7",
"event": "stock.adjusted",
"created_at": "2026-11-12T14:32:08Z",
"site": "Default",
"performed_by": "Sam Taylor",
"data": { … }
}
Replying and retries
Reply with any 2xx status within 10 seconds to say you have it. The body of your reply is ignored.
| Your reply | What we do |
|---|---|
2xx | The event is marked delivered. |
| Anything else, or no reply in 10 seconds | We try again after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. Each try uses the same event id. |
| Still failing after the last try | The event is marked failed in Palletable, where you can see it and send it again. |
Events can arrive more than once and aren’t guaranteed to arrive in order. Use the event id to ignore duplicates, and the created_at time to order them.
GUIDEVerifying a webhookCheck it really came from Palletable
Anyone could post to your URL, so check the signature before you trust an event. We sign every request with the secret shown when you set up the webhook in Palletable.
How the signature is made
The signature is an HMAC-SHA256, written in hex, of the X-Palletable-Timestamp value, a full stop, and the exact raw body we sent, using your signing secret as the key. To check it:
| Step | What to do |
|---|---|
| 1 | Read the raw request body before your framework turns it into JSON. Changing it in any way breaks the signature. |
| 2 | Build timestamp + "." + body and sign it with your secret. Put sha256= in front of the result. |
| 3 | Compare it to X-Palletable-Signature with a constant-time comparison. |
| 4 | Reject the event if the timestamp is more than 5 minutes old. This stops someone replaying an old request. |
// Node.js (Express). Use the raw body, not the parsed JSON. const crypto = require("crypto"); function isFromPalletable(rawBody, headers, secret) { const ts = headers["x-palletable-timestamp"]; const sig = headers["x-palletable-signature"]; // Reject anything older than 5 minutes if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false; const expected = "sha256=" + crypto .createHmac("sha256", secret) .update(ts + "." + rawBody) .digest("hex"); return sig.length === expected.length && crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected)); }
EVENTorder.createdAn order was created
Sent when a new order is created, whether it came from the API or was entered in Palletable.
data fields
Every event arrives in the same envelope (see Receiving webhooks). These are the fields inside data for this event.
| Field | Type | Description |
|---|---|---|
order_number | string | The order number. |
client | string | null | The client the order is for. |
customer | string | null | The customer name on the order. |
due_date | string | null | The date it is due, YYYY-MM-DD. |
item_count | integer | How many units are on the order. |
{
"id": "evt_8f3a91c2d7",
"event": "order.created",
"created_at": "2026-11-12T14:32:08Z",
"site": "Default",
"performed_by": "Sam Taylor",
"data": {
"order_number": "SO-10458",
"client": "Hartwell Retail",
"customer": "J. Morgan",
"due_date": "2026-11-20",
"item_count": 12
}
}
EVENTorder.transactionAn order was tagged at a workstation
Sent each time a person tags an order at a workstation, whether they scan it in Palletable or it is sent through POST /v1/scans. It tells you who handled the order, where, and when.
data fields
Every event arrives in the same envelope (see Receiving webhooks). These are the fields inside data for this event.
| Field | Type | Description |
|---|---|---|
order_number | string | The order that was tagged. |
who | string | The name of the person who tagged it. |
workstation | string | The workstation they tagged it at. |
timestamp | string | When it was tagged, in UTC. |
{
"id": "evt_8f3a91c2d7",
"event": "order.transaction",
"created_at": "2026-11-12T14:32:08Z",
"site": "Default",
"performed_by": "Priya Shah",
"data": {
"order_number": "SO-10458",
"who": "Priya Shah",
"workstation": "Packing 2",
"timestamp": "2026-11-12T14:28:41Z"
}
}
EVENTorder.dispatchedAn order was dispatched
Sent when every unit on an order has been dispatched. Use it to tell your customer or update your own records.
data fields
Every event arrives in the same envelope (see Receiving webhooks). These are the fields inside data for this event.
| Field | Type | Description |
|---|---|---|
order_number | string | The order number. |
client | string | null | The client the order is for. |
dispatched_at | string | When it was dispatched, in UTC. |
courier | string | null | The courier it went with. |
courier_service | string | null | The courier service used. |
tracking_numbers | string[] | One tracking number per parcel, where the courier gave one. |
{
"id": "evt_8f3a91c2d7",
"event": "order.dispatched",
"created_at": "2026-11-12T14:32:08Z",
"site": "Default",
"performed_by": "Priya Shah",
"data": {
"order_number": "SO-10458",
"client": "Hartwell Retail",
"dispatched_at": "2026-11-12T14:31:55Z",
"courier": "DPD",
"courier_service": "Next Day",
"tracking_numbers": ["15976543210987"]
}
}
EVENTpo.createdA purchase order was created
Sent when a purchase order is created, including ones raised automatically from suggested orders.
data fields
Every event arrives in the same envelope (see Receiving webhooks). These are the fields inside data for this event.
| Field | Type | Description |
|---|---|---|
po_number | string | The purchase order number. |
supplier | string | The supplier it was raised with. |
po_name | string | null | The name given to the order. |
due_date | string | null | The date delivery is expected, YYYY-MM-DD. |
line_count | integer | How many lines are on it. |
total_value | number | null | The total cost of all lines. |
{
"id": "evt_8f3a91c2d7",
"event": "po.created",
"created_at": "2026-11-12T14:32:08Z",
"site": "Default",
"performed_by": "Sam Taylor",
"data": {
"po_number": "PO-2291",
"supplier": "Hartwell Supplies Ltd",
"po_name": "November fixings",
"due_date": "2026-11-26",
"line_count": 3,
"total_value": 1260.0
}
}
EVENTpo.deliveredA delivery was booked in
Sent when a delivery is booked in against a purchase order, either all of it or part. complete tells you whether anything is still outstanding.
data fields
Every event arrives in the same envelope (see Receiving webhooks). These are the fields inside data for this event.
| Field | Type | Description |
|---|---|---|
po_number | string | The purchase order number. |
supplier | string | The supplier. |
delivered_at | string | When it was booked in, in UTC. |
complete | boolean | true when every line has now been delivered in full. |
lines | object[] | Each line delivered: stock_code, qty_received and qty_outstanding. |
{
"id": "evt_8f3a91c2d7",
"event": "po.delivered",
"created_at": "2026-11-12T14:32:08Z",
"site": "Default",
"performed_by": "Priya Shah",
"data": {
"po_number": "PO-2291",
"supplier": "Hartwell Supplies Ltd",
"delivered_at": "2026-11-12T09:12:40Z",
"complete": false,
"lines": [
{
"stock_code": "AWD-120",
"qty_received": 3000,
"qty_outstanding": 0
},
{
"stock_code": "AWD-160",
"qty_received": 1000,
"qty_outstanding": 500
}
]
}
}
EVENTstock.below_minimumStock fell below its minimum
Sent when the total quantity of a stock code falls to or below its re-order threshold. It is sent once each time it crosses the line, not on every later change.
data fields
Every event arrives in the same envelope (see Receiving webhooks). These are the fields inside data for this event.
| Field | Type | Description |
|---|---|---|
stock_code | string | The stock code. |
description | string | null | The stock item’s description. |
total_qty | number | Total quantity now held across the site. |
threshold_qty | number | The re-order threshold that was crossed. |
supplier | string | null | The item’s supplier. |
lead_time_days | integer | null | How many days the supplier takes to deliver. |
{
"id": "evt_8f3a91c2d7",
"event": "stock.below_minimum",
"created_at": "2026-11-12T14:32:08Z",
"site": "Default",
"performed_by": null,
"data": {
"stock_code": "AWD-120",
"description": "Aluminium wall dowel, 120mm",
"total_qty": 480,
"threshold_qty": 500,
"supplier": "Hartwell Supplies Ltd",
"lead_time_days": 14
}
}
EVENTstock.adjustedStock was adjusted
Sent when stock is added or removed at a location by an adjustment or a count, whether made in Palletable or through POST /v1/stock/adjust. Transfers between locations don’t send this.
data fields
Every event arrives in the same envelope (see Receiving webhooks). These are the fields inside data for this event.
| Field | Type | Description |
|---|---|---|
stock_code | string | The stock code. |
location_name | string | The location that changed. |
location_label | string | "Supermarket", "Warehouse" or "Bulk". |
previous_qty | number | Quantity before the change. |
new_qty | number | Quantity after the change. |
change | number | The change made. |
reason | string | null | Why it changed, if a reason was given. |
transaction_id | integer | The ID of the audit-trail entry. |
{
"id": "evt_8f3a91c2d7",
"event": "stock.adjusted",
"created_at": "2026-11-12T14:32:08Z",
"site": "Default",
"performed_by": "Sam Taylor",
"data": {
"stock_code": "AWD-120",
"location_name": "Warehouse A",
"location_label": "Warehouse",
"previous_qty": 1240,
"new_qty": 1200,
"change": -40,
"reason": "Damaged in transit",
"transaction_id": 48213
}
}
Need a hand,
or a custom integration?
Stuck on a request, need help getting connected, or want an endpoint or integration built around your setup? The Palletable team can help, and we build custom endpoints and integrations for customers too. Drop us a message and we’ll get back to you within one business day.