Saltar al contenido principal

CheckoutSession

A cart of prices that a buyer pays on one MONEI page (url). Paying it creates a payment and, when a line has a recurring price, a subscription. The buyer's billing details are on the payment.

type CheckoutSession {
id: ID!
url: String!
livemode: Boolean!
status: CheckoutSessionStatus!
mode: CheckoutSessionMode!
currency: Currencies!
lineItems: [CheckoutLineItem!]!
amountSubtotal: Int!
amountTax: Int!
amountTotal: Int!
recurringAmountTotal: Int
orderId: String!
description: String!
customerId: ID
billingAddressCollection: BillingAddressCollection!
businessPurchase: BusinessPurchase!
purchaserType: PurchaserType
successUrl: String!
cancelUrl: String
paymentId: ID
subscriptionId: ID
expiresAt: AWSTimestamp!
completedAt: AWSTimestamp
expiredAt: AWSTimestamp
metadata: [KeyValueItem!]
createdAt: AWSTimestamp!
updatedAt: AWSTimestamp
}

Fields​

CheckoutSession.id ● ID! non-null scalar​

Checkout session ID.

CheckoutSession.url ● String! non-null scalar​

Page where the buyer pays the session.

CheckoutSession.livemode ● Boolean! non-null scalar​

Whether the session is in live mode.

CheckoutSession.status ● CheckoutSessionStatus! non-null enum​

Status of the session.

CheckoutSession.mode ● CheckoutSessionMode! non-null enum​

Whether paying the session creates a subscription.

CheckoutSession.currency ● Currencies! non-null enum​

Three-letter ISO 4217 currency code.

CheckoutSession.lineItems ● [CheckoutLineItem!]! non-null object​

Lines of the session, in the order they were given.

CheckoutSession.amountSubtotal ● Int! non-null scalar​

Amount of the first payment without tax, in the smallest currency unit.

CheckoutSession.amountTax ● Int! non-null scalar​

Tax of the first payment, in the smallest currency unit.

CheckoutSession.amountTotal ● Int! non-null scalar​

Amount of the first payment, in the smallest currency unit.

CheckoutSession.recurringAmountTotal ● Int scalar​

Amount of each renewal of the subscription, with tax, in the smallest currency unit. null for a PAYMENT session.

CheckoutSession.orderId ● String! non-null scalar​

Order ID of the payment.

CheckoutSession.description ● String! non-null scalar​

Description of the payment.

CheckoutSession.customerId ● ID scalar​

ID of the customer the session is for. When the session was created without one, a customer is created for the buyer.

CheckoutSession.billingAddressCollection ● BillingAddressCollection! non-null enum​

Whether the checkout page asks for a billing address.

CheckoutSession.businessPurchase ● BusinessPurchase! non-null enum​

Whether the buyer can pay as a company.

CheckoutSession.purchaserType ● PurchaserType enum​

Who paid the session. Set when the session is COMPLETE.

CheckoutSession.successUrl ● String! non-null scalar​

Page the buyer goes to after paying.

CheckoutSession.cancelUrl ● String scalar​

Page the buyer goes to after leaving without paying.

CheckoutSession.paymentId ● ID scalar​

ID of the latest payment the buyer started.

CheckoutSession.subscriptionId ● ID scalar​

ID of the subscription of a SUBSCRIPTION session.

CheckoutSession.expiresAt ● AWSTimestamp! non-null scalar​

Time the session expires if it is not paid. Measured in seconds since the Unix epoch.

CheckoutSession.completedAt ● AWSTimestamp scalar​

Time the session became COMPLETE. Measured in seconds since the Unix epoch.

CheckoutSession.expiredAt ● AWSTimestamp scalar​

Time the session became EXPIRED. Measured in seconds since the Unix epoch.

CheckoutSession.metadata ● [KeyValueItem!] list object​

Key/value metadata that the merchant set.

CheckoutSession.createdAt ● AWSTimestamp! non-null scalar​

Creation time. Measured in seconds since the Unix epoch.

CheckoutSession.updatedAt ● AWSTimestamp scalar​

Last update time. Measured in seconds since the Unix epoch.

Returned By​

checkoutSession query ● createCheckoutSession mutation

Member Of​

CheckoutSessionsConnection object