Skip to main content

Email the document to the buyer

POST 

/api/v1/transactions/:transaction_id/email

Send the transaction's document to up to five addresses from GoRoute's verified sender, with the PDF attached the way the email channel hands it out โ€” a PDF/A-3 hybrid carrying factur-x.xml for an EU seller, the plain PDF otherwise โ€” plus the XML document itself.

sender_name is a display name only; reply_to is where answers go. message (plain text, up to 2000 characters) is the seller's own note, shown set apart under the document summary.

The body, rendered in lang and sent as both HTML and plain text, carries the seller's name, one sentence naming the document, a summary block (document number, issue date, buyer, total โ€” each line present only when this platform holds the value), the note, what the two attachments are, and the sending attribution. It is transactional: no tracking, no marketing, no unsubscribe. The subject is Invoice <number> from <sender_name or organisation name> (Credit note โ€ฆ for a credit note). Each send is recorded on the transaction's metadata under emails.

Errors: 404 when the transaction is not the caller's; 409 NO_DOCUMENT when the transaction has no stored document to send (or is an inbound one); 429 after three sends of the same transaction in 24 hours; 503 when mail is not enabled on this environment.

Requestโ€‹

Responsesโ€‹

Successful Response