Receipts
Attach a receipt to a ledger entry
Attaches a previously uploaded receipt to a ledger entry, and files it to the receipts location. A receipt that is already attached to another ledger entry is moved to the given one.
POST
Attach a receipt to a ledger entry
Attaching an uploaded receipt
If you uploaded a receipt without atransactionId, it lands in the document inbox. Use this endpoint to attach it to a ledger entry later, for example once the corresponding transaction has been posted:
receipts location and the response reflects the ledger entry it is now attached to. A receipt that is already attached to another ledger entry is moved to the given one.
Ledger entries with VAT consist of a net transaction and a VAT transaction.
Attach receipts to the net transaction, i.e. the transaction whose
isVatTransaction is false.Authorizations
API token for authentication. Obtain from your Infinity account settings.
Path Parameters
The id of the receipt, as returned when it was uploaded
Body
application/json
The ledger entry to attach the receipt to.
The id of the ledger entry transaction to attach the receipt to.
Example:
"682338d9e9500b3ffe4baa5a"
Response
The receipt was attached to the ledger entry.
A receipt document that was uploaded to the organisation.