API version: unstable
API version: 2021-07 Release candidate
API version: 2021-04 Latest
API version: 2021-01
API version: 2020-10
API version: 2020-07
API version: 2020-04
API version: 2020-01 Unsupported
API version: 2019-10 Unsupported

discountRedeemCodeBulkAdd mutation

Version unstable

Asynchronously add discount redeem codes in bulk. Specify the codes to add and the discount code ID that the codes will belong to.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
codes ( [DiscountRedeemCodeInput!]! ) required

The list of codes that will be added to the code discount. Maximum 100 codes permitted.

discountId ( ID! ) required

The ID of the code discount that the codes will be added to.

DiscountRedeemCodeInput fields

  • code (String!) Required

    The code of a discount.

Return fields

Version 2021-07 (Release candidate)

Asynchronously add discount redeem codes in bulk. Specify the codes to add and the discount code ID that the codes will belong to.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
codes ( [DiscountRedeemCodeInput!]! ) required

The list of codes that will be added to the code discount. Maximum 100 codes permitted.

discountId ( ID! ) required

The ID of the code discount that the codes will be added to.

DiscountRedeemCodeInput fields

  • code (String!) Required

    The code of a discount.

Return fields

Version 2021-04 (Latest)

Asynchronously add discount redeem codes in bulk. Specify the codes to add and the discount code ID that the codes will belong to.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
codes ( [DiscountRedeemCodeInput!]! ) required

The list of codes that will be added to the code discount. Maximum 100 codes permitted.

discountId ( ID! ) required

The ID of the code discount that the codes will be added to.

DiscountRedeemCodeInput fields

  • code (String!) Required

    The code of a discount.

Return fields