Error 404 when fulfilling an order

chaklab
Shopify Partner
3 0 0

Hi,

 

I need to fulfill a fulfillment order and add my tracking code to it, but I always get error 404 back, I triple checked and I am using the fulfillment order id

 

POSTing to

https://[url]/admin/api/2023-01/fulfillments.json
{
    "fulfillment": {
        "message": "Spedito",
        "notify_customer": false,
        "tracking_info": {
            "company": "GLS Italy",
            "number": "XXXXXXXXX",
            "url": "https://gls-group.com/IT/it/servizi-online/ricerca-spedizioni.html?match=XXXXXXXXX&type=NAT"
        },
        "line_items_by_fulfillment_order": [
            {
                "fulfillment_order_id": 6919787577668
            }
        ]
    }
}
 "X-Request-ID": "fa8100a5-35a0-4f36-b3cb-da94814a4782"

My fulfillment order is this:

 "id" => 6919787577668
  "shop_id" => 78255161668
  "order_id" => 5905062560068
  "assigned_location_id" => 86256910660
  "request_status" => "unsubmitted"
  "status" => "open"
  "supported_actions" => array:2 [
    0 => "create_fulfillment"
    1 => "hold"
  ]

 

Replies 3 (3)

Liam
Shopify Staff
2731 302 783

Hi Chaklab,

 

Are you seeing this issue only for this specific order, or all orders that you're trying to fulfill?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me 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

chaklab
Shopify Partner
3 0 0

Hi Liam,
I tried to fulfill the last 10 orders and it always replied 404

chaklab
Shopify Partner
3 0 0

I have these access scopes enabled:

"read_orders"
"write_merchant_managed_fulfillment_orders"
"read_merchant_managed_fulfillment_orders"
"read_all_orders"

In the docs is not much clear which ones are necessary,

I tested my integration with a demo shop and it worked
but it doesn't work on my customer's live shop, I was able to only 
GET orders and fulfillment orders from his shop.