Hi there!
I’m using the code below to try to fulfill unfulfilled orders with trackingnumbers, but it returns the following error:
HTTPError: Response code 400 (Bad Request)
at Request.
```javascript
shopify.order.list({ limit: 5, fulfillment_status: "unfulfilled" })
.then((orders) =>
orders.forEach(order => {
console.log(order);
var trackingNumber = getTracking();
const fulfillment = {
tracking_number: trackingNumber,
notify_customer: true
}
const fulfill = shopify.fulfillment.create(order.id, fulfillment)
console.log('fulfill ======>', fulfill)
})
).catch((err) => console.error(err));
Can someone guide me on what’s going wrong here?