---
title: "DiscountCollectionsInput"
description: "Input fields for collections to which the discount will be applied."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/discount-collections-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/discount-collections-input.md'
---
# DiscountCollectionsInput

Input fields for collections to which the discount will be applied.

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

## Type Signature

`DiscountCollectionsInput`

## Input Fields

* `add`

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

  Specify the list of collection IDs to be added.

* `remove`

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

  Specify the list of collection IDs to be removed.

## Schema Definition

```graphql
input DiscountCollectionsInput { 
	add: [ID]
	remove: [ID] 
}
```

## Input field from

* [DiscountItemsInput](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-items-input.md).collections

  The collections that are attached to a discount.
  

## 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).

