Create invoice
documentedCreate a new invoice.
POST /api/v2/invoicesInvoicesno 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://{{$domain}}.clientary.com/api/v2/invoices" \
-X POST \
-u "{{CLIENTARY_API_KEY}}:{{CLIENTARY_API_KEY}}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{\"invoice\": {\"date\": \"{{$date}}\", \"due_date\": \"{{$due_date}}\", \"currency_code\": \"{{$currency_code}}\", \"number\": \"{{$number}}\", \"invoice_items_attributes\": [{\"title\": \"{{$item_title}}\",\"quantity\": {{$item_quantity}},\"price\": {{$item_price}}}]}}'