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 String

line[date]
required

Validations:

  • Must be Date

line[amount_cents]
optional

Bill line amount in cents

Validations:

  • Must be Integer

line[amount_currency]
optional

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

Validations:

  • Must be String

line[receipt_id]
optional

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

Validations:

  • Must be Integer

line[asset_account_id]
optional

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

Validations:

  • Must be Integer