required | |
amount required | | currency required | string = 3 characters Currency code in ISO 4217 format.
| type | | context | string (DiscountContext) Default: "items" Context in which the discount applies.
Enum: | Description |
---|
items | items (less discounts)
| shipping | shipping (less discounts)
| items-and-shipping | items and shipping (less discounts)
|
|
|
issuedTime required | string <date-time> Date and time when the coupon is issued.
This value may also be described as start time of the coupon.
|
id | string <= 50 characters ID of the coupon. This value is also known as the coupon redemption code.
|
| Array of objects (CouponRestriction) |
Array type required | string | quantity required | |
|
redemptionsCount | integer >= 0 Total number of times that a coupon is redeemed.
|
status | string Specifies the current status of the coupon.
Enum: "draft" "issued" "expired" |
description | string Description of the coupon. Use this field to provide an invoice discount item description.
If this field is empty, the invoice discount item description uses the related coupon ID, in the following format:
Coupon "COUPON-ID" .
|
expiredTime | string <date-time> Date and time when the coupon expires.
|
createdTime | string <date-time> (CreatedTime) Date and time which is set automatically when the resource is created.
|
updatedTime | string <date-time> (UpdatedTime) Date and time which updates automatically when the resource is updated.
|
| Array of objects (SelfLink) |
|