---
title: "CheckoutCreatePayload"
description: "CheckoutCreatePayload"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout-create-payload'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout-create-payload.md'
---
# CheckoutCreatePayload

CheckoutCreatePayload

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

## Type Signature

`CheckoutCreatePayload`

## Fields

* `checkout`

  [Checkout](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout.md)

  新的结账对象

* `checkoutUserErrors`

  [[CheckoutUserError!]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/checkouts/objects/checkout-user-error.md)

  错误信息列表

* `code`

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

  结果码

* `message`

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

  自定义的消息或对应的结果码消息

## Schema Definition

```graphql
type CheckoutCreatePayload { 
	checkout: Checkout
	checkoutUserErrors: [CheckoutUserError!]
	code: String
	message: String 
}
```

## Field from

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

  创建新的结账

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

