Update bill
PUT {{akaunting_url}}/documents/1?type=bill&category_id=1&document_number=BILL-00001&search=type:bill&status=draft&issued_at=2021-10-21&due_at=2021-10-29&account_id=1¤cy_code=EUR¤cy_rate=1¬es=This is note for invoice&contact_id=1&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]=12&items[0][total]=24&items[0][discount]=0&items[0][description]=This is custom item description&items[0][tax_ids][0]=1&items[0][tax_ids][1]=2
Request Params
Key | Datatype | Required | Description |
---|
type | string | | |
category_id | number | | Income category |
document_number | string | | |
search | string | | |
status | string | | |
issued_at | string | | |
due_at | string | | |
account_id | number | | Account id |
currency_code | string | | Currency code |
currency_rate | number | | |
notes | string | | |
contact_id | number | | Selected Customer ID |
contact_name | string | | Selected Customer Name |
contact_email | string | | Selected Customer Email |
contact_address | string | | Selected Customer Address |
items[0][item_id] | number | | Item ID |
items[0][name] | string | | Item 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] | number | | Tax ID |
items[0][tax_ids][1] | number | | Tax ID |
Request Body
[{"name"=>"attachment[0]", "value"=>"file.png", "datatype"=>"string"}]
Key | Datatype | Required | Description |
---|
X-Company | string | | |