B2B Sales quote line item discount using GraphQL

Learn how to use the line item discount and see the values using GraphQL

Adobe Commerce feature {width="20"} Exclusive feature available only with B2B for Adobe Commerce

Who is this video for?

  • Developers

Video content

Transcript
In scope of this demo, I would like to show you a front-end GraphQL API for cardline item discount functionality. To simplify this demo, I already have a quote created, demo quote. I have two items in it, and I have applied discount from the backend side for both items. For the first item, I have applied 50% discount. And for the second item, I applied $3 discount. So let’s take a look how GraphQL API looks for it. So we have regular negotiable quote query, and we have discount node in it, which contains type of discount and the value of discount. So let’s make it. Execute the query and see the results.
So as you may see, response from the server contains discount node, which contains type and value. Fields type in our first case for the first item is discount type, percentage discount type is 50% discount value. And in the second case, it’s amount discount, which has value $3 in our case. This is…

Additional resources

recommendation-more-help
3a5f7e19-f383-4af8-8983-d01154c1402f