---
title: "CartLinesAddPayload"
description: "添加商品行"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/objects/cart-lines-add-payload'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/objects/cart-lines-add-payload.md'
---
# CartLinesAddPayload

添加商品行

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

## Type Signature

`CartLinesAddPayload`

## Fields

* `cart`

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

  购物车

* `userErrors`

  [[CartUserError]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/objects/cart-user-error.md)

  错误信息列表

## Schema Definition

```graphql
type CartLinesAddPayload { 
	cart: Cart
	userErrors: [CartUserError] 
}
```

## Field from

* [Mutation](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/mutations/cart-lines-add.md).cartLinesAdd

## Error Handling

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

