When updating to the new 2023-04 api, following the new documention
curl -d '{"fulfillment":{"message":"The package was shipped this morning.","notify_customer":false,"tracking_info":{"number":1562678,"url":"https://www.my-shipping-company.com","company":"my-shipping-company"},"line_items_by_fulfillment_order":[{"fulfillment_order_id":"4264204501201"}]}}' \
-X POST "https://phatdev.myshopify.com/admin/api/2023-01/fulfillments.json" \
-H "X-Shopify-Access-Token: *edited-out*" \
-H "Content-Type: application/json"
gives you the return
{
"errors": "Not Found"
}
X-Request-ID: da3c0550-a911-40a9-a5ea-8752574d4640
Calling the order directly via
curl -d '{"fulfillment":{"message":"The package was shipped this morning.","notify_customer":false,"tracking_info":{"number":1562678,"url":"https://www.my-shipping-company.com","company":"my-shipping-company"},"line_items_by_fulfillment_order":[{"fulfillment_order_id":"4264204501201"}]}}' \
-X POST "https://phatdev.myshopify.com/admin/api/2023-01/orders/4264204501201/fulfillments.json" \
-H "X-Shopify-Access-Token: *edited-out*" \
-H "Content-Type: application/json"
Returns,
{
"error": "location_id must be specified when creating fulfillments."
}
X-Request-ID: e88df489-fe7e-4812-afee-9fe5914b4218
Adding the location_id
curl -d '{"fulfillment":{"location_id":64123011281,"message":"The package was shipped this morning.","notify_customer":false,"tracking_info":{"number":1562678,"url":"https://www.my-shipping-company.com","company":"my-shipping-company"},"line_items_by_fulfillment_order":[{"fulfillment_order_id":"4264204501201"}]}}' \
-X POST "https://phatdev.myshopify.com/admin/api/2023-01/orders/4264204501201/fulfillments.json" \
-H "X-Shopify-Access-Token: *edited-out*" \
-H "Content-Type: application/json"
returning 404.
X-Request-ID: 75819cc8-0053-4ca9-96f9-573211540c2b
Any idea what is going on here?