# Validate cart

**POST** `/carts/{order_id}/validate`

## Parameters

### `order_id` (_path_, required)

Order id

- **Type:** `string`
- **Example:** `"42"`
- **Constraints:** pattern `^[1-9]\d*$`

## Request body

**application/json**

_Schema ref:_ `#/components/schemas/ValidateCartBody` (ValidateCartBody)

```json
{
  "type": "object",
  "properties": {
    "purchaser_id": {
      "type": "integer",
      "minimum": 0,
      "exclusiveMinimum": true,
      "description": "User id of the purchaser (company employee) for this order after validation",
      "example": 12
    },
    "signatory_id": {
      "type": "integer",
      "minimum": 0,
      "exclusiveMinimum": true,
      "description": "User id of the person who will sign the contract (must be a company employee). If omitted, the purchaser is used. That user receives signatory permissions for the company when they do not already have them.",
      "example": 34
    }
  },
  "required": [
    "purchaser_id"
  ]
}
```

## Responses

### 200

Validated

**application/json**

_Schema ref:_ `#/components/schemas/ValidateCartResponse` (ValidateCartResponse)

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "order_id": {
          "type": "integer"
        },
        "client_status": {
          "type": "string",
          "enum": [
            "RECEIVED",
            "BEING_PROCESSED",
            "FINANCING_REQUEST",
            "DOC_REQUIRED",
            "SIGNING",
            "PROCESSING",
            "SHIPPED",
            "RECEPTION_TO_CONFIRM",
            "ONGOING_ORDER",
            "PENDING_DECISION",
            "EQUIPMENT_TO_SEND",
            "ARCHIVED",
            "FAILED",
            "UNKNOWN"
          ],
          "description": "Order progress after validation",
          "example": "BEING_PROCESSED"
        }
      },
      "required": [
        "order_id",
        "client_status"
      ]
    }
  },
  "required": [
    "data"
  ]
}
```

### 400

Validation or business rule error

**application/json**

_Schema ref:_ `#/components/schemas/ValidateCartBadRequestResponse` (ValidateCartBadRequestResponse)

```json
{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "error": {
          "type": "string"
        }
      },
      "required": [
        "error"
      ]
    },
    {
      "type": "object",
      "properties": {
        "error": {
          "type": "string",
          "enum": [
            "PAYMENT_METHOD_REQUIRED",
            "INVALID_PURCHASER",
            "VALIDATE_CART_NO_DEVICES"
          ]
        }
      },
      "required": [
        "error"
      ]
    }
  ]
}
```

### 403

Forbidden

**application/json**

_Schema ref:_ `#/components/schemas/OrderWriteForbiddenErrorResponse` (OrderWriteForbiddenErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "INSUFFICIENT_SCOPE"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

### 404

Not found

**application/json**

_Schema ref:_ `#/components/schemas/ValidateCartNotFoundErrorResponse` (ValidateCartNotFoundErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "COMPANY_NOT_FOUND",
        "CART_NOT_FOUND"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

### 409

Conflict

**application/json**

_Schema ref:_ `#/components/schemas/ValidateCartConflictErrorResponse` (ValidateCartConflictErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "ORDER_NOT_CART",
        "ORDER_STATUS_TRANSITION_FORBIDDEN"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

### 500

Internal error

**application/json**

_Schema ref:_ `#/components/schemas/OrderInternalErrorResponse` (OrderInternalErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "INTERNAL_ERROR"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

## Security

```json
[
  {
    "bearerAuth": []
  }
]
```

**bearerAuth:** Bearer token using a Fleet platform API key (flt_sk_…).

---

_Generated from the OpenAPI specification for raw Markdown / tooling use._
