We are calling the new api to fulfill the orders per this document:
https://shopify.dev/docs/api/admin-rest/2022-04/resources/fulfillment#post-fulfillments
This is the permissions of the store:
{"access_scopes":[{"handle":"write_orders"},{"handle":"write_products"},{"handle":"write_inventory"},{"handle":"write_shipping"},{"handle":"write_merchant_managed_fulfillment_orders"},{"handle":"read_merchant_managed_fulfillment_orders"},{"handle":"read_orders"},{"handle":"read_products"},{"handle":"read_inventory"},{"handle":"read_shipping"}]}
And when we fulfill an order, we POST the following object:
{"fulfillment":{"tracking_info":{"number":"xxxxxxxxxx","url":"","company":"Canada Post"},"notify_customer":true,"message":"","line_items_by_fulfillment_order":[{"fulfillment_order_id":"123123123"}],"location_id":"123123123123"}}
(masked some number for security reasons)
And the response is successful:
{
"fulfillment": {
"id": 1231231231231,
"order_id": 123123123123,
"status": "success",
"created_at": "2023-03-28T10:45:18-04:00",
"service": "manual",
"updated_at": "2023-03-28T10:45:18-04:00",
"tracking_company": null,
"shipment_status": null,
"location_id": 123123123,
"origin_address": null,
"tracking_number": null,
"tracking_numbers": [],
"tracking_url": null,
"tracking_urls": [],
"receipt": {},
"name": "#aaaa",
"admin_graphql_api_id": "gid://shopify/Fulfillment/aaaaa"
}
}
The returned tracking is null, and in store admin, the order shows fulfilled but no tracking.
What is the problem?
Thanks