Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 2.59 KB

CouponCreationJob.md

File metadata and controls

31 lines (27 loc) · 2.59 KB

CouponCreationJob

Properties

Name Type Description Notes
id int Internal ID of this entity.
created datetime The time this entity was created.
campaign_id int The ID of the campaign that owns this entity.
application_id int The ID of the application that owns this entity.
account_id int The ID of the account that owns this entity.
usage_limit int The number of times the coupon code can be redeemed. `0` means unlimited redemptions but any campaign usage limits will still apply.
discount_limit float The total discount value that the code can give. Typically used to represent a gift card value. [optional]
reservation_limit int The number of reservations that can be made with this coupon code. [optional]
start_date datetime Timestamp at which point the coupon becomes valid. [optional]
expiry_date datetime Expiration date of the coupon. Coupon never expires if this is omitted. [optional]
number_of_coupons int The number of new coupon codes to generate for the campaign.
coupon_settings CodeGeneratorSettings [optional]
attributes object Arbitrary properties associated with coupons.
batch_id str The batch ID coupons created by this job will bear.
status str The current status of this request. Possible values: - `pending verification` - `pending` - `completed` - `failed` - `coupon pattern full`
created_amount int The number of coupon codes that were already created for this request.
fail_count int The number of times this job failed.
errors list[str] An array of individual problems encountered during the request.
created_by int ID of the user who created this effect.
communicated bool Whether or not the user that created this job was notified of its final state.
chunk_execution_count int The number of times an attempt to create a chunk of coupons was made during the processing of the job.
chunk_size int The number of coupons that will be created in a single transactions. Coupons will be created in chunks until arriving at the requested amount. [optional]

[Back to Model list] [Back to API list] [Back to README]