accounts-payable
Create a vendor
users
transfers
payout-links
payments
payment-intents
payment-customers
checkout-sessions
accounts-payable
- GETList all vendors
- POSTCreate a vendor
- GETGet vendor details
- DELDelete a vendor
- GETList all payment methods for a vendor
- POSTCreate a payment method for a vendor
- GETGet vendor payment method details
- DELDelete a vendor payment method
- GETList all payables
- POSTCreate a payable
- POSTCreate a payable from a file
- GETGet payable details
- PATCHUpdate a payable
- POSTUpload file to the payable
- DELDelete file from the payable
- POSTCancel a payable
- POSTSubmit a payable for approval
- POSTApprove a payable
- POSTReject a payable
- POSTPay a payable
- GETList all approval policies
- POSTCreate an approval policy
- DELDelete an approval policy
- PATCHUpdate priority of an approval policy
- GETList all approvers for api app
apps
payment-methods
organizations
accounts-payable
Create a vendor
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>"
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
Available options:
US
Available options:
AL
, AK
, AS
, AZ
, AR
, CA
, CO
, CT
, DE
, DC
, FM
, FL
, GA
, GU
, HI
, ID
, IL
, IN
, IA
, KS
, KY
, LA
, ME
, MH
, MD
, MA
, MI
, MN
, MS
, MO
, MT
, NE
, NV
, NH
, NJ
, NM
, NY
, NC
, ND
, MP
, OH
, OK
, OR
, PW
, PA
, PR
, RI
, SC
, SD
, TN
, TX
, UT
, VT
, VI
, VA
, WA
, WV
, WI
, WY
Response
201 - application/json
Created
ID of the vendor
.
Name of the vendor
.
Indicates if the vendor is active.
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>"
}