post https://domain_prefix.vendhq.com/api/2.0/discount
This will find the best possible promotion to a sale, apply it and return the sale and the discount.
- Despite its
POST
method, this endpoint does not modify any server-side state. - It is the caller's responsibility to pass along the full details of the sale, including all customer information and product information (product type, tags, etc.).