applyDiscountToCheckout( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Applies a discount to a checkout.

You can apply one of the following discounts, which are exchanged for loyalty points: reward, loyaltyCoupon, or referralReward.

See the introduction article for more information on the type of rewards.

Method Declaration
Copy
Method Parameters
checkoutIdstringRequired

ID of the checkout to apply the discount to.


optionsApplyDiscountToCheckoutOptions
Returns
Return Type:Promise<ApplyDiscountToCheckoutResponse>
Did this help?