curl "https://api.satyakod.com/v1/batches?status=printed&pageSize=1" \
-H "Authorization: Bearer $SATYAKOD_KEY"
{
"items": [
{
"id": "B-1045",
"productId": "prd_wb18",
"productName": "Wiper blade WB-18",
"gtin": "08901234567893",
"codeFamily": "gs1_signed",
"verification": "online",
"quantity": 5000,
"status": "printed",
"serialRange": { "first": "0021-A051-2PXK-20J9", "last": "0021-A051-7RQM-4D2K" },
"lot": "L2611A",
"productionDate": "2026-11-02",
"authorisedRegion": "West · MH, GJ, GA",
"printLine": "Pune line 2",
"signingKeyId": "acme-gs1-2026-01",
"scannedCount": 1312,
"createdBy": { "id": "12", "name": "Priya Nair", "email": "priya@example.com" },
"createdAt": "2026-11-02T09:14:00+00:00",
"updatedAt": "2026-11-03T11:40:00+00:00"
}
],
"total": 37,
"page": 1,
"pageSize": 1
}
Batches and products
List batches
Your workspace’s batches, newest first.
GET
/
v1
/
batches
curl "https://api.satyakod.com/v1/batches?status=printed&pageSize=1" \
-H "Authorization: Bearer $SATYAKOD_KEY"
{
"items": [
{
"id": "B-1045",
"productId": "prd_wb18",
"productName": "Wiper blade WB-18",
"gtin": "08901234567893",
"codeFamily": "gs1_signed",
"verification": "online",
"quantity": 5000,
"status": "printed",
"serialRange": { "first": "0021-A051-2PXK-20J9", "last": "0021-A051-7RQM-4D2K" },
"lot": "L2611A",
"productionDate": "2026-11-02",
"authorisedRegion": "West · MH, GJ, GA",
"printLine": "Pune line 2",
"signingKeyId": "acme-gs1-2026-01",
"scannedCount": 1312,
"createdBy": { "id": "12", "name": "Priya Nair", "email": "priya@example.com" },
"createdAt": "2026-11-02T09:14:00+00:00",
"updatedAt": "2026-11-03T11:40:00+00:00"
}
],
"total": 37,
"page": 1,
"pageSize": 1
}
Scope:
Each item:
Also
batches:read. A paginated list (items, total, page, pageSize); see
Requests and responses.
Matches part of the batch number, the product name or the lot. A full serial finds the batch it
was issued in.
created, product, quantity, status or number; prefix with - for descending
(-quantity). Without it, or with any other value, newest first.The batch number, such as
B-1045. Use it with Get a batch.Where the codes are checked:
online, offline or both. See
Verification modes.id, name and email; {"id": "system", "name": "System", "email": ""} when no person
created it.When codes were revoked.
revokedRange (first, last) is the range revoked, when only part of
the batch was, and revokedCount how many serials are revoked (the whole batch or the range).signedCodes (true when each code also carries a signature that can be checked offline) and
designId (the Private Code design, on private_code batches).
curl "https://api.satyakod.com/v1/batches?status=printed&pageSize=1" \
-H "Authorization: Bearer $SATYAKOD_KEY"
{
"items": [
{
"id": "B-1045",
"productId": "prd_wb18",
"productName": "Wiper blade WB-18",
"gtin": "08901234567893",
"codeFamily": "gs1_signed",
"verification": "online",
"quantity": 5000,
"status": "printed",
"serialRange": { "first": "0021-A051-2PXK-20J9", "last": "0021-A051-7RQM-4D2K" },
"lot": "L2611A",
"productionDate": "2026-11-02",
"authorisedRegion": "West · MH, GJ, GA",
"printLine": "Pune line 2",
"signingKeyId": "acme-gs1-2026-01",
"scannedCount": 1312,
"createdBy": { "id": "12", "name": "Priya Nair", "email": "priya@example.com" },
"createdAt": "2026-11-02T09:14:00+00:00",
"updatedAt": "2026-11-03T11:40:00+00:00"
}
],
"total": 37,
"page": 1,
"pageSize": 1
}