---
title: "POST /cart/{cart_id}/validate"
method: POST
path: "/cart/{cart_id}/validate"
---

# POST /cart/{cart_id}/validate

`POST /cart/{cart_id}/validate`

## Request

- Base URL: `https://developers.whmcs.com/api/v2`
- URL: `https://developers.whmcs.com/api/v2/cart/{cart_id}/validate`
- Auth: none declared

Validate the content of a given cart.

## Path parameters

- `cart_id` string, required

## Response `200`

List of errors if any.

- object
  - `data` object, required
    - `validation_errors` CartItemValidationError[]
      - `item_id` string
      - `errors` union[]
        - union
          - string
          - object
            - `id` integer
            - `type` 'product' | 'addon' | 'service' | 'customfield' | 'configoption' | 'bundle'
            - `error` string

## Other responses

- `404`: Entity Not Found
- `default`: General Error

---

[API](https://skmtc.dev/whmcs/apis/whmcs-api.md) - [All operations](https://skmtc.dev/whmcs/apis/whmcs-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whmcs/apis/whmcs-api/revisions/bd3848ddbc3f?raw)
