Hello,
I’m using Ruby ShopifyAPI gem.
I have a problem about order fulfillment with all (currently 2) line items, it returns:
ActiveResource::ResourceInvalid: Failed. Response code = 422. Response message = Unprocessable Entity (base; An error occurred, please try again).
line_items = [ {id: '...'}, {id: '...' ]
fulfillment = ShopifyAPI::Fulfillment.new(order_id: order_id, line_items: line_items, tracking_numbers: tracking_numbers, notify_customer: false, location_id: location_id)
fulfillment.save
so I can’t find the problem with this general error text.
if I create 2 fulfillments with one line_item each, it’s created successfully.
Anybody have a solution for this? maybe there is some kind of flag that prevents fulfilling all items at once?