CheckoutLineItem
One line of a checkout session: a price and its quantity. The line is a copy taken when the session was created, so a later change of the price, product or tax rate does not change it.
type CheckoutLineItem {
priceId: ID!
productId: ID!
productName: String!
description: String
quantity: Int!
unitAmount: Int!
type: String!
recurring: PriceRecurring
tax: CheckoutLineItemTax
billedInFirstPayment: Boolean!
amountSubtotal: Int!
amountTax: Int!
amountTotal: Int!
}
Fields
CheckoutLineItem.priceId ● ID! non-null scalar
ID of the price.
CheckoutLineItem.productId ● ID! non-null scalar
ID of the product of the price.
CheckoutLineItem.productName ● String! non-null scalar
Product name.
CheckoutLineItem.description ● String scalar
Product description.
CheckoutLineItem.quantity ● Int! non-null scalar
Number of units.
CheckoutLineItem.unitAmount ● Int! non-null scalar
Amount of one unit, in the smallest currency unit. Without tax for an EXCLUSIVE price.
CheckoutLineItem.type ● String! non-null scalar
How the price bills: RECURRING or ONE_TIME. More values may be added.
CheckoutLineItem.recurring ● PriceRecurring object
Billing period of a RECURRING price. null for a ONE_TIME price.
CheckoutLineItem.tax ● CheckoutLineItemTax object
Tax of the line. null without tax.
CheckoutLineItem.billedInFirstPayment ● Boolean! non-null scalar
Whether the first payment charges the line. A recurring price with a trial is charged when the trial ends.
CheckoutLineItem.amountSubtotal ● Int! non-null scalar
Line amount without tax, in the smallest currency unit.
CheckoutLineItem.amountTax ● Int! non-null scalar
Tax of the line, in the smallest currency unit.
CheckoutLineItem.amountTotal ● Int! non-null scalar
Line amount with tax, in the smallest currency unit.
Member Of
CheckoutSession object