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": "ffa21262173abaabe0ad4207",
"orderLineRef": "e79aa0c00b23a36921912b8f"
}
Response
{
"orderLineMarkAsUnavailable": {
"order": {
"_id": "269cd8d36774e7b7d8de559d",
"id": "example",
"incId": 42,
"origin": "example",
"created": 1705984278355,
"modified": 1744228111289,
"orderId": "example",
"instructions": "example",
"updated": 1743211134611,
"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. |