Accounts payable
Cancel a payable
Cancel a payable that has not been submitted for approval
POST
Cancel a payable that has not been submitted for approval
api_keyheader
AuthorizationBasic <token>payable_id*stringThe ID of the Payable
application/json- body
acting_user_id*stringThe ID of the user performing this action. This will be displayed in the developer dashboard.
Format
uuidcomment?stringOK
application/json- response
action_history?array<>amount?numberTotal payable amount in cents.
funding_source?stringValue in
"dots_balance""ach"ap_payment_method_id?stringFormat
uuidap_payment_method_name?stringap_vendor_id?stringFormat
uuidap_vendor_name?stringapi_app_id?stringFormat
uuidapproval_steps?array<>created?stringFormat
date-timecurrency?stringdescription?stringexternal_id?stringfile_url?stringFormat
uriid?stringFormat
uuiditems?array<>number?stringstatus?stringstatus_history?array<>transfer_history?array<>transfer_id?stringFormat
uuidupdated?stringFormat
date-timeExample Request
curl -X POST 'https://api.dots.dev/api/v2/accounts-payable/payables/string/cancel' \ -H 'Content-Type: application/json' \ -d '{ "acting_user_id": "06bbfdfe-c8d2-4dd9-9285-42114ae06d00"}'Example Response
{ "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"}