{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tbit-app/json-schema/tbit-app-get-v1-carts-code-response-schema.json",
  "title": "GetV1CartsCodeResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/tbit-app-openapi-generated.yml#/components/schemas/GetV1CartsCodeResponse",
  "type": "object",
  "properties": {
    "data.code": {
      "type": "string",
      "description": "Cart code"
    },
    "data.created_at": {
      "type": "string",
      "description": "ISO‑8601 timestamp when the cart was created"
    },
    "data.items": {
      "type": "array",
      "description": "List of items in the cart"
    },
    "data.items[]._id": {
      "type": "string",
      "description": "Product identifier"
    },
    "data.items[].kind": {
      "type": "string",
      "description": "Object kind, e.g., \"product\""
    },
    "data.items[].title": {
      "type": "string",
      "description": "Product title"
    },
    "data.items[].currency": {
      "type": "string",
      "description": "Currency code"
    },
    "data.items[].base_price": {
      "type": "number",
      "description": "Base price of the product"
    },
    "data.items[].qty": {
      "type": "integer",
      "description": "Quantity of the product in the cart"
    }
  }
}