CreateCustomWashCodeInput
CreateCustomWashCodeInput
CreateCustomWashCodeInput
Input for creating a single free wash code with a custom code string
Kind: Input
Fields
| Field | Type | Description |
|---|---|---|
code |
String! |
The code string customers will enter: 4 to 32 letters, digits or hyphens. Not case-sensitive, so SPRING and spring are the same code. Must not already be in use by any code in your company |
expiresAt |
DateTime |
When the code expires. 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 the 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 code to |
washPackageId |
ID! |
The wash package the code is redeemable for |
Definition
"""Input for creating a single free wash code with a custom code string"""
input CreateCustomWashCodeInput {
"""
The code string customers will enter: 4 to 32 letters, digits or hyphens. Not case-sensitive, so SPRING and spring are the same code. Must not already be in use by any code in your company
"""
code: String!
"""
When the code expires. 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 the 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 code to"""
washCodeGroupId: ID!
"""The wash package the code is redeemable for"""
washPackageId: ID!
}