Describing items

Understand how the items array is used to describe the products or services in a Checkout

The elements of the items array are used to describe the products or services in a Checkout. For each item, you can specify the SKU identifier, provide any subscription information, set the individual or aggregate price, designate a quantity, and apply discounts.

You populate the array with either a PriceRequestItem or AggregatePriceRequestItem.

The following table describes the required and optional attributes for both objects:

PriceRequestItem
AggregatePriceRequestItem
PriceRequestItem

Attribute

Required/Optional

Description

skuId

Required

A unique identifier of a SKU.

subscriptionInfo

Optional

Refer to Providing subscription information

price

Required

Refer to Setting the price

quantity

Optional

The number of items selected by the customer . If no value is specified, the default is 1.

discount

Optional

Refer to Item level discount

AggregatePriceRequestItem

Attribute

Required/Optional

Description

skuId

Required

A unique identifier of a SKU.

subscriptionInfo

Optional

Refer to Providing subscription information

aggregatePrice

Required

Refer to Setting the price

quantity

Optional

The number of items selected by the customer . If no value is specified, the default is 1.