Not able to create fulfillment order problem using npm shopify-api-node

Topic summary

Main issue: Creating a fulfillment via the shopify-api-node package returns HTTP 400 (Bad Request), although fetching the order succeeds. Code snippets are central to the troubleshooting.

Key context: shopify-api-node is a third‑party library not maintained by Shopify, so official support is limited. A migration to the newer Fulfillment Create V2 endpoint was suggested, with reference to Shopify’s REST Admin API docs.

Critical fix: When using Fulfillment Create V2, the parameter fulfillment_order_id must be the fulfillment_order.id, not the order.id. Passing order.id led to 400/404 errors; switching to the correct fulfillment_order.id resolved the problem for one participant.

Outcomes: The parameter correction resolved errors for the user who tried it. It’s implied that migrating to Create V2 and using proper IDs is the recommended path; the original poster’s final status isn’t confirmed.

Notes: One later comment about store URL redirects affecting product fetches appears tangential to the fulfillment creation issue. Discussion remains practically resolved for the V2 usage question, with no broader changes or decisions beyond using the correct ID and endpoint.

Summarized with AI on December 28. AI used: gpt-5.

Hello Irfanrasool,

We had the same issue and was solved migration to the new fulfillment service createV2.

Here there is the documentation: https://shopify.dev/docs/api/admin-rest/2023-04/resources/fulfillment#post-fulfillments to the params of the request.

Best !