Recreate shipments on line items change [api]

Resolve the same issue described in #3244 but now on the api component