Developer docs menu

API reference / Customers

Customers API

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

GET

List

/api/v1/customers

Scope: Scalar360.customers.READ

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

Create

/api/v1/customers

Scope: Scalar360.customers.CREATE

Body fieldTypeRequiredNotes
namestringYesrequired, not blank
phonestring
emailstring
gstinstringformat: ^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$
defaultSupplyTypestring
billingAddressstring
shippingAddressstring
statestring
pinstring
statusstring
priceListIdstring
Example request
curl -X POST "https://api.scalar360.com/api/v1/customers" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'
GET

Get

/api/v1/customers/{id}

Scope: Scalar360.customers.READ

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

Update

/api/v1/customers/{id}

Scope: Scalar360.customers.UPDATE

ParameterInTypeRequired
idpathstring (uuid)Yes
Body fieldTypeRequiredNotes
namestringYesrequired, not blank
phonestring
emailstring
gstinstringformat: ^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$
defaultSupplyTypestring
billingAddressstring
shippingAddressstring
statestring
pinstring
statusstring
priceListIdstring
Example request
curl -X PUT "https://api.scalar360.com/api/v1/customers/{id}" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","phone":"string","email":"string","gstin":"string","defaultSupplyType":"string","billingAddress":"string"}'
DELETE

Delete

/api/v1/customers/{id}

Scope: Scalar360.customers.DELETE

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