I don't think the output should be the entire product, as that gets serialized to the db.  the product_id would be much better IMHO.  I would put it in output[:product_id]   as well (versus response)