Ecommerce Shopify WordPress Discussion

Modify Fulfillment Status And Adding Tracking Information on Shopify API

I am attempting to update the fulfillment status to 'fulfilled' and include additional information such as the tracking number using the Shopify API. Currently, I can modify other fields, such as note_attributes, but I'm encountering difficulties updating the fulfillment status. I'm unsure if I should be updating the order from the following URL: https://${store}${orderId}.json or if there's another endpoint for fulfillment updates. I am also trying to create the fulfillment to this endpoint https://${store}${orderId}/fulfillments.json, but I encounter an 404 error. With this code I try to create a fulfillment, but I can't. const fulfillmentData = { fulfillment: { location_id: 64283476117, tracking_number: trackingNumber, tracking_company: "Company", tracking_numbers: [trackingNumber], tracking_url: `${trackingNumber}`, tracking_urls: [`${trackingNumber}`], status: 'success', service: 'manual', line_items: => ({ id:, quantity: item.quantity })) }, }; const createFulfillmentResponse = await `https://${store}${orderId}/fulfillments.json`, fulfillmentData, { headers: { 'X-Shopify-Access-Token': adminApiAccessToken, 'Content-Type': 'application/json', }, } ); I can modify orders in this URL, but if I try to add a fulfillment, it doesn`t work: https://${store}${orderId}.json Thanks
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.