Skip to main content

Vendors

Manage vendor contact, payment, and banking information for expenses.

Create Vendor​

POST https://api.invoiless.com/v1/vendors

Create a new vendor with contact and payment information.

Example:

{
"address": {
"company": "Acme Supplies",
"email": "billing@example.com",
"phone": "202-555-0113",
"address": "4320 Ryder Avenue"
}
}

Body Parameters​

NameTypeDescriptionRequired
addressobjectVendor addressYes
taxobjectTax identifier with a custom name (e.g. VAT ID, Tax Number, GST Number)No
registrationobjectLegal/company registration identifier (e.g. KVK, Handelsregister, SIREN)No
referencestringVendor-assigned reference for your account, e.g. the customer/account number printed on their bills (max 100 characters)No
currencystringISO 4217 currency codeNo
paymentTermsnumberPayment terms in days (integer, min 0)No
bankobjectVendor bank account detailsNo
notesstringPrivate notes (max 1000 characters)No
tagsarray[string]Vendor tags (max 10 tags, each max 50 characters)No

Address Parameters​

Either firstName and lastName, or company, is required.

NameTypeDescriptionRequired
firstNamestringFirst name (max 100 characters)No
lastNamestringLast name (max 100 characters)No
companystringCompany name (max 100 characters)No
emailstringEmail address (lowercase)No
phonestringPhone number (max 50 characters)No
addressstringStreet address (max 500 characters)No
citystringCity (max 100 characters)No
statestringState or province (max 100 characters)No
postalCodestringPostal code (max 20 characters)No
countrystringISO 3166-1 alpha-2 country code, e.g. USNo
legalstringAny legal details to show on documents (max 100 characters)No
info

If firstName is provided, lastName must also be provided.

Tax / Registration Parameters​

NameTypeDescriptionRequired
idstringIdentifier value (max 50 characters)Yes, if name is provided
namestringIdentifier name, e.g. VAT ID (max 50 characters)No

Bank Parameters​

The bank object shape depends on its type. All types share these fields:

NameTypeDescriptionRequired
typestringBank account type, possible values are iban, us, uk, india, canada, australia, or genericYes
namestringBank name (max 100 characters)No
accountHolderstringAccount holder name (max 100 characters)No

Additional fields per type:

TypeNameTypeDescription
ibanibanstringIBAN (ISO 13616)
ibanbicstringSWIFT/BIC (8 or 11 characters)
usaccountNumberstringAccount number (max 50 characters)
usroutingNumberstringABA routing number (9 digits)
usaccountTypestringPossible values are checking or savings
ukaccountNumberstringAccount number (8 digits)
uksortCodestringSort code (6 digits, e.g. 12-34-56)
indiaaccountNumberstringAccount number (9-18 digits)
indiaifscstringIFSC code (11 characters, e.g. HDFC0001234)
canadaaccountNumberstringAccount number (max 50 characters)
canadatransitNumberstringTransit number (5 digits)
canadainstitutionNumberstringInstitution number (3 digits)
australiaaccountNumberstringAccount number (max 50 characters)
australiabsbstringBSB (6 digits, e.g. 123-456)
genericaccountNumberstringAccount number (max 50 characters)
genericswiftstringSWIFT/BIC (8 or 11 characters)

Update Vendor​

PUT https://api.invoiless.com/v1/vendors/:id

PATCH https://api.invoiless.com/v1/vendors/:id

Update an existing vendor. See PUT vs PATCH for details on the differences.

Path Parameters​

NameTypeDescriptionRequired
idstringVendor idYes

Body Parameters​

Accepts the same parameters as Create Vendor.

Get Vendor​

GET https://api.invoiless.com/v1/vendors/:id

Retrieve a specific vendor by ID.

Path Parameters​

NameTypeDescriptionRequired
idstringVendor idYes

Get Vendors​

GET https://api.invoiless.com/v1/vendors

Retrieve a paginated list of all vendors.

Query Parameters​

NameTypeDescriptionRequired
pagenumberPage numberNo, default is 1
limitnumberPage limitNo, default is 50
searchstringSearch by vendor name, email, phone, or tagsNo

Delete Vendor​

DELETE https://api.invoiless.com/v1/vendors/:id

Permanently delete a vendor.

Path Parameters​

NameTypeDescriptionRequired
idstringVendor idYes