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

# Change Price

> Allows updating the custom price for a specific item in the user's cart. The item must allow custom pricing, and the new price must not be less than the item's initial price.



## OpenAPI

````yaml POST /cart/changePrice/{id}
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/changePrice/{id}:
    post:
      tags:
        - cart
      summary: Change the custom price of an item in the cart
      description: >-
        Allows updating the custom price for a specific item in the user's cart.
        The item must allow custom pricing, and the new price must not be less
        than the item's initial price.
      parameters:
        - name: id
          in: path
          required: true
          description: The ID of the item for which the custom price is to be changed.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - price
              properties:
                price:
                  type: string
                  description: The new custom price to set for the item.
                  pattern: /^\d*([\.,]\d{1,2})?$/
                  example: '19.99'
      responses:
        '200':
          description: Successfully updated the custom price of the item.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates if the operation was successful.
        '400':
          description: Bad Request - Invalid input or constraints violation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indicates the operation was unsuccessful.
                  message:
                    type: string
                    description: Details about why the request was invalid.
        '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.
      deprecated: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````