How do I apply a pre-existing Discount to an order on Create

raresrares Member Posts: 4
edited July 2018 in Development
I am trying to use a pre-configured Discount to a Sale (at the sale level) when passing the sale to the api. The relevant json attributes I am sending look like the following:

discountID: '2', discountPercent: '0.05'

The error message I get is the following: 

Sale not Created. \\"discountPercent\\" cannot be set on Create

I have additionally wrapped these 2 fields in a 'Discount' node and I get a sale back with a balance due and no discount applied.

I cannot find the documentation on restrictions with discounts. Can someone point me to this? It doesn't seem right that I can apply tax on create but I have to send discounts separately.

Thank you.
Post edited by rares on

Best Answers

  • raresrares Member Posts: 4
    Accepted Answer



Sign In or Register to comment.