Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Crowdy 11 posts 72 karma points
    Apr 16, 2020 @ 11:18
    Paul Crowdy
    0

    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?

  • Matt Brailsford 2958 posts 15629 karma points MVP 7x c-trib
    Apr 16, 2020 @ 11:27
    Matt Brailsford
    100

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies