# CatalogDiscount API apply to specific product

**URL:** <https://developer.squareup.com/forums/t/catalogdiscount-api-apply-to-specific-product/2566>\
**Category:** Questions\
**Tags:** catalog-api\
**Created:** [May 19, 2021, 4:35pm UTC](https://developer.squareup.com/forums/t/catalogdiscount-api-apply-to-specific-product/2566 "2021-05-19T16:35:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TemJ](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@TemJ](https://developer.squareup.com/forums/u/TemJ)\
**Post date:** [May 19, 2021, 4:35pm UTC](https://developer.squareup.com/forums/t/catalogdiscount-api-apply-to-specific-product/2566/1 "2021-05-19T16:35:30Z")

</div>

Hi There,

We are working with CatalogDiscount API and everything working fine but we need to apply the discount code or attache it to a specific product(Item) the same as we have in the dashboard (Discount rules)

Any suggestions (:

Thanks.

---

<div class="post-metadata">

**Author:** ![sjosey](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/sjosey/32/40_2.png) [@sjosey](https://developer.squareup.com/forums/u/sjosey)\
**Post date:** [May 20, 2021, 4:26pm UTC](https://developer.squareup.com/forums/t/catalogdiscount-api-apply-to-specific-product/2566/2 "2021-05-20T16:26:42Z")

</div>

Hi @TemJ welcome to the forums!

You can automatically apply taxes/discounts based on the rules you’ve already set up by setting the `pricing_options->auto_apply_discounts == true`. See here for more info: [Apply Taxes and Discounts](https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts#automatically-apply-preconfigured-catalog-taxes-or-discounts)
