Virto Commerce Marketing API

Marketing system with dynamic contents and promotions management

OpenAPI Specification

virto-commerce-marketing-api-openapi.yml Raw ↑
openapi: 3.0.4
info:
  title: VirtoCommerce.Cart Catalog Marketing API
  version: v1
  description: Easily manage your products, categories, variations, and properties
tags:
- name: Marketing
  description: Marketing system with dynamic contents and promotions management
paths:
  /api/marketing/contentplaces/listentries/search:
    post:
      tags:
      - Marketing
      summary: Search content places list entries by given criteria
      operationId: MarketingModuleDynamicContent_DynamicContentPlaceListEntriesSearch
      requestBody:
        description: criteria
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlaceSearchCriteria'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlaceSearchCriteria'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlaceSearchCriteria'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentListEntrySearchResult'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentListEntrySearchResult'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentListEntrySearchResult'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:read
      - api_key:
        - marketing:read
      - api_key_header:
        - marketing:read
      - http-signature:
        - marketing:read
      - basic:
        - marketing:read
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentplaces/search:
    post:
      tags:
      - Marketing
      summary: Search dynamic content places by given criteria
      operationId: MarketingModuleDynamicContent_DynamicContentPlacesSearch
      requestBody:
        description: criteria
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlaceSearchCriteria'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlaceSearchCriteria'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlaceSearchCriteria'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentPlaceSearchResult'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPlaceSearchResult'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPlaceSearchResult'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:read
      - api_key:
        - marketing:read
      - api_key_header:
        - marketing:read
      - http-signature:
        - marketing:read
      - basic:
        - marketing:read
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentitems/listentries/search:
    post:
      tags:
      - Marketing
      summary: Search content places list entries by given criteria
      operationId: MarketingModuleDynamicContent_DynamicContentItemsEntriesSearch
      requestBody:
        description: criteria
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItemSearchCriteria'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItemSearchCriteria'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItemSearchCriteria'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentListEntrySearchResult'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentListEntrySearchResult'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentListEntrySearchResult'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:read
      - api_key:
        - marketing:read
      - api_key_header:
        - marketing:read
      - http-signature:
        - marketing:read
      - basic:
        - marketing:read
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentitems/search:
    post:
      tags:
      - Marketing
      summary: Search dynamic content items by given criteria
      operationId: MarketingModuleDynamicContent_DynamicContentItemsSearch
      requestBody:
        description: criteria
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItemSearchCriteria'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItemSearchCriteria'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItemSearchCriteria'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentItemSearchResult'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentItemSearchResult'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentItemSearchResult'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:read
      - api_key:
        - marketing:read
      - api_key_header:
        - marketing:read
      - http-signature:
        - marketing:read
      - basic:
        - marketing:read
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentpublications/search:
    post:
      tags:
      - Marketing
      summary: Search dynamic content items by given criteria
      operationId: MarketingModuleDynamicContent_DynamicContentPublicationsSearch
      requestBody:
        description: criteria
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPublicationSearchCriteria'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPublicationSearchCriteria'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPublicationSearchCriteria'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentPublicationSearchResult'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPublicationSearchResult'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPublicationSearchResult'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:read
      - api_key:
        - marketing:read
      - api_key_header:
        - marketing:read
      - http-signature:
        - marketing:read
      - basic:
        - marketing:read
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentitems/evaluate:
    post:
      tags:
      - Marketing
      summary: Get dynamic content for given placeholders
      operationId: MarketingModuleDynamicContent_EvaluateDynamicContent
      requestBody:
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentEvaluationContext'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentEvaluationContext'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentEvaluationContext'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DynamicContentItem'
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DynamicContentItem'
            text/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DynamicContentItem'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:read
      - api_key:
        - marketing:read
      - api_key_header:
        - marketing:read
      - http-signature:
        - marketing:read
      - basic:
        - marketing:read
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentitems/{id}:
    get:
      tags:
      - Marketing
      summary: Find dynamic content item object by id
      description: Return a single dynamic content item object
      operationId: MarketingModuleDynamicContent_GetDynamicContentById
      parameters:
      - name: id
        in: path
        description: content item id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentItem'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentItem'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentItem'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:read
      - api_key:
        - marketing:read
      - api_key_header:
        - marketing:read
      - http-signature:
        - marketing:read
      - basic:
        - marketing:read
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentitems:
    post:
      tags:
      - Marketing
      summary: Add new dynamic content item object to marketing system
      operationId: MarketingModuleDynamicContent_CreateDynamicContent
      requestBody:
        description: dynamic content object that needs to be added to the dynamic content system
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItem'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItem'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItem'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentItem'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentItem'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentItem'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:create
      - api_key:
        - marketing:create
      - api_key_header:
        - marketing:create
      - http-signature:
        - marketing:create
      - basic:
        - marketing:create
      x-virtocommerce-module-id: VirtoCommerce.Marketing
    put:
      tags:
      - Marketing
      summary: Update an existing dynamic content item object
      operationId: MarketingModuleDynamicContent_UpdateDynamicContent
      requestBody:
        description: dynamic content object that needs to be updated in the dynamic content system
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItem'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItem'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentItem'
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:update
      - api_key:
        - marketing:update
      - api_key_header:
        - marketing:update
      - http-signature:
        - marketing:update
      - basic:
        - marketing:update
      x-virtocommerce-module-id: VirtoCommerce.Marketing
    delete:
      tags:
      - Marketing
      summary: Delete a dynamic content item objects
      operationId: MarketingModuleDynamicContent_DeleteDynamicContents
      parameters:
      - name: ids
        in: query
        description: content item object ids for delete in the dynamic content system
        schema:
          type: array
          items:
            type: string
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:delete
      - api_key:
        - marketing:delete
      - api_key_header:
        - marketing:delete
      - http-signature:
        - marketing:delete
      - basic:
        - marketing:delete
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentplaces/{id}:
    get:
      tags:
      - Marketing
      summary: Find dynamic content place object by id
      description: Return a single dynamic content place object
      operationId: MarketingModuleDynamicContent_GetDynamicContentPlaceById
      parameters:
      - name: id
        in: path
        description: place id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentPlace'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPlace'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPlace'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:read
      - api_key:
        - marketing:read
      - api_key_header:
        - marketing:read
      - http-signature:
        - marketing:read
      - basic:
        - marketing:read
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentplaces:
    post:
      tags:
      - Marketing
      summary: Add new dynamic content place object to marketing system
      operationId: MarketingModuleDynamicContent_CreateDynamicContentPlace
      requestBody:
        description: dynamic content place object that needs to be added to the dynamic content system
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlace'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlace'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlace'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentPlace'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPlace'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPlace'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:create
      - api_key:
        - marketing:create
      - api_key_header:
        - marketing:create
      - http-signature:
        - marketing:create
      - basic:
        - marketing:create
      x-virtocommerce-module-id: VirtoCommerce.Marketing
    put:
      tags:
      - Marketing
      summary: Update a existing dynamic content place object
      operationId: MarketingModuleDynamicContent_UpdateDynamicContentPlace
      requestBody:
        description: dynamic content place object that needs to be updated in the dynamic content system
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlace'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlace'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPlace'
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:update
      - api_key:
        - marketing:update
      - api_key_header:
        - marketing:update
      - http-signature:
        - marketing:update
      - basic:
        - marketing:update
      x-virtocommerce-module-id: VirtoCommerce.Marketing
    delete:
      tags:
      - Marketing
      summary: Delete a dynamic content place objects
      operationId: MarketingModuleDynamicContent_DeleteDynamicContentPlaces
      parameters:
      - name: ids
        in: query
        description: content place object ids for delete from dynamic content system
        schema:
          type: array
          items:
            type: string
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:delete
      - api_key:
        - marketing:delete
      - api_key_header:
        - marketing:delete
      - http-signature:
        - marketing:delete
      - basic:
        - marketing:delete
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentpublications/new:
    get:
      tags:
      - Marketing
      summary: Get new dynamic content publication object
      operationId: MarketingModuleDynamicContent_GetNewDynamicPublication
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentPublication'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPublication'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPublication'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:create
      - api_key:
        - marketing:create
      - api_key_header:
        - marketing:create
      - http-signature:
        - marketing:create
      - basic:
        - marketing:create
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentpublications/{id}:
    get:
      tags:
      - Marketing
      summary: Find dynamic content publication object by id
      description: Return a single dynamic content publication object
      operationId: MarketingModuleDynamicContent_GetDynamicContentPublicationById
      parameters:
      - name: id
        in: path
        description: publication id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentPublication'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPublication'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPublication'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:read
      - api_key:
        - marketing:read
      - api_key_header:
        - marketing:read
      - http-signature:
        - marketing:read
      - basic:
        - marketing:read
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentpublications:
    post:
      tags:
      - Marketing
      summary: Add new dynamic content publication object to marketing system
      operationId: MarketingModuleDynamicContent_CreateDynamicContentPublication
      requestBody:
        description: dynamic content publication object that needs to be added to the dynamic content system
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPublication'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPublication'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPublication'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentPublication'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPublication'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentPublication'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:create
      - api_key:
        - marketing:create
      - api_key_header:
        - marketing:create
      - http-signature:
        - marketing:create
      - basic:
        - marketing:create
      x-virtocommerce-module-id: VirtoCommerce.Marketing
    put:
      tags:
      - Marketing
      summary: Update an existing dynamic content publication object
      operationId: MarketingModuleDynamicContent_UpdateDynamicContentPublication
      requestBody:
        description: dynamic content publication object that needs to be updated in the dynamic content system
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPublication'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPublication'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentPublication'
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:update
      - api_key:
        - marketing:update
      - api_key_header:
        - marketing:update
      - http-signature:
        - marketing:update
      - basic:
        - marketing:update
      x-virtocommerce-module-id: VirtoCommerce.Marketing
    delete:
      tags:
      - Marketing
      summary: Delete a dynamic content publication objects
      operationId: MarketingModuleDynamicContent_DeleteDynamicContentPublications
      parameters:
      - name: ids
        in: query
        description: content publication object ids for delete from dynamic content system
        schema:
          type: array
          items:
            type: string
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:delete
      - api_key:
        - marketing:delete
      - api_key_header:
        - marketing:delete
      - http-signature:
        - marketing:delete
      - basic:
        - marketing:delete
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentfolders/{id}:
    get:
      tags:
      - Marketing
      summary: Find dynamic content folder by id
      description: Return a single dynamic content folder
      operationId: MarketingModuleDynamicContent_GetDynamicContentFolderById
      parameters:
      - name: id
        in: path
        description: folder id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentFolder'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentFolder'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentFolder'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:read
      - api_key:
        - marketing:read
      - api_key_header:
        - marketing:read
      - http-signature:
        - marketing:read
      - basic:
        - marketing:read
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/contentfolders:
    post:
      tags:
      - Marketing
      summary: Add new dynamic content folder
      operationId: MarketingModuleDynamicContent_CreateDynamicContentFolder
      requestBody:
        description: dynamic content folder that needs to be added
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentFolder'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentFolder'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentFolder'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/DynamicContentFolder'
            application/json:
              schema:
                $ref: '#/components/schemas/DynamicContentFolder'
            text/json:
              schema:
                $ref: '#/components/schemas/DynamicContentFolder'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:create
      - api_key:
        - marketing:create
      - api_key_header:
        - marketing:create
      - http-signature:
        - marketing:create
      - basic:
        - marketing:create
      x-virtocommerce-module-id: VirtoCommerce.Marketing
    put:
      tags:
      - Marketing
      summary: Update an existing dynamic content folder
      operationId: MarketingModuleDynamicContent_UpdateDynamicContentFolder
      requestBody:
        description: dynamic content folder that needs to be updated
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentFolder'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentFolder'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/DynamicContentFolder'
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:update
      - api_key:
        - marketing:update
      - api_key_header:
        - marketing:update
      - http-signature:
        - marketing:update
      - basic:
        - marketing:update
      x-virtocommerce-module-id: VirtoCommerce.Marketing
    delete:
      tags:
      - Marketing
      summary: Delete a dynamic content folders
      operationId: MarketingModuleDynamicContent_DeleteDynamicContentFolders
      parameters:
      - name: ids
        in: query
        description: folders ids for delete
        schema:
          type: array
          items:
            type: string
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2:
        - marketing:delete
      - api_key:
        - marketing:delete
      - api_key_header:
        - marketing:delete
      - http-signature:
        - marketing:delete
      - basic:
        - marketing:delete
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/promotions/search:
    post:
      tags:
      - Marketing
      summary: Search dynamic content places by given criteria
      operationId: MarketingModulePromotion_PromotionsSearch
      requestBody:
        description: criteria
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/PromotionSearchCriteria'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/PromotionSearchCriteria'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/PromotionSearchCriteria'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/PromotionSearchResult'
            application/json:
              schema:
                $ref: '#/components/schemas/PromotionSearchResult'
            text/json:
              schema:
                $ref: '#/components/schemas/PromotionSearchResult'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
      security:
      - oauth2: []
      - api_key: []
      - api_key_header: []
      - http-signature: []
      - basic: []
      x-virtocommerce-module-id: VirtoCommerce.Marketing
  /api/marketing/promotions/evaluate:
    post:
      tags:
      - Marketing
      summary: Evaluate promotions
      operationId: MarketingModulePromotion_EvaluatePromotions
      requestBody:
        description: Promotion evaluation context
        content:
          application/json-patch+json:
            schema:
              allOf:
              - $ref: '#/components/schemas/PromotionEvaluationContext'
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/PromotionEvaluationContext'
          text/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/PromotionEvaluationContext'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PromotionReward'
            application/json:
              schema:
                type: array


# --- truncated at 32 KB (81 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/virto-commerce/refs/heads/main/openapi/virto-commerce-marketing-api-openapi.yml