Discount on delivery

Hi all…new to this …square app is really good but has a couple of obvious floors…run a collection and delivery service…(food takeaway business.) .would like to offer customers a 10% discount if they collect .

So on discount code option would like to create a code…“collect 10” and write a simple rule so that when customer enters discount code on collection only the discount is applied to the collection category and not delivery category.

Any suggestions?

Thanks all antony

Hi @Tonis15 welcome to the forums!

There’s no way to create a discount/coupon code and use it in the API currently. If you’re using the Orders API, you can apply a discount (https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts), but you would need to handle the logic on if the code would work or not right now. Let me know if that makes sense, or if you have additional questions.