Types > CouponBulk
Commerce APITypesCouponBulk
CouponBulk

Description

Topic: Coupons

Fields

dash_section_length: Int

Dash every N characters


format: CouponBulkFormat!

Format of the generated coupon code


length: Int!

Length of a generated coupon code (without prefix/suffix and dashes)

Valid when: length is in range: 1 ≤ length ≤ 100


prefix: String

Coupon code prefix

Valid when: prefix's length doesn't exceed 25 characters


quantity: Int!

Amount of coupons to generate

Valid when: quantity is in range: 1 ≤ quantity ≤ 500


suffix: String

Coupon code suffix

Valid when: suffix's length doesn't exceed 25 characters


Used By

Mutations

couponsGenerate

Preview (typescript)

Loading module