Received an error response (404 Not Found) from Shopify

Solved

Received an error response (404 Not Found) from Shopify

mirazasx
Visitor
2 1 0

Hi, 

I have been struggling with this one for couple of days now, does anyone know or can answer me what I'm doing wrong there. 

 

 const resultFulfillments: any = await this.shopifyClient.post({
                path: `/orders/${order.id}/fulfillments.json`,
                type: DataType.JSON,
                data: {
                    "fulfillment":{
                        "location_id": 63016927276,
                        "tracking_number": tracking_number,
                        "tracking_urls": ["https://delfi.lt"],
                        "notify_customer": false,
                        "line_items":[{
                            "id": 10747059830828,
                            "quantity": 1,
                            "variant_id": 40443254636588
                        }]
                    }
                }
            } as PostRequestParams)

 

I have checked all ids, they seem to match. I have only two locations there, so to test with each of them it's not that hard, but nothing helps. I guess it's missing something on the store setup for this to work.

Ref id: fea809e0-791b-49d7-80a4-a529b4440102

Accepted Solution (1)

mirazasx
Visitor
2 1 0

This is an accepted solution.

Never mind I have figured it out. Documentation is not clear for newbies I think. Nowhere was mentioned that Fulfilment orders are created along with an order, I don't need to create them.

View solution in original post

Reply 1 (1)

mirazasx
Visitor
2 1 0

This is an accepted solution.

Never mind I have figured it out. Documentation is not clear for newbies I think. Nowhere was mentioned that Fulfilment orders are created along with an order, I don't need to create them.