Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Matt,
I’m trying to work out how to add discount codes to an order (using the API).
Automatic discounts are being calculated correctly, but I can’t find any method to add a code or discount to an order. Could you point me in the right direction please?
Hey Paul,
Sure thing. To redeem a discount code you want to use the order.Redeem(code) method
https://vendr.net/docs/core/1-0-0/reference/orders-and-order-lines/#redeem
Matt
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Discount Codes
Hi Matt,
I’m trying to work out how to add discount codes to an order (using the API).
Automatic discounts are being calculated correctly, but I can’t find any method to add a code or discount to an order. Could you point me in the right direction please?
Hey Paul,
Sure thing. To redeem a discount code you want to use the order.Redeem(code) method
https://vendr.net/docs/core/1-0-0/reference/orders-and-order-lines/#redeem
Matt
is working on a reply...