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 field | Type | Required | Notes |
|---|---|---|---|
itemId | string (uuid) | Yes | |
vendorId | string (uuid) |
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 field | Type | Required | Notes |
|---|---|---|---|
lines | array of object | Yes | required, not empty |
lines[].itemId | string (uuid) | ||
lines[].vendorId | string (uuid) | ||
lines[].quantity | number | Yes | required |
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
curl -X GET "https://api.scalar360.com/api/v1/reorder/suggestions" \
-H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"