> ## 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.

# Remove Referral

> Removes any existing referral code from the user's cart. If no referral code is set, an appropriate message is returned.



## OpenAPI

````yaml POST /cart/removeReferral
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/removeReferral:
    post:
      tags:
        - cart
      summary: Remove the referral code from the user's cart
      description: >-
        Removes any existing referral code from the user's cart. If no referral
        code is set, an appropriate message is returned.
      responses:
        '200':
          description: Successfully removed the referral code from the cart.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates if the referral code was successfully removed.
                  message:
                    type: string
                    description: >-
                      A message indicating the result of the referral code
                      removal.
        '401':
          description: Unauthorized - Invalid or missing Access Token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates the operation was unsuccessful.
                  message:
                    type: string
                    description: Details about the unauthorized access or error.
        '404':
          description: Not Found - Referral code was not set in the cart.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates the operation was unsuccessful.
                  message:
                    type: string
                    description: >-
                      Details about why the referral code could not be removed
                      (e.g., it was not set).
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````