Update an existing vendor.

Params

Param name Description
id
required

Vendor ID

Validations:

  • Must be a Integer

vendor
required

Vendor parameters.

Validations:

  • Must be a Hash

vendor[name]
required

Vendor name. Must be unique within a company.

Validations:

  • Must be a String

vendor[notes]
optional

Additional notes to be displayed on UI alongside vendor name.

Validations:

  • Must be a String

vendor[vat_id]
optional

VAT ID.

Validations:

  • Must be a String

vendor[business_id]
optional

Business ID.

Validations:

  • Must be a String

vendor[business_type]
optional

Vendor business type (LLC or private entrepreneur). Default: "llc".

Validations:

  • Must be one of: llc, private_entrepreneur.

vendor[contact_person]
optional

Vendor Contact person.

Validations:

  • Must be a String

vendor[email]
optional

Vendor Email.

Validations:

  • Must be a String

vendor[phone_number]
optional

Vendor Phone.

Validations:

  • Must be a String

vendor[url]
optional

Vendor URL.

Validations:

  • Must be a String

vendor[iban]
optional

Default Bank account IBAN.

Validations:

  • Must be a String

vendor[bic]
optional

Default Bank account BIC. If not provided, Bezala will try to auto-calculate it based on IBAN.

Validations:

  • Must be a String

vendor[external_id]
optional

Vendor External ID.

Validations:

  • Must be a String

vendor[address_attributes]
optional

Vendor address.

Validations:

  • Must be a Hash

vendor[address_attributes][street]
optional

Street address.

Validations:

  • Must be a String

vendor[address_attributes][city]
optional

City of the address, or Post Office.

Validations:

  • Must be a String

vendor[address_attributes][postal_code]
optional

Postal Code of the address.

Validations:

  • Must be a String

vendor[address_attributes][country_id]
optional

Country id of an address.

Validations:

  • Must be a Integer

vendor[address_attributes][latitude]
optional

Geographic Latitude from Google Maps.

Validations:

  • Must be a decimal number.

vendor[address_attributes][longitude]
optional

Geographic Longitude from Google Maps.

Validations:

  • Must be a decimal number.