DiscountAllocationDetails

Version 2024-04-01

Overview

Details for the discount allocated to an entity.

With DiscountAllocationInput we can support the following use cases:

  1. associate the discount details like discount amount and couponCodes(if any) with the line item in the shopper's order confirmation page.
  2. associate the discount details like discount amount and couponCodes(if any) with the line item in the merchant's order management page.
  3. give refund estimate in case specific LineItems are returned.

Fields

FieldDescription
aliases ([Alias])

Unique identifiers of promotion entities such as external promotion id.

amount (Money required)

The discount amount.

couponCode (String)

The coupon code used to redeem the promotion.

displayString (String)

The message for display which indicates why this promotion was applied to the corresponding entity.

promotionAliases ([Alias])

DeprecatedUse aliases.

Unique identifiers of promotion entities such as external promotion id.