List vendors
Vendors whose company name starts with the text you give.
GET https://cotlet.dev/api/v1/resman/vendors
read
Returns the vendor id, company, abbreviation, whether it is approved, the contact and the phone number. The match is on the start of the name, so "Classic" finds "Classic Tile".
Parameters
| Name | Type | Description |
|---|---|---|
| company string required | string | Start of the vendor company name. |
Request
curl "https://cotlet.dev/api/v1/resman/vendors?company=company" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("resman", "list_vendors", {"company":"company"}) const result = await cotlet.call('resman', 'list_vendors', {"company":"company"}); cotlet call resman list_vendors --data '{"company":"company"}' Example response
{
"vendors": [
{
"vendor_id": "9ff22dfc-e1b7-4ee9-a9eb-902ef70b5776",
"company": "Classic Tile",
"abbreviation": "CT",
"is_approved": true,
"contact": "Classic Tile",
"phone": "800-123-4576"
}
]
}