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

# Create a discount

> Creates a discount a cashier can apply at the register.



## OpenAPI

````yaml /api/openapi.json post /v1/discounts
openapi: 3.0.0
info:
  title: Vori API
  description: ''
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.vori.com
    description: production
security: []
tags: []
paths:
  /v1/discounts:
    post:
      tags:
        - Discounts
      summary: Create a discount
      description: Creates a discount a cashier can apply at the register.
      operationId: createDiscount
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDiscountRequest'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Discount'
        '400':
          description: ''
        '403':
          description: ''
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/InsufficientPermissionsError'
                  - $ref: '#/components/schemas/NoBannerAssociationError'
      security:
        - bearer: []
components:
  schemas:
    CreateDiscountRequest:
      type: object
      properties:
        amount:
          type: string
          description: >-
            Discount value as a decimal string. For `amount_off`, this is in
            major/minor currency units (for example, "1.25"). For
            `percentage_off`, this is a whole-number percentage (`"1.00"` means
            1%).
          pattern: ^[0-9]+(\.[0-9]+)?$
          example: '199.99'
        name:
          type: string
          nullable: true
          description: Human-readable discount name, or null when the discount is unnamed.
        type:
          description: >-
            How `amount` is applied: as a fixed monetary reduction or a
            percentage reduction.
          allOf:
            - $ref: '#/components/schemas/DiscountType'
      required:
        - amount
        - type
    Discount:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the record.
        amount:
          type: string
          description: >-
            Discount value as a decimal string. For `amount_off`, this is in
            major/minor currency units (for example, "1.25"). For
            `percentage_off`, this is a whole-number percentage (`"1.00"` means
            1%).
          pattern: ^[0-9]+(\.[0-9]+)?$
          example: '199.99'
        created_at:
          type: string
          description: When the record was created.
          format: date-time
        name:
          type: string
          nullable: true
          description: Human-readable discount name, or null when the discount is unnamed.
        type:
          description: >-
            How `amount` is applied: as a fixed monetary reduction or a
            percentage reduction.
          allOf:
            - $ref: '#/components/schemas/DiscountType'
        updated_at:
          type: string
          description: When the record was last changed.
          format: date-time
      description: >-
        A fixed or percentage reduction a cashier can apply to an order at the
        register.
      required:
        - id
        - amount
        - created_at
        - name
        - type
        - updated_at
    InsufficientPermissionsError:
      type: object
      properties:
        error_code:
          type: string
          enum:
            - insufficient_permissions
        error_details:
          $ref: '#/components/schemas/InsufficientPermissionsErrorDetails'
      required:
        - error_code
        - error_details
    NoBannerAssociationError:
      type: object
      properties:
        error_code:
          type: string
          enum:
            - no_banner_association
      required:
        - error_code
    DiscountType:
      type: string
      enum:
        - amount_off
        - percentage_off
    InsufficientPermissionsErrorDetails:
      type: object
      properties:
        action:
          allOf:
            - $ref: '#/components/schemas/Action'
        resource:
          allOf:
            - $ref: '#/components/schemas/Resource'
      required:
        - action
        - resource
    Action:
      type: string
      enum:
        - '*'
        - cancel
        - check_in
        - create
        - delete
        - read
        - record_events
        - refund
        - restart
        - update
        - void
    Resource:
      type: string
      enum:
        - '*'
        - accounting_integration
        - agent_chats
        - api_clients
        - asynchronous_tasks
        - banners
        - blackhawk_transactions
        - capabilities
        - coupons
        - custom_quick_actions
        - datacap_transactions
        - departments
        - discounts
        - ditto_auth_tokens
        - edge_agents
        - electronic_shelf_labels
        - employees
        - files
        - food_modifiers
        - gift_cards
        - gl_code_mappings
        - house_accounts
        - inventory
        - inventory_sessions
        - invoices
        - item_modifiers
        - label_dimension_sets
        - label_sheet_profiles
        - label_stock_products
        - lanes
        - loyalty_bonuses
        - loyalty_campaigns
        - loyalty_rewards
        - notification_templates
        - offers
        - order_guides
        - pos_banner_configurations
        - pos_orders
        - pos_tills
        - price_tags
        - product_ranges
        - products
        - promotions
        - purchase_orders
        - receiving
        - reporting
        - revision_sessions
        - revisions
        - roles
        - shopper_tags
        - shoppers
        - store_product_inventory_counts
        - store_product_lots
        - store_product_rules
        - store_product_tag_templates
        - store_snap_incentive_program_coupons
        - store_vendor_merge_requests
        - store_vendor_product_merge_requests
        - store_vendor_products
        - store_vendors
        - stores
        - tag_printings
        - tag_template_presets
        - tag_templates
        - tax_rates
        - users
        - variable_weights
        - vendor_merge_requests
        - vendor_product_merge_requests
        - vendors
        - wallet_payments
        - wic_products
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````

## Related topics

- [Create and Manage Discounts](/cashier-and-till-management/till-management/create-and-manage-discounts.md)
- [Manage Discounts at the POS](/point-of-sale-pos/basic-cashier-functions/manage-discounts-at-the-pos.md)
- [Create Loyalty Rewards in Vori Back Office](/customer-marketing/loyalty-and-rewards/create-loyalty-rewards-in-vori-back-office.md)
