sendQuoteEmailPostmark
Requires permission sales:quote:update.
Email a quote through Postmark with the quote PDF attached. Send To, Cc and Bcc lists of up to 20 addresses each; at least one To recipient is required. Every address is screened for deliverability before sending.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation SendQuoteEmailPostmark($input: SendQuoteEmailInput!) {
sendQuoteEmailPostmark(input: $input) {
emailActivityId
error
messageId
replyToAddress
success
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation SendQuoteEmailPostmark($input: SendQuoteEmailInput!) {\n sendQuoteEmailPostmark(input: $input) {\n emailActivityId\n error\n messageId\n replyToAddress\n success\n }\n}",
"variables": {
"input": {
"quoteId": "id"
}
}
}
EOF
Variables:
{
"input": {
"quoteId": "id"
}
}
Response:
{
"data": {
"sendQuoteEmailPostmark": {
"emailActivityId": "string",
"error": "string",
"messageId": "string",
"replyToAddress": "string",
"success": true
}
}
}
sendQuoteEmailPostmark(
input: SendQuoteEmailInput!
): SendQuoteEmailResult!
Arguments
sendQuoteEmailPostmark.input ● SendQuoteEmailInput! non-null input
The quote, its recipients and the message to send.
Type
SendQuoteEmailResult object
Result of sending a quote by email.