Skip to navigation

Create Vendor

View as Markdown

Creates a vendor profile. payment_term_id sets the payment term used by default on this vendor’s bills.

Requires the can_create_vendor_profile permission on the key owner’s role.

Keys: secret key only.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

identitystring
The identity for the active workspace.

Request

This endpoint expects an object.
typeenumRequired
Allowed values:
display_namestringRequired
dedupe_modeenumOptionalDefaults to skip

How to handle a record matching one already in the workspace. skip (default) leaves the existing record untouched and answers 409 with it. overwrite updates the existing record and answers 200. add creates a separate record regardless of the match.

Allowed values:
emailstringOptionalformat: "email"
phonestringOptional
first_namestringOptional
last_namestringOptional
company_namestringOptional
currency_codestringOptional
payment_term_idstringOptionalformat: "uuid"
Default payment term for this vendor. Applied to new bills that name no term or due date.
billing_addressobjectOptional
shipping_addressobjectOptional

Response

The request used dedupe_mode: overwrite and updated the vendor it matched.

dataobject
The existing vendor the request matched.
statusboolean
messagestring

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
409
Conflict Error