Skip to main content
POST
cURL
The body names one of invoice, purchase_invoice, account_statement or payment, holding that document’s id, beside to, cc, bcc, subject, body and template.
The SDK samples get their client from credentials your app registers once when it starts, as shown in Authentication. To try the call here, click Try it, set host to your Exsited API host name and paste an access token from Get an access token. To send a raw JSON body instead of filling in fields, copy the cURL sample and edit its -d payload.

Authorizations

Authorization
string
header
required

An access token from POST /api/v4/oauth2/token. The SDKs get and renew it for you.

Body

application/json

Name one document to email, beside the recipients and content.

invoice
string

The id of the invoice to email, such as INV-0001. Send one of invoice, purchase_invoice, account_statement or payment.

purchase_invoice
string

The id of the purchase invoice to email.

account_statement
string

The id of the account statement to email.

payment
string

The id of the payment to email.

to
any

The recipients.

cc
any

Copy recipients.

bcc
any

Blind copy recipients.

subject
string

The email's subject.

body
string

The email's body.

template
any

The email template to use.

Response

200

The email is sent.