Developer forum

Forum » Feature requests » WebApi: Get product prices based on discount code

WebApi: Get product prices based on discount code

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

We have a request from one of our clients to be able by the webapi to get a list of products, where the prices are discounted based on a voucher/discount code that is part of the post/get request.

Can this be added to the webapi?

 

Best regards, Anders


Replies

 
Nicolai Pedersen
Reply

Voucher codes are set on an order and there is no order when requesting prices... So not sure that would be easy.

Also the price of a product in the regular frontend would not change until the product is added to a cart with a given voucher code.

You can create a cart with the voucher code and add the products to it - and then get the unit prices from that?

BR Nicolai