DotsDocs
Accounts payable

Create a vendor

Create a vendor in your app for accounts payable

POST
/v2/accounts-payable/vendors

Create a vendor in your app for accounts payable

Authorization

api_key
headerAuthorizationBasic <token>

Request Body

application/json
  1. body
name*string
contact_email?string
Formatemail
external_id?string
address*

Response Body

Created

application/json
  1. response
id?string

ID of the vendor.

name?string

Name of the vendor.

active?boolean

Indicates if the vendor is active.

address?
api_app_id?string
Formatuuid
contact_email?|
Formatemail
contact_phone?string|null
created?string
Formatdate-time
external_id?string
Example Request
curl -X POST 'https://api.dots.dev/api/v2/accounts-payable/vendors' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "address": {    "country": "US",    "city": "string",    "state": "AL",    "line_1": "string",    "postcode": "string"  }}'
Example Response
{  "id": "string",  "name": "string",  "active": true,  "address": {    "city": "string",    "country": "string",    "line_1": "string",    "line_2": "string",    "postcode": "string",    "state": "string"  },  "api_app_id": "ad6a2ad4-d593-4e3e-bfd5-50592ed119ca",  "contact_email": "user@example.com",  "contact_phone": "string",  "created": "2019-08-24T14:15:22Z",  "external_id": "string"}