I am getting "errors": "Not Found" on /admin/api/2022-10/fulfillments.json API response

Solved

I am getting "errors": "Not Found" on /admin/api/2022-10/fulfillments.json API response

Tanvir23
Shopify Partner
4 1 0

I am hitting /admin/api/2022-10/fulfillments.json

my body data is:

{
    "fulfillment": {
        "message": "Order Fulfillment done.",
        "tracking_info ": {
            "number": 1673511020,
            "url": "https://track.mycompany.com/?deliveryNo=1673511020",
            "company": "my company"
        },
        "line_items_by_fulfillment_order": [
            {
                "fulfillment_order_id": "5232614506805",
                "fulfillment_order_line_items": [
                    {
                        "id": 8073851994421,
                        "quantity": 1
                    }
                ]
            }
        ]
    }
}
But I am getting "errors": "Not Found" with status code 404.
It is a public app. And I am using the below scopes to get an access token. But nothing is working.
"scope" => "read_orders,write_orders,read_assigned_fulfillment_orders,write_assigned_fulfillment_orders,read_fulfillments,write_fulfillments,read_merchant_managed_fulfillment_orders,write_merchant_managed_fulfillment_orders,read_third_party_fulfillment_orders,write_third_party_fulfillment_orders,read_inventory,write_inventory,read_products,read_shipping",

Can anyone help me to get rid of this?
Accepted Solution (1)
Tanvir23
Shopify Partner
4 1 0

This is an accepted solution.

@Solution
My first mistake was setting up the fulfillment_order_id   by order_id

So the fulfillment_order_id   will be the below API response's id

/admin/api/2022-10/orders/{order_id}/fulfillment_orders.json

 and tracking info was not updated because of a tiny space "tracking_info " that should be:

"tracking_info"

 

View solution in original post

Replies 3 (3)

IP1999
Shopify Partner
118 8 13

I know it s dumb question but your sure "2022-10" is the right version you are supposed to use? 

 

How are you getting your fulfillment_order_id and ID?

Tanvir23
Shopify Partner
4 1 0

@IP1999 Thank you for your reply.
Yes, the version is correct. I am getting the fulfillment_order_id  by the API

 

 /admin/api/2022-10/orders/5232758915381/fulfillment_orders.json

 

Fulfillment is created now but tracking info remains null.

 

"tracking_company": null,
"tracking_number": null,
"tracking_url": null

 

 

Tanvir23
Shopify Partner
4 1 0

This is an accepted solution.

@Solution
My first mistake was setting up the fulfillment_order_id   by order_id

So the fulfillment_order_id   will be the below API response's id

/admin/api/2022-10/orders/{order_id}/fulfillment_orders.json

 and tracking info was not updated because of a tiny space "tracking_info " that should be:

"tracking_info"