Skip to main content
POST
Attach a receipt to a ledger entry

Attaching an uploaded receipt

If you uploaded a receipt without a transactionId, 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:
The receipt is filed to the 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

x-api-token
string
header
required

API token for authentication. Obtain from your Infinity account settings.

Path Parameters

receiptId
string
required

The id of the receipt, as returned when it was uploaded

Body

application/json

The ledger entry to attach the receipt to.

transactionId
string
required

The id of the ledger entry transaction to attach the receipt to.

Example:

"682338d9e9500b3ffe4baa5a"

Response

The receipt was attached to the ledger entry.

receipt
Receipt · object
required

A receipt document that was uploaded to the organisation.