SolariumSolariumDocs
Browse The Docs

Docs/API Reference/Transactions

POST

Attach Receipt to Transaction

Attaches an uploaded receipt (image or PDF) to a ledger event. The file must already be uploaded to S3 — pass the s3Key returned from the upload endpoint.

Parameters

organizationIdUUID!required

Organization ID

eventIdUUID!required

Ledger event ID to attach the receipt to

s3KeyString!required

S3 object key of the uploaded receipt file

filenameString

Original filename for display (e.g. receipt.pdf)

Request
mutation {
  attachReceiptToEvent(
    organizationId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
    eventId: "b7c8d9e0-f1a2-3456-b789-cdef01234567"
    s3Key: "receipts/a1b2c3d4/2026/06/canadapost-shipping-label.pdf"
    filename: "canadapost-shipping-label.pdf"
  ) {
    success
    receiptId
  }
}
Response
{
  "data": {
    "attachReceiptToEvent": {
      "success": true,
      "receiptId": "b1c2d3e4-f5a6-7890-bcde-f01234567890"
    }
  }
}