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.

fulfillment does not wok 2023-01

Solved

fulfillment does not wok 2023-01

logixgrid
Shopify Partner
4 0 0
I am getting this response {"errors":"Not Found"}
 
 
it is working fine but now i am geting from shopify Your app will be delisted from the App Store if changes are not made by April 01, 2023

so now i have to change this api with this but i am getting error every time {"errors":"Not Found"}
 
what i am doing wrong?
 
curl --location --request POST 'https://logixgrid-save.myshopify.com/admin/api/2023-01/fulfillments.json' \
--header 'X-Shopify-Access-Token:  \
--header 'Content-Type: application/json' \
--data-raw '{
    "fulfillment": {
        "message": "The package was shipped this morning.",
        "notify_customer": false,
        "tracking_info": {
            "number": 1562678,
            "url": "https://google.com",
            "company": "my-shipping-company"
        },
        "line_items_by_fulfillment_order": [
            {
                "fulfillment_order_id": 5247929286964, 
                "fulfillment_order_line_items": [
                    {
                        "id": 1058737495,
                        "quantity": 1
                    }
                ]
            }
        ]
    }
}'
 
 
Accepted Solution (1)

IP1999
Shopify Partner
118 8 13

This is an accepted solution.

use the orders.json?name=[order_number]

 

where [order_number] is the number you see in the shopify backend for the number

 

this will give you the order ID you need to use. it will be the First field returned. 

 

and you can find the fulfillments.line_items.ID in the response as well

 

 

View solution in original post

Replies 3 (3)

IP1999
Shopify Partner
118 8 13

you should update your post and take out your "X-Shopify-Access-Token"

 

how are you getting your fulfillment_order_id and your id?

 

you need to use the API to get those. 

IP1999
Shopify Partner
118 8 13

fulfillment_order_id is "The ID of the fulfillment order"

ID is "The ID of the fulfillment order line item"

 

 

IP1999
Shopify Partner
118 8 13

This is an accepted solution.

use the orders.json?name=[order_number]

 

where [order_number] is the number you see in the shopify backend for the number

 

this will give you the order ID you need to use. it will be the First field returned. 

 

and you can find the fulfillments.line_items.ID in the response as well