---
title: >-
  The PriceRule resource now supports bulk discount code creation - Shopify
  developer changelog
description: >-
  Shopify’s developer changelog documents all changes to Shopify’s platform.
  Find the latest news and learn about new platform opportunities.
source_url:
  html: >-
    https://shopify.dev/changelog/the-pricerule-resource-now-supports-bulk-discount-code-creation
  md: >-
    https://shopify.dev/changelog/the-pricerule-resource-now-supports-bulk-discount-code-creation.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: New
    handle: new
  indicatesActionRequired: false
  createdAt: '2018-11-22T10:13:04-05:00'
  postedAt: '2017-09-28T00:00:00-04:00'
  updatedAt: '2024-02-02T10:04:52-05:00'
  effectiveAt: '2017-09-28T00:00:00-04:00'
---

September 28, 2017

Tags:

* API

# The PriceRule resource now supports bulk discount code creation

The Shopify Admin API now supports bulk discount code creation. With the introduction of bulk discounts, we will allow a single price rule to be associated with multiple discount codes. Therefore, an app that wishes to create multiple discount codes for a single price rule can perform additional independent API calls for each discount code they wish to create.

***

Furthermore, we now support the ability to create multiple discount codes in a single request via a new batch bulk discount endpoint. To learn more about creating bulk discount codes, please see the API reference [here](https://help.shopify.com/api/reference/discountcode#batch_create).

**Note:** bulk discount code creation is possible only via the API. There is no way to create bulk discount codes via the Shopify admin.
