> ## Documentation Index
> Fetch the complete documentation index at: https://secdocs.asikoexpress.com/llms.txt
> Use this file to discover all available pages before exploring further.

# [DEMO] Create discount code



## OpenAPI

````yaml /openapi/engagement-service.json post /v1/campaigns/discounts
openapi: 3.0.0
info:
  title: Asiko Engagement Service
  description: Notifications, campaigns/discounts, and analytics/reporting
  version: '1.0'
  contact: {}
servers:
  - url: https://asikodevapi.candourit.io
    description: Production (via api-gateway)
  - url: http://localhost:3000
    description: Local development (via api-gateway)
security: []
tags:
  - name: notifications
    description: ''
  - name: campaigns
    description: ''
  - name: analytics
    description: ''
paths:
  /v1/campaigns/discounts:
    post:
      tags:
        - campaigns
        - discounts
      summary: '[DEMO] Create discount code'
      operationId: CampaignsController_createDiscount
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDiscountBody'
      responses:
        '201':
          description: ''
components:
  schemas:
    CreateDiscountBody:
      type: object
      properties:
        code:
          type: string
          example: WELCOME10
        discountPercent:
          type: number
          example: 10
          minimum: 1
          maximum: 100
      required:
        - code
        - discountPercent

````