commerce/catalog/admin/couponsets/assigneddiscounts

Use the AssignedDiscounts resource to manage the discounts assigned to coupon sets.

JSON Example

AssignedDiscount Properties

Property Description
auditInfo

type: auditInfo

Basic audit info about the object, including date, time, and user account. This data may be captured when creating, updating, and removing data.

auditInfo.createBy

type: string

Identifier of the user that created the object. System created and read only.

auditInfo.createDate

type: DateTime

The date and time in UTC format set when the object was created.

auditInfo.updateBy

type: string

Identifier of the user that updated the entity most recently.

auditInfo.updateDate

type: DateTime

The date and time in UTC format the object was updated most recently.

couponSetCode

type: string

The unique identifier of the coupon set.

couponSetId

type: int

The unique, system generated id. You can use this value to further identify the coupon set.

This value is ready only.

discountId

type: int

The unique identifier of the discount.

Operations

Operation Name Request URI Description
AssignDiscount POST %7bcouponSetCode%7d%2fassigneddiscounts

Assigns or associates an existing discount to a specified coupon set. Use the couponSetCode parameter to specify the coupon set.

GetAssignedDiscounts GET %7bcouponSetCode%7d%2fassigneddiscounts

Retrieves the discountIds of any assigned discounts for the specified coupon set.

UnAssignDiscount DELETE %7bcouponSetCode%7d%2fassigneddiscounts%2f%7bdiscountId%7d

Unassigns or disassociates the specified discount with the specified coupon set.