Sign in

Create invoice with discount value

documented

Create an invoice that includes a discount value.

POST /accounting/account/{accountId}/invoices/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://api.freshbooks.com/accounting/account/{{$account_id}}/invoices/invoices" \
  -L \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Api-Version: alpha" \
  --data-raw '{"invoice": {"customerid": {{$customer_id}}, "create_date": "{{$create_date}}", "due_offset_days": {{$due_offset_days}}, "lines": [ {"type": "0", "name": "{{$line_name}}", "qty": "{{$line_qty}}", "unit_cost": {"amount": "{{$line_unit_cost_amount}}", "code": "USD"} } ] }}'
Create invoice with discount value · FreshBooks · OpenIntegrations