Create invoice

POST {{akaunting_url}}/documents?category_id=3&document_number=0000003&status=draft&issued_at=2022-04-23&due_at=2022-05-22&account_id=1&currency_code=NZD&currency_rate=1&notes=This is note for invoice&contact_id=2&contact_name=Name&contact_email=mail@mail.com&contact_address=Client address&items[0][item_id]=1&items[0][name]=Service&items[0][quantity]=2&items[0][price]=1&items[0][total]=2&items[0][discount]=0&items[0][description]=This is custom item description&items[0][tax_ids][0]=1&items[0][tax_ids][1]=1&amount=2&type=invoice&search=type:invoice

Request Params

KeyDatatypeRequiredDescription
category_idnumberIncome category
document_numberstring
statusstring
issued_atstring
due_atstring
account_idnumberAccount id
currency_codestringCurrency code
currency_ratenumber
notesstring
contact_idnumberSelected Customer ID
contact_namestringSelected Customer Name
contact_emailstringSelected Customer Email
contact_addressstringSelected Customer Address
items[0][item_id]numberItem ID
items[0][name]stringItem Name
items[0][quantity]number
items[0][price]number
items[0][total]number
items[0][discount]number
items[0][description]string
items[0][tax_ids][0]numberTax ID
items[0][tax_ids][1]numberTax ID
amountnumber
typestring
searchstring

Request Body

[{"name"=>"attachment[0]", "value"=>"simple_file.pdf", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
X-Companystring