Skip to main content
POST
Create Promotion
This endpoint creates promotional offers within campaigns, enabling businesses to offer discounts, special deals, and incentives to drive customer engagement and sales.
Promotions are campaign-specific marketing tools that provide customers with discounts, special offers, or incentives. Each promotion operates within the context of a parent campaign.

Path Parameters

string
required
The unique identifier of the company creating the promotion
string
required
The unique identifier of the campaign that will contain this promotion

Request Body

string
required
Display name for the promotion (e.g., “Spring Sale 20% Off”)
string
required
Type of promotion: “percentage_discount”, “fixed_amount_discount”, “buy_x_get_y”, “free_shipping”, “bundle_deal”, “loyalty_bonus”
string
required
Detailed description of the promotion offer
string
Unique promotional code customers can use (auto-generated if not provided)
object
required
Discount calculation rules and parameters
object
Customer and order eligibility requirements
object
Promotion usage restrictions and limits
object
required
Promotion timing and availability schedule
object
Visual presentation and marketing settings
boolean
default:"false"
Whether to automatically apply the promotion without requiring a code
boolean
default:"false"
Whether this promotion can be combined with other promotions

Request Example

Response

string
Unique identifier for the created promotion
string
Parent campaign identifier
string
Display name of the promotion
string
Type of promotion created
string
Promotional code (generated if not provided)
string
Current promotion status (“draft”, “scheduled”, “active”, “paused”, “expired”)
object
Complete discount configuration as created
object
Customer eligibility requirements
object
Usage restrictions and current usage statistics
object
Promotion timing and availability
object
Visual presentation configuration
object
Initial promotion tracking metrics
string
Timestamp when the promotion was created
string
User who created the promotion

Response Example

Percentage Discounts
  • Most common promotion type
  • Easy for customers to understand
  • Can include maximum discount caps
Fixed Amount Discounts
  • Specific dollar amount off purchase
  • Effective for higher-value items
  • Clear value proposition
Buy X Get Y Promotions
  • Encourage bulk purchases
  • Drive inventory movement
  • Increase average order value
Free Shipping Offers
  • Reduce cart abandonment
  • Increase online conversion rates
  • Often combined with minimum purchase requirements
Bundle Deals
  • Cross-sell related products
  • Increase transaction value
  • Simplify customer decision-making
Loyalty Bonuses
  • Reward repeat customers
  • Increase customer retention
  • Build long-term relationships
Promotion Codes: If no promotion code is provided, the system will auto-generate a unique code based on the promotion name and type. Custom codes must be unique within the company.
Performance Optimization: Set appropriate usage limits to control promotion costs while maximizing customer engagement. Monitor performance metrics to optimize future promotions.

Validation Rules

Naming Requirements
  • Promotion names must be unique within the campaign
  • Names should be descriptive and customer-friendly
  • Maximum length of 100 characters
Discount Rules Validation
  • Percentage discounts must be between 0.01% and 100%
  • Fixed amounts must be positive values
  • Minimum purchase amounts must be greater than discount amounts
Schedule Validation
  • Start date must be in the future or current date
  • End date must be after start date
  • Maximum promotion duration of 365 days
Usage Limits Validation
  • All usage limits must be positive integers
  • Per-customer limits cannot exceed total usage limits
  • Daily limits should consider expected traffic
Code Validation
  • Promotion codes must be alphanumeric
  • Minimum length of 4 characters, maximum of 20
  • Cannot contain profanity or reserved words

Error Responses

Invalid Discount Configuration
Duplicate Promotion Code
Invalid Schedule
Campaign Not Found
Budget Considerations: Carefully configure usage limits and maximum discount amounts to control promotional costs. Monitor usage patterns to prevent budget overruns.

Best Practices

Strategic Planning
  • Align promotions with business objectives
  • Consider seasonal trends and customer behavior
  • Set realistic but attractive discount levels
Technical Configuration
  • Use meaningful promotion codes
  • Set appropriate usage limits
  • Configure proper eligibility criteria
Performance Monitoring
  • Track key metrics from launch
  • Monitor usage patterns for optimization
  • Adjust limits based on performance
Customer Experience
  • Write clear, compelling promotional messages
  • Ensure easy redemption process
  • Provide transparent terms and conditions
Legal Compliance
  • Include necessary disclaimers
  • Comply with regional promotion regulations
  • Maintain fair and transparent practices