CreateCheckoutSessionInput
Input for createCheckoutSession. Give from 1 to 20 lines. All prices have the same currency, and at
most one is recurring: with one, the session is a SUBSCRIPTION session.
input CreateCheckoutSessionInput {
lineItems: [CheckoutLineItemInput!]!
successUrl: String!
cancelUrl: String
customerId: ID
orderId: ID
description: String
billingAddressCollection: BillingAddressCollection
businessPurchase: BusinessPurchase
expiresAt: AWSTimestamp
metadata: [KeyValueInput!]
}
Fields
CreateCheckoutSessionInput.lineItems ● [CheckoutLineItemInput!]! non-null input
Lines of the cart, in the order the page shows them.
CreateCheckoutSessionInput.successUrl ● String! non-null scalar
Page the buyer goes to after paying.
CreateCheckoutSessionInput.cancelUrl ● String scalar
Page the buyer goes to after leaving without paying.
CreateCheckoutSessionInput.customerId ● ID scalar
ID of a customer of the current account. Without it, a customer is created for the buyer when they pay.
CreateCheckoutSessionInput.orderId ● ID scalar
Order ID of the payment. 1 to 40 characters: letters, digits and _@./#&+-. When omitted, MONEI generates 12 capital letters.
CreateCheckoutSessionInput.description ● String scalar
Description of the payment. When omitted, the product names.
CreateCheckoutSessionInput.billingAddressCollection ● BillingAddressCollection enum
Whether the checkout page asks for a billing address. Default OPTIONAL.
CreateCheckoutSessionInput.businessPurchase ● BusinessPurchase enum
Whether the buyer can pay as a company. Default DISABLED.
CreateCheckoutSessionInput.expiresAt ● AWSTimestamp scalar
Time the session expires if it is not paid, from 30 minutes to 24 hours from now. Default 24 hours from now. Measured in seconds since the Unix epoch.
CreateCheckoutSessionInput.metadata ● [KeyValueInput!] list input
Key/value metadata. Each key holds up to 50 characters and each value up to 500.
Member Of
createCheckoutSession mutation