Create New fulfillment via REST API returns 500

devmenskin
Shopify Partner
4 0 0

Hi,

 

I'm trying to add a new fulfillment using rest API 

 

/admin/api/2022-04/orders/{order_id}/fulfillments.json

and I'm getting 500 internal server error.

 

X-Request-ID : 8789a25e-f427-418a-b0cd-bcfa8c852e60

 

location id is valid and exists.

 

Payload:

 

 

 

{
  "fulfillment": {
    "location_id": loc_id,
    "tracking_number": "tracking_number",
    "tracking_urls": [
      "https://tracking_url"
    ]
  }
}

 

 

Thank you,

 

Replies 2 (2)

devmenskin
Shopify Partner
4 0 0

It seems to work now. Perhaps a service outage, if someone from Shopify can please confirm ?

anthony_p
Visitor
1 0 0

It looks the endpoint is deprecated in the version 2022-04 https://community.shopify.com/c/fulfillment-api-deprecation/frequently-asked-questions/td-p/1564746. I guess that might be a reason of unstable service. Fulfillment Orders API to be used now, here is a guide for a new way of fulfillment https://shopify.dev/apps/fulfillment.

However in docs on 2022-04 Fulfillment API still exists 

https://shopify.dev/api/admin-rest/2022-04/resources/fulfillment#post-fulfillments, however now it seems to require providing `fulfillment_order_id`.