List promotions
Get a list of active promotions with their codes for the current account
Query parameters
- 
    
  
Default value is
15. - 
    
  
Default value is
1. - 
    
  
Filter by active status
 - 
    
  
Filter promotions by currency code
 - 
    
  
Filter promotions that have codes
 - 
    
  
Filter by store UUIDs
 - 
    
  
Filter promotions with scheduled activation
 - 
    
  
Filter promotions with scheduled deactivation
 - 
    
  
Sort promotions by one or more fields. Use '-' prefix for descending order. Available fields: name, last_used, created_at, updated_at Default: -updated_at
 
        GET
    /promotions
  
  curl \
 --request GET 'https://api.gb.enjovia.app/promotions' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
    
        Response examples (200)
  
  {
  "data": [
    {
      "id": "bcd23456-e89b-12d3-a456-426614174006",
      "eni": "PROMO-2024-001",
      "name": "Summer Sale - 20% Off",
      "type": "total_order",
      "currency_code": "usd",
      "total_order_options": {
        "discount_value": 1000,
        "discount_percentage": 0.2
      },
      "minimum_order_value": 5000,
      "is_active": true,
      "codes": [
        {
          "id": "cde34567-e89b-12d3-a456-426614174007",
          "code": "SUMMER20",
          "remaining_uses": 100
        }
      ],
      "stores": [
        {
          "id": "550e8400-e29b-41d4-a716-446655440000",
          "subdomain": "acme-shop",
          "name": "ACME Store",
          "currency": {
            "code": "usd"
          }
        }
      ]
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 20,
    "total": 10
  }
}