As per the Shopify document, we tried to create a reverse fulfillment order with disposition option as RESTOCKED and got an error from Shopify as follows:-
{
'errors': [
{
'code': 'INVALID',
'field': [
'dispositionInputs',
'0',
'dispositionType'
],
'message': 'RESTOCKED is an invalid disposition type for a custom line item.'
}
],
'reverseFulfillmentOrderLineItems': {
},
'cost_and_rate_limit': {
'maximumAvailable': 2000,
'currentlyAvailable': 1990,
'restoreRate': 100,
'code': ''
}
}
We need some clarity on RESTOCKED is an invalid disposition type for a custom line item.
We tested this GraphQL on our test store and followed this document
GQL Mutation Query we used as follows:-
mutation reverseFulfillmentOrderDispose($dispositionInputs: [ReverseFulfillmentOrderDisposeInput!]!) {
reverseFulfillmentOrderDispose(dispositionInputs: $dispositionInputs) {
reverseFulfillmentOrderLineItems {
id
dispositions{
id
location{
id
name
}
type
quantity
}
fulfillmentLineItem{
lineItem{
sku
}
}
totalQuantity
}
userErrors {
code
field
message
}
}
}
Variables:
{
"dispositionInputs": [
{
"dispositionType": "RESTOCKED",
"locationId": "gid://shopify/Location/75634802903",
"quantity": 1,
"reverseFulfillmentOrderLineItemId": "gid://shopify/ReverseFulfillmentOrderLineItem/12267454679"
},
{
"dispositionType": "RESTOCKED",
"locationId": "gid://shopify/Location/75634802903",
"quantity": 1,
"reverseFulfillmentOrderLineItemId": "gid://shopify/ReverseFulfillmentOrderLineItem/12267487447"
}
]
}
Need some urgent help on this.
Thanks!!