v1
Swagger 2.02026-07-13107162315.5 KBCreates a new draft supplier bill (purchase invoice). Optionally creates a new supplier company and contact if no matching company is found.
Request body
A prefix for the Invoice number. e.g. 'INV'. If left blank it will be set to the account default. Max length 20 characters.
Pass any string. If left blank it will use the next number in the auto incrementing sequence. If an integer is passed then the largest integer will be use as the seed to auto generate the next invoice number in the sequence.
If left blank then you must specify Company Name.
If left blank then you must specify Company ID. Specified Name will be used to match existing customer record. If not matched then it will be used to create a new customer. First Name, Last Name and Email will only be used if it is a new company. If the Company name appears multiple times we will check the email address to find a matching company. If email address doesn't identify a matching company then the invoice creation will be rejected.
Specified value will be used to create a new customer contact only if a new customer is being created.
Specified value will be used to create a new customer contact only if a new customer is being created.
Specified value will be used to create a new customer contact only if a new customer is being created.
Expects ISO Standard 3 character currency code. If left blank the currency will default to account's currency in general setting. For existing companies this field will be ignored and the invoice will use the currency of the customer. For new customers if the currency is not specified then account currency will be used otherwise the specified currency will be used.
Exchange rate is only valid for invoices in currency other than default account currency. If not specified it will get the market rate based on the Date Issued.
If left blank the account default invoice template will be used.
Plain UTF8 text. (no HTML). 255 characters max
Plain UTF8 text. 100 characters max
If not specified it will use today's date. The date should be specified as local date.
"If left blank we will set it to customer default. If specified then it must match one of your existing pre configured payment term periods. Your account starts with: (-1 --- Custom, 0 --- Upon Receipt, 7 --- 7 Days, 15 --- 15 Days, 30 --- 30 Days, 45 --- 45 Days, 60 --- 60 Days)
It will be auto calculated based on the payment term and issue date. Due Date must be greater than or equal to Issue Date. If the Due Date is specified then Payment Terms will be set to -1 (Custom)
Possible values are (EX --- Tax Exclusive, INC --- Tax Inclusive). If left empty it will use the account default.
Plain UTF8 text. (no HTML). Max 2000 characters
If true, fires the bill_created webhook event to any subscribed endpoints. Defaults to false to preserve existing integration behaviour.
Response
Returns the created bill with assigned Transaction ID and line items.
Unique identifier for the bill transaction.
The Avaza account this bill belongs to.
The prefix used in the bill number (e.g. 'BILL').
The full bill/invoice number including prefix.
The supplier company ID this bill is from.
The name of the supplier company.
Subject line or description for the bill.
The date the bill was issued.
The date the bill was verified/approved.
The payment due date for the bill.
Current status of the bill. Values: Draft, Verified, Late, Paid, Partial, Void.
Total tax amount across all line items.
Tax configuration: 'EX' (tax exclusive) or 'INC' (tax inclusive).
Outstanding balance remaining on the bill.
ISO 3-character currency code for the bill.
Total amount of the bill including tax.
Exchange rate to the account's base currency. 1.0 if same currency.
Additional notes or comments on the bill.
Supplier purchase order number reference.
Date and time the record was created.
Date and time the record was last updated.