Get a list of company’s vendors.
{
"collection": [
{
"id": 1,
"name": "Renance - Automated Financial Setvices Ltd",
"notes": "Bezala - the great expense software we use",
"business_id": "2697751-4",
"vat_id": "FI26977514",
"deactivated": false,
"external_id": "Vendor 2"
}
],
"pagination": {
"current_page": 1,
"total_pages": 1,
"total_count": 1
}
}
| Param name | Description |
|---|---|
|
page
optional |
Page number. Validations:
|
|
per_page
optional |
Number of records per page. Default: 50. Validations:
|
Get full vendor information.
{
"id": 1,
"name": "Renance - Automated Financial Setvices Ltd",
"notes": "Bezala - the great expense software we use",
"business_id": "2697751-4",
"vat_id": "FI26977514",
"business_type": "llc",
"contact_person": "Fredrik Teir",
"email": "firstname.lastname@bezala.com",
"phone_number": "+3584401612",
"url": "www.bezala.com",
"iban": "FI3584800710258XYZ",
"bic": "DABAFIHH",
"external_id": "Vendor 2",
"deactivated": false,
"address": {
"street": "Keilranta 5",
"city": "Espoo",
"postal_code": "02150",
"country_id": 1,
"latitude": "60.1763725",
"longitude": "24.8332552"
}
}
| Param name | Description |
|---|---|
|
id
required |
Vendor ID Validations:
|
Create new vendor.
| Param name | Description |
|---|---|
|
vendor
required |
Vendor parameters. Validations:
|
|
vendor[name]
required |
Vendor name. Must be unique within a company. Validations:
|
|
vendor[notes]
optional |
Additional notes to be displayed on UI alongside vendor name. Validations:
|
|
vendor[vat_id]
optional |
VAT ID. Validations:
|
|
vendor[business_id]
optional |
Business ID. Validations:
|
|
vendor[business_type]
optional |
Vendor business type (LLC or private entrepreneur). Default: Validations:
|
|
vendor[contact_person]
optional |
Vendor Contact person. Validations:
|
|
vendor[email]
optional |
Vendor Email. Validations:
|
|
vendor[phone_number]
optional |
Vendor Phone. Validations:
|
|
vendor[url]
optional |
Vendor URL. Validations:
|
|
vendor[iban]
optional |
Default Bank account IBAN. Validations:
|
|
vendor[bic]
optional |
Default Bank account BIC. If not provided, Bezala will try to auto-calculate it based on IBAN. Validations:
|
|
vendor[external_id]
optional |
Vendor External ID. Validations:
|
|
vendor[address_attributes]
optional |
Vendor address. Validations:
|
|
vendor[address_attributes][street]
optional |
Street address. Validations:
|
|
vendor[address_attributes][city]
optional |
City of the address, or Post Office. Validations:
|
|
vendor[address_attributes][postal_code]
optional |
Postal Code of the address. Validations:
|
|
vendor[address_attributes][country_id]
optional |
Country id of an address. Validations:
|
|
vendor[address_attributes][latitude]
optional |
Geographic Latitude from Google Maps. Validations:
|
|
vendor[address_attributes][longitude]
optional |
Geographic Longitude from Google Maps. Validations:
|
Update an existing vendor.
| Param name | Description |
|---|---|
|
id
required |
Vendor ID Validations:
|
|
vendor
required |
Vendor parameters. Validations:
|
|
vendor[name]
required |
Vendor name. Must be unique within a company. Validations:
|
|
vendor[notes]
optional |
Additional notes to be displayed on UI alongside vendor name. Validations:
|
|
vendor[vat_id]
optional |
VAT ID. Validations:
|
|
vendor[business_id]
optional |
Business ID. Validations:
|
|
vendor[business_type]
optional |
Vendor business type (LLC or private entrepreneur). Default: Validations:
|
|
vendor[contact_person]
optional |
Vendor Contact person. Validations:
|
|
vendor[email]
optional |
Vendor Email. Validations:
|
|
vendor[phone_number]
optional |
Vendor Phone. Validations:
|
|
vendor[url]
optional |
Vendor URL. Validations:
|
|
vendor[iban]
optional |
Default Bank account IBAN. Validations:
|
|
vendor[bic]
optional |
Default Bank account BIC. If not provided, Bezala will try to auto-calculate it based on IBAN. Validations:
|
|
vendor[external_id]
optional |
Vendor External ID. Validations:
|
|
vendor[address_attributes]
optional |
Vendor address. Validations:
|
|
vendor[address_attributes][street]
optional |
Street address. Validations:
|
|
vendor[address_attributes][city]
optional |
City of the address, or Post Office. Validations:
|
|
vendor[address_attributes][postal_code]
optional |
Postal Code of the address. Validations:
|
|
vendor[address_attributes][country_id]
optional |
Country id of an address. Validations:
|
|
vendor[address_attributes][latitude]
optional |
Geographic Latitude from Google Maps. Validations:
|
|
vendor[address_attributes][longitude]
optional |
Geographic Longitude from Google Maps. Validations:
|
Toggle vendor’s deactivated field.
| Param name | Description |
|---|---|
|
id
required |
Vendor ID Validations:
|
Delete a vendor.
| Param name | Description |
|---|---|
|
id
required |
Vendor ID Validations:
|