Skip to main content

orderLineMarkAsUnavailable Mutation

Description​

Marks an order line item as unavailable. This is used when an item in an order cannot be fulfilled. Returns the updated order and a message describing the result.

mutation orderLineMarkAsUnavailable($orderRef: ID!, $orderLineRef: ID!) {
orderLineMarkAsUnavailable(orderRef: $orderRef, orderLineRef: $orderLineRef) {
order {
_id
id
incId
origin
created
modified
orderId
instructions
updated
status
discogsStatus
buyerWasContacted
unreadMessagesCount
path
}
message
}
}

Variables​

{
"orderRef": "d22b3d5ae9ab2dd4e92d8ed6",
"orderLineRef": "ae4986018560a46543322997"
}

Response​

{
"orderLineMarkAsUnavailable": {
"order": {
"_id": "f676a8ff4e4dd65afeaec625",
"id": "example",
"incId": 42,
"origin": "example",
"created": 1751743888996,
"modified": 1781869328817,
"orderId": "example",
"instructions": "example",
"updated": 1755704916706,
"status": "example",
"discogsStatus": "example",
"buyerWasContacted": true,
"unreadMessagesCount": 42,
"path": "/release/1763553751/release-artist-release-name"
},
"message": "example"
}
}

Arguments​

NameTypeDescription
orderRefID!Reference ID of the order containing the line item.
orderLineRefID!Reference ID of the order line item to mark as unavailable.

Returns​

OrderUpdateWithMessage!