Receipt

Render one per successful payment from your payment events, with what was paid, when, by which card, and the invoice it settles.

PDF, A5, from 1 credit

Output

Receipt, rendered by oJo with its first sample

Variables

  • currencytext
    USD
  • customer.emailtext
  • customer.nametext
    Acme Inc.
  • items[].amountnumber
    588
  • items[].descriptiontext
    Team plan, 12 seats
  • items[].detailtext
    October 1 to October 31, 2026
  • items[].quantitynumber
    12
  • merchant.addresstext
    500 Congress Ave, Suite 1200
  • merchant.citytext
    Austin, TX 78701, United States
  • merchant.emailtext
  • merchant.logoUrltext
    data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 44 44%22%3E%3Crect width=%2244%22 height=%2244%22 rx=%229%22 fill=%22%232f4fb3%22/%3E%3Cpath d=%22M15 12v20M22 12v20M29 12v20%22 stroke=%22%23fff%22 stroke-width=%223%22 fill=%22none%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E
  • merchant.nametext
    Initech Cloud, Inc.
  • merchant.taxIdtext
    EIN 88-4410273
  • notestext
    Thank you for your payment. This receipt settles invoice INV-2026-0142 in full.
  • payment.brandtext
    Visa
  • payment.last4text
    4242
  • receipt.datePaidtext
    2026-10-12
  • receipt.invoiceNumbertext
    INV-2026-0142
  • receipt.numbertext
    RCPT-2026-0907
  • totals.amountPaidnumber
    1194.21
  • totals.discountnumber
    58.8
  • totals.discountLabeltext
    Team plan discount (10%)
  • totals.subtotalnumber
    1162
  • totals.taxnumber
    91.01
  • totals.taxLabeltext
    Sales tax (8.25%)
  • totals.totalnumber
    1194.21

Send any of these in modify. Anything you leave out prints the sample value, and the response lists it in warnings.

Render it

Save the template to your account first. Saving gives you its ID.

curl --request POST \
  --url https://api.ojo.so/v1/pdf/template \
  --header 'Authorization: Bearer <your API key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "templateId": "<YOUR_TEMPLATE_ID>",
  "modify": {
    "currency": "USD",
    "receipt": {
      "number": "RCPT-2026-0907",
      "datePaid": "2026-10-12",
      "invoiceNumber": "INV-2026-0142"
    }
  }
}'

What's included

Related templates

All templates
Receipt - oJo