Edit in GitHubLog an issue

addReturnTracking mutation

The addReturnTracking mutation adds customer-entered shipping tracking information to the specified return request. Use the available_shipping_carriers object in the customer query to retrieve valid carrier_uid values.

Syntax

Copied to your clipboard
mutation: {
addReturnTracking(input: AddReturnTrackingInput!): AddReturnTrackingOutput
}

Reference

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

Example usage

The following example adds the shipping carrier and a tracking number for the specified return request.

Request:

Copied to your clipboard
mutation{
addReturnTracking(input: {
return_uid: "Mw=="
carrier_uid: "dXBzLTE="
tracking_number: "1Z9876543"
}){
return_shipping_tracking {
uid
carrier {
uid
label
}
tracking_number
}
}
}

Response:

Copied to your clipboard
{
"data": {
"addReturnTracking": {
"return_shipping_tracking": {
"uid": "Mw==",
"carrier": {
"uid": "dXBzLTE=",
"label": "United Parcel Service"
},
"tracking_number": "1Z9876543"
}
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.