API check promotions available for customer before it gets added to the cart ? #228
Answered
by
ericingram
balanh-development
asked this question in
Help
-
So basically I want customers to see available promotions on their cart and need a way via the API to check for available promotions before it gets added to the cart ? Are swell-js or rest available for this ? |
Beta Was this translation helpful? Give feedback.
Answered by
ericingram
Apr 21, 2023
Replies: 1 comment
-
@balanh-development when you pass Something like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
logeshswell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@balanh-development when you pass
$promotions: true
to a cart or order, it will automatically calculate which promotions can be applied and add them to the record. You could use that functionality and remove them immediately if you want.Something like this: