Customer Statements Mutations

SendCustomerStatementEmail — Sends a customer statement by email

Parameters:

ParameterTypeDescription
customer_idID!ID of the customer.
emailCustomerStatementEmailInput!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

FieldTypeDescription
to[String!]!Recipients. At least one email is required.
cc[String]Carbon copy recipients.
bcc[String]Blind carbon copy recipients.
objectString!Email subject.
bodyString!Email body.