reduce inventory after api purchases