cURL
curl --request PUT \ --url https://api.ledger.so/v1/transactions/{transactionId}/receipt \ --header 'Api-Key: <api-key>' \ --header 'Content-Type: image/*' \ --data '"<string>"'
{ "object": "receipt", "transactionId": "<string>", "url": "<string>", "mimeType": "<string>", "uploadedAt": 123 }
Upload a receipt for a transaction. Supports direct file upload (image/*, application/pdf) or JSON with external URL.
API key for authentication. Get your key from the Dashboard.
The transaction ID
The body is of type file.
file
Receipt uploaded
receipt
URL to access the receipt
MIME type of the receipt
Unix timestamp when receipt was uploaded