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

# Set a bundle line's quantity (by the line's id or the bundle's id) — 0 removes it



## OpenAPI

````yaml /openapi/order-service.json patch /v1/cart/bundles/{id}
openapi: 3.0.0
info:
  title: Asiko Order Service
  description: Cart, checkout, order lifecycle
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: orders
    description: ''
  - name: cart
    description: ''
paths:
  /v1/cart/bundles/{id}:
    patch:
      tags:
        - cart
      summary: >-
        Set a bundle line's quantity (by the line's id or the bundle's id) — 0
        removes it
      operationId: CartController_setBundleQuantity
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetCartItemQuantityBody'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CartResponseDto'
      security:
        - bearer: []
components:
  schemas:
    SetCartItemQuantityBody:
      type: object
      properties:
        quantity:
          type: number
          example: 3
          minimum: 0
          description: 0 removes the line
      required:
        - quantity
    CartResponseDto:
      type: object
      properties:
        id:
          type: string
        userId:
          type: string
        items:
          type: array
          items:
            $ref: '#/components/schemas/CartItemResponseDto'
        bundles:
          description: Bundle packages, each at its bundle price
          type: array
          items:
            $ref: '#/components/schemas/BundleLineDto'
        subtotal:
          type: number
          description: Available items + bundles
      required:
        - id
        - userId
        - items
        - bundles
        - subtotal
    CartItemResponseDto:
      type: object
      properties:
        id:
          type: string
        productId:
          type: string
        productName:
          type: string
        productImage:
          type: string
          nullable: true
        sizeId:
          type: string
          nullable: true
          description: The size; null on lines from before sizes existed
        variantName:
          type: string
          nullable: true
        sizeLabel:
          type: string
          nullable: true
          description: Same value as size
        size:
          type: string
          nullable: true
        quantity:
          type: number
        unitPrice:
          type: number
        available:
          type: boolean
          description: >-
            false once the product is deleted or deactivated — excluded from
            subtotal, and checkout is refused until the line is removed
      required:
        - id
        - productId
        - productName
        - quantity
        - unitPrice
        - available
    BundleLineDto:
      type: object
      properties:
        id:
          type: string
          description: 'The line id (cart: use it to change or remove the line)'
        bundleId:
          type: string
        name:
          type: string
        image:
          type: string
          nullable: true
          description: Signed URL
        quantity:
          type: number
        unitPrice:
          type: number
          description: The bundle's price (finalAmount) when added / ordered
        lineTotal:
          type: number
        components:
          type: array
          items:
            $ref: '#/components/schemas/BundleLineComponentDto'
      required:
        - id
        - bundleId
        - name
        - quantity
        - unitPrice
        - lineTotal
        - components
    BundleLineComponentDto:
      type: object
      properties:
        productId:
          type: string
        sizeId:
          type: string
        productName:
          type: string
        variantName:
          type: string
        sizeLabel:
          type: string
        sku:
          type: string
        quantity:
          type: number
          description: Per bundle
      required:
        - productId
        - sizeId
        - productName
        - variantName
        - sizeLabel
        - sku
        - quantity
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

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