Create invoice
documentedInsert an invoice.
POST /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://api.saasu.com/Invoice?FileId={{$file_id}}" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"LineItems": [
{
"Description": "{{$line_item_description}}",
"Quantity": {{$line_item_quantity}},
"UnitPrice": {{$line_item_unit_price}},
"TaxCode": "G1",
"TotalAmount": {{$line_item_total_amount}},
"InventoryId": {{$line_item_inventory_id}},
"ItemCode": "{{$line_item_item_code}}"
}
],
"NotesInternal": "{{$notes_internal}}",
"NotesExternal": "{{$notes_external}}",
"InvoiceType": "{{$invoice_type}}",
"TransactionType": "{{$transaction_type}}",
"Layout": "{{$layout}}",
"Currency": "{{$currency}}",
"TransactionDate": "{{$transaction_date}}",
"BillingContactId": {{$billing_contact_id}},
"DueDate": "{{$due_date}}",
"InvoiceNumber": "{{$invoice_number}}",
"ForEntityTypeId": {{$for_entity_type_id}},
"SendEmailToContact": {{$send_email_to_contact}}
}'" ,
"response_length": "short"