List vendors

GET /api/v1/vendors

Retrieve all suppliers/vendors for the business.

Operation ID: list_vendors_api_v1_vendors_get · View as markdown · OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Parameters

Query

search string

Fuzzy search vendors by name (uses trigram matching)

cursor string

Cursor for pagination

limit integer

Pagination limit

direction string default: next

Pagination direction: 'next' or 'prev'

include_total_count boolean default: False

Whether to include total count (expensive - avoid if possible)

sort_by string

Column name to sort by (e.g. 'created_at', 'amount', 'name'). When changing sort, reset cursor to None.

descending boolean default: True

Sort direction: true for descending (newest/largest first), false for ascending

Responses

200 Successful Response

items array · VendorResponse requiredVendorResponse

List of items

20 fields
id string required

Vendor UUID.

business_id string required

Business UUID.

name string required

Vendor name.

email string

Vendor email address.

address string

Vendor business address.

phone string

Vendor phone number.

tax_id string

Tax identification number.

website string

Vendor website URL.

notes string

Internal notes.

credit_limit_cents integer

Credit limit in cents.

default_payment_term_id string

Default payment term ID.

status string

Vendor status.

category string

Business category.

default_location_id string

Default ship-from location ID for purchase orders.

default_location_name string

Default ship-from location name (resolved).

is_deleted boolean

Whether vendor is soft deleted.

deleted_at string · date-time

Timestamp when vendor was deleted.

created_at string · date-time required

Creation timestamp.

updated_at string · date-time required

Last update timestamp.

contacts array · VendorContactResponse

Vendor contacts.

total integer

Total number of items (null when not calculated for performance)

limit integer

Pagination limit

next_cursor string

Cursor for next page

prev_cursor string

Cursor for previous page

has_next boolean required

Whether there are more items

has_prev boolean required

Whether there are previous items

401 Unauthorized - Authentication required

403 Forbidden - Insufficient permissions

422 Validation Error

detail array · ValidationError ValidationError
5 fields
loc array · string | integer required
msg string required
type string required
input object
ctx object