All things Shopify and commerce
Hello,
Trying to post tracking number to my order using Rest Api version 2023-01 but getting following error:
Url ::
https://bamko-testing.myshopify.com/admin/api/2023-01/fulfillments.json
Data Array ::
Array ( [fulfillment] => Array ( [location_id] => 56945246371 [tracking_info] => Array ( [number] => 12345678 [url] => http://www.royalmail.com/portal/rm/track?trackNumber=12345678 [company] => Royal Mail ) [fulfillment_order_id] => Array ( [fulfillment_order_id] => 4898168701091 ) [line_items_by_fulfillment_order] => Array ( [0] => Array ( [id] => 7176085340323 [quantity] => 1 ) ) [notify_customer] => 1 ) )
Error :
"errors":["Fulfillment payloads fulfillment order must be greater than 0"]
Also if I am trying to get order fulfillment json getting following issue :
Url :: https://bamko-testing.myshopify.com/admin/api/2022-10/orders/4898168701091/fulfillment_orders.json
Error ::
{"errors":"The api_client does not have the required permission(s)."}
Even in my custom /private app, I have given all the permission
Please help with the issue.
Kind Regards
The models are _not_ the same between the deprecated /orders/{{id}}/fulfillments POST and the newly-forced /fulfillments POST.
- In /fulfillments, "tracking_info" is _not_ an array. Only one tracking number per fulfillment.
- For /fulfillments, the fulfillment_order_id is embedded inside the line_items_by_fulfillment_order array.
And careful with those line ids. You must use the "fulfillment_order.line_items.id", not the "order.line_items.id" or "fulfillment_order.line_items.line_item_id".
Hello Sir,
Can you share with me a sample payload with tracking info and 2 item lines, I am getting a sort of error when loading multiple items fulfillment, it does work for a single item though.
Thanks
Hi ,Is this problem being solved yet?
Yes, I solved the issue myself. no support was provided.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024