Add new bill line to existing bill

Params

Param name Description
line
required

Bill line params

Validations:

  • Must be a Hash

line[name]
required

Bill line name

Validations:

  • Must be a String

line[date]
required

Validations:

  • Must be a Date

line[amount_cents]
optional

Bill line amount in cents

Validations:

  • Must be a Integer

line[amount_currency]
optional

Bill line currency. Should be currency code, e.g. EUR, USD, GBP etc

Validations:

  • Must be a String

line[receipt_id]
optional

ID of the related receipt. Receipt with such ID should already exist in the database.

Validations:

  • Must be a Integer

line[asset_account_id]
optional

ID of related asset account (credit account, payment method)

Validations:

  • Must be a Integer