# 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[​](#fields "Direct link to Fields")

#### [`CreateCheckoutSessionInput.lineItems`](#line-items) ● [`[CheckoutLineItemInput!]!`](https://docs.monei.com/apis/graphql/types/inputs/checkout-line-item-input.md) non-null input[​](#line-items "Direct link to line-items")

Lines of the cart, in the order the page shows them.

#### [`CreateCheckoutSessionInput.successUrl`](#success-url) ● [`String!`](https://docs.monei.com/apis/graphql/types/scalars/string.md) non-null scalar[​](#success-url "Direct link to success-url")

Page the buyer goes to after paying.

#### [`CreateCheckoutSessionInput.cancelUrl`](#cancel-url) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string.md) scalar[​](#cancel-url "Direct link to cancel-url")

Page the buyer goes to after leaving without paying.

#### [`CreateCheckoutSessionInput.customerId`](#customer-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id.md) scalar[​](#customer-id "Direct link to customer-id")

ID of a customer of the current account. Without it, a customer is created for the buyer when they pay.

#### [`CreateCheckoutSessionInput.orderId`](#order-id) ● [`ID`](https://docs.monei.com/apis/graphql/types/scalars/id.md) scalar[​](#order-id "Direct link to order-id")

Order ID of the payment. 1 to 40 characters: letters, digits and `_@./#&+-`. When omitted, MONEI generates 12 capital letters.

#### [`CreateCheckoutSessionInput.description`](#description) ● [`String`](https://docs.monei.com/apis/graphql/types/scalars/string.md) scalar[​](#description "Direct link to description")

Description of the payment. When omitted, the product names.

#### [`CreateCheckoutSessionInput.billingAddressCollection`](#billing-address-collection) ● [`BillingAddressCollection`](https://docs.monei.com/apis/graphql/types/enums/billing-address-collection.md) enum[​](#billing-address-collection "Direct link to billing-address-collection")

Whether the checkout page asks for a billing address. Default `OPTIONAL`.

#### [`CreateCheckoutSessionInput.businessPurchase`](#business-purchase) ● [`BusinessPurchase`](https://docs.monei.com/apis/graphql/types/enums/business-purchase.md) enum[​](#business-purchase "Direct link to business-purchase")

Whether the buyer can pay as a company. Default `DISABLED`.

#### [`CreateCheckoutSessionInput.expiresAt`](#expires-at) ● [`AWSTimestamp`](https://docs.monei.com/apis/graphql/types/scalars/awstimestamp.md) scalar[​](#expires-at "Direct link to expires-at")

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`](#metadata) ● [`[KeyValueInput!]`](https://docs.monei.com/apis/graphql/types/inputs/key-value-input.md) list input[​](#metadata "Direct link to metadata")

Key/value metadata. Each key holds up to 50 characters and each value up to 500.

### Member Of[​](#member-of "Direct link to Member Of")

[`createCheckoutSession`](https://docs.monei.com/apis/graphql/operations/mutations/create-checkout-session.md) mutation
