Accepting credit cards, warehouses, and shipping and fulfilling orders
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!!
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025