Skip to main content
The moment a payment is confirmed, AgentaOS emails the buyer a receipt. You don’t trigger it and don’t need to build it: it’s automatic, tied to the invoice, and always available to re-send if the buyer loses it.
A receipt exists for every paid invoice. If an invoice was issued before receipts existed on your account, getReceipt falls back to the invoice PDF, so the method always returns something useful.

Download the receipt PDF

Resend the receipt email

Re-sends to whichever email address is on file for the buyer, the same address the original receipt went to. Only works for paid invoices: there’s nothing to send a receipt for on an unpaid or voided one.

Response

boolean
Always true on success.
string
The email address the receipt was (re-)sent to.

Next steps

Invoices

Every receipt is tied to an underlying invoice.

Customers

Where the buyer’s email on file comes from.

Webhooks

React to checkout.session.completed the moment a receipt goes out.