Skip to main content

orderCarrierBoxUpdate Mutation

Description​

Selects the box preset for an order (snapshot from the carrier settings) and re-mirrors the order on the carrier aggregator so the new dimensions apply to quotes and labels.

mutation orderCarrierBoxUpdate($orderRef: ID!, $boxRef: ID!) {
orderCarrierBoxUpdate(orderRef: $orderRef, boxRef: $boxRef) {
_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
archived
isSystem
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": "b8a41ce037c6205456c6f212",
"boxRef": "de234521158596865579e496"
}

Response​

{
"orderCarrierBoxUpdate": {
"_id": "3995395653dbf4c153fbb36d",
"id": "example",
"incId": 42,
"origin": "example",
"created": 1764184345657,
"modified": 1773286226705,
"shipping": {
"status": "Pending",
"fulfilled": true,
"date": 1760883249411,
"method": "example",
"freeShippingThreshold": 1.23,
"tracking": "example",
"shopCollection": true,
"weight": 1.23,
"packingSlip": "example"
},
"billing": {
"status": "example",
"fulfilled": true,
"paymentDate": 1786441724345,
"refundDate": 1732247154085
},
"orderId": "example",
"notes": [
{
"date": 1787180452601,
"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": "f7e755e7239d78a57b783028",
"quantity": 1,
"unavailable": true,
"added": 1778283669487
}
],
"messages": [
{
"_id": "3c09f54a39b7b0e3af2c066f",
"created": 1781601746218,
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"archived": true,
"isSystem": 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": "33963be1885166ab8e1f64a8",
"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": 1787956305219,
"ip": "example"
}
],
"seller": {
"type": "example",
"name": "example",
"email": "email@example.com",
"ref": "dc26b2fc5df1aa5016841474"
},
"updated": 1786746528087,
"status": "example",
"discogsStatus": "example",
"buyerWasContacted": true,
"unreadMessagesCount": 42,
"mergeableOrders": [
{
"_id": "dbcacb2a3f6f09a6f4036709",
"id": "example",
"created": 1758836476906,
"total": 29.99,
"description": "example"
}
],
"path": "/release/1763553751/release-artist-release-name"
}
}

Arguments​

NameTypeDescription
orderRefID!Reference ID of the order to update.
boxRefID!Identifier of the box on the carrier settings (config.carriers.boxes).

Returns​

Order!