Vendors
The Vendor object
idstringoptionalPublic vendor identifier.
internal_idstringoptionalOptional internal identifier.
business_idstringoptionalBusiness identifier associated with the vendor.
namestringoptionalVendor display name.
emailstringoptionalVendor email address.
phonestringoptionalVendor phone number.
logo_urlstringoptionalVendor logo URL.
photo_urlstringoptionalVendor photo URL.
placeobjectoptionalPrimary vendor place, when loaded.
placesarray of objectsoptionalPlaces associated with the vendor, when loaded.
personnelsarray of objectsoptionalPersonnel contacts associated with the vendor, when loaded.
countrystringoptionalVendor country code.
typestringoptionalVendor type.
metaobjectoptionalAdditional vendor metadata.
statusstringoptionalVendor lifecycle status.
slugstringoptionalURL-friendly vendor slug.
website_urlstringoptionalVendor website URL.
updated_attimestampoptionalTimestamp when the vendor was last updated.
created_attimestampoptionalTimestamp when the vendor was created.
{
"id": "vendor_8Qw2YxM3Nf",
"internal_id": "VEND-1001",
"business_id": null,
"name": "ABC Corporation",
"email": "abc@example.com",
"phone": "1234567890",
"logo_url": null,
"photo_url": null,
"place": null,
"places": [],
"personnels": [],
"country": null,
"type": "Supplier",
"meta": {},
"status": "active",
"slug": "abc-corporation",
"website_url": null,
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}/v1/vendorsCreate a Vendor
Creates a vendor for the current company. Vendors can be assigned to orders, vehicles, drivers, places, and facilitator workflows.
namestringrequiredVendor display name.
typestringrequiredVendor type.
emailstringoptionalVendor email address.
phonestringoptionalVendor phone number.
addressstringoptionalPlace ID to use as the vendor's primary address.
metaobjectoptionalAdditional vendor metadata.
/v1/vendorscurl -X POST https://api.fleetbase.io/v1/vendors \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "ABC Corporation",
"type": "Supplier",
"email": "abc@example.com",
"phone": "1234567890"
}'{
"id": "<string>",
"internal_id": "<string>",
"name": "<string>",
"email": "<string>",
"phone_number": "<string>",
"phone_country_code": "<string>",
"address": "<string>",
"type": "<string>",
"slug": "<string>",
"updated_at": "<string>",
"created_at": "<string>"
}/v1/vendors/:idRetrieve a Vendor
This endpoint allows you to retrieve a vendor object to view it's details.
/v1/vendors/:idcurl https://api.fleetbase.io/v1/vendors/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"{
"id": "<string>",
"internal_id": "<string>",
"name": "<string>",
"email": "<string>",
"phone_number": "<string>",
"phone_country_code": "<string>",
"address": "<string>",
"type": "<string>",
"slug": "<string>",
"updated_at": "<string>",
"created_at": "<string>"
}/v1/vendors/:idUpdate a Vendor
Updates a vendor's profile, primary address, type, contact fields, or metadata.
namestringoptionalVendor display name.
typestringoptionalVendor type.
emailstringoptionalVendor email address.
phonestringoptionalVendor phone number.
addressstringoptionalPlace ID to use as the vendor's primary address.
metaobjectoptionalAdditional vendor metadata.
/v1/vendors/:idcurl -X PUT https://api.fleetbase.io/v1/vendors/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"name": "ABC Corporation",
"type": "Supplier",
"email": "abc@example.com",
"phone": "1234567890"
}'{
"id": "<string>",
"name": "<string>",
"internal_id": "<string>",
"email": "<string>",
"phone_number": "<string>",
"phone_country_code": "<string>",
"address": "<string>",
"type": "<string>",
"slug": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}/v1/vendorsQuery Vendors
Returns vendors for the current company. Use search, pagination, and sort parameters to narrow the result set.
idstringoptionalVendor ID filter used by this request example.
querystringoptionalSearch term matched against vendor fields.
limitintegeroptionalMaximum number of vendors to return.
offsetintegeroptionalNumber of vendors to skip before returning results.
sortstringoptionalSort expression for the vendor query.
/v1/vendorscurl https://api.fleetbase.io/v1/vendors?id={{vendor_id}} \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"{
"id": "<string>",
"internal_id": "<string>",
"name": "<string>",
"email": "<string>",
"phone_number": "<string>",
"phone_country_code": "<string>",
"address": "<string>",
"type": "<string>",
"slug": "<string>",
"updated_at": "<string>",
"created_at": "<string>"
}/v1/vendors/:idDelete a Vendor
Use this endpoint to delete a vendor.
/v1/vendors/:idcurl -X DELETE https://api.fleetbase.io/v1/vendors/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Accept: application/json"{
"id": "<string>",
"internal_id": "<string>",
"name": "<string>",
"email": "<string>",
"phone_number": "<string>",
"phone_country_code": "<string>",
"address": "<string>",
"type": "<string>",
"slug": "<string>",
"updated_at": "<string>",
"created_at": "<string>"
}