Manage and send invoices
Document revision ID: r-416b89857a4093c2
/cash/v1/merchant/invoices/{id}/send Auth: API key (Bearer)invoices:writeEmails an invoice to the customer. email defaults to the invoice's payerEmail and locale to the invoice's locale, then your default payment page language (see Acquiring API overview → Receiving settings that apply to payments), then English; a language other than en, zh-CN, zh-TW, es and ru (or a regional form such as es-MX) counts as not given. The email links to the invoice page, opened in the invoice's own locale when it is a supported language (not in the locale of this call, which only picks the email language; the page can still switch to a language you allow, see Payment page language in Acquiring API overview → Receiving settings that apply to payments), and lets the customer report it if it is unexpected. Payment links cannot be emailed through the API; send them from the console or share pageUrl yourself.
- Only an invoice that can still be paid (
payable: true) can be sent; otherwise the call answers409 CASH_PAYMENT_REQUEST_NOT_PAYABLE. A missing or invalid address answers with .