Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Changing Fulfillment API

Changing Fulfillment API

submfg
Shopify Partner
5 0 0

Hey All,

 

Having an issue with posting fulfillments.  I can get the order data using GET but when I try and fulfill it gives me a 404 not found?  If anyone can pinpoint what I am doing wrong here please let me know.

 

https://mydomain.myshopify.com/admin/api/2022-01/fulfillments.json

 

 
{
    "fulfillment": {
        "line_items_by_fulfillment_order": [
            {
                "fulfillment_order_id": 4895586779217,
                "fulfillment_order_line_items": [
                    {
                        "id": 11674064978001,
                        "quantity": 1
                    }
                ]
            }
        ],
        "tracking_info": {
            "company": "usps",
            "number": 12345162567398,
            "url": "www.usps.com"
        },
        "notify_customer": true,
        "location_id": 23827284049
    }
}
 
Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 524

Hi again @submfg👋


Would you kindly check these requirements and review these steps to highlight exactly at which step you're running into errors? That way we can try to isolate what could the cause.

 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

submfg
Shopify Partner
5 0 0

I think I am having issues with Accepting a fulfillment.  When GETting the order data, the fulfillment:[] is empty.  I have reviewed all steps, created a fulfillment service, but can not figure out how to populate the fulfillment:[] so that it can be fulfilled.  Please let me know if you can help walk me though.

ShopifyDevSup
Shopify Staff
1453 238 524

If you're encountering a 404 error when executing Step 4: Create fulfillments, it likely indicates that this particular fulfillment order ID or line item ID cannot be located on this specific store. I'd recommend contacting us here with your authenticated partner account with permissions to this merchant store/fulfillments, and providing the team with the X-Request-ID and timestamp from within the last 7 days. 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog