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 aledgerEntryId, it lands in the document inbox. Use this endpoint to attach it to a ledger entry later, for example once the corresponding entry 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 are booked as two transactions internally. Only the id
of the ledger entry itself, as returned by find ledger
entries, is accepted here — the id of the VAT
transaction results in a
404 Not Found response with the error code
transactions/not-found.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 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.