Anchor to abandonmentEmailStateUpdateabandonment
abandonmentEmailStateUpdate
mutationDeprecated
Requires access scope.
Updates the email state value for an abandonment. Use instead.
Anchor to Arguments
Arguments
- Anchor to emailSentAtemail•
Sent At The date and time for when the email was sent, if that is the case.
- Anchor to emailStateemail•
State AbandonmentEmail requiredState! The new email state of the abandonment.
- Anchor to emailStateChangeReasonemail•
State Change Reason The reason why the email was or was not sent.
- •ID!required
The ID of the abandonment that needs to be updated.
Was this section helpful?
Anchor to AbandonmentEmailStateUpdatePayload returnsAbandonmentEmailStateUpdatePayload returns
- Anchor to abandonmentabandonment•
The updated abandonment.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation abandonmentEmailStateUpdate($emailSentAt: DateTime, $emailState: AbandonmentEmailState!, $emailStateChangeReason: String, $id: ID!) {
abandonmentEmailStateUpdate(emailSentAt: $emailSentAt, emailState: $emailState, emailStateChangeReason: $emailStateChangeReason, id: $id) {
abandonment {
# Abandonment fields
}
userErrors {
field
message
}
}
}
Input
{
"emailSentAt": "2019-09-07T15:50:00Z",
"emailState": "NOT_SENT",
"emailStateChangeReason": "<your-emailStateChangeReason>",
"id": "gid://shopify/<objectName>/10079785100"
}
{
"emailSentAt": "2019-09-07T15:50:00Z",
"emailState": "NOT_SENT",
"emailStateChangeReason": "<your-emailStateChangeReason>",
"id": "gid://shopify/<objectName>/10079785100"
}