This is fake endpoint to describe variant of POST /api/v2.1/campaignsAsk AIpost https://admin.sandbox.vouchery.app/api/v2.1/campaigns#___sub_campaignCreate a campaign.Body ParamsObject to createchannelstringNullable. String or null.currencystringrequiredCurrency denominating monetary values in this campaign (USD, GBP, EUR, AUD)currency_symbolstringrequiredCurrency symbol ($, £, €)customer_informationstringNullable. Text that can be displayed to the customer once the redemption is validated or confirmed.descriptionstringNullable. String or null.gift_card_valuedoubleNullable. Float64 or nullis_automatedbooleanrequiredtruefalseloyalty_points_costint64Nullable. If the voucher can be obtained by spending customer's loyalty point, this field states about how many loyalty points are charged when buying a voucher.max_discountdoubleNullable. Float64 or nullmax_redemptionsint32Nullable. The maximum number of redemptions available across all discount campaigns grouped by this campaign.max_redemptions_unitint32Nullable. Integer or nullmax_total_budgetdoubleNullable. The budget available for all discount campaigns grouped by this campaign.max_total_budget_unitint32Nullable. Integer or nullmediumstringNullable. String or null.minimum_valuedoubleNullable. Float64 or nullnamestringrequiredThe name of the campaign must be unique.parent_idint64requiredRequired only for sub campaigns.purposestringNullable. String or null.statusstringenumNullable. String or null.draftdraftactiveAllowed:draftactivetemplatestringenumNullable. Valid template values for MainCampaign are: discount, loyalty, gift_card. For SubCampaign valid templates are sub_redemption, sub_reward_points, sub_generate_vouchers.sub_redemptionsub_redemptionsub_reward_pointsub_generate_vouchersAllowed:sub_redemptionsub_reward_pointsub_generate_voucherstypestringenumrequiredMain Campaign is a wrapper for multiple Sub Campaigns, grouped together. Main Campaign can have own budget and redemptions limit.SubCampaignAllowed:SubCampaignvoucher_code_typestringenumNullable. What characters should the code include when new voucher is created. Possible choices are digits, letters, and mixed.digitsdigitslettersmixedAllowed:digitslettersmixedvoucher_lifetimeint64Nullable. Voucher lifetime in secondsvoucher_max_redemptionsint64Nullable. The maximum number of redemptions per unique voucher code.voucher_max_redemptions_amountdoubleNullable. The maximum total discount of all redemptions per unique voucher code.voucher_prefixstringNullable. A prefix that will be used to generate vouchers. Needs to be unique within project.voucher_random_part_lengthint32Nullable. How long should the random part of the code be? Valid values are between 2 and 10, depending on batch size.voucher_typestringenumNullable. Determines what type of vouchers can be generated for campaign. Generic vouchers (eg. SALE10) can be redeemed multiple times. Unique vouchers allow for greater control and better tracking of who and how is using your promotions.uniqueuniquegenericgift_cardAllowed:uniquegenericgift_cardResponses 200Created object 401Unauthorized error. 403Forbidden error. 422Unprocessable entity error. Validation failed. 500Internal server error. Try again in a few minutes or contact support.Updated over 2 years ago