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

# Cart Data

> Fetches the user's cart and items, including any associated promotions, coupons, gifts, and referral codes.



## OpenAPI

````yaml POST /cart/get
openapi: 3.0.0
info:
  title: MineStoreCMS REST API
  description: Documentation for MineStoreCMS Frontend REST API.
  version: 3.8.7
servers:
  - url: https://v3.minestorecms.com/api
    description: Example URL of Demo Server
security: []
tags: []
paths:
  /cart/get:
    post:
      tags:
        - cart
      summary: Retrieve Cart and Items
      description: >-
        Fetches the user's cart and items, including any associated promotions,
        coupons, gifts, and referral codes.
      operationId: getCart
      responses:
        '200':
          description: Successful retrieval of cart and items.
          content:
            application/json:
              schema:
                type: object
                properties:
                  cart:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: 123
                      user_id:
                        type: integer
                        example: 456
                      gift_id:
                        type: integer
                        example: null
                      gift_sum:
                        type: number
                        format: float
                        example: 10
                      coupon_id:
                        type: integer
                        example: null
                      coupon_sum:
                        type: number
                        format: float
                        example: 5
                      referral:
                        type: string
                        example: null
                      gift_code:
                        type: string
                        example: GIFT2024
                      coupon_code:
                        type: string
                        example: COUPON2024
                      coupon_type:
                        type: string
                        example: percentage
                      coupon_value:
                        type: number
                        format: float
                        example: 15
                      referral_code:
                        type: string
                        example: REF123
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          example: Item Name
                        image:
                          type: string
                          example: /img/items/789.png
                        cid:
                          type: integer
                          example: 789
                        price:
                          type: number
                          format: float
                          example: 29.99
                        is_subs:
                          type: boolean
                          example: true
                        virtual_price:
                          type: number
                          format: float
                          example: 19.99
                        is_virtual_currency_only:
                          type: boolean
                          example: false
                        id:
                          type: integer
                          example: 101
                        vars:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 202
                              name:
                                type: string
                                example: Color
                              value:
                                type: string
                                example: Red
                        count:
                          type: integer
                          example: 2
                        quantityGlobalLimit:
                          type: integer
                          example: 10
                        quantityGlobalCurrentLimit:
                          type: integer
                          example: 5
                        quantityUserLimit:
                          type: integer
                          example: 3
                        quantityUserCurrentLimit:
                          type: integer
                          example: 1
                        is_unavailable:
                          type: boolean
                          example: false
                        payment_type:
                          type: integer
                          description: 0 - regular, 1 - subscription
                          example: 0
                        is_any_price:
                          type: boolean
                          example: true
                        min_price:
                          type: number
                          format: float
                          example: 10
                        allow_select_server:
                          type: boolean
                          example: true
                        allowed_servers:
                          type: array
                          items:
                            type: object
                            properties:
                              server_id:
                                type: integer
                                example: 1
                              server_name:
                                type: string
                                example: Server A
                        selected_server:
                          type: integer
                          example: 1
        '401':
          description: Invalid or missing Access Token
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````