Hacker News new | ask | show | jobs
by tdeck 2808 days ago
I worked on the Square API for more than a year so I am fairly familiar with their data model for items, although I think it has since been enhanced.

Basically you have an item, and within that item there are variations (like different SKUs). Items can also have modifiers that apply to that particular item, and these are multiple choice. So you'd have a burger item say, where the variations are beef or veggie. Then you'd have modifiers like lettuce, tomato, onion, etc. Modifiers can have a cost or be free, different variations have a price.

You can also apply discounts which are like items that affect your total as a whole or the price of specific other items.

1 comments

Thank you, very informative. I was sure they had accounted for such use. I am not sure what system they have chosen (or if they have chosen one yet) but I will most likely put Square on my list of suggestions if they ask. Thanks again.