Developer docs menu

API reference / Sales

Sales API

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

GET

Dashboard

/api/v1/sales/dashboard

Scope: Scalar360.sales.READ

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

List

/api/v1/sales/settings/numbering

Scope: Scalar360.sales.READ

Example request
curl -X GET "https://api.scalar360.com/api/v1/sales/settings/numbering" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
PUT

Update

/api/v1/sales/settings/numbering/{docType}

Scope: Scalar360.sales.UPDATE

ParameterInTypeRequired
docTypepathstringYes
Body fieldTypeRequiredNotes
prefixstring
includeFinancialYearboolean
paddinginteger
nextNumberinteger
Example request
curl -X PUT "https://api.scalar360.com/api/v1/sales/settings/numbering/{docType}" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"prefix":"string","includeFinancialYear":true,"padding":1,"nextNumber":1}'