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

# Create a new cart

> Route: CartServiceV2.createCart



## OpenAPI

````yaml https://apiv3.droplinked.com/swagger/json post /v2/carts
openapi: 3.0.0
info:
  title: droplinked Core API
  description: >-
    Complete API documentation for droplinked’s eCommerce infrastructure.


    The Core API provides all essential endpoints to build and manage modern
    online stores — including merchant authentication, product and collection
    management, carts, orders, payments, and more.

    Use these APIs to create fully integrated Web2 and Web3 commerce experiences
    powered by droplinked.
  version: 2.0.1
servers:
  - url: https://api.io.droplinked.com
    description: Primary production API server
security: []
paths:
  /v2/carts:
    post:
      tags:
        - Cart
      summary: Create a new cart
      description: 'Route: CartServiceV2.createCart'
      operationId: cart-create
      requestBody:
        required: true
        content:
          application/json:
            schema: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema: {}
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                description: NestJS BadRequestException response
                properties:
                  statusCode:
                    type: number
                    example: 400
                  message:
                    type: string
                    example: Bad Request
                  error:
                    type: string
                    example: Invalid input data
                required:
                  - statusCode
                  - message
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                description: NestJS NotFoundException response
                properties:
                  statusCode:
                    type: number
                    example: 404
                  message:
                    type: string
                    example: Not Found
                  error:
                    type: string
                    example: Resource not found
                required:
                  - statusCode
                  - message
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                description: NestJS InternalServerErrorException response
                properties:
                  statusCode:
                    type: number
                    example: 500
                  message:
                    type: string
                    example: Internal Server Error
                  error:
                    type: string
                    example: An unexpected error occurred
                required:
                  - statusCode
                  - message
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-droplinked-api-key

````