Create invoice without presentation
documentedCreate an invoice without applying a saved presentation style.
POST /accounting/account/{accountId}/invoices/invoicesInvoice Presentation and Attachmentsno 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://api.freshbooks.com/accounting/account/{{$accountId}}/invoices/invoices" \
-X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-d '{
"invoice": {
"customerid": {{$customer_id}},
"lines": [
{
"name": "{{$line_name}}",
"qty": {{$line_qty}},
"unit_cost": { "amount": {{$line_unit_cost}}, "code": "{{$currency}}" }
}
],
"date": "{{$invoice_date}}",
"use_default_presentation": {{$use_default_presentation}},
"presentation": {
"date_format": "{{$date_format}}",
"image_logo_src": "{{$logo_path}}",
"theme_layout": "{{$theme_layout}}",
"theme_font_name": "{{$theme_font_name}}",
"theme_primary_color": "{{$theme_primary_color}}"
},
"attachments": [
{
"expenseid": {{$expenseid}},
"jwt": "{{$attachment_jwt}}",
"media_type": "{{$attachment_media_type}}"
}
]
}
}'