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": "8d68982229505629dc2922ba",
"orderLineRef": "9cb693e4dfc0fe17aa9858d6"
}
Response
{
"orderLineMarkAsUnavailable": {
"order": {
"_id": "1033dc879f9ae78ee18fdb8d",
"id": "example",
"incId": 42,
"origin": "example",
"created": 1757833361651,
"modified": 1723847098249,
"orderId": "example",
"instructions": "example",
"updated": 1733555960221,
"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. |