Sign in

Create invoice

documented

Create a new sales invoice for the client.

POST /api/{version}/clients/{clientname}/invoicesInvoicesno 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/{{$version}}/clients/{{$clientname}}/invoices?api_key={{RUNMYACCOUNTS_API_KEY}}" \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{\n  "invnumber": "{{$invnumber}}",\n  "ordnumber": "{{$order_number}}",\n  "status": "{{$status}}",\n  "currency": "{{$currency}}",\n  "ar_accno": "{{$ar_accno}}",\n  "transdate": "{{$transdate}}",\n  "duedate": "{{$duedate}}",\n  "description": "{{$description}}",\n  "notes": "{{$notes}}",\n  "intnotes": "{{$intnotes}}",\n  "taxincluded": {{$taxincluded}},\n  "dcn": "{{$dcn}}",\n  "customer": {\n    "customernumber": "{{$customer_number}}",\n    "id": "{{$customer_id}}",\n    "name": "{{$customer_name}}",\n    "email": "{{$customer_email}}"\n  },\n  "parts": {\n    "part": {\n      "income_accno": "{{$income_accno}}",\n      "partnumber": "{{$part_number}}",\n      "description": "{{$part_description}}",\n      "unit": "{{$unit}}",\n      "quantity": "{{$quantity}}",\n      "sellprice": "{{$sellprice}}",\n      "discount": "{{$discount}}",\n      "itemnote": "{{$itemnote}}",\n      "price_update": "{{$price_update}}"\n    }\n  }\n}'"}