Palletable API

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
Your web shopOrders & status
Your ERPStock both ways
Your softwareSend & fetch
Palletable
You send
Orders→ in
Deliveries→ in
You pull
Stock levelsout →
Order statusout →
POST/v1/orders201
// send to Palletable
{ "customer": "Acme Ltd",
  "items": [{ "sku": "AWD-120",
             "qty": 120 }] }
GET/v1/stock?sku=AWD-120200
// pull from Palletable
{ "sku": "AWD-120",
  "on_hand": 1840,
  "allocated": 120 }
Scroll for more
Two-way

Send it in. Pull it back out.

Both systems stay in step, with no re-typing and no CSV uploads.

You sendInto Palletable

Push new work from your own website, ERP or software the moment it happens on your side.

  • Orders
  • Deliveries
POST/v1/orders201
// send to Palletable
{ "customer": "Acme Ltd",
  "items": [{ "sku": "AWD-120",
             "qty": 120 }] }
You pullOut of Palletable

Ask for the live picture whenever you need it and get clean data back for your own software.

  • Stock levels
  • Order status
GET/v1/stock?sku=AWD-120200
// pull from Palletable
{ "sku": "AWD-120",
  "on_hand": 1840,
  "allocated": 120 }

Example requests shown for illustration.

Keys & access

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
API keyActive
Tokenplt_tk_9fK2x…Qe7aPublic
Secret••••••••••••••Shown once
Order Management Inventory Procurement Account Management
Usable by 2 accountsRevoke
Module API

Inventory 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.

FieldTypeDescription
siteRequiredstringThe 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_codeRequiredstringThe stock code to look up, for example AWD-120. Must match exactly.
location_labelsOptionalstring[]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.
GET/v1/stock/quantityRequest
// request body
{
  "site": "Default",
  "stock_code": "AWD-120",
  "location_labels": ["Warehouse", "Bulk"]
}
cURL
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.

Response body200 OK
{
  "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
    }
  ]
}
FieldTypeDescription
stock_codestringThe stock code you asked for.
descriptionstringThe stock item’s description.
unit_measurestringWhat qty is counted in, for example each or kg.
sitestringThe name of the site the stock is held at.
location_labelsstring[] | nullThe labels you filtered by, or null when you didn’t filter.
total_qtynumberQuantity across the locations listed.
locationsobject[]One entry per location holding it: location_name, location_label and qty.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
GET/v1/stock/locationsRequest
{
  "site": "Default"
}
cURL
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.

Response body200 OK
{
  "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"
    }
  ]
}
FieldTypeDescription
sitestringThe name of the site you asked for.
locationsobject[]One entry per location, listed by label then name: location_name and location_label.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
categoryOptionalstringOnly items in this category.
searchOptionalstringOnly items whose code or description contains this text.
location_labelsOptionalstring[]Only include locations with one of these labels: "Supermarket", "Warehouse" or "Bulk". Omit to include every location.
below_minimumOptionalbooleantrue returns only items that have fallen below their minimum quantity. Defaults to false.
GET/v1/stock/listRequest
{
  "site": "Default",
  "category": "Fixings",
  "below_minimum": false
}
cURL
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.

Response body200 OK
{
  "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
    }
  ]
}
FieldTypeDescription
sitestringThe site you asked for.
countintegerHow many items matched.
itemsobject[]Each item: stock_code, description, category, unit_measure and total_qty. Sorted by stock code.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
stock_codeRequiredstringThe stock code, for example AWD-120. Must match exactly.
GET/v1/stock/infoRequest
{
  "site": "Default",
  "stock_code": "AWD-120"
}
cURL
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.

Response body200 OK
{
  "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
    }
  ]
}
FieldTypeDescription
stock_codestringThe stock code you asked for.
descriptionstring | nullThe stock item’s description.
categorystring | nullThe category the item is filed under.
unit_measurestring | nullWhat quantities are counted in, for example each or kg.
sitestringThe site the stock is held at.
supplierstring | nullThe supplier you buy it from.
lead_time_daysinteger | nullHow many days the supplier takes to deliver.
unit_costnumber | nullWhat one unit costs.
total_qtynumberQuantity held across every location.
total_pricenumber | nullunit_cost multiplied by total_qty, or null when there is no unit cost.
locationsobject[]One entry per location holding it: location_name, location_label and qty.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
stock_codeRequiredstringThe stock code, for example AWD-120. Must match exactly.
date_fromOptionaldateOnly changes on or after this date, as YYYY-MM-DD.
date_toOptionaldateOnly changes on or before this date, as YYYY-MM-DD.
GET/v1/stock/historyRequest
{
  "site": "Default",
  "stock_code": "AWD-120",
  "date_from": "2026-11-01"
}
cURL
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.

Response body200 OK
{
  "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"
    }
  ]
}
FieldTypeDescription
stock_codestringThe stock code you asked for.
sitestringThe site.
transactionsobject[]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).
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
stock_codeRequiredstringThe stock code, for example AWD-120. Must match exactly.
locationRequiredstringThe name of a stock location at the site, for example "Warehouse A".
changeRequirednumberHow much to add (positive) or remove (negative), for example 50 or -12.
reasonOptionalstringWhy the stock changed, for example "Damaged in transit". Saved with the audit-trail entry.
performed_byOptionalstringWho 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.
POST/v1/stock/adjustRequest
{
  "site": "Default",
  "stock_code": "AWD-120",
  "location": "Warehouse A",
  "change": -40,
  "reason": "Damaged in transit",
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body200 OK
{
  "stock_code": "AWD-120",
  "site": "Default",
  "location_name": "Warehouse A",
  "location_label": "Warehouse",
  "previous_qty": 1240,
  "new_qty": 1200,
  "change": -40,
  "transaction_id": 48213
}
FieldTypeDescription
stock_codestringThe stock code.
sitestringThe site.
location_namestringThe location that changed.
location_labelstringIts label.
previous_qtynumberQuantity before the change.
new_qtynumberQuantity after the change.
changenumberThe change you made.
transaction_idintegerThe ID of the audit-trail entry created for this change.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
stock_codeRequiredstringThe stock code, for example AWD-120. Must match exactly.
from_locationRequiredstringThe location to take stock from.
to_locationRequiredstringThe location to move it to. It must already hold this stock code.
qtyRequirednumberHow much to move. Must be above zero.
performed_byOptionalstringWho 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.
POST/v1/stock/transferRequest
{
  "site": "Default",
  "stock_code": "AWD-120",
  "from_location": "Warehouse A",
  "to_location": "Pick Wall",
  "qty": 100,
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body201 Created
{
  "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
  }
}
FieldTypeDescription
stock_codestringThe stock code moved.
sitestringThe site.
qtynumberHow much was moved.
fromobjectThe source: location_name, location_label and new_qty.
toobjectThe destination, in the same shape.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
stock_codeRequiredstringThe new stock code. Must not already exist at the site.
descriptionOptionalstringWhat the item is.
categoryOptionalstringThe category it is filed under.
unit_measureOptionalstringWhat quantities are counted in, for example each or kg.
unit_costOptionalnumberWhat one unit costs.
supplierOptionalstringThe name of an existing supplier at the site.
lead_time_daysOptionalintegerHow many days the supplier takes to deliver.
top_up_daysOptionalintegerHow many days of demand to order enough to cover.
threshold_qtyOptionalnumberRe-order when stock falls to this quantity.
cycle_classOptionalstringThe cycle-count class for the item.
performed_byOptionalstringWho 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.
POST/v1/stock/itemsRequest
{
  "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
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.

Response body201 Created
{
  "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
}
FieldTypeDescription
stock_codestringThe new stock code.
sitestringThe site.
description … cycle_classmixedEach field you can send, as saved. Fields you left out are null.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
stock_codeRequiredstringThe stock code, for example AWD-120. Must match exactly.
descriptionOptionalstringWhat the item is.
categoryOptionalstringThe category it is filed under.
unit_measureOptionalstringWhat quantities are counted in, for example each or kg.
unit_costOptionalnumberWhat one unit costs.
supplierOptionalstringThe name of an existing supplier at the site.
lead_time_daysOptionalintegerHow many days the supplier takes to deliver.
top_up_daysOptionalintegerHow many days of demand to order enough to cover.
threshold_qtyOptionalnumberRe-order when stock falls to this quantity.
cycle_classOptionalstringThe cycle-count class for the item.
performed_byOptionalstringWho 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.
PATCH/v1/stock/itemsRequest
{
  "site": "Default",
  "stock_code": "AWD-120",
  "unit_cost": 0.45,
  "lead_time_days": 10,
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body200 OK
{
  "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"
}
FieldTypeDescription
stock_codestringThe stock code.
sitestringThe site.
description … cycle_classmixedEach field you can send, as saved.
Module API

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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
searchOptionalstringOnly suppliers whose name contains this text.
GET/v1/suppliersRequest
{
  "site": "Default",
  "search": "hart"
}
cURL
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.

Response body200 OK
{
  "site": "Default",
  "suppliers": [
    {
      "supplier_name": "Hartwell Supplies Ltd",
      "email": "orders@hartwell.example",
      "address": "12 Mill Lane, Leeds",
      "postcode": "LS1 4AB",
      "country": "United Kingdom"
    }
  ]
}
FieldTypeDescription
sitestringThe site.
suppliersobject[]Each supplier: supplier_name, email, address, postcode and country.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
supplier_nameRequiredstringThe supplier’s name. Must be unique at the site.
addressOptionalstringWhere the supplier is. Printed as the “From” address on purchase orders.
postcodeOptionalstringPostcode.
countryOptionalstringCountry.
emailOptionalstringWhere purchase orders are emailed.
performed_byOptionalstringWho 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.
POST/v1/suppliersRequest
{
  "site": "Default",
  "supplier_name": "Hartwell Supplies Ltd",
  "email": "orders@hartwell.example",
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body201 Created
{
  "site": "Default",
  "supplier_name": "Hartwell Supplies Ltd",
  "email": "orders@hartwell.example",
  "address": "12 Mill Lane, Leeds",
  "postcode": "LS1 4AB",
  "country": "United Kingdom"
}
FieldTypeDescription
sitestringThe site.
supplier_namestringThe supplier’s name.
emailstring | nullWhere purchase orders are emailed.
addressstring | nullWhere the supplier is.
postcodestring | nullPostcode.
countrystring | nullCountry.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
supplierRequiredstringThe supplier’s name.
date_fromOptionaldateStart of the range, as YYYY-MM-DD.
date_toOptionaldateEnd of the range, as YYYY-MM-DD.
GET/v1/suppliers/scorecardRequest
{
  "site": "Default",
  "supplier": "Hartwell Supplies Ltd",
  "date_from": "2026-10-13",
  "date_to": "2026-11-12"
}
cURL
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.

Response body200 OK
{
  "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
}
FieldTypeDescription
supplierstringThe supplier.
sitestringThe site.
date_from / date_todateThe range used.
on_time_percentnumber | nullThe percentage of the supplier’s orders delivered in the range that arrived on time.
orders_deliveredintegerOrders delivered in the range.
order_valuenumberThe value of orders raised in the range.
stock_valuenumberThe live value of the stock they supply (quantity multiplied by unit cost).
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
statusOptionalstringOne of Suggested, Requested, Awaiting Approval, Open, Delivered or Closed.
searchOptionalstringMatches the purchase order number, name or supplier.
delivered_fromOptionaldateOnly orders delivered on or after this date.
delivered_toOptionaldateOnly orders delivered on or before this date.
GET/v1/purchase-ordersRequest
{
  "site": "Default",
  "status": "Open"
}
cURL
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.

Response body200 OK
{
  "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
    }
  ]
}
FieldTypeDescription
sitestringThe site.
countintegerHow many matched.
purchase_ordersobject[]Each order: po_number, po_name, supplier, status, due_date, late, total_value and line_count.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
po_numberRequiredstringThe purchase order’s number, for example PO-0231.
GET/v1/purchase-orders/detailsRequest
{
  "site": "Default",
  "po_number": "PO-0231"
}
cURL
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.

Response body200 OK
{
  "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"
    }
  ]
}
FieldTypeDescription
po_numberstringThe purchase order’s number.
po_namestring | nullIts name.
sitestringThe site.
supplierstring | nullThe supplier it is raised against.
statusstringOne of Suggested, Requested, Awaiting Approval, Open, Delivered or Closed.
due_datedate | nullWhen it is due, as YYYY-MM-DD.
latebooleantrue when it is open and past its due date.
total_valuenumberThe sum of the line totals.
linesobject[]One entry per line: stock_code, description, order_qty, unit_cost, total_cost and expected_delivery.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
po_numberRequiredstringThe order’s number. Must be unique at the site.
supplierRequiredstringThe supplier’s name.
po_nameOptionalstringA name for the order.
due_dateOptionaldateWhen it is due, as YYYY-MM-DD.
linesRequiredobject[]At least one line: stock_code and qty are required; unit_cost and expected_delivery are optional.
performed_byOptionalstringWho 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.
POST/v1/purchase-ordersRequest
{
  "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
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.

Response body201 Created
{
  "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"
    }
  ]
}
FieldTypeDescription
po_numberstringThe purchase order’s number.
po_namestring | nullIts name.
sitestringThe site.
supplierstring | nullThe supplier it is raised against.
statusstringOne of Suggested, Requested, Awaiting Approval, Open, Delivered or Closed.
due_datedate | nullWhen it is due, as YYYY-MM-DD.
latebooleantrue when it is open and past its due date.
total_valuenumberThe sum of the line totals.
linesobject[]The lines as saved.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
po_numberRequiredstringThe order to change.
new_po_numberOptionalstringA new number for the order.
po_nameOptionalstringA new name.
supplierOptionalstringA different supplier, by name.
due_dateOptionaldate | nullA new due date, as YYYY-MM-DD.
statusOptionalstringA new status.
performed_byOptionalstringWho 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.
PATCH/v1/purchase-ordersRequest
{
  "site": "Default",
  "po_number": "PO-0231",
  "due_date": "2026-12-05",
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body200 OK
{
  "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"
    }
  ]
}
FieldTypeDescription
po_numberstringThe purchase order’s number.
po_namestring | nullIts name.
sitestringThe site.
supplierstring | nullThe supplier it is raised against.
statusstringOne of Suggested, Requested, Awaiting Approval, Open, Delivered or Closed.
due_datedate | nullWhen it is due, as YYYY-MM-DD.
latebooleantrue when it is open and past its due date.
total_valuenumberThe sum of the line totals.
linesobject[]The lines on the order.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
po_numberRequiredstringThe order being delivered.
linesRequiredobject[]Every line on the order, each once: stock_code, delivered_qty and location (a Warehouse or Bulk location that already holds the item).
leave_remainingOptionalbooleantrue (default) moves a shortfall onto a new “- Remaining” order. false closes the order at what arrived.
on_timeOptionalbooleanWhether the delivery was on time. If left out, each line is judged against its expected delivery date.
performed_byOptionalstringWho 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.
POST/v1/purchase-orders/deliveriesRequest
{
  "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
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.

Response body201 Created
{
  "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
    }
  ]
}
FieldTypeDescription
po_numberstringThe order delivered.
sitestringThe site.
statusstringAlways Delivered.
remaining_po_numberstring | nullThe new order holding any shortfall.
linesobject[]Each line: stock_code, ordered_qty, delivered_qty, location_name and the location’s new_qty.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
linesRequiredobject[]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_byOptionalstringWho 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.
POST/v1/deliveriesRequest
{
  "site": "Default",
  "lines": [
    {
      "stock_code": "AWD-120",
      "qty": 250,
      "location": "Warehouse A"
    }
  ],
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body201 Created
{
  "site": "Default",
  "lines": [
    {
      "stock_code": "AWD-120",
      "qty": 250,
      "location_name": "Warehouse A",
      "new_qty": 1490
    }
  ]
}
FieldTypeDescription
sitestringThe site.
linesobject[]Each line: stock_code, qty, location_name and the location’s new_qty.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
GET/v1/suggested-ordersRequest
{
  "site": "Default"
}
cURL
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.

Response body200 OK
{
  "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
    }
  ]
}
FieldTypeDescription
sitestringThe site.
suggestionsobject[]Each suggestion: stock_code, description, supplier, current_qty (supermarket and warehouse stock), on_order_qty, daily_usage and suggested_qty.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
stock_codeRequiredstringThe stock code, for example AWD-120. Must match exactly.
qtyRequirednumberHow much to request. Must be above zero.
performed_byOptionalstringWho 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.
POST/v1/requested-stockRequest
{
  "site": "Default",
  "stock_code": "AWD-120",
  "qty": 500,
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body201 Created
{
  "site": "Default",
  "stock_code": "AWD-120",
  "requested_qty": 500
}
FieldTypeDescription
sitestringThe site.
stock_codestringThe stock code requested.
requested_qtynumberThe quantity now requested.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
stock_codeRequiredstringThe stock code, for example AWD-120. Must match exactly.
GET/v1/price-historyRequest
{
  "site": "Default",
  "stock_code": "AWD-120"
}
cURL
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.

Response body200 OK
{
  "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
    }
  ]
}
FieldTypeDescription
stock_codestringThe stock code.
sitestringThe site.
pricesobject[]Each price: date, po_number, supplier, qty and unit_cost.
Module API

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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
searchOptionalstringOnly products whose SKU or alias contains this text.
GET/v1/productsRequest
{
  "site": "Default"
}
cURL
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.

Response body200 OK
{
  "site": "Default",
  "products": [
    {
      "product_sku": "CANVAS-30x40",
      "alias": "Canvas print 30x40cm",
      "category": "Canvas prints",
      "attributes": [
        {
          "name": "Frame colour",
          "type": "text"
        },
        {
          "name": "Finish",
          "type": "text"
        }
      ]
    }
  ]
}
FieldTypeDescription
sitestringThe site.
productsobject[]Each product: product_sku, alias, category and attributes (each with a name and a type of text, whole number, decimal or yes/no).
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.

FieldTypeDescription
siteRequired*stringThe name of the site, exactly as it appears in Palletable, for example "Default". *Send this or site_id.
site_idRequired*integerThe site’s id, as an alternative to site. If you send both they must be the same site.
create_missingOptionalbooleanDefaults 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_numberOptionalstringYour 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_dateOptionaldatetimeWhen the order was placed. Defaults to now.
due_dateOptionaldatetimeWhen it is due. Orders without a due date aren’t judged on time.
clientOptionalstringThe name of an existing client at the site.
customerOptionalstringThe customer’s name. Up to 200 characters.
delivery_addressOptionalstringThe street line. Up to 500 characters.
delivery_address_cityOptionalstringThe town or city. Up to 200 characters.
delivery_address_countyOptionalstringThe county or state. Up to 200 characters.
delivery_postcodeOptionalstringUp to 20 characters.
destination_countryOptionalstringUp to 200 characters.
recipient_phoneOptionalstringThe recipient’s phone number, for the courier. Up to 50 characters.
recipient_emailOptionalstringThe recipient’s email address, for the courier. Up to 254 characters.
packagingOptionalstringHow the order is packed, for example "A4+ Colompack envelope". Up to 200 characters.
weightOptionalnumberThe parcel’s weight in kilograms. Zero or more.
heightOptionalnumberThe parcel’s height in millimetres. Zero or more.
widthOptionalnumberThe parcel’s width in millimetres. Zero or more.
depthOptionalnumberThe parcel’s depth in millimetres. Zero or more.
volumeOptionalnumberThe parcel’s volume in cubic millimetres. Zero or more. Stored as sent: it isn’t worked out from the height, width and depth.
courierOptionalstringThe courier.
courier_serviceOptionalstringThe courier’s service.
itemsRequiredobject[]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_byOptionalstringWho 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.
POST/v1/ordersRequest
{
  "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
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.

Response body201 Created
{
  "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"
    }
  ]
}
FieldTypeDescription
order_numberstringThe order’s number.
sitestringThe site.
order_datedatetimeWhen it was placed (UTC).
due_datedatetime | nullWhen it is due (UTC).
clientstring | nullThe client, if one is set.
customerstring | nullThe customer’s name.
delivery_addressstring | nullThe street line of the address.
delivery_address_citystring | nullThe town or city.
delivery_address_countystring | nullThe county or state.
delivery_postcodestring | nullPostcode.
destination_countrystring | nullCountry.
recipient_phonestring | nullThe recipient’s phone number.
recipient_emailstring | nullThe recipient’s email address.
packagingstring | nullHow the order is packed.
weightnumber | nullWeight in kilograms.
heightnumber | nullHeight in millimetres.
widthnumber | nullWidth in millimetres.
depthnumber | nullDepth in millimetres.
volumenumber | nullVolume in cubic millimetres.
courierstring | nullThe courier.
courier_servicestring | nullThe courier’s service.
createdobjectWhat create_missing had to create: client, products, attributes and product_attributes (SKU and attribute pairs newly linked). Empty when nothing was created.
item_countintegerHow many units were created.
itemsobject[]One entry per unit: its barcode and product.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
order_fromOptionaldateOnly orders placed on or after this date.
order_toOptionaldateOnly orders placed on or before this date.
due_fromOptionaldateOnly orders due on or after this date.
due_toOptionaldateOnly orders due on or before this date.
limitOptionalintegerMost units to return. Defaults to 5,000.
GET/v1/ordersRequest
{
  "site": "Default",
  "due_from": "2026-11-12",
  "due_to": "2026-11-30"
}
cURL
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.

Response body200 OK
{
  "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
    }
  ]
}
FieldTypeDescription
sitestringThe site.
countintegerHow many orders matched.
ordersobject[]Each order: order_number, order_date, due_date, client, customer and item_count.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
order_numberRequiredstringThe order’s number, for example ORD-1042.
GET/v1/orders/detailsRequest
{
  "site": "Default",
  "order_number": "ORD-1042"
}
cURL
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.

Response body200 OK
{
  "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
    }
  ]
}
FieldTypeDescription
order_numberstringThe order’s number.
sitestringThe site.
order_datedatetimeWhen it was placed (UTC).
due_datedatetime | nullWhen it is due (UTC).
clientstring | nullThe client, if one is set.
customerstring | nullThe customer’s name.
delivery_addressstring | nullThe street line of the address.
delivery_address_citystring | nullThe town or city.
delivery_address_countystring | nullThe county or state.
delivery_postcodestring | nullPostcode.
destination_countrystring | nullCountry.
recipient_phonestring | nullThe recipient’s phone number.
recipient_emailstring | nullThe recipient’s email address.
packagingstring | nullHow the order is packed.
weightnumber | nullWeight in kilograms.
heightnumber | nullHeight in millimetres.
widthnumber | nullWidth in millimetres.
depthnumber | nullDepth in millimetres.
volumenumber | nullVolume in cubic millimetres.
courierstring | nullThe courier.
courier_servicestring | nullThe courier’s service.
itemsobject[]One entry per unit: barcode, product, attributes, sale_price and shipped.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
order_numberRequiredstringThe order’s number.
GET/v1/orders/statusRequest
{
  "site": "Default",
  "order_number": "ORD-1042"
}
cURL
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.

Response body200 OK
{
  "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"
        }
      ]
    }
  ]
}
FieldTypeDescription
order_numberstringThe order.
sitestringThe site.
shippedbooleantrue when every unit has shipped.
itemsobject[]Each unit: barcode, product, shipped and scans, oldest first, each with workstation, scanned_by and scanned_at (UTC).
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
order_numberRequiredstringThe order to change.
order_dateOptionaldatetimeWhen the order was placed. Defaults to now.
due_dateOptionaldatetimeWhen it is due. Orders without a due date aren’t judged on time.
clientOptionalstringThe name of an existing client at the site.
customerOptionalstringThe customer’s name. Up to 200 characters.
delivery_addressOptionalstringThe street line. Up to 500 characters.
delivery_address_cityOptionalstringThe town or city. Up to 200 characters.
delivery_address_countyOptionalstringThe county or state. Up to 200 characters.
delivery_postcodeOptionalstringUp to 20 characters.
destination_countryOptionalstringUp to 200 characters.
recipient_phoneOptionalstringThe recipient’s phone number, for the courier. Up to 50 characters.
recipient_emailOptionalstringThe recipient’s email address, for the courier. Up to 254 characters.
packagingOptionalstringHow the order is packed, for example "A4+ Colompack envelope". Up to 200 characters.
weightOptionalnumberThe parcel’s weight in kilograms. Zero or more.
heightOptionalnumberThe parcel’s height in millimetres. Zero or more.
widthOptionalnumberThe parcel’s width in millimetres. Zero or more.
depthOptionalnumberThe parcel’s depth in millimetres. Zero or more.
volumeOptionalnumberThe parcel’s volume in cubic millimetres. Zero or more. Stored as sent: it isn’t worked out from the height, width and depth.
courierOptionalstringThe courier.
courier_serviceOptionalstringThe courier’s service.
shippedOptionalbooleanMark every unit shipped or not shipped.
performed_byOptionalstringWho 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.
PATCH/v1/ordersRequest
{
  "site": "Default",
  "order_number": "ORD-1042",
  "due_date": "2026-11-22",
  "courier": "DPD",
  "courier_service": "Next day",
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body200 OK
{
  "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"
}
FieldTypeDescription
order_numberstringThe order’s number.
sitestringThe site.
order_datedatetimeWhen it was placed (UTC).
due_datedatetime | nullWhen it is due (UTC).
clientstring | nullThe client, if one is set.
customerstring | nullThe customer’s name.
delivery_addressstring | nullThe street line of the address.
delivery_address_citystring | nullThe town or city.
delivery_address_countystring | nullThe county or state.
delivery_postcodestring | nullPostcode.
destination_countrystring | nullCountry.
recipient_phonestring | nullThe recipient’s phone number.
recipient_emailstring | nullThe recipient’s email address.
packagingstring | nullHow the order is packed.
weightnumber | nullWeight in kilograms.
heightnumber | nullHeight in millimetres.
widthnumber | nullWidth in millimetres.
depthnumber | nullDepth in millimetres.
volumenumber | nullVolume in cubic millimetres.
courierstring | nullThe courier.
courier_servicestring | nullThe courier’s service.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
order_numberRequiredstringThe order to delete.
performed_byOptionalstringWho 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.
DELETE/v1/ordersRequest
{
  "site": "Default",
  "order_number": "ORD-1042",
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body200 OK
{
  "order_number": "ORD-1042",
  "site": "Default",
  "deleted_items": 2
}
FieldTypeDescription
order_numberstringThe order deleted.
sitestringThe site.
deleted_itemsintegerHow many units were deleted.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
workstationRequiredstringThe name of a workstation at the site.
itemsRequiredstring[]The barcodes of the items scanned.
notesOptionalstringA note saved on every scan. Up to 1,000 characters.
performed_byOptionalstringWho 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.
POST/v1/scansRequest
{
  "site": "Default",
  "workstation": "Packing 1",
  "items": ["482910357716", "730164829351"],
  "notes": "Packed by robot cell 2",
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body201 Created
{
  "site": "Default",
  "workstation": "Packing 1",
  "logged": 2,
  "skipped": 0
}
FieldTypeDescription
sitestringThe site.
workstationstringThe workstation.
loggedintegerScans recorded.
skippedintegerItems skipped because they were already scanned there.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
searchOptionalstringOnly clients whose name contains this text.
GET/v1/clientsRequest
{
  "site": "Default"
}
cURL
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.

Response body200 OK
{
  "site": "Default",
  "clients": [
    {
      "client_name": "Acme Ltd"
    },
    {
      "client_name": "Birch & Co"
    }
  ]
}
FieldTypeDescription
sitestringThe site.
clientsobject[]Each client: client_name.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
client_nameRequiredstringThe client’s name. Up to 120 characters.
performed_byOptionalstringWho 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.
POST/v1/clientsRequest
{
  "site": "Default",
  "client_name": "Acme Ltd",
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body201 Created
{
  "site": "Default",
  "client_name": "Acme Ltd"
}
FieldTypeDescription
sitestringThe site.
client_namestringThe client created.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
clientRequiredstringThe client’s name.
date_fromRequireddateStart of the range, as YYYY-MM-DD.
date_toRequireddateEnd of the range, as YYYY-MM-DD.
GET/v1/clients/analyticsRequest
{
  "site": "Default",
  "client": "Acme Ltd",
  "date_from": "2026-10-13",
  "date_to": "2026-11-12"
}
cURL
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.

Response body200 OK
{
  "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
    }
  ]
}
FieldTypeDescription
clientstringThe client.
sitestringThe site.
date_from / date_todateThe range used.
ordersintegerOrders placed in the range.
unitsintegerUnits ordered.
spendnumberMoney spent.
average_spend_per_ordernumberSpend divided by orders.
on_time_percentnumber | nullShare of shipped items that shipped on time.
productsobject[]Units by product alias: alias and units.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
date_fromRequireddateStart of the range, as YYYY-MM-DD.
date_toRequireddateEnd of the range, as YYYY-MM-DD.
clientOptionalstringOnly this client’s orders.
count_byOptionalstring"units" (default) or "orders".
include_weekendsOptionalbooleantrue (default) counts calendar days. false counts working days, Monday to Friday.
GET/v1/orders/slaRequest
{
  "site": "Default",
  "date_from": "2026-10-13",
  "date_to": "2026-11-12",
  "count_by": "units",
  "include_weekends": false
}
cURL
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.

Response body200 OK
{
  "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
    }
  ]
}
FieldTypeDescription
sitestringThe site.
date_from / date_todateThe range used.
count_bystringWhether figures are units or orders.
include_weekendsbooleanWhether weekends were counted.
on_timeintegerShipped on or before the due date.
lateintegerShipped after the due date.
unshippedintegerNot yet shipped.
on_time_percentnumber | nullOn time divided by on time plus late.
by_categoryobject[]The same counts per product category.
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
GET/v1/batchesRequest
{
  "site": "Default"
}
cURL
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.

Response body200 OK
{
  "site": "Default",
  "batches": [
    {
      "batch_id": "BATCH-0003",
      "item_count": 38,
      "created_at": "2026-11-12T08:55:00Z"
    }
  ]
}
FieldTypeDescription
sitestringThe site.
batchesobject[]Each batch: batch_id, item_count and created_at (UTC).
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.

FieldTypeDescription
siteRequiredstringThe name of the site, exactly as it appears in Palletable, for example "Default".
itemsRequiredstring[]The barcodes of the items to batch.
workstationOptionalstringThe name of a Batch Creator workstation. Every item is logged there as it is batched.
performed_byOptionalstringWho 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.
POST/v1/batchesRequest
{
  "site": "Default",
  "items": ["482910357716", "730164829351"],
  "workstation": "Batch Creator",
  "performed_by": "Sam Taylor"
}
cURL
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.

Response body201 Created
{
  "site": "Default",
  "batch_id": "BATCH-0004",
  "item_count": 2,
  "skipped": 0
}
FieldTypeDescription
sitestringThe site.
batch_idstringThe new batch.
item_countintegerItems in the batch.
skippedintegerItems left out because they were already in a batch.
Events

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.

FieldTypeDescription
idstringA 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.
eventstringThe event name, for example order.dispatched.
created_atstringWhen it happened, in UTC (ISO 8601).
sitestringThe name of the site it happened at.
performed_bystring | nullWho 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.
dataobjectThe details of the event. Each event below lists its fields.
Example bodySent to your URL
{
  "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 replyWhat we do
2xxThe event is marked delivered.
Anything else, or no reply in 10 secondsWe 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 tryThe 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:

StepWhat to do
1Read the raw request body before your framework turns it into JSON. Changing it in any way breaks the signature.
2Build timestamp + "." + body and sign it with your secret. Put sha256= in front of the result.
3Compare it to X-Palletable-Signature with a constant-time comparison.
4Reject the event if the timestamp is more than 5 minutes old. This stops someone replaying an old request.
Example checkNode.js
// 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.

FieldTypeDescription
order_numberstringThe order number.
clientstring | nullThe client the order is for.
customerstring | nullThe customer name on the order.
due_datestring | nullThe date it is due, YYYY-MM-DD.
item_countintegerHow many units are on the order.
Example payloadSent to your URL
{
  "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.

FieldTypeDescription
order_numberstringThe order that was tagged.
whostringThe name of the person who tagged it.
workstationstringThe workstation they tagged it at.
timestampstringWhen it was tagged, in UTC.
Example payloadSent to your URL
{
  "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.

FieldTypeDescription
order_numberstringThe order number.
clientstring | nullThe client the order is for.
dispatched_atstringWhen it was dispatched, in UTC.
courierstring | nullThe courier it went with.
courier_servicestring | nullThe courier service used.
tracking_numbersstring[]One tracking number per parcel, where the courier gave one.
Example payloadSent to your URL
{
  "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.

FieldTypeDescription
po_numberstringThe purchase order number.
supplierstringThe supplier it was raised with.
po_namestring | nullThe name given to the order.
due_datestring | nullThe date delivery is expected, YYYY-MM-DD.
line_countintegerHow many lines are on it.
total_valuenumber | nullThe total cost of all lines.
Example payloadSent to your URL
{
  "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.

FieldTypeDescription
po_numberstringThe purchase order number.
supplierstringThe supplier.
delivered_atstringWhen it was booked in, in UTC.
completebooleantrue when every line has now been delivered in full.
linesobject[]Each line delivered: stock_code, qty_received and qty_outstanding.
Example payloadSent to your URL
{
  "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.

FieldTypeDescription
stock_codestringThe stock code.
descriptionstring | nullThe stock item’s description.
total_qtynumberTotal quantity now held across the site.
threshold_qtynumberThe re-order threshold that was crossed.
supplierstring | nullThe item’s supplier.
lead_time_daysinteger | nullHow many days the supplier takes to deliver.
Example payloadSent to your URL
{
  "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.

FieldTypeDescription
stock_codestringThe stock code.
location_namestringThe location that changed.
location_labelstring"Supermarket", "Warehouse" or "Bulk".
previous_qtynumberQuantity before the change.
new_qtynumberQuantity after the change.
changenumberThe change made.
reasonstring | nullWhy it changed, if a reason was given.
transaction_idintegerThe ID of the audit-trail entry.
Example payloadSent to your URL
{
  "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
  }
}
Contact

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.