Developer docs menu

API reference / Vendors

Vendors API

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

GET

List vendors

/api/v1/vendors

Scope: Scalar360.vendors.READ

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

Create vendor

/api/v1/vendors

Scope: Scalar360.vendors.CREATE

Body fieldTypeRequiredNotes
namestringYesrequired, not blank, max length 200
contactPersonstringmax length 150
emailstringvalid email
phonestring
addressstring
citystringmax length 100
statestringmax length 100
pinstringmax length 10
gstinstringmax length 15
panstringmax length 10
paymentTermsstringmax length 100
creditDaysinteger
notesstring
Example request
curl -X POST "https://api.scalar360.com/api/v1/vendors" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'
GET

Get vendor

/api/v1/vendors/{id}

Scope: Scalar360.vendors.READ

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

Update vendor

/api/v1/vendors/{id}

Scope: Scalar360.vendors.UPDATE

ParameterInTypeRequired
idpathstring (uuid)Yes
Body fieldTypeRequiredNotes
namestringYesrequired, not blank, max length 200
contactPersonstringmax length 150
emailstringvalid email
phonestring
addressstring
citystringmax length 100
statestringmax length 100
pinstringmax length 10
gstinstringmax length 15
panstringmax length 10
paymentTermsstringmax length 100
creditDaysinteger
notesstring
Example request
curl -X PUT "https://api.scalar360.com/api/v1/vendors/{id}" \
  -H "Authorization: Scalar360-oauthtoken $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"string","contactPerson":"string","email":"string","phone":"string","address":"string","city":"string"}'
DELETE

Delete vendor

/api/v1/vendors/{id}

Scope: Scalar360.vendors.DELETE

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

Activate vendor

/api/v1/vendors/{id}/activate

Scope: Scalar360.vendors.UPDATE

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

Block vendor

/api/v1/vendors/{id}/block

Scope: Scalar360.vendors.UPDATE

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