---
title: "DiscountAutomaticBxgyUpdatePayload"
description: "Discount automatic buy X get Y update payload"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-bxgy-update-payload'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-bxgy-update-payload.md'
---
# DiscountAutomaticBxgyUpdatePayload

Discount automatic buy X get Y update payload

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

## Type Signature

`DiscountAutomaticBxgyUpdatePayload`

## Fields

* `automaticDiscountNode`

  [DiscountAutomaticNode](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-node.md)

  The updated automatic discount.
  
  

* `userErrors`

  [[DiscountUserError!]!](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-user-error.md)

  The list of errors.
  

## Schema Definition

```graphql
type DiscountAutomaticBxgyUpdatePayload { 
	automaticDiscountNode: DiscountAutomaticNode
	userErrors: [DiscountUserError!]! 
}
```

## Field from

* [Mutation](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/mutations/discount-automatic-bxgy-update.md).discountAutomaticBxgyUpdate

  更新现有的买X送Y自动折扣。

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

