Hi,
Thanks for your reply. I did try it with the line items too. The API reference says it can be left undefined and then all items will be fulfilled. But even with them in I am getting the same error.
{
“fulfillment”:{
“message”:“The package was shipped this morning.”,
“line_items_by_fulfillment_order”:[{
“fulfillment_order_id”:6171140030771,
“fulfillment_order_line_items”:[{
“id”:13686305358131,
“quantity”:1
}]
}]
}
}
return is still {“errors”:{“line_items_by_fulfillment_order”:“expected Hash to be a Array”}}
This is the complete return. Hoping I can solve this as this is almost the final piece in the App.
{“headers”:{“status”:“HTTP/2 400 \r”,“date”:“Wed, 04 Jan 2023 20”,“content-type”:“application/json; charset=utf-8”,“x-sorting-hat-podid”:“306”,“x-sorting-hat-shopid”:“66804154675”,“referrer-policy”:“origin-when-cross-origin”,“x-frame-options”:“DENY”,“x-shopid”:“66804154675”,“x-shardid”:“306”,“x-stats-userid”:“”,“x-stats-apiclientid”:“20111261697”,“x-stats-apipermissionid”:“423845101875”,“x-shopify-api-version”:“2022-07”,“http_x_shopify_shop_api_call_limit”:“1/40”,“x-shopify-shop-api-call-limit”:“1/40”,“strict-transport-security”:“max-age=7889238”,“x-shopify-stage”:“production”,“content-security-policy”:“default-src ‘self’ data”,“x-content-type-options”:“nosniff”,“x-download-options”:“noopen”,“x-permitted-cross-domain-policies”:“none”,“x-xss-protection”:“1; mode=block; report=/xss-report?source%5Baction%5D=create&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Ffulfillments&source%5Bsection%5D=admin_api&source%5Buuid%5D=dafbe2db-04c7-4008-a5e1-075cea303053”,“x-dc”:“gcp-australia-southeast1,gcp-us-east1,gcp-us-east1”,“x-request-id”:“dafbe2db-04c7-4008-a5e1-075cea303053”,“cf-cache-status”:“DYNAMIC”,“report-to”:“{"endpoints"”,“nel”:“{"success_fraction"”,“server-timing”:“cfRequestDuration;dur=340.000153”,“server”:“cloudflare”,“cf-ray”:“7846bbf84e39a814-SYD”,“alt-svc”:“h3="”},“response”:“{"errors":{"line_items_by_fulfillment_order":"expected Hash to be a Array"}}”}