---
title: "CheckoutCreateInput"
description: "The input fields for creating a checkout."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/checkouts/inputs/checkout-create-input'
  md: 'https://developer.shopline.com/docs/storefront-api/checkouts/inputs/checkout-create-input.md'
---
# CheckoutCreateInput

The input fields for creating a checkout.

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Input Fields

* `lineItems`

  [[CheckoutLineItemInput]](https://developer.shopline.com/docs/storefront-api/checkouts/inputs/checkout-line-item-input.md)

  A list of line items.

* `email`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The email address of the associated customer.

* `orderFrom`

  [Int](https://developer.shopline.com/docs/storefront-api/common/scalars/int.md)

  The order source. Valid values are:
  
  - `0`: Placed by the customer
  - `1`: Placed by the merchant
  
  :::danger{title="Deprecated"}
  This field has been deprecated since `v20251201`.
  :::

* `buyerIdentity`

  [CheckoutBuyerIdentityInput](https://developer.shopline.com/docs/storefront-api/checkouts/inputs/checkout-buyer-identity-input.md)

  The information about the associated customer identity.

* `customAttributes`

  [[AttributeInput]](https://developer.shopline.com/docs/storefront-api/common-objects/inputs/attribute-input.md)

  A list of custom attributes attached to the checkout, used to collect additional business information.

* `note`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The note that the merchant adds to the checkout.

* `shippingAddress`

  [ShippingAddressInput](https://developer.shopline.com/docs/storefront-api/common-objects/inputs/shipping-address-input.md)

  The associated shipping address.

* `allowPartialAddresses`

  [Boolean](https://developer.shopline.com/docs/storefront-api/common/scalars/boolean.md)

  Whether an incomplete shipping address is allowed.
    - `true`: Allowed. The system will skip required field validation for recipient name fields (`firstName` and `lastName`) and detailed address fields (`zip`, `city`, `address1`, and `address2`), allowing them to be omitted, `null`, or an empty string `""`.
    - `false`: Disallowed.

* `cartId`

  [ID](https://developer.shopline.com/docs/storefront-api/common/scalars/id.md)

  The unique ID of the cart, used to locate the cart whose items will be converted into checkout line items. This field is mutually exclusive with `lineItems`. Providing `cartId` and `lineItems` at the same time will result in an error.

* `language`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The language code for the checkout page, following the [IETF BCP 47](https://www.rfc-editor.org/info/bcp47/) standard.  
  Example: `en`

## Argument from

* [Mutation](https://developer.shopline.com/docs/storefront-api/checkouts/mutations/checkout-create.md).checkoutCreate

