Skip to main content
Solved

Get List of Discounts applicable for a specific customer price class

  • March 22, 2022
  • 2 replies
  • 235 views

Forum|alt.badge.img

Hi everyone,

 

Is there API where it can return the list of Discounts applicable for a specific customer given the Customer ID? And also the discounts applicable for a Customer price class, item class, item id, etc?

 

Thank you

 

Best answer by jinin

Hi @jib87 

I don't think we can get the details directly through the API. We can achieve this in an alternate way.

  1. Create GI with required Joins, conditions, and result grid fields
  2. Create an endpoint and add this GI as an entity.
  3. Make an API call for this

I have attached a sample package with GI and endpoint. Please review.

 

2 replies

jinin
Pro I
Forum|alt.badge.img+11
  • Pro I
  • Answer
  • March 22, 2022

Hi @jib87 

I don't think we can get the details directly through the API. We can achieve this in an alternate way.

  1. Create GI with required Joins, conditions, and result grid fields
  2. Create an endpoint and add this GI as an entity.
  3. Make an API call for this

I have attached a sample package with GI and endpoint. Please review.

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • March 30, 2022

I am sorry for the late response. Yes, it works! I’m glad I am able to pull my discounts thru GI and custom endpoint. But I am not sure why it does pull all records, instead of returning only those based on the parameter I set on the request body.