Bundling items and then expiring the family

Is there a way to automate this through an API or CSV?