> ## Documentation Index
> Fetch the complete documentation index at: https://omniflow-vpn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Post v1paneloffers

> Requires marketing.write. Both locales are required: an offer with copy in one language renders as a blank card for half the customer base.



## OpenAPI

````yaml https://raw.githubusercontent.com/kewldan/omniflow/main/api/openapi.yaml post /v1/panel/offers
openapi: 3.0.3
info:
  title: Omniflow API
  version: 1.0.0
  description: >-
    Customer, commerce, payment, wallet, fulfillment, and operations API for
    Omniflow.
servers: []
security: []
paths:
  /v1/panel/offers:
    post:
      tags:
        - panel
      description: >-
        Requires marketing.write. Both locales are required: an offer with copy
        in one language renders as a blank card for half the customer base.
      operationId: createPanelOffer
      parameters:
        - $ref: '#/components/parameters/CSRFToken'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PanelOfferInput'
      responses:
        '201':
          description: Offer created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PanelOffer'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
components:
  parameters:
    CSRFToken:
      in: header
      name: X-CSRF-Token
      required: true
      description: >-
        Echoes the token from the current session. Required on every unsafe
        method.
      schema:
        type: string
  schemas:
    PanelOfferInput:
      type: object
      required:
        - customerId
        - promotionId
        - titleRu
        - titleEn
        - expiresAt
      properties:
        customerId:
          type: string
          format: uuid
        promotionId:
          type: string
          format: uuid
        planId:
          type: string
          format: uuid
        titleRu:
          type: string
          minLength: 1
          maxLength: 120
        titleEn:
          type: string
          minLength: 1
          maxLength: 120
        termsRu:
          type: string
          maxLength: 1000
        termsEn:
          type: string
          maxLength: 1000
        startsAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
    PanelOffer:
      type: object
      required:
        - id
        - customerId
        - promotionId
        - titleRu
        - titleEn
        - status
        - startsAt
        - expiresAt
        - createdAt
      properties:
        id:
          type: string
          format: uuid
        customerId:
          type: string
          format: uuid
        promotionId:
          type: string
          format: uuid
        planId:
          type: string
          format: uuid
        titleRu:
          type: string
        titleEn:
          type: string
        termsRu:
          type: string
        termsEn:
          type: string
        status:
          type: string
          enum:
            - active
            - redeemed
            - dismissed
            - expired
            - revoked
        startsAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        orderId:
          type: string
          format: uuid
        createdAt:
          type: string
          format: date-time
        resolvedAt:
          type: string
          format: date-time
    Problem:
      type: object
      required:
        - type
        - title
        - status
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        request_id:
          type: string
  responses:
    Problem:
      description: Request failed
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.