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

# Update Cart

> Update a shopping cart



## OpenAPI

````yaml api-reference/openapi.json put /cart/{id}
openapi: 3.1.0
info:
  title: Satsuma API
  description: API specification for Satsuma AI commerce platform
  contact:
    name: Satsuma Support
    url: https://satsuma.ai
    email: support@satsuma.ai
  version: 1.0.0
servers:
  - url: https://api.satsuma.ai
    description: Production
security:
  - apiKeyAuth: []
paths:
  /cart/{id}:
    put:
      tags:
        - Cart
      summary: Update Cart
      description: Update a shopping cart
      operationId: updateCart
      parameters:
        - name: id
          in: path
          description: Cart identifier
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCartRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResponseBoolean'
components:
  schemas:
    UpdateCartRequest:
      required:
        - status
      properties:
        status:
          type: string
          description: Current status of the cart
          enum:
            - Active
            - Submitted
            - Cancelled
      description: Request to update an existing cart
    ResponseBoolean:
      properties:
        data:
          type: boolean
        messages:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/Message'
    Message:
      properties:
        context:
          type: string
        level:
          type: string
          enum:
            - Information
            - Warning
            - Error
        text:
          type: string
        data:
          type: object
          additionalProperties: true
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      description: API Key authentication
      name: Authorization
      in: header

````