Approves receipt. If “transaction” params are present, updates the receipt before approval

Params

Param name Description
transaction
required

Receipt hash

Validations:

  • Must be a Hash

transaction[description]
optional

Receipt description

Validations:

  • Must be String

transaction[date]
optional

Receipt description

Validations:

  • Must be String

transaction[credit_account_id]
optional

Validations:

  • Must be Integer

transaction[debit_account_id]
optional

Validations:

  • Must be Integer

transaction[vat_code]
optional , nil allowed

Validations:

  • Must be one of: EVTO, EVPO, EVKV, EUOS, EUPO, EUUO, KOOS.

transaction[attachment_ids]
optional , nil allowed

Validations:

  • Must be an array of Integer

transaction[cost_center_ids]
optional , nil allowed

Validations:

  • Must be an array of Integer

transaction[vat_lines_attributes]
optional

VAT lines

Validations:

  • Must be an Array of nested elements

transaction[vat_lines_attributes][taxable]
optional

Taxable amount, e.g. 95.5

Validations:

  • Must be String

transaction[vat_lines_attributes][tax_percentage]
optional

VAT percentage, e.g. “0.14” for 14%

Validations:

  • Must be String

transaction[vat_lines_attributes][currency]
optional

VAT line currency code, e.g. “EUR”

Validations:

  • Must be String