Vendors

Overview

Vendors represent companies or individuals you pay for goods or services. Managing vendors allows you to track expenses, create bills, and maintain an organized accounts payable system.


How It Works

  1. Create a vendor — Add a new vendor with contact and payment details
  2. Create bills — Associate bills with the vendor for expenses owed
  3. Track payments — Monitor payments made to each vendor
  4. Export data — Download vendor information for your accounting system

Example: Add "Content Provider Inc." as a vendor with their payment details. When you receive their monthly invoice, create a bill linked to this vendor for easy tracking and payment.


API Endpoints

MethodEndpointDescription
GET/api/v1/core/vendorsList vendors
POST/api/v1/core/vendorsCreate vendor
GET/api/v1/core/vendors/{id}Get vendor
PUT/api/v1/core/vendors/{id}Update vendor
DELETE/api/v1/core/vendors/{id}Delete vendor
GET/api/v1/core/vendors/exportExport vendors

Vendor Object

AttributeTypeDescription
idintegerThe vendor's user ID
vendor_idintegerInternal vendor record ID
namestringFull name (first_name + last_name)
first_namestringFirst name
last_namestringLast name
emailstringEmail address
phonestringPhone number
birthdatestringBirthdate (when vendor relationship is expanded)
job_titlestringJob title (when vendor relationship is expanded)
delivery_service_area_promptstringAI delivery service area prompt (when vendor relationship is expanded)
bills_countintegerNumber of bills associated with this vendor
total_billeddecimalTotal amount billed (in dollars)
payout_readybooleanWhether the vendor's payout details are fully configured and authorized
metadataobjectCustom key-value metadata
created_attimestampUnix timestamp of creation
updated_attimestampUnix timestamp of last update

Important Behaviors

  • Vendor = User: A vendor is a User with type=vendor. The id field is the user ID.
  • Delete converts, not removes: Deleting a vendor converts the user type back to customer. The user account is preserved.
  • Cannot delete with bills: A vendor with existing bills cannot be deleted. Returns 400.
  • Payout Details: Each vendor can have one set of payout details for ACH payments.