Add payment to invoice
documentedAdd a payment to the specified invoice.
POST /api/{version}/clients/{clientname}/invoices/{invoice_number}/paymentsInvoicesno implementation yet0 runsNo 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}}/invoices/{{$invoice_number}}/payments?api_key={{RUNMYACCOUNTS_API_KEY}}" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"payment": [ {"datepaid": "{{$datepaid}}", "amount_paid": "{{$amount_paid}}", "source": "{{$source}}", "memo": "{{$memo}}", "payment_accno": "{{$payment_accno}}", "exchangerate": "{{$exchangerate}}" } ] }'