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-10 (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