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

# Post bundlesbbapiauto add cart rulesevaluate



## OpenAPI

````yaml /bundles/storefront-api-swagger.json post /bundles/bb/api/auto-add-cart-rules/evaluate
openapi: 3.0.1
info:
  description: ''
  title: Storefront APIs
  version: 0.0.1
servers:
  - url: https://bundles-admin.appstle.com
security: []
tags:
  - description: Fetch build-a-box configuration and generate bundle discounts.
    name: Build-a-Box
  - description: Storefront-facing Bundles widget and visitor activity endpoints.
    name: Storefront
  - description: >-
      Storefront product and collection data, proxied through the Shopify
      Storefront API for build-a-box and bundle widgets.
    name: Product Catalog
paths:
  /bundles/bb/api/auto-add-cart-rules/evaluate:
    post:
      tags:
        - auto-add-cart-rule-storefront-resource
      operationId: evaluate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CartEvaluationRequestDTO'
        required: true
      responses:
        '200':
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/AutoAddCartRuleEvaluationResultDTO'
          description: OK
components:
  schemas:
    CartEvaluationRequestDTO:
      properties:
        cartTags:
          items:
            type: string
          type: array
        cartTotal:
          format: double
          type: number
        collectionIds:
          items:
            format: int64
            type: integer
          type: array
        customerTags:
          items:
            type: string
          type: array
        productIds:
          items:
            format: int64
            type: integer
          type: array
      type: object
    AutoAddCartRuleEvaluationResultDTO:
      properties:
        giftItems:
          items:
            $ref: '#/components/schemas/AutoAddGiftItemDTO'
          type: array
        ruleId:
          format: int64
          type: integer
      type: object
    AutoAddGiftItemDTO:
      properties:
        discountType:
          enum:
            - FREE
            - PERCENTAGE
            - FIXED_AMOUNT
          type: string
        discountValue:
          format: double
          type: number
        productId:
          format: int64
          type: integer
        quantity:
          format: int32
          type: integer
        variantId:
          type: string
      type: object

````