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": "62c6d531563a6e4be902da31",
"orderLineRef": "2edcf546365f3b3c3af34f8d"
}
Response
{
"orderLineMarkAsUnavailable": {
"order": {
"_id": "7ad6181f8fcc8693d0c1c5cc",
"id": "example",
"incId": 42,
"origin": "example",
"created": 1742591010247,
"modified": 1764068154672,
"orderId": "example",
"instructions": "example",
"updated": 1747551617275,
"status": "example",
"discogsStatus": "example",
"buyerWasContacted": true,
"unreadMessagesCount": 42,
"path": "/release/1763553751/release-artist-release-name"
},
"message": "example"
}
}
Arguments
| Name | Type | Description |
|---|---|---|
orderRef | ID! | Reference ID of the order containing the line item. |
orderLineRef | ID! | Reference ID of the order line item to mark as unavailable. |