Sign in

Create vendor invoice

documented

Create a vendor invoice.

POST /api/{version}/clients/{clientname}/payablesVendor invoicesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://service.runmyaccounts.com/api/latest/clients/{{$clientname}}/payables?api_key={{RUNMYACCOUNTS_API_KEY}}" \
  -X POST \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"payable": [{"invnumber": "{{$invnumber}}", "transdate": "{{$transdate}}", "currency": "{{$currency}}", "ap_accno": "{{$ap_accno}}", "duedate": "{{$duedate}}", "amount": "{{$amount}}", "netamount": "{{$netamount}}", "vendor": {"id": "{{$vendor_id}}", "vendornumber": "{{$vendor_vendornumber}}", "name": "{{$vendor_name}}"}, "parts": [{"part": {"income_accno": "{{$income_accno}}", "expense_accno": "{{$expense_accno}}", "partnumber": "{{$partnumber}}", "description": "{{$part_description}}", "quantity": "{{$part_quantity}}", "sellprice": "{{$part_sellprice}}", "unit": "{{$part_unit}}"}}]}]}]}'