Developer docs menu

API reference / Sales

Sales API

11 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

ParameterInTypeRequired
gstRegistrationIdquerystring (uuid)No
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
gstRegistrationIdquerystring (uuid)No
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}'
GET

Auto created

/api/v1/sales/settings/numbering/auto-created

Scope: Scalar360.sales.READ

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

Customer series list

/api/v1/sales/settings/numbering/customers

Scope: Scalar360.sales.READ

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

Customer series

/api/v1/sales/settings/numbering/customers/{customerId}

Scope: Scalar360.sales.READ

ParameterInTypeRequired
customerIdpathstring (uuid)Yes
Example request
curl -X GET "https://api.scalar360.com/api/v1/sales/settings/numbering/customers/{customerId}" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
PUT

Save customer series

/api/v1/sales/settings/numbering/customers/{customerId}

Scope: Scalar360.sales.UPDATE

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

Remove customer series

/api/v1/sales/settings/numbering/customers/{customerId}

Scope: Scalar360.sales.DELETE

ParameterInTypeRequired
customerIdpathstring (uuid)Yes
Example request
curl -X DELETE "https://api.scalar360.com/api/v1/sales/settings/numbering/customers/{customerId}" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"
GET

Options

/api/v1/sales/settings/numbering/options

Scope: Scalar360.sales.READ

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

Update options

/api/v1/sales/settings/numbering/options

Scope: Scalar360.sales.UPDATE

Body fieldTypeRequiredNotes
separateUnregisteredInvoiceSeriesboolean
Example request
curl -X PUT "https://api.scalar360.com/api/v1/sales/settings/numbering/options" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"separateUnregisteredInvoiceSeries":true}'
GET

Preview

/api/v1/sales/settings/numbering/preview

Scope: Scalar360.sales.READ

ParameterInTypeRequired
customerIdquerystring (uuid)No
gstRegistrationIdquerystring (uuid)No
Example request
curl -X GET "https://api.scalar360.com/api/v1/sales/settings/numbering/preview" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN"