DotsDocs
Accounts payable

Create a payment method for a vendor

Create a payment method for a vendor to pay to

POST
/v2/accounts-payable/vendors/{vendor_id}/payment-methods

Create a payment method for a vendor to pay to

Authorization

api_key
headerAuthorizationBasic <token>

Path Parameters

vendor_id*string

The ID of the Vendor

Request Body

application/json
  1. body
name*string
type*"ach"
Value in"ach"
account_number*string
routing_number*string
account_type*string
Value in"checking""savings"

Response Body

Created

application/json
  1. response
id?string
Formatuuid
name?string
type?"ach"
Value in"ach"
active?boolean
created?string
Formatdate-time
ach_account_id?string
Formatuuid
ach_account_mask?string
ach_account_type?string
Value in"checking""savings"
ap_vendor_id?string
Formatuuid
api_app_id?string
Formatuuid
Example Request
curl -X POST 'https://api.dots.dev/api/v2/accounts-payable/vendors/string/payment-methods' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "type": "ach",  "account_number": "string",  "routing_number": "string",  "account_type": "checking"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "type": "ach",  "active": true,  "created": "2019-08-24T14:15:22Z",  "ach_account_id": "e0068de0-8db2-4024-9c5f-8106df79bd77",  "ach_account_mask": "string",  "ach_account_type": "checking",  "ap_vendor_id": "63c4dcdb-7a3c-416d-924a-f16ff91e692f",  "api_app_id": "ad6a2ad4-d593-4e3e-bfd5-50592ed119ca"}