---
title: >-
  New error logging for batch 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/new-error-logging-for-batch-discount-code-creation
  md: >-
    https://shopify.dev/changelog/new-error-logging-for-batch-discount-code-creation.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Update
    handle: update
  indicatesActionRequired: false
  createdAt: '2020-09-09T14:49:03-04:00'
  postedAt: '2020-09-09T00:00:00-04:00'
  updatedAt: '2024-02-02T10:04:58-05:00'
  effectiveAt: '2020-09-09T00:00:00-04:00'
---

September 9, 2020

Tags:

* API

# New error logging for batch discount code creation

Apps can now get additional context about batch discount code creation errors by looking into the new logs field. This field will return any error the system reported when trying to create the discount codes based on the price rule definition.

To learn more about this new field, visit the [reference documentation.](https://shopify.dev/docs/admin-api/rest/reference/discounts/pricerule)
