Skip to Content
AccountingAccounts PayableVendors

Create a new vendor

POST
/v0/business/{business_id}/vendors

Scopes: vendor:create

Authorization

OAuth2ClientCredentialsBearer vendor:create
headerAuthorizationBearer <token>

Scope: vendor:create

Path Parameters

business_id*Business Id

The id of the business

Formatbiz_string

Request Body

application/json
  1. body
external_id?|

The external ID of the vendor

name*Name

The name of the vendor

Lengthlength <= 255
contact_name?|

The contact name of the vendor

email?|

The email address of the vendor

phone_number?|

The phone number of the vendor

Response Body

Successful Response

application/json
  1. response
data*
Example Request
curl -X POST 'https://api.sandbox.getasset.com/v0/business/biz_GA6EG2qFxA97NZHtxeLPUy/vendors' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "data": {    "external_id": "string",    "name": "string",    "contact_name": "string",    "email": "string",    "phone_number": "string",    "id": "string",    "is_disabled": true  }}