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": "23790c80835fb4976fb82eee",
"orderLineRef": "70c08e82caab4f3b3a9174a0"
}
Response
{
"orderLineMarkAsUnavailable": {
"order": {
"_id": "4af26d47d1da9886d7319d07",
"id": "example",
"incId": 42,
"origin": "example",
"created": 1719330569840,
"modified": 1769171224850,
"orderId": "example",
"instructions": "example",
"updated": 1743578853678,
"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. |