CreateWashCodesInput

CreateWashCodesInput

Input for creating a batch of free wash codes. Code strings are generated for you

Kind: Input

Fields

Field Type Description
count Int! Number of codes to generate (1 to 1000)
expiresAt DateTime When the codes expire. Must be in the future. If omitted, or later than the group’s expiration, the group’s expiration is used. The group must not have expired already. Provide maxRedemptions, expiresAt, or both
maxRedemptions Int Maximum number of times each code can be redeemed (null for unlimited). Must be at least 1. Provide maxRedemptions, expiresAt, or both
washCodeGroupId ID! The wash code group to add the codes to
washPackageId ID! The wash package the codes are redeemable for

Definition

"""
Input for creating a batch of free wash codes. Code strings are generated for you
"""
input CreateWashCodesInput {
  """Number of codes to generate (1 to 1000)"""
  count: Int!
  """
  When the codes expire. Must be in the future. If omitted, or later than the group's expiration, the group's expiration is used. The group must not have expired already. Provide maxRedemptions, expiresAt, or both
  """
  expiresAt: DateTime
  """
  Maximum number of times each code can be redeemed (null for unlimited). Must be at least 1. Provide maxRedemptions, expiresAt, or both
  """
  maxRedemptions: Int
  """The wash code group to add the codes to"""
  washCodeGroupId: ID!
  """The wash package the codes are redeemable for"""
  washPackageId: ID!
}