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": "62f2ac00c8e9728ff0350f55",
"orderLineRef": "8ef18649edac4d3de739a77b"
}

Response​

{
"orderLineMarkAsUnavailable": {
"order": {
"_id": "ad4432d3fc0d9b07fdb6fa02",
"id": "example",
"incId": 42,
"origin": "example",
"created": 1793583511734,
"modified": 1776782322241,
"orderId": "example",
"instructions": "example",
"updated": 1742532929870,
"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!