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

# Create a promotion

> Run the same deal on your storefront and on every marketplace that
supports it: percent or amount off, fixed price, buy one get one, and
deal groups (for example any two 20 oz drinks for $3). Lula maps each
promotion to each channel's promotion format and reports any channel
that cannot run it.




## OpenAPI

````yaml /openapi.yaml post /promotions
openapi: 3.1.0
info:
  title: Lula Commerce API
  version: '1.0'
  summary: Connect your systems to every Lula ordering channel.
  description: |
    The Lula Commerce API connects your point of sale, pricebook, kitchen, and
    finance systems to Lula Direct and to the third-party marketplaces Lula
    manages for you (DoorDash, Uber Eats, Grubhub).

    One integration covers every channel. Update an item once and Lula applies
    the change to your own storefront and to each marketplace.

    All requests are made over HTTPS. All request and response bodies are JSON
    unless noted. Timestamps are ISO 8601 in UTC. Money is expressed as an
    integer amount in minor units (cents) with an ISO 4217 currency code.
  contact:
    name: Lula Partner Engineering
    email: support@luladelivery.com
servers:
  - url: https://api.lulacommerce.com/v1
    description: Production
  - url: https://sandbox.api.lulacommerce.com/v1
    description: Sandbox
security:
  - oauth2: []
tags:
  - name: Authentication
    description: Exchange client credentials for an access token.
  - name: Stores
    description: Store profile, operating status, hours, and pause controls.
  - name: Channels
    description: Per-store state of each ordering channel.
  - name: Catalog
    description: Your product catalog, enriched with attributes.
  - name: Store Inventory
    description: Store-level price, quantity, and status for each item.
  - name: Availability
    description: Real-time item availability across every channel.
  - name: Recalls
    description: Chain-wide item holds for recalls and supply issues.
  - name: Components
    description: >-
      Ingredients that products are built from, for ingredient-level
      availability.
  - name: Menus
    description: Published menus, categories, and modifier groups.
  - name: Promotions
    description: Run the same deal on every channel.
  - name: Orders
    description: Read orders and drive them through fulfillment.
  - name: Order Destinations
    description: Deliver orders directly into your existing order API.
  - name: Reporting
    description: Sales, reconciliation, and payout data.
  - name: Exports and Data Feeds
    description: On-demand exports and scheduled file delivery.
  - name: Webhooks
    description: Register endpoints to receive events.
  - name: Events
    description: The full event history, for catch-up and audit.
  - name: Jobs
    description: Track asynchronous batch operations.
  - name: Sandbox
    description: Simulate orders and outside events in the sandbox.
paths:
  /promotions:
    post:
      tags:
        - Promotions
      summary: Create a promotion
      description: |
        Run the same deal on your storefront and on every marketplace that
        supports it: percent or amount off, fixed price, buy one get one, and
        deal groups (for example any two 20 oz drinks for $3). Lula maps each
        promotion to each channel's promotion format and reports any channel
        that cannot run it.
      operationId: createPromotion
      parameters:
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PromotionInput'
            example:
              external_id: DEAL-2027-031
              name: Any 2 fountain drinks for $3
              type: deal_group
              deal_group:
                item_external_ids:
                  - FTN-32
                  - FTN-44
                  - FTN-52
                quantity: 2
                price:
                  amount: 300
                  currency: USD
              channels:
                - lula_direct
                - doordash
                - ubereats
              starts_at: '2027-04-01T05:00:00Z'
              ends_at: '2027-04-30T04:59:59Z'
      responses:
        '201':
          description: Promotion created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Promotion'
      security:
        - oauth2:
            - catalog:write
components:
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      description: >-
        A unique key (such as a UUID) that makes retries safe. Keys are kept for
        24 hours.
      schema:
        type: string
        maxLength: 255
  schemas:
    PromotionInput:
      type: object
      required:
        - name
        - type
        - starts_at
      properties:
        external_id:
          type: string
        name:
          type: string
        type:
          type: string
          enum:
            - percent_off
            - amount_off
            - fixed_price
            - bogo
            - deal_group
        percent_off:
          type: number
          minimum: 1
          maximum: 100
        amount_off:
          $ref: '#/components/schemas/Money'
        fixed_price:
          $ref: '#/components/schemas/Money'
        item_external_ids:
          type: array
          description: Items the promotion applies to, for every type except `deal_group`.
          items:
            type: string
        deal_group:
          type: object
          description: Buy `quantity` items from the group for `price`.
          properties:
            item_external_ids:
              type: array
              items:
                type: string
            quantity:
              type: integer
              minimum: 2
            price:
              $ref: '#/components/schemas/Money'
        minimum_subtotal:
          $ref: '#/components/schemas/Money'
        store_ids:
          type: array
          description: Omit for every store.
          items:
            type: string
        channels:
          type: array
          description: Omit for every channel.
          items:
            $ref: '#/components/schemas/Channel'
        daypart_names:
          type: array
          items:
            type: string
        starts_at:
          type: string
          format: date-time
        ends_at:
          type:
            - string
            - 'null'
          format: date-time
    Promotion:
      allOf:
        - type: object
          properties:
            id:
              type: string
              example: promo_01JA0C2E4G6J
            status:
              type: string
              enum:
                - scheduled
                - active
                - ended
            channel_status:
              type: array
              items:
                type: object
                properties:
                  channel:
                    $ref: '#/components/schemas/Channel'
                  status:
                    type: string
                    enum:
                      - live
                      - scheduled
                      - not_supported
                      - failed
                  message:
                    type:
                      - string
                      - 'null'
        - $ref: '#/components/schemas/PromotionInput'
    Money:
      type: object
      required:
        - amount
        - currency
      properties:
        amount:
          type: integer
          description: Amount in minor units (cents).
          example: 249
        currency:
          type: string
          example: USD
    Channel:
      type: string
      enum:
        - lula_direct
        - doordash
        - ubereats
        - grubhub
  securitySchemes:
    oauth2:
      type: oauth2
      description: >-
        OAuth 2.0 client credentials. Send the token in the header
        `Authorization: Bearer <token>`.
      flows:
        clientCredentials:
          tokenUrl: https://api.lulacommerce.com/v1/oauth/token
          scopes:
            stores:read: Read stores, status, hours, and channels.
            stores:write: Pause and resume stores, set hours, toggle channels.
            catalog:read: Read products, store items, menus, and jobs.
            catalog:write: Create and update products, store items, and modifier groups.
            availability:write: Change item availability and manage recalls.
            orders:read: Read orders.
            orders:write: Accept, reject, adjust, complete, and cancel orders.
            reports:read: Read sales, reconciliation, payouts, exports, and data feeds.
            webhooks:manage: Manage webhook endpoints.

````

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