Sign in

Email invoice

documented

Send the invoice by email using a template or custom body.

POST /v2/invoices/{id}/send_emailInvoicesno 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://api.freeagent.com/v2/invoices/{{$invoice_id}}/send_email" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"invoice": {"email": {"to": "{{$to_email}}", "from": "{{$from_email}}", "subject": "{{$subject}}", "body": "{{$body}}", "email_to_sender": {{$email_to_sender}}, "attach_expense_receipts": {{$attach_expense_receipts}}, "use_template": {{$use_template}}, "attachments": [ {"content_type": "{{$attachment_content_type}}", "data": "{{$attachment_data}}", "file_name": "{{$attachment_file_name}}"} ] } } }'
Email invoice · FreeAgent · OpenIntegrations