Developer docs menu

API reference / Reorder

Reorder API

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

POST

Set preferred vendor

/api/v1/reorder/preferred-vendor

Scope: Scalar360.reorder.CREATE

Body fieldTypeRequiredNotes
itemIdstring (uuid)Yes
vendorIdstring (uuid)
Example request
curl -X POST "https://api.scalar360.com/api/v1/reorder/preferred-vendor" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"itemId":"3f1c2b9e-7a1d-4c3e-9b2a-1e5f6a7b8c9d"}'
POST

Create purchase orders

/api/v1/reorder/purchase-orders

Scope: Scalar360.reorder.CREATE

Body fieldTypeRequiredNotes
linesarray of objectYesrequired, not empty
lines[].itemIdstring (uuid)
lines[].vendorIdstring (uuid)
lines[].quantitynumberYesrequired
Example request
curl -X POST "https://api.scalar360.com/api/v1/reorder/purchase-orders" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"lines":[{"itemId":"3f1c2b9e-7a1d-4c3e-9b2a-1e5f6a7b8c9d","vendorId":"3f1c2b9e-7a1d-4c3e-9b2a-1e5f6a7b8c9d","quantity":100}]}'
GET

Suggestions

/api/v1/reorder/suggestions

Scope: Scalar360.reorder.READ

Example request
curl -X GET "https://api.scalar360.com/api/v1/reorder/suggestions" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"