SendCustomerStatementEmail — Sends a customer statement by email
SendCustomerStatementEmail — Sends a customer statement by emailParameters:
| Parameter | Type | Description |
|---|---|---|
customer_id | ID! | ID of the customer. |
email | CustomerStatementEmailInput! | Email content and recipients. |
Example Query:
mutation SendCustomerStatementEmail(
$customerId: ID!
$email: CustomerStatementEmailInput!
) {
SendCustomerStatementEmail(customer_id: $customerId, email: $email)
}{
"customerId": 100001,
"email": {
"to": ["[email protected]"],
"cc": ["[email protected]"],
"object": "Your account statement",
"body": "<p>Please find your account statement below.</p>"
}
}CustomerStatementEmailInput data type
| Field | Type | Description |
|---|---|---|
to | [String!]! | Recipients. At least one email is required. |
cc | [String] | Carbon copy recipients. |
bcc | [String] | Blind carbon copy recipients. |
object | String! | Email subject. |
body | String! | Email body. |
