Upload new attachment either to existing receipt or initiate creating new receipt

Params

Param name Description
file
required

Either a single FILE object or a hash with one or more files for upload, e.g. {“0”: FILE1, “1”: FILE2}

Validations:

  • Must be Hash

transaction_id
optional

Receipt id in case attachment is being added to existing receipt. Warning: optional only if “draft” param is set to 1

Validations:

  • Must be Integer

draft
optional

If equal to 1, attachment can be saved without a transaction_id

Validations:

  • Must be Integer