Developer docs menu

API reference / Batches

Batches API

4 endpoints. Scopes: Scalar360.batches.READ, .CREATE, .UPDATE, .DELETE or .ALL. All calls need Authorization: Scalar360-oauthtoken <access_token> — see Authentication.

GET

Expiring

/api/v1/batches/expiring

Scope: Scalar360.batches.READ

ParameterInTypeRequired
daysqueryinteger (default 30)No
Example request
curl -X GET "https://api.scalar360.com/api/v1/batches/expiring" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
GET

List

/api/v1/batches/items/{itemId}

Scope: Scalar360.batches.READ

ParameterInTypeRequired
itemIdpathstring (uuid)Yes
Example request
curl -X GET "https://api.scalar360.com/api/v1/batches/items/{itemId}" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
POST

Stock in

/api/v1/batches/items/{itemId}/stock-in

Scope: Scalar360.batches.CREATE

ParameterInTypeRequired
itemIdpathstring (uuid)Yes
Body fieldTypeRequiredNotes
warehouseIdstring (uuid)
batchNumberstring
expiryDatestring (date)
quantitynumberYesrequired
unitCostnumber
Example request
curl -X POST "https://api.scalar360.com/api/v1/batches/items/{itemId}/stock-in" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"quantity":100}'
PUT

Set tracking

/api/v1/batches/items/{itemId}/tracking

Scope: Scalar360.batches.UPDATE

ParameterInTypeRequired
itemIdpathstring (uuid)Yes
Body fieldTypeRequiredNotes
enabledboolean
Example request
curl -X PUT "https://api.scalar360.com/api/v1/batches/items/{itemId}/tracking" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"enabled":true}'