Edit in GitHubLog an issue

addReturnComment mutation

The addReturnComment mutation adds a comment to an existing return request.

Syntax

Copied to your clipboard
mutation: {
addReturnComment(input: AddReturnCommentInput!): AddReturnCommentOutput
}

Reference

The addReturnComment reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following example adds a comment in response to the merchant.

Request:

Copied to your clipboard
mutation{
addReturnComment(input: {
return_uid: "Mw=="
comment_text: "I'd like a refund"})
{
return {
uid
status
comments {
uid
author_name
text
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"addReturnComment": {
"return": {
"uid": "Mw==",
"status": "PENDING",
"comments": [
{
"uid": "NQ==",
"author_name": "Customer Service",
"text": "We placed your Return request."
},
{
"uid": "Ng==",
"author_name": "Bob Loblaw",
"text": "I want to return the shirt because I don't like the texture of the fabric"
},
{
"uid": "Nw==",
"author_name": "Customer Service",
"text": "OK. Would you like a refund or store credit?"
},
{
"uid": "OA==",
"author_name": "Bob Loblaw",
"text": "I'd like a refund"
}
]
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.