Returns the list of bill lines in current company. Accessible to accountants only.
[ { "id": 12, "date": "2021-06-03", "amount": "9.02", "amount_currency": "EUR", "name": "Some Payment *MONTHLY", "receipt_id": 1, "bill_id": 1, "exchange_rate": null, "taxable_amount": "9.02", "taxable_amount_currency": "EUR" } ]
Param name | Description |
---|---|
updated_after
optional |
Return only bill lines updated on and after the supplied date. Date format: YYYYMMDD (example: 20210702) Validations:
|
Add new bill line to existing bill
Param name | Description |
---|---|
line
required |
Bill line params Validations:
|
line[name]
required |
Bill line name Validations:
|
line[date]
required |
Validations:
|
line[amount_cents]
optional |
Bill line amount in cents Validations:
|
line[amount_currency]
optional |
Bill line currency. Should be currency code, e.g. EUR, USD, GBP etc Validations:
|
line[receipt_id]
optional |
ID of the related receipt. Receipt with such ID should already exist in the database. Validations:
|
line[asset_account_id]
optional |
ID of related asset account (credit account, payment method) Validations:
|
Edit an existing bill line
Param name | Description |
---|---|
line
required |
Bill line params Validations:
|
line[receipt_id]
optional |
ID of the related receipt. Receipt with such ID should exist in the database. Validations:
|
Deletes an existing bill line by ID. User must have permissions to manage both bill line and related bill to delete it.
Bulk edit the existing bill lines to set receipt_id: 0
Param name | Description |
---|---|
ids
required |
Bill line ids Validations:
|