curl --request POST \
--url https://api.dots.dev/api/v2/accounts-payable/vendors \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"contact_email": "jsmith@example.com",
"external_id": "<string>",
"address": {
"country": "US",
"city": "<string>",
"state": "AL",
"line_1": "<string>",
"line_2": "<string>",
"postcode": "<string>"
}
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active": true,
"address": {
"city": "<string>",
"country": "<string>",
"line_1": "<string>",
"line_2": "<string>",
"postcode": "<string>",
"state": "<string>"
},
"api_app_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contact_email": "jsmith@example.com",
"created": "2023-11-07T05:31:56Z",
"external_id": "<string>"
}
Create a vendor in your app for accounts payable
curl --request POST \
--url https://api.dots.dev/api/v2/accounts-payable/vendors \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"contact_email": "jsmith@example.com",
"external_id": "<string>",
"address": {
"country": "US",
"city": "<string>",
"state": "AL",
"line_1": "<string>",
"line_2": "<string>",
"postcode": "<string>"
}
}'
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"active": true,
"address": {
"city": "<string>",
"country": "<string>",
"line_1": "<string>",
"line_2": "<string>",
"postcode": "<string>",
"state": "<string>"
},
"api_app_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"contact_email": "jsmith@example.com",
"created": "2023-11-07T05:31:56Z",
"external_id": "<string>"
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Created
The response is of type object
.
Was this page helpful?