POST /admin/api/2020-01/fulfillments.json doesn't appear to support multiple tracking numbers

Highlighted
Shopify Partner
2 0 1

Hi there,

 

I am attempting to post a fulfillment on an order, including multiple tracking numbers.

 

I can PUT to /admin/orders/11111/fulfillments/333333.json and include 'tracking_numbers' with an array of strings.

 

However, on endpoint /admin/api/2020-01/fulfillments.json, this property is just ignored.

 

This does not work:

{
  "fulfillment": {
    "notify_customer": false,
    "tracking_numbers": [ "1234", "5678" ],
    "line_items_by_fulfillment_order": [
      {
        "fulfillment_order_id": 12314,
        "fulfillment_order_line_items": [
          {
            "id": 1231231,
            "quantity": 42
          }
        ]
      }
    ]
  }
}

Any chance this can be implemented as a feature request to save from making a second call to add tracking numbers to the fulfillment?

 

Thanks,

Marc

1 Like