Open alihamza1214 opened 1 year ago
even tried with this json mentioned in tests { "fulfillment": { "tracking_number": null, "line_items": [ { "id": 466157049, "quantity": 1 } ] } }
Same problem here - as shopify changed the Fulfillment API
Same problem here - as shopify changed the Fulfillment API
Yes but the package is still making old API calls and there is no recent update .
Correct, but shopify seems to reject old API calls regarding fulfillment. Tried also the createv2 method but also not working.
I will gonna change it to the new API with a lot of effort and directly with the shopifyAPI.
Correct, but shopify seems to reject old API calls regarding fulfillment. Tried also the createv2 method but also not working.
I will gonna change it to the new API with a lot of effort and directly with the shopifyAPI.
Yes we are also using direct admin API call to create fulfillment and its working but if its fixed in package then it will be good because we are using many other APIs in our project.
Any ETA on a fix here, the below works for now
const [fulfillment] = await shopify.order.fulfillmentOrders(id);
await fetch(
`https://${config.shopify.name}.myshopify.com/admin/api/${SHOPIFY_API_VERSION}/fulfillments.json`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Shopify-Access-Token': config.shopify.token
},
body: JSON.stringify({
fulfillment: {
line_items_by_fulfillment_order: [{ fulfillment_order_id: fulfillment.id }],
tracking_info: {
number: '......',
url: '.....'
}
}
})
}
);
We were using create fulfillment resource which was working fine until now. We believe that shopify have changed resources after version 2022-10 so may be it has to do something with that.
this was the format that was working before but now its giving 404 not found and if we provide new params format from shopify admin rest api doc, it gives bad request.
above code snippet works from direct postman call but we are not able to figure out how to make this call using this package.