addReturnComment mutation
The addReturnComment
mutation adds a comment to an existing return request.
Syntax
Copied to your clipboardmutation: {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 clipboardmutation{addReturnComment(input: {return_uid: "Mw=="comment_text: "I'd like a refund"}){return {uidstatuscomments {uidauthor_nametext}}}}
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"}]}}}}