Create a payable
Create a payable in your app for accounts payable. The minimum required details to create a payable is the payable number. Remaining fields can be added later by updating the payable before submission.
Create a payable in your app for accounts payable. The minimum required details to create a payable is the payable number. Remaining fields can be added later by updating the payable before submission.
api_keyAuthorizationBasic <token>application/json- body
acting_user_id*stringThe ID of the user performing this action. This will be displayed in the developer dashboard.
uuidnumber*stringdescription?stringexternal_id?stringap_vendor_id?stringuuidap_payment_method_id?stringuuidamount?numberTotal payable amount in cents.
1 <= valuefunding_source?stringThe funding source for the payable.
If dots_balance is specified, uses the app's Dots wallet balance to pay the payable.
If ach is specified, uses a bank transfer from the app's linked bank account to pay the payable.
If not specified, defaults to ach.
"dots_balance""ach"file?stringBase64 encoded pdf file to attach to payable.
base64items?array<>Created
application/json- response
action_history?array<>amount?numberTotal payable amount in cents.
funding_source?string"dots_balance""ach"ap_payment_method_id?stringuuidap_payment_method_name?stringap_vendor_id?stringuuidap_vendor_name?stringapi_app_id?stringuuidapproval_steps?array<>created?stringdate-timecurrency?stringdescription?stringexternal_id?stringfile_url?stringuriid?stringuuiditems?array<>number?stringstatus?stringstatus_history?array<>transfer_history?array<>transfer_id?stringuuidupdated?stringdate-timecurl -X POST 'https://api.dots.dev/api/v2/accounts-payable/payables' \ -H 'Content-Type: application/json' \ -d '{ "acting_user_id": "06bbfdfe-c8d2-4dd9-9285-42114ae06d00", "number": "string"}'{ "action_history": [ { "action": "create", "comment": "string", "timestamp": "2019-08-24T14:15:22Z", "user_id": 0, "user_name": "string", "user_role": "admin" } ], "amount": 0, "funding_source": "dots_balance", "ap_payment_method_id": "28f132b1-f0a2-422b-9728-58c4a1faf46b", "ap_payment_method_name": "string", "ap_vendor_id": "63c4dcdb-7a3c-416d-924a-f16ff91e692f", "ap_vendor_name": "string", "api_app_id": "ad6a2ad4-d593-4e3e-bfd5-50592ed119ca", "approval_steps": [ { "completed": true, "completed_timestamp": "2019-08-24T14:15:22Z", "num_approvals_required": 0, "user_approvals": [ { "approval_comment": "string", "approval_given": true, "approval_timestamp": "2019-08-24T14:15:22Z", "name": "string", "user_id": 0 } ] } ], "created": "2019-08-24T14:15:22Z", "currency": "string", "description": "string", "external_id": "string", "file_url": "http://example.com", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "items": [ { "amount": 1, "description": "string", "name": "string", "quantity": 1, "unit_price": 1 } ], "number": "string", "status": "string", "status_history": [ { "status": "created", "timestamp": "2019-08-24T14:15:22Z" } ], "transfer_history": [ { "created_timestamp": "2019-08-24T14:15:22Z", "idempotency_key": "0cd90e5a-2c03-4ab6-81a8-d48818026e58", "transfer_id": "d4a2d8dd-7def-4545-a062-761683b9aa05" } ], "transfer_id": "d4a2d8dd-7def-4545-a062-761683b9aa05", "updated": "2019-08-24T14:15:22Z"}