GS1
DataMatrix and GS1-128 with the application identifiers for GTIN (01), expiry (17), production date (11), lot (10) and serial (21). A day of 00 is the end of the month.
Integrations
Clinical systems record use. Procurement books deliveries in. Sensors post readings. Your systems hear what changed. Each organisation makes its own keys and webhooks, and revokes them when it likes.
Every call carries an X-Api-Key header. A key is read only, write only, or both, and is shown once when it is made. Answers are JSON.
| Call | What it does | Needs |
|---|---|---|
GET /api/integration/products | The catalogue with stock on hand, packs and GTINs. | Read |
GET /api/integration/stock?groupBy=product|location|lot | Stock on hand, grouped. | Read |
GET /api/integration/lots?expiringDays=30 | Lots and their expiry. | Read |
GET /api/integration/movements | The movement ledger, newest first. | Read |
GET /api/integration/scan?barcode=… | What a GS1 or HIBC barcode says and which product it is. | Read |
POST /api/integration/consume | Records use: lines of GTIN or SKU, quantity, lot, location code and a reference. Picked soonest-expiry first. | Write |
POST /api/integration/receive | Books a delivery in: lines of GTIN or SKU, lot, expiry, quantity and location code. | Write |
POST /api/integration/temperature | A sensor reading for a location code; outside the range raises an alert. | Write |
POST /api/integration/consume
X-Api-Key: arm_…
{
"lines": [
{ "gtin": "09312345678907", "quantity": 2, "locationCode": "TH2-CART", "reference": "Case 4471" }
]
}
An https address you name is sent a JSON message when something you subscribe to happens. Each message carries X-Armaria-Event and X-Armaria-Signature: sha256=…, an HMAC of the body with the secret shown when the webhook was made. A delivery that is not answered 2xx is retried with growing waits.
| Event | When |
|---|---|
stock.low | A product reached its reorder point. |
stock.moved | Stock was received, moved, used or adjusted. |
lot.expiring | A lot is inside its expiry warning window. |
lot.expired | A lot expired. |
purchaseorder.sent | A purchase order was sent to the vendor. |
purchaseorder.received | A purchase order was fully received. |
goodsreceipt.posted | A delivery was booked in. |
recall.matched | A recall matched stock on hand. |
temperature.breach | A location read outside its temperature range. |
DataMatrix and GS1-128 with the application identifiers for GTIN (01), expiry (17), production date (11), lot (10) and serial (21). A day of 00 is the end of the month.
Primary and secondary HIBC codes, as printed on many surgical products.
EAN-13, UPC and any GTIN padded to 14 digits; a product's SKU or a pack's own barcode; a shelf's label.
We will walk your integrator through the keys, the calls and the webhook signature.