Edit in GitHubLog an issue

removeReturnTracking mutation

The removeReturnTracking mutation deletes a customer-entered entry that defines the shipping carrier and tracking number for a return request. Use the customer query to retrieve valid carrier_uid values.

Syntax

Copied to your clipboard
mutation: {
removeReturnTracking(input: RemoveReturnTrackingInput!): RemoveReturnTrackingOutput
}

Reference

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

Example usage

The following example removes customer-entered tracking information for the specified return request. In the response, the shipping object is empty because the tracking information has been deleted.

Request:

Copied to your clipboard
mutation{
removeReturnTracking(input: {
return_shipping_tracking_uid: "Mw=="
}){
return {
uid
shipping {
tracking {
carrier {
uid
label
}
tracking_number
status {
text
type
}
}
}
items {
order_item {
product_name
product_sku
}
}
}
}
}

Response:

Copied to your clipboard
{
"data": {
"removeReturnTracking": {
"return": {
"uid": "Mw==",
"shipping": {
"tracking": []
},
"items": [
{
"order_item": {
"product_name": "Ryker LumaTech™ Tee (Crew-neck)",
"product_sku": "MS09-M-Red"
}
}
]
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.