AUK HygieneOrdering API

Ordering from your own system

Your system can see your products and delivery addresses, ask for new delivery addresses, send orders and see where they are. It is a REST API: every call is HTTPS and JSON, starts with /v1/, and carries your key.

Quick start

The address for every call is:

https://api.aukhygiene.com

Try your key by asking for your products:

curl https://api.aukhygiene.com/v1/products \
  -H "Authorization: Bearer aukt_…"

Then, in order: read your delivery addresses, send a test order to one of them, and ask where it is.

Your key

Send it on every call as a header. Keep it secret: anyone with it can order on your account. If it gets out, tell us and we'll switch it off at once and give you a new one. Your key works from any internet address.

Authorization: Bearer aukt_…

A key starting aukt_ is a test key. It works exactly like a live key, but its orders and address requests are marked Test: we see them, they are never made in our order system, and nothing is delivered. Build against a test key first.

A key starting aukl_ is a live key: its orders are real.

We send keys only by a one-time secure link, never by plain email. Keep yours in your system's secret store, not in its code.

The calls

GET/v1/products

Your products and your prices.

GET/v1/addresses

Your delivery addresses, with our address id. An order goes to one of these.

POST/v1/addresses

Ask for a new delivery address. A person checks it.

GET/v1/address-requests/{request_id}

Where an address request is.

POST/v1/orders

Send an order.

GET/v1/orders/{reference}

Where one order is, by your reference.

GET/v1/orders?since={time}

Your orders that changed since a time.

Your products

GET /v1/products

200 OK
{
  "account": "ABC123",
  "products": [
    {"code": "01-460218", "your_code": "BR-150", "name": "Centrefeed blue roll, 6 x 150 m", "price": 13.90, "vat_rate": 20},
    {"code": "06-585", "your_code": null, "name": "Heavy duty bin liners, 200", "price": 7.95, "vat_rate": 20}
  ]
}
fieldmeaning
codeOur product code. Send this on an order.
your_codeYour own code for it, where we hold one, or null.
nameThe product's name.
priceYour price for one, before VAT, today. null if we have no price for you: ask us before ordering it.
vat_rateVAT in percent (20), or null if not known.

Your list is the products with your own prices, your price list, and anything you've ordered from us in the last two years. It changes rarely: reading it once a day is plenty. We refresh it at most every 15 minutes.

Your delivery addresses

GET /v1/addresses

200 OK
{
  "account": "ABC123",
  "addresses": [
    {
      "id": 4172,
      "name": "Riverside Campus",
      "site_code": "RIV-C",
      "contract_group": "Universities",
      "contact": "Site office",
      "address1": "1 River Road",
      "address2": "",
      "address3": "",
      "town": "Exeter",
      "county": "Devon",
      "postcode": "EX1 1AA",
      "instructions": "Goods entrance",
      "delivery_method": "Our van",
      "budget": {"type": "Spend", "period": "Month", "value": 60.00, "repeat_every": 1,
                 "start": "2026-01-01", "end": null, "excludes_recharge_products": true},
      "test": false
    }
  ]
}

Asking for a new delivery address

POST /v1/addresses
Content-Type: application/json

{
  "name": "Riverside Campus, Block C",
  "contact": "Site supervisor",
  "address1": "1 River Road",
  "address2": "",
  "address3": "",
  "town": "Exeter",
  "county": "Devon",
  "postcode": "EX1 1AA",
  "phone": "01392 000000",
  "email": "site@example.com",
  "instructions": "Ring on arrival"
}

202 Accepted
{
  "request_id": "9b2f4c1e-0d7a-4e55-a1c3-2f6e8d9b7a10",
  "status": "pending",
  "address_id": null,
  "reason": null,
  "test": false,
  "received_at": "2027-01-15T09:00:04Z",
  "updated_at": "2027-01-15T09:00:04Z"
}

name, address1 and a UK postcode are needed; the rest are optional. Most fields can be up to 100 characters; postcode 15, phone 35, email 255, instructions 400.

A person checks each new address, usually the same working day. Keep the request_id and ask where it is:

GET /v1/address-requests/9b2f4c1e-0d7a-4e55-a1c3-2f6e8d9b7a10

200 OK
{"request_id": "9b2f4c1e-…", "status": "approved", "address_id": 4188, "reason": null, "test": false, …}
statusmeaning
pendingWaiting for a person.
approvedIt's one of your addresses now: address_id is its id, and it's in GET /v1/addresses.
refusedWe couldn't take it: reason says why.

Sending an order

POST /v1/orders
Content-Type: application/json

{
  "reference": "FM-104233",
  "address_id": 4172,
  "delivery_date": "2027-06-14",
  "instructions": "Deliver to the goods entrance",
  "startup": false,
  "lines": [
    {"product_code": "01-460218", "quantity": 10},
    {"product_code": "06-585", "quantity": 3}
  ]
}

202 Accepted
{
  "reference": "FM-104233",
  "status": "being_checked",
  "sales_order": null,
  "delivery_date": "2027-06-14",
  "startup": false,
  "test": false,
  "reason": null,
  "despatched_at": null,
  "tracking": null,
  "received_at": "2027-06-01T08:12:40Z",
  "updated_at": "2027-06-01T08:12:40Z"
}

Prices are always ours for your account at the time the order is made: you don't send them. Every order is checked at once, and anything wrong is answered straight away with the reason.

Where an order is

GET /v1/orders/FM-104233

200 OK
{
  "reference": "FM-104233",
  "status": "despatched",
  "sales_order": "SO-512345",
  "delivery_date": "2027-06-14",
  "startup": false,
  "test": false,
  "reason": null,
  "despatched_at": "2027-06-13T15:02:00Z",
  "tracking": {"reference": "1234567890", "url": null},
  "received_at": "2027-06-01T08:12:40Z",
  "updated_at": "2027-06-13T15:05:11Z"
}

If your reference has a / or a space in it, URL-encode it (FM%2F1042).

statusmeaning
being_checkedWe have it. A person is checking it.
acceptedIt's an order in our system: sales_order is our number.
on_holdIt's held. We'll be in touch.
despatchedIt has left us: despatched_at, with tracking when there is any.
deliveredIt was signed for.
refusedWe couldn't take it: reason says why.

Keeping up to date

We don't call your system when an order changes (no webhooks yet; we can add them later). Instead, ask for your orders that changed since a time:

GET /v1/orders?since=2027-06-13T15:00:00Z

200 OK
{
  "orders": [
    {"reference": "FM-104233", "status": "despatched", "sales_order": "SO-512345", …},
    {"reference": "FM-104240", "status": "accepted", "sales_order": "SO-512391", …}
  ]
}

Testing with a test key

  1. Read your products and addresses: these are real, from your account.
  2. Send an order. It comes back being_checked, marked "test": true.
  3. We see it and mark it accepted as a test, or refuse it, so you can see each answer. An accepted test order gets a made-up number starting TEST. It never reaches our order system, and is never despatched.
  4. Ask for a new address. If we approve it, it gets a made-up id from 900000001, and it's in your test key's address list only, so you can send test orders to it.

Tell us when you've sent test orders you'd like us to look at. When you're ready, we give you a live key; test orders and test addresses stay with the test key.

Limits

limitusually
Calls a minute, for each key60
Orders a day, for each key200
Lines on one order200
How far ahead an order can be200 days
Address requests waiting at once50
Size of one call512 KB

We can raise any of these for your key: just ask. Past a limit, the answer is 429.

When something is wrong

Every refused call answers with an HTTP status and the same shape, saying what to fix in plain words:

{"error": {"code": "not_your_product", "message": "Line 2: 12-050R isn't on your product list (GET /v1/products).", "request_id": "3f9a1c2e"}}

Act on code; show or log message. If you need to ask us about a call, give us its request_id.

statuscodemeaning
400bad_jsonThe body isn't a JSON object we can read.
400missing_field, bad_field, too_longA field is missing, the wrong type, has characters we can't take, or is too long.
400bad_referenceThe order reference has characters we can't take.
400bad_addressaddress_id isn't one of yours.
400bad_date, not_a_delivery_daydelivery_date isn't a date, isn't after today, is too far ahead, or isn't a delivery day.
400no_lines, bad_line, too_many_linesThe lines are missing, not in the right shape, or too many.
400not_your_product, repeated_product, bad_quantityA product isn't on your list, is on the order twice, or has a quantity that isn't a whole number from 1 to 99999.
400bad_postcode, bad_emailA new address's postcode or email doesn't look right.
400bad_sincesince isn't a date and time.
401no_key, bad_keyNo key, or a key we don't know.
403key_off, not_allowedThe key is switched off, or can't make this call.
404not_found, no_such_callNo such order or address request for you, or no such call.
405wrong_methodThat call doesn't take this method (GET or POST).
409duplicate_referenceYou've already sent an order with that reference. Ask where it is instead.
413too_bigThe call is bigger than 512 KB.
415send_jsonSend Content-Type: application/json.
429too_many, too_many_ordersToo many calls this minute, too many orders today, or too many address requests waiting. Wait and try again.
500our_faultSomething went wrong on our side. Try again shortly.
503try_againWe can't reach our order system just now. Try again in a few minutes.

When to retry: after 429, 500 or 503, or a call with no answer, wait and send the same call again (a minute, then longer). Don't retry a 400, 401, 403 or 409 unchanged: it will be refused again.