Developer docs menu

API reference / Sales orders

Sales orders API

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

GET

List

/api/v1/sales-orders

Scope: Scalar360.sales-orders.READ

ParameterInTypeRequired
orderTypequerystringNo
statusquerystringNo
customerIdquerystring (uuid)No
qquerystringNo
pagequeryintegerNo
pageSizequeryintegerNo
sortByquerystringNo
sortDirquerystringNo
startDatequerystring (date)No
endDatequerystring (date)No
Example request
curl -X GET "https://api.scalar360.com/api/v1/sales-orders" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
POST

Create

/api/v1/sales-orders

Scope: Scalar360.sales-orders.CREATE

Body fieldTypeRequiredNotes
customerIdstring (uuid)
customerNamestring
orderTypestring
orderDatestring (date)
expectedShipDatestring (date)
warehouseIdstring (uuid)
notesstring
saveAsDraftboolean
linesarray of objectYesrequired, not empty
lines[].itemIdstring (uuid)
lines[].descriptionstringYesrequired, not blank
lines[].hsnstring
lines[].qtynumber>= 0
lines[].unitstring
lines[].ratenumber>= 0
lines[].gstRatenumber>= 0
lines[].discountnumber>= 0
Example request
curl -X POST "https://api.scalar360.com/api/v1/sales-orders" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"lines":[{"itemId":"3f1c2b9e-7a1d-4c3e-9b2a-1e5f6a7b8c9d","description":"string","hsn":"string","qty":100,"unit":"string","rate":100}]}'
GET

Get

/api/v1/sales-orders/{id}

Scope: Scalar360.sales-orders.READ

ParameterInTypeRequired
idpathstring (uuid)Yes
Example request
curl -X GET "https://api.scalar360.com/api/v1/sales-orders/{id}" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
PUT

Update

/api/v1/sales-orders/{id}

Scope: Scalar360.sales-orders.UPDATE

ParameterInTypeRequired
idpathstring (uuid)Yes
Body fieldTypeRequiredNotes
customerIdstring (uuid)
customerNamestring
orderTypestring
orderDatestring (date)
expectedShipDatestring (date)
warehouseIdstring (uuid)
notesstring
saveAsDraftboolean
linesarray of objectYesrequired, not empty
lines[].itemIdstring (uuid)
lines[].descriptionstringYesrequired, not blank
lines[].hsnstring
lines[].qtynumber>= 0
lines[].unitstring
lines[].ratenumber>= 0
lines[].gstRatenumber>= 0
lines[].discountnumber>= 0
Example request
curl -X PUT "https://api.scalar360.com/api/v1/sales-orders/{id}" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"customerId":"3f1c2b9e-7a1d-4c3e-9b2a-1e5f6a7b8c9d","customerName":"string","orderType":"string","orderDate":"2026-10-12","expectedShipDate":"2026-10-12","warehouseId":"3f1c2b9e-7a1d-4c3e-9b2a-1e5f6a7b8c9d"}'
POST

Cancel

/api/v1/sales-orders/{id}/cancel

Scope: Scalar360.sales-orders.CREATE

ParameterInTypeRequired
idpathstring (uuid)Yes
Example request
curl -X POST "https://api.scalar360.com/api/v1/sales-orders/{id}/cancel" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
POST

Confirm

/api/v1/sales-orders/{id}/confirm

Scope: Scalar360.sales-orders.CREATE

ParameterInTypeRequired
idpathstring (uuid)Yes
Example request
curl -X POST "https://api.scalar360.com/api/v1/sales-orders/{id}/confirm" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
POST

Convert

/api/v1/sales-orders/{id}/convert

Scope: Scalar360.sales-orders.CREATE

ParameterInTypeRequired
idpathstring (uuid)Yes
Example request
curl -X POST "https://api.scalar360.com/api/v1/sales-orders/{id}/convert" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"