This query creates sales report by the collection ID and mails to the provided email address.
General Pattern
query{
mailSalesReportByCollectionID(collectionID: UUID! toEmail:String! orgID:UUID!){
field_1
field_2 {
nested_field_1
...mailSalesReportByCollectionID
}
}
}
Sample Query
query{
mailSalesReportByCollectionID(collectionID:"d15b1b02-3c87-434d-a7fb-004b27415fbc"
toEmail:"[email protected]"
orgID:"a1dc174d-abf4-47d3-be3c-9281c6eba456")
}
Sample Response
{
"data": {
"mailSalesReportByCollectionID": true
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
collectionID | UUID | The collection ID. | Yes |
toEmail | String | The recipient email address. | Yes |
orgID | UUID | The organization ID | Yes |
Fields
Name | Type | Description |
---|---|---|
N/A | Boolean | The confirmation of sent mail sales report. |
Example
Send the sales report by the collection ID, email address, and organization ID: