Ecommerce Shopify WordPress Discussion

Issue Changing Order Status From Unfulfilled To Fulfilled Via API

I hope you're all doing well. I'm currently working on an integration and facing challenges changing the order status of Shopify orders from "Unfulfilled" to "Fulfilled" using the Shopify API with node.js. I've referred to the API documentation and am seeking additional guidance as I'm encountering issues with my approach. Here is my current approach: I make a POST request to /admin/api/2024-01/orders/{order_id}/fulfillments.json. In the request body, I include: const fulfillmentData = { message: null, notify_customer: true, tracking_info: { number: trackingNumber, url: `https://company/EU/en/parcel-tracking?match=${trackingNumber}`, company: "company" }, line_items: currentOrder.line_items.map(lineItem => ({ id: lineItem.id, quantity: lineItem.quantity, })), location_id: locationId }; However, I'm receiving error responses, specifically: Request failed with status code 400 { errors: { fulfillment: 'Required parameter missing or invalid' } } I would greatly appreciate any guidance, code examples, or additional details that can help me resolve this issue. Thank you in advance!
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.