# Get one cart by id

**GET** `/carts/{order_id}`

## Parameters

### `order_id` (_path_, required)

Order id

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

## Responses

### 200

Cart

**application/json**

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

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "purchaser_id": {
          "type": "integer",
          "nullable": true
        },
        "num_devices": {
          "type": "integer",
          "nullable": true
        },
        "rent": {
          "type": "string",
          "nullable": true
        },
        "currency": {
          "type": "string",
          "nullable": true
        },
        "devices": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "name": {
                "type": "string",
                "nullable": true
              },
              "rent": {
                "type": "string",
                "nullable": true
              },
              "product_id": {
                "type": "integer",
                "nullable": true,
                "description": "Catalog product id (`products.id`) when the line is tied to a catalog product",
                "example": 101
              }
            },
            "required": [
              "id",
              "name",
              "rent",
              "product_id"
            ]
          }
        }
      },
      "required": [
        "id",
        "purchaser_id",
        "num_devices",
        "rent",
        "currency",
        "devices"
      ]
    }
  },
  "required": [
    "data"
  ]
}
```

### 404

Not found

**application/json**

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

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "CART_NOT_FOUND"
      ]
    }
  },
  "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._
