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 clipboardmutation: {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 clipboardmutation{addReturnTracking(input: {return_uid: "Mw=="carrier_uid: "dXBzLTE="tracking_number: "1Z9876543"}){return_shipping_tracking {uidcarrier {uidlabel}tracking_number}}}
Response:
Copied to your clipboard{"data": {"addReturnTracking": {"return_shipping_tracking": {"uid": "Mw==","carrier": {"uid": "dXBzLTE=","label": "United Parcel Service"},"tracking_number": "1Z9876543"}}}}