orderUpdateTrackingLink Mutation
Description
Updates only the tracking link for an order. This does not change shipping status/date and does not trigger shipping confirmation side effects.
mutation orderUpdateTrackingLink($orderRef: ID!, $trackingLink: String) {
orderUpdateTrackingLink(orderRef: $orderRef, trackingLink: $trackingLink) {
_id
id
incId
origin
created
modified
shipping {
status
fulfilled
date
method
freeShippingThreshold
tracking
shopCollection
weight
packingSlip
}
billing {
status
fulfilled
paymentDate
refundDate
}
orderId
notes {
date
content
}
instructions
totals {
subtotal
subtotalBeforeTaxes
tax
grand
leftToPay
itemQuantity
discount
shipping
creditNote
balance
}
items {
_id
quantity
unavailable
added
}
messages {
_id
created
subject
message
fromBuyer
flagged
content
read
orderId
orderIncId
uri
via
}
buyer {
_id
firstName
lastName
email
name
path
telephone
organisation
taxNumber
}
logs {
action
description
date
ip
}
seller {
type
name
email
ref
}
updated
status
discogsStatus
buyerWasContacted
unreadMessagesCount
mergeableOrders {
_id
id
created
total
description
}
path
}
}
Variables
{
"orderRef": "bd0322b329abaf678ae9e0ec",
"trackingLink": "trackingLink"
}
Response
{
"orderUpdateTrackingLink": {
"_id": "031d457d674b46115a9e0f53",
"id": "example",
"incId": 42,
"origin": "example",
"created": 1737726837604,
"modified": 1752456058539,
"shipping": {
"status": "Pending",
"fulfilled": true,
"date": 1756891059230,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": 1.23,
"packingSlip": "example"
},
"billing": {
"status": "example",
"fulfilled": true,
"paymentDate": 1725601559664,
"refundDate": 1780740367793
},
"orderId": "example",
"notes": [
{
"date": 1743159112887,
"content": "example"
}
],
"instructions": "example",
"totals": {
"subtotal": 1.23,
"subtotalBeforeTaxes": 1.23,
"tax": 1.23,
"grand": 1.23,
"leftToPay": 1.23,
"itemQuantity": 1.23,
"discount": 0.1,
"shipping": 1.23,
"creditNote": 1.23,
"balance": 1.23
},
"items": [
{
"_id": "0161729d79abf99f2933b016",
"quantity": 1,
"unavailable": true,
"added": 1769526246767
}
],
"messages": [
{
"_id": "0f92e2515023f65954aca7d5",
"created": 1766226985003,
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"read": true,
"orderId": "example",
"orderIncId": 42,
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"via": "example"
}
],
"buyer": {
"_id": "f221b16c6f39747ad48ca2a2",
"firstName": "example",
"lastName": "example",
"email": "email@example.com",
"name": "example",
"path": "/release/1763553751/release-artist-release-name",
"telephone": "example",
"organisation": "example",
"taxNumber": "example"
},
"logs": [
{
"action": "example",
"description": "example",
"date": 1778845066614,
"ip": "example"
}
],
"seller": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "0cbf13e29095051e339609ba"
},
"updated": 1722947833505,
"status": "example",
"discogsStatus": "example",
"buyerWasContacted": true,
"unreadMessagesCount": 42,
"mergeableOrders": [
{
"_id": "700cb43e4b0b9b8adae855bf",
"id": "example",
"created": 1741328026704,
"total": 29.99,
"description": "example"
}
],
"path": "/release/1763553751/release-artist-release-name"
}
}
Arguments
| Name | Type | Description |
|---|---|---|
orderRef | ID! | Reference ID of the order to update. |
trackingLink | String | Tracking link or tracking number for the shipment. |