{
  "openapi": "3.1.0",
  "info": {
    "title": "Nambikk CPQ Platform API",
    "version": "1.0.0",
    "description": "Tenant API for Nambikk CPQ: catalogue authoring and publishing, published catalogue browse, configuration and pricing, quotes, orders, subscriptions and their changes, and tenant administration. Each operation lists the permissions the caller needs.",
    "contact": {
      "name": "Nambikk API Support"
    },
    "license": {
      "name": "Commercial",
      "identifier": "LicenseRef-Commercial"
    }
  },
  "servers": [
    {
      "url": "https://{host}",
      "description": "Nambikk CPQ API",
      "variables": {
        "host": {
          "default": "api.example.nambikk.ai"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Catalogue Authoring — Catalogues",
      "description": "Catalogue containers, authoring command-centre reads and lifecycle management.",
      "x-displayName": "Catalogues"
    },
    {
      "name": "Catalogue Authoring — Products",
      "description": "Product Definitions, Offerings, Variants and atomic product setup.",
      "x-displayName": "Products"
    },
    {
      "name": "Catalogue Authoring — Attributes",
      "description": "Attribute definitions, groups and owner assignments.",
      "x-displayName": "Attributes"
    },
    {
      "name": "Catalogue Authoring — Packages & Solutions",
      "description": "Package, solution, add-on, component, option and relationship authoring.",
      "x-displayName": "Packages & Solutions"
    },
    {
      "name": "Catalogue Authoring — Views, Categories & Filters",
      "description": "Catalogue View definitions, category trees, assignments and browse-filter setup.",
      "x-displayName": "Views, Categories & Filters"
    },
    {
      "name": "Catalogue Authoring — Pricing",
      "description": "Charge definitions, pricing setup, pricebooks, rates and rate cards.",
      "x-displayName": "Pricing"
    },
    {
      "name": "Catalogue Authoring — Rules",
      "description": "Business-rule authoring, validation and simulation.",
      "x-displayName": "Rules"
    },
    {
      "name": "Catalogue Authoring — Agreements",
      "description": "Customer Agreement products, negotiated pricing, lifecycle and readiness.",
      "x-displayName": "Agreements"
    },
    {
      "name": "Catalogue Publishing",
      "description": "Publish previews, exact change review, publication and current generation status.",
      "x-displayName": "Publishing"
    },
    {
      "name": "Published Catalogue View — Context",
      "description": "Resolve the published selling context and agreement-based product availability.",
      "x-displayName": "Context"
    },
    {
      "name": "Published Catalogue View — Browse",
      "description": "Read published categories, filters, products and search suggestions by stable code.",
      "x-displayName": "Browse"
    },
    {
      "name": "Published Catalogue View — Configuration",
      "description": "Read published product configuration, add-ons and relationships.",
      "x-displayName": "Configuration"
    },
    {
      "name": "Published Catalogue View — Pricing",
      "description": "Read or select published charges and prices.",
      "x-displayName": "Pricing"
    },
    {
      "name": "Published Catalogue View — Rules",
      "description": "Read and select the published business rules.",
      "x-displayName": "Rules"
    },
    {
      "name": "Published Catalogue View — Product Data Schemas",
      "description": "Read published Product Definition source-field schemas used by Product Data Mapping.",
      "x-displayName": "Product Data Schemas"
    },
    {
      "name": "Approvals",
      "x-displayName": "Quote Approvals"
    },
    {
      "name": "Commercial close",
      "x-displayName": "Pricing, Validation & Order Placement"
    },
    {
      "name": "Customers",
      "x-displayName": "Accounts, Contacts & External References"
    },
    {
      "name": "Operate",
      "x-displayName": "Orders, Subscriptions & Services"
    },
    {
      "name": "Order amendments",
      "x-displayName": "Order Amendments"
    },
    {
      "name": "Product data mappings",
      "x-displayName": "Product Data Mappings"
    },
    {
      "name": "Quote workspace",
      "x-displayName": "Quote Items & Configuration"
    },
    {
      "name": "Quotes",
      "x-displayName": "Quote Management"
    },
    {
      "name": "Reference data",
      "x-displayName": "Reference Data"
    },
    {
      "name": "Sales authority",
      "x-displayName": "Discount Authority"
    },
    {
      "name": "Sales directory",
      "x-displayName": "Seller Directory"
    },
    {
      "name": "Service details updates",
      "x-displayName": "Service Detail Changes"
    },
    {
      "name": "Subscription changes",
      "x-displayName": "Subscription Changes"
    },
    {
      "name": "Tenant access",
      "x-displayName": "Tenant Users & Roles"
    },
    {
      "name": "Tenant settings",
      "x-displayName": "Business Settings"
    },
    {
      "name": "Webhooks",
      "x-displayName": "Webhooks & Deliveries"
    }
  ],
  "x-tagGroups": [
    {
      "name": "Catalogue Authoring",
      "tags": [
        "Catalogue Authoring — Catalogues",
        "Catalogue Authoring — Products",
        "Catalogue Authoring — Attributes",
        "Catalogue Authoring — Packages & Solutions",
        "Catalogue Authoring — Views, Categories & Filters",
        "Catalogue Authoring — Pricing",
        "Catalogue Authoring — Rules",
        "Catalogue Authoring — Agreements",
        "Catalogue Publishing"
      ]
    },
    {
      "name": "Catalogue Viewing",
      "tags": [
        "Published Catalogue View — Browse",
        "Published Catalogue View — Configuration",
        "Published Catalogue View — Pricing",
        "Published Catalogue View — Rules",
        "Published Catalogue View — Product Data Schemas"
      ]
    },
    {
      "name": "Selling Context",
      "tags": [
        "Published Catalogue View — Context",
        "Customers"
      ]
    },
    {
      "name": "Quoting",
      "tags": [
        "Quotes",
        "Quote workspace",
        "Approvals",
        "Commercial close",
        "Sales authority",
        "Sales directory"
      ]
    },
    {
      "name": "Ordering & Lifecycle",
      "tags": [
        "Order amendments",
        "Operate",
        "Subscription changes",
        "Service details updates"
      ]
    },
    {
      "name": "Platform Administration",
      "tags": [
        "Tenant access",
        "Tenant settings",
        "Reference data",
        "Webhooks",
        "Product data mappings"
      ]
    }
  ],
  "paths": {
    "/api/v1/catalogues/{catalogueCode}/readiness": {
      "get": {
        "operationId": "getCatalogueItemReadiness",
        "summary": "Check item readiness",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_OFFERING",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "itemType",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "itemCode",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "catalogueCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "item",
                    "ready",
                    "blockers",
                    "warnings",
                    "checkedAt"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "item": {
                      "type": "object",
                      "required": [
                        "type",
                        "id",
                        "code",
                        "name",
                        "status"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        }
                      }
                    },
                    "ready": {
                      "type": "boolean"
                    },
                    "blockers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "code",
                          "message",
                          "record"
                        ],
                        "additionalProperties": false,
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          },
                          "record": {
                            "anyOf": [
                              {
                                "type": "object",
                                "required": [
                                  "type",
                                  "code"
                                ],
                                "additionalProperties": false,
                                "properties": {
                                  "type": {
                                    "type": "string"
                                  },
                                  "code": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "code",
                          "message",
                          "record"
                        ],
                        "additionalProperties": false,
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          },
                          "record": {
                            "anyOf": [
                              {
                                "type": "object",
                                "required": [
                                  "type",
                                  "code"
                                ],
                                "additionalProperties": false,
                                "properties": {
                                  "type": {
                                    "type": "string"
                                  },
                                  "code": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "checkedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Check what a saved item still needs before it can be sold"
      }
    },
    "/api/v1/catalogues": {
      "get": {
        "operationId": "listCatalogues",
        "summary": "List catalogues",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "code",
                          "name",
                          "description",
                          "status",
                          "retiredAt",
                          "metadata",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "retiredAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createCatalogue",
        "summary": "Create a catalogue",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "metadata": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "code",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "status",
                    "retiredAt",
                    "metadata",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/catalogues/{catalogueId}": {
      "get": {
        "operationId": "getCatalogue",
        "summary": "Get a catalogue",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "catalogueId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "status",
                    "retiredAt",
                    "metadata",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateCatalogue",
        "summary": "Update a catalogue",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "catalogueId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "status",
                    "retiredAt",
                    "metadata",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Update an active catalogue"
      },
      "delete": {
        "operationId": "deleteCatalogue",
        "summary": "Delete a catalogue",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "catalogueId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete an empty catalogue"
      }
    },
    "/api/v1/product-definitions": {
      "get": {
        "operationId": "listProductDefinitions",
        "summary": "List product definitions",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "code",
                          "name",
                          "quantityStrategy",
                          "orderProductType",
                          "description",
                          "facts",
                          "instanceNoun",
                          "instanceLabelAttributes",
                          "unitNoun",
                          "unitLabelAttributes",
                          "aliases",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "quantityStrategy": {
                            "type": "string",
                            "enum": [
                              "MULTIPLIER",
                              "UNIT"
                            ]
                          },
                          "orderProductType": {
                            "type": "string",
                            "enum": [
                              "SUBSCRIPTION",
                              "DELIVERABLE"
                            ]
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceNoun": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "singular",
                                  "plural"
                                ],
                                "properties": {
                                  "singular": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 40
                                  },
                                  "plural": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 40
                                  }
                                },
                                "description": "What one instance is called, singular and plural."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "instanceLabelAttributes": {
                            "type": "array",
                            "maxItems": 3,
                            "items": {
                              "type": "string"
                            },
                            "description": "Ordered attribute codes whose values name one instance."
                          },
                          "unitNoun": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "singular",
                                  "plural"
                                ],
                                "properties": {
                                  "singular": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 40
                                  },
                                  "plural": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 40
                                  }
                                },
                                "description": "What one unit is called, singular and plural. Only with quantity strategy UNIT."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitLabelAttributes": {
                            "type": "array",
                            "maxItems": 2,
                            "items": {
                              "type": "string"
                            },
                            "description": "Ordered UNIT-level attribute codes whose values name one unit. Only with quantity strategy UNIT."
                          },
                          "aliases": {
                            "type": "array",
                            "maxItems": 10,
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 60
                            },
                            "description": "Other names for this record. Browse search matches them."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createProductDefinition",
        "summary": "Create a product definition",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "quantityStrategy": {
                    "default": "MULTIPLIER",
                    "type": "string",
                    "enum": [
                      "MULTIPLIER",
                      "UNIT"
                    ]
                  },
                  "orderProductType": {
                    "default": "SUBSCRIPTION",
                    "type": "string",
                    "enum": [
                      "SUBSCRIPTION",
                      "DELIVERABLE"
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "instanceNoun": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "singular": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What one is called, in the catalogue's own words."
                          },
                          "plural": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What several are called."
                          }
                        },
                        "required": [
                          "singular",
                          "plural"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "instanceLabelAttributes": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                    }
                  },
                  "aliases": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  },
                  "unitNoun": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "singular": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What one is called, in the catalogue's own words."
                          },
                          "plural": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What several are called."
                          }
                        },
                        "required": [
                          "singular",
                          "plural"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unitLabelAttributes": {
                    "maxItems": 2,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                    }
                  }
                },
                "required": [
                  "code",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "quantityStrategy",
                    "orderProductType",
                    "description",
                    "facts",
                    "instanceNoun",
                    "instanceLabelAttributes",
                    "unitNoun",
                    "unitLabelAttributes",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "orderProductType": {
                      "type": "string",
                      "enum": [
                        "SUBSCRIPTION",
                        "DELIVERABLE"
                      ]
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "instanceNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one instance is called, singular and plural."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "instanceLabelAttributes": {
                      "type": "array",
                      "maxItems": 3,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered attribute codes whose values name one instance."
                    },
                    "unitNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one unit is called, singular and plural. Only with quantity strategy UNIT."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unitLabelAttributes": {
                      "type": "array",
                      "maxItems": 2,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered UNIT-level attribute codes whose values name one unit. Only with quantity strategy UNIT."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/product-definitions/{productDefinitionId}": {
      "get": {
        "operationId": "getProductDefinition",
        "summary": "Get a product definition",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "quantityStrategy",
                    "orderProductType",
                    "description",
                    "facts",
                    "instanceNoun",
                    "instanceLabelAttributes",
                    "unitNoun",
                    "unitLabelAttributes",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "orderProductType": {
                      "type": "string",
                      "enum": [
                        "SUBSCRIPTION",
                        "DELIVERABLE"
                      ]
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "instanceNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one instance is called, singular and plural."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "instanceLabelAttributes": {
                      "type": "array",
                      "maxItems": 3,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered attribute codes whose values name one instance."
                    },
                    "unitNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one unit is called, singular and plural. Only with quantity strategy UNIT."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unitLabelAttributes": {
                      "type": "array",
                      "maxItems": 2,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered UNIT-level attribute codes whose values name one unit. Only with quantity strategy UNIT."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateProductDefinition",
        "summary": "Update a product definition",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "quantityStrategy": {
                    "type": "string",
                    "enum": [
                      "MULTIPLIER",
                      "UNIT"
                    ]
                  },
                  "orderProductType": {
                    "type": "string",
                    "enum": [
                      "SUBSCRIPTION",
                      "DELIVERABLE"
                    ]
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "instanceNoun": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "singular": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What one is called, in the catalogue's own words."
                          },
                          "plural": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What several are called."
                          }
                        },
                        "required": [
                          "singular",
                          "plural"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "instanceLabelAttributes": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                    }
                  },
                  "unitNoun": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "singular": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What one is called, in the catalogue's own words."
                          },
                          "plural": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What several are called."
                          }
                        },
                        "required": [
                          "singular",
                          "plural"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unitLabelAttributes": {
                    "maxItems": 2,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                    }
                  },
                  "aliases": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "quantityStrategy",
                    "orderProductType",
                    "description",
                    "facts",
                    "instanceNoun",
                    "instanceLabelAttributes",
                    "unitNoun",
                    "unitLabelAttributes",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "orderProductType": {
                      "type": "string",
                      "enum": [
                        "SUBSCRIPTION",
                        "DELIVERABLE"
                      ]
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "instanceNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one instance is called, singular and plural."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "instanceLabelAttributes": {
                      "type": "array",
                      "maxItems": 3,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered attribute codes whose values name one instance."
                    },
                    "unitNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one unit is called, singular and plural. Only with quantity strategy UNIT."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unitLabelAttributes": {
                      "type": "array",
                      "maxItems": 2,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered UNIT-level attribute codes whose values name one unit. Only with quantity strategy UNIT."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteProductDefinition",
        "summary": "Delete a product definition",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete an unused product definition"
      }
    },
    "/api/v1/product-offerings": {
      "get": {
        "operationId": "listProductOfferings",
        "summary": "List product offerings",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "productDefinitionId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "productDefinitionCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "productFamily",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "in": "query",
            "name": "offset",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "productDefinitionId",
                          "code",
                          "name",
                          "description",
                          "status",
                          "effectiveFrom",
                          "effectiveTo",
                          "standaloneSellable",
                          "visibility",
                          "productFamily",
                          "facts",
                          "aliases",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "productDefinitionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "effectiveFrom": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "standaloneSellable": {
                            "type": "boolean"
                          },
                          "visibility": {
                            "type": "string",
                            "enum": [
                              "PUBLIC",
                              "RESTRICTED"
                            ]
                          },
                          "productFamily": {
                            "type": "string"
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "aliases": {
                            "type": "array",
                            "maxItems": 10,
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 60
                            },
                            "description": "Other names for this record. Browse search matches them."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "total": {
                      "type": "integer",
                      "description": "Number of offerings matching the filter, before limit and offset."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createProductOffering",
        "summary": "Create a product offering",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "productDefinitionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "productDefinitionCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "standaloneSellable": {
                    "default": true,
                    "type": "boolean"
                  },
                  "visibility": {
                    "default": "PUBLIC",
                    "type": "string",
                    "enum": [
                      "PUBLIC",
                      "RESTRICTED"
                    ]
                  },
                  "productFamily": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "aliases": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  }
                },
                "required": [
                  "code",
                  "name",
                  "productFamily"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "productDefinitionId",
                    "code",
                    "name",
                    "description",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "standaloneSellable",
                    "visibility",
                    "productFamily",
                    "facts",
                    "aliases",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "standaloneSellable": {
                      "type": "boolean"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "RESTRICTED"
                      ]
                    },
                    "productFamily": {
                      "type": "string"
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/product-offerings/{productOfferingId}": {
      "get": {
        "operationId": "getProductOffering",
        "summary": "Get a product offering",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productOfferingId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "productDefinitionId",
                    "code",
                    "name",
                    "description",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "standaloneSellable",
                    "visibility",
                    "productFamily",
                    "facts",
                    "aliases",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "standaloneSellable": {
                      "type": "boolean"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "RESTRICTED"
                      ]
                    },
                    "productFamily": {
                      "type": "string"
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateProductOffering",
        "summary": "Update a product offering",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "standaloneSellable": {
                    "type": "boolean"
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "PUBLIC",
                      "RESTRICTED"
                    ]
                  },
                  "productFamily": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "facts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "aliases": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productOfferingId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "productDefinitionId",
                    "code",
                    "name",
                    "description",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "standaloneSellable",
                    "visibility",
                    "productFamily",
                    "facts",
                    "aliases",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "standaloneSellable": {
                      "type": "boolean"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "RESTRICTED"
                      ]
                    },
                    "productFamily": {
                      "type": "string"
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteProductOffering",
        "summary": "Delete a product offering",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productOfferingId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete an unused product offering"
      }
    },
    "/api/v1/product-variants": {
      "get": {
        "operationId": "listProductVariants",
        "summary": "List product variants",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "productOfferingId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "productOfferingCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "productOfferingId",
                          "code",
                          "name",
                          "skuCode",
                          "facts",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "productOfferingId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "skuCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createProductVariant",
        "summary": "Create a product variant",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "productOfferingId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "productOfferingCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "skuCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "code",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "productOfferingId",
                    "code",
                    "name",
                    "skuCode",
                    "facts",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productOfferingId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "skuCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/product-variants/{productVariantId}": {
      "get": {
        "operationId": "getProductVariant",
        "summary": "Get a product variant",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productVariantId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "productOfferingId",
                    "code",
                    "name",
                    "skuCode",
                    "facts",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productOfferingId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "skuCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateProductVariant",
        "summary": "Update a product variant",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "skuCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productVariantId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "productOfferingId",
                    "code",
                    "name",
                    "skuCode",
                    "facts",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productOfferingId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "skuCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteProductVariant",
        "summary": "Delete a product variant",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productVariantId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete an unused product variant"
      }
    },
    "/api/v1/attribute-definitions": {
      "get": {
        "operationId": "listAttributeDefinitions",
        "summary": "List attribute definitions",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "code",
                          "name",
                          "description",
                          "dataType",
                          "unit",
                          "allowedValues",
                          "validation",
                          "attributeCategory",
                          "piiClassification",
                          "copyable",
                          "searchable",
                          "aliases",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dataType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "NUMBER",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME",
                              "MONEY",
                              "ADDRESS",
                              "ENUM",
                              "MULTI_SELECT",
                              "JSON"
                            ]
                          },
                          "unit": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "allowedValues": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "validation": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "Type-specific validation. TEXT: minLength, maxLength, pattern. NUMBER/MONEY: minimum, maximum. DATE/DATE_TIME: earliest, latest. MULTI_SELECT: minItems, maxItems. Unknown extension keys are preserved.",
                            "properties": {
                              "minLength": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "maxLength": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "pattern": {
                                "type": "string",
                                "description": "A valid JavaScript regular expression."
                              },
                              "minimum": {
                                "type": "number"
                              },
                              "maximum": {
                                "type": "number"
                              },
                              "earliest": {
                                "type": "string",
                                "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                              },
                              "latest": {
                                "type": "string",
                                "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                              },
                              "minItems": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "maxItems": {
                                "type": "integer",
                                "minimum": 0
                              }
                            }
                          },
                          "attributeCategory": {
                            "type": "string",
                            "enum": [
                              "COMMERCIAL",
                              "NON_COMMERCIAL"
                            ]
                          },
                          "piiClassification": {
                            "type": "string",
                            "enum": [
                              "NONE",
                              "PERSONAL",
                              "SENSITIVE"
                            ]
                          },
                          "copyable": {
                            "type": "boolean",
                            "description": "Whether copy configuration copies this value into a new quote. False for values that identify one service, such as service ids, circuit ids and serial numbers."
                          },
                          "searchable": {
                            "type": "boolean",
                            "description": "Whether values of this attribute are copied into subscription and service search, so those records can be filtered by an exact value."
                          },
                          "aliases": {
                            "type": "array",
                            "maxItems": 10,
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 60
                            },
                            "description": "Other names for this record. Browse search matches them."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createAttributeDefinition",
        "summary": "Create an attribute definition",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataType": {
                    "type": "string",
                    "enum": [
                      "TEXT",
                      "NUMBER",
                      "BOOLEAN",
                      "DATE",
                      "DATE_TIME",
                      "MONEY",
                      "ADDRESS",
                      "ENUM",
                      "MULTI_SELECT",
                      "JSON"
                    ]
                  },
                  "unit": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "allowedValues": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "validation": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "Type-specific validation. TEXT: minLength, maxLength, pattern. NUMBER/MONEY: minimum, maximum. DATE/DATE_TIME: earliest, latest. MULTI_SELECT: minItems, maxItems. Unknown extension keys are preserved.",
                    "properties": {
                      "minLength": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "maxLength": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "pattern": {
                        "type": "string",
                        "description": "A valid JavaScript regular expression."
                      },
                      "minimum": {
                        "type": "number"
                      },
                      "maximum": {
                        "type": "number"
                      },
                      "earliest": {
                        "type": "string",
                        "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                      },
                      "latest": {
                        "type": "string",
                        "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                      },
                      "minItems": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "maxItems": {
                        "type": "integer",
                        "minimum": 0
                      }
                    }
                  },
                  "attributeCategory": {
                    "type": "string",
                    "enum": [
                      "COMMERCIAL",
                      "NON_COMMERCIAL"
                    ]
                  },
                  "piiClassification": {
                    "default": "NONE",
                    "type": "string",
                    "enum": [
                      "NONE",
                      "PERSONAL",
                      "SENSITIVE"
                    ]
                  },
                  "copyable": {
                    "default": true,
                    "type": "boolean"
                  },
                  "searchable": {
                    "type": "boolean"
                  },
                  "aliases": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  }
                },
                "required": [
                  "code",
                  "name",
                  "dataType",
                  "attributeCategory"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "dataType",
                    "unit",
                    "allowedValues",
                    "validation",
                    "attributeCategory",
                    "piiClassification",
                    "copyable",
                    "searchable",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataType": {
                      "type": "string",
                      "enum": [
                        "TEXT",
                        "NUMBER",
                        "BOOLEAN",
                        "DATE",
                        "DATE_TIME",
                        "MONEY",
                        "ADDRESS",
                        "ENUM",
                        "MULTI_SELECT",
                        "JSON"
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "allowedValues": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "validation": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "Type-specific validation. TEXT: minLength, maxLength, pattern. NUMBER/MONEY: minimum, maximum. DATE/DATE_TIME: earliest, latest. MULTI_SELECT: minItems, maxItems. Unknown extension keys are preserved.",
                      "properties": {
                        "minLength": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "maxLength": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "pattern": {
                          "type": "string",
                          "description": "A valid JavaScript regular expression."
                        },
                        "minimum": {
                          "type": "number"
                        },
                        "maximum": {
                          "type": "number"
                        },
                        "earliest": {
                          "type": "string",
                          "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                        },
                        "latest": {
                          "type": "string",
                          "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                        },
                        "minItems": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "maxItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      }
                    },
                    "attributeCategory": {
                      "type": "string",
                      "enum": [
                        "COMMERCIAL",
                        "NON_COMMERCIAL"
                      ]
                    },
                    "piiClassification": {
                      "type": "string",
                      "enum": [
                        "NONE",
                        "PERSONAL",
                        "SENSITIVE"
                      ]
                    },
                    "copyable": {
                      "type": "boolean",
                      "description": "Whether copy configuration copies this value into a new quote. False for values that identify one service, such as service ids, circuit ids and serial numbers."
                    },
                    "searchable": {
                      "type": "boolean",
                      "description": "Whether values of this attribute are copied into subscription and service search, so those records can be filtered by an exact value."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Create attribute definition"
      }
    },
    "/api/v1/attribute-definitions/{attributeDefinitionId}": {
      "get": {
        "operationId": "getAttributeDefinition",
        "summary": "Get an attribute definition",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "dataType",
                    "unit",
                    "allowedValues",
                    "validation",
                    "attributeCategory",
                    "piiClassification",
                    "copyable",
                    "searchable",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataType": {
                      "type": "string",
                      "enum": [
                        "TEXT",
                        "NUMBER",
                        "BOOLEAN",
                        "DATE",
                        "DATE_TIME",
                        "MONEY",
                        "ADDRESS",
                        "ENUM",
                        "MULTI_SELECT",
                        "JSON"
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "allowedValues": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "validation": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "Type-specific validation. TEXT: minLength, maxLength, pattern. NUMBER/MONEY: minimum, maximum. DATE/DATE_TIME: earliest, latest. MULTI_SELECT: minItems, maxItems. Unknown extension keys are preserved.",
                      "properties": {
                        "minLength": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "maxLength": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "pattern": {
                          "type": "string",
                          "description": "A valid JavaScript regular expression."
                        },
                        "minimum": {
                          "type": "number"
                        },
                        "maximum": {
                          "type": "number"
                        },
                        "earliest": {
                          "type": "string",
                          "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                        },
                        "latest": {
                          "type": "string",
                          "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                        },
                        "minItems": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "maxItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      }
                    },
                    "attributeCategory": {
                      "type": "string",
                      "enum": [
                        "COMMERCIAL",
                        "NON_COMMERCIAL"
                      ]
                    },
                    "piiClassification": {
                      "type": "string",
                      "enum": [
                        "NONE",
                        "PERSONAL",
                        "SENSITIVE"
                      ]
                    },
                    "copyable": {
                      "type": "boolean",
                      "description": "Whether copy configuration copies this value into a new quote. False for values that identify one service, such as service ids, circuit ids and serial numbers."
                    },
                    "searchable": {
                      "type": "boolean",
                      "description": "Whether values of this attribute are copied into subscription and service search, so those records can be filtered by an exact value."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Get attribute definition"
      },
      "patch": {
        "operationId": "updateAttributeDefinition",
        "summary": "Update an attribute definition",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dataType": {
                    "type": "string",
                    "enum": [
                      "TEXT",
                      "NUMBER",
                      "BOOLEAN",
                      "DATE",
                      "DATE_TIME",
                      "MONEY",
                      "ADDRESS",
                      "ENUM",
                      "MULTI_SELECT",
                      "JSON"
                    ]
                  },
                  "unit": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "allowedValues": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "validation": {
                    "type": "object",
                    "additionalProperties": true,
                    "description": "Type-specific validation. TEXT: minLength, maxLength, pattern. NUMBER/MONEY: minimum, maximum. DATE/DATE_TIME: earliest, latest. MULTI_SELECT: minItems, maxItems. Unknown extension keys are preserved.",
                    "properties": {
                      "minLength": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "maxLength": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "pattern": {
                        "type": "string",
                        "description": "A valid JavaScript regular expression."
                      },
                      "minimum": {
                        "type": "number"
                      },
                      "maximum": {
                        "type": "number"
                      },
                      "earliest": {
                        "type": "string",
                        "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                      },
                      "latest": {
                        "type": "string",
                        "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                      },
                      "minItems": {
                        "type": "integer",
                        "minimum": 0
                      },
                      "maxItems": {
                        "type": "integer",
                        "minimum": 0
                      }
                    }
                  },
                  "attributeCategory": {
                    "type": "string",
                    "enum": [
                      "COMMERCIAL",
                      "NON_COMMERCIAL"
                    ]
                  },
                  "piiClassification": {
                    "type": "string",
                    "enum": [
                      "NONE",
                      "PERSONAL",
                      "SENSITIVE"
                    ]
                  },
                  "copyable": {
                    "type": "boolean"
                  },
                  "searchable": {
                    "type": "boolean"
                  },
                  "aliases": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "dataType",
                    "unit",
                    "allowedValues",
                    "validation",
                    "attributeCategory",
                    "piiClassification",
                    "copyable",
                    "searchable",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataType": {
                      "type": "string",
                      "enum": [
                        "TEXT",
                        "NUMBER",
                        "BOOLEAN",
                        "DATE",
                        "DATE_TIME",
                        "MONEY",
                        "ADDRESS",
                        "ENUM",
                        "MULTI_SELECT",
                        "JSON"
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "allowedValues": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "validation": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "Type-specific validation. TEXT: minLength, maxLength, pattern. NUMBER/MONEY: minimum, maximum. DATE/DATE_TIME: earliest, latest. MULTI_SELECT: minItems, maxItems. Unknown extension keys are preserved.",
                      "properties": {
                        "minLength": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "maxLength": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "pattern": {
                          "type": "string",
                          "description": "A valid JavaScript regular expression."
                        },
                        "minimum": {
                          "type": "number"
                        },
                        "maximum": {
                          "type": "number"
                        },
                        "earliest": {
                          "type": "string",
                          "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                        },
                        "latest": {
                          "type": "string",
                          "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                        },
                        "minItems": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "maxItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      }
                    },
                    "attributeCategory": {
                      "type": "string",
                      "enum": [
                        "COMMERCIAL",
                        "NON_COMMERCIAL"
                      ]
                    },
                    "piiClassification": {
                      "type": "string",
                      "enum": [
                        "NONE",
                        "PERSONAL",
                        "SENSITIVE"
                      ]
                    },
                    "copyable": {
                      "type": "boolean",
                      "description": "Whether copy configuration copies this value into a new quote. False for values that identify one service, such as service ids, circuit ids and serial numbers."
                    },
                    "searchable": {
                      "type": "boolean",
                      "description": "Whether values of this attribute are copied into subscription and service search, so those records can be filtered by an exact value."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Update attribute definition"
      },
      "delete": {
        "operationId": "deleteAttributeDefinition",
        "summary": "Delete an attribute definition",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete attribute definition"
      }
    },
    "/api/v1/attribute-groups": {
      "get": {
        "operationId": "listAttributeGroups",
        "summary": "List attribute groups",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "code",
                          "name",
                          "description",
                          "displayOrder",
                          "repeatable",
                          "minInstances",
                          "maxInstances",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "repeatable": {
                            "type": "boolean"
                          },
                          "minInstances": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxInstances": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createAttributeGroup",
        "summary": "Create an attribute group",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "repeatable": {
                    "default": false,
                    "type": "boolean"
                  },
                  "minInstances": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxInstances": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "code",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "displayOrder",
                    "repeatable",
                    "minInstances",
                    "maxInstances",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "repeatable": {
                      "type": "boolean"
                    },
                    "minInstances": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxInstances": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Create attribute group"
      }
    },
    "/api/v1/attribute-groups/{attributeGroupId}": {
      "get": {
        "operationId": "getAttributeGroup",
        "summary": "Get an attribute group",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeGroupId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "displayOrder",
                    "repeatable",
                    "minInstances",
                    "maxInstances",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "repeatable": {
                      "type": "boolean"
                    },
                    "minInstances": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxInstances": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Get attribute group"
      },
      "patch": {
        "operationId": "updateAttributeGroup",
        "summary": "Update an attribute group",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "repeatable": {
                    "type": "boolean"
                  },
                  "minInstances": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxInstances": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeGroupId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "displayOrder",
                    "repeatable",
                    "minInstances",
                    "maxInstances",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "repeatable": {
                      "type": "boolean"
                    },
                    "minInstances": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxInstances": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Update attribute group"
      },
      "delete": {
        "operationId": "deleteAttributeGroup",
        "summary": "Delete an attribute group",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeGroupId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete attribute group"
      }
    },
    "/api/v1/attribute-assignments": {
      "get": {
        "operationId": "listAttributeAssignments",
        "summary": "List attribute assignments",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_DEFINITION",
                "PRODUCT_OFFERING",
                "PRODUCT_VARIANT",
                "CATALOGUE_VIEW",
                "BUNDLE",
                "BUNDLE_COMPONENT"
              ]
            },
            "in": "query",
            "name": "ownerType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "ownerId",
            "required": false
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                },
                {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9_]{0,63}$"
                }
              ]
            },
            "in": "query",
            "name": "ownerCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "bundleId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "bundleCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "attributeId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,63}$"
            },
            "in": "query",
            "name": "attributeCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "attributeGroupId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "CONFIGURATION",
                "VARIANT_SELECTOR",
                "DISPLAY",
                "BROWSE_FACET"
              ]
            },
            "in": "query",
            "name": "usageFlag",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "ownerType",
                          "ownerId",
                          "attributeId",
                          "attributeGroupId",
                          "displayComponentId",
                          "valueLevel",
                          "required",
                          "editable",
                          "visible",
                          "defaultValue",
                          "displayOrder",
                          "impactFlags",
                          "groupingBehavior",
                          "usageFlags",
                          "metadata",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "ownerType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_DEFINITION",
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "CATALOGUE_VIEW",
                              "BUNDLE",
                              "BUNDLE_COMPONENT"
                            ]
                          },
                          "ownerId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "attributeId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "attributeGroupId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayComponentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "valueLevel": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "UNIT"
                            ]
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "editable": {
                            "type": "boolean"
                          },
                          "visible": {
                            "type": "boolean"
                          },
                          "defaultValue": {},
                          "displayOrder": {
                            "type": "integer"
                          },
                          "impactFlags": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "PRICING",
                                "ELIGIBILITY",
                                "COMPATIBILITY",
                                "FULFILLMENT",
                                "BILLING",
                                "INVENTORY",
                                "REPORTING",
                                "DISPLAY_ONLY"
                              ]
                            }
                          },
                          "groupingBehavior": {
                            "type": "string",
                            "enum": [
                              "NONE",
                              "GROUPING_KEY",
                              "UNIT_DETAIL"
                            ]
                          },
                          "usageFlags": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "CONFIGURATION",
                                "VARIANT_SELECTOR",
                                "DISPLAY",
                                "BROWSE_FACET"
                              ]
                            }
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createAttributeAssignment",
        "summary": "Assign an attribute",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "ownerType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_DEFINITION",
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "CATALOGUE_VIEW",
                      "BUNDLE",
                      "BUNDLE_COMPONENT"
                    ]
                  },
                  "ownerId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "ownerCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_]{0,63}$"
                      }
                    ]
                  },
                  "bundleId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "bundleCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "attributeId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "attributeCode": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  },
                  "attributeGroupId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributeGroupCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_]{0,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayComponentId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayComponentCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "valueLevel": {
                    "type": "string",
                    "enum": [
                      "CART",
                      "CART_ITEM",
                      "UNIT"
                    ]
                  },
                  "required": {
                    "default": false,
                    "type": "boolean"
                  },
                  "editable": {
                    "default": true,
                    "type": "boolean"
                  },
                  "visible": {
                    "default": true,
                    "type": "boolean"
                  },
                  "defaultValue": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "impactFlags": {
                    "default": [],
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "PRICING",
                        "ELIGIBILITY",
                        "COMPATIBILITY",
                        "FULFILLMENT",
                        "BILLING",
                        "INVENTORY",
                        "REPORTING",
                        "DISPLAY_ONLY"
                      ]
                    }
                  },
                  "groupingBehavior": {
                    "default": "NONE",
                    "type": "string",
                    "enum": [
                      "NONE",
                      "GROUPING_KEY",
                      "UNIT_DETAIL"
                    ]
                  },
                  "usageFlags": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONFIGURATION",
                        "VARIANT_SELECTOR",
                        "DISPLAY",
                        "BROWSE_FACET"
                      ]
                    }
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "ownerType",
                  "valueLevel"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "ownerType",
                    "ownerId",
                    "attributeId",
                    "attributeGroupId",
                    "displayComponentId",
                    "valueLevel",
                    "required",
                    "editable",
                    "visible",
                    "defaultValue",
                    "displayOrder",
                    "impactFlags",
                    "groupingBehavior",
                    "usageFlags",
                    "metadata",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "ownerType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "CATALOGUE_VIEW",
                        "BUNDLE",
                        "BUNDLE_COMPONENT"
                      ]
                    },
                    "ownerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeGroupId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "valueLevel": {
                      "type": "string",
                      "enum": [
                        "CART",
                        "CART_ITEM",
                        "UNIT"
                      ]
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "editable": {
                      "type": "boolean"
                    },
                    "visible": {
                      "type": "boolean"
                    },
                    "defaultValue": {},
                    "displayOrder": {
                      "type": "integer"
                    },
                    "impactFlags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "PRICING",
                          "ELIGIBILITY",
                          "COMPATIBILITY",
                          "FULFILLMENT",
                          "BILLING",
                          "INVENTORY",
                          "REPORTING",
                          "DISPLAY_ONLY"
                        ]
                      }
                    },
                    "groupingBehavior": {
                      "type": "string",
                      "enum": [
                        "NONE",
                        "GROUPING_KEY",
                        "UNIT_DETAIL"
                      ]
                    },
                    "usageFlags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "CONFIGURATION",
                          "VARIANT_SELECTOR",
                          "DISPLAY",
                          "BROWSE_FACET"
                        ]
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Create attribute assignment"
      }
    },
    "/api/v1/attribute-assignments/{attributeAssignmentId}": {
      "get": {
        "operationId": "getAttributeAssignment",
        "summary": "Get an attribute assignment",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeAssignmentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "ownerType",
                    "ownerId",
                    "attributeId",
                    "attributeGroupId",
                    "displayComponentId",
                    "valueLevel",
                    "required",
                    "editable",
                    "visible",
                    "defaultValue",
                    "displayOrder",
                    "impactFlags",
                    "groupingBehavior",
                    "usageFlags",
                    "metadata",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "ownerType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "CATALOGUE_VIEW",
                        "BUNDLE",
                        "BUNDLE_COMPONENT"
                      ]
                    },
                    "ownerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeGroupId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "valueLevel": {
                      "type": "string",
                      "enum": [
                        "CART",
                        "CART_ITEM",
                        "UNIT"
                      ]
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "editable": {
                      "type": "boolean"
                    },
                    "visible": {
                      "type": "boolean"
                    },
                    "defaultValue": {},
                    "displayOrder": {
                      "type": "integer"
                    },
                    "impactFlags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "PRICING",
                          "ELIGIBILITY",
                          "COMPATIBILITY",
                          "FULFILLMENT",
                          "BILLING",
                          "INVENTORY",
                          "REPORTING",
                          "DISPLAY_ONLY"
                        ]
                      }
                    },
                    "groupingBehavior": {
                      "type": "string",
                      "enum": [
                        "NONE",
                        "GROUPING_KEY",
                        "UNIT_DETAIL"
                      ]
                    },
                    "usageFlags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "CONFIGURATION",
                          "VARIANT_SELECTOR",
                          "DISPLAY",
                          "BROWSE_FACET"
                        ]
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Get attribute assignment"
      },
      "patch": {
        "operationId": "updateAttributeAssignment",
        "summary": "Update an attribute assignment",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "attributeGroupId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributeGroupCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_]{0,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayComponentId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayComponentCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "editable": {
                    "type": "boolean"
                  },
                  "visible": {
                    "type": "boolean"
                  },
                  "defaultValue": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "impactFlags": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "PRICING",
                        "ELIGIBILITY",
                        "COMPATIBILITY",
                        "FULFILLMENT",
                        "BILLING",
                        "INVENTORY",
                        "REPORTING",
                        "DISPLAY_ONLY"
                      ]
                    }
                  },
                  "groupingBehavior": {
                    "type": "string",
                    "enum": [
                      "NONE",
                      "GROUPING_KEY",
                      "UNIT_DETAIL"
                    ]
                  },
                  "usageFlags": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "CONFIGURATION",
                        "VARIANT_SELECTOR",
                        "DISPLAY",
                        "BROWSE_FACET"
                      ]
                    }
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "valueLevel": {
                    "type": "string",
                    "enum": [
                      "CART",
                      "CART_ITEM",
                      "UNIT"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeAssignmentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "ownerType",
                    "ownerId",
                    "attributeId",
                    "attributeGroupId",
                    "displayComponentId",
                    "valueLevel",
                    "required",
                    "editable",
                    "visible",
                    "defaultValue",
                    "displayOrder",
                    "impactFlags",
                    "groupingBehavior",
                    "usageFlags",
                    "metadata",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "ownerType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "CATALOGUE_VIEW",
                        "BUNDLE",
                        "BUNDLE_COMPONENT"
                      ]
                    },
                    "ownerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeGroupId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "valueLevel": {
                      "type": "string",
                      "enum": [
                        "CART",
                        "CART_ITEM",
                        "UNIT"
                      ]
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "editable": {
                      "type": "boolean"
                    },
                    "visible": {
                      "type": "boolean"
                    },
                    "defaultValue": {},
                    "displayOrder": {
                      "type": "integer"
                    },
                    "impactFlags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "PRICING",
                          "ELIGIBILITY",
                          "COMPATIBILITY",
                          "FULFILLMENT",
                          "BILLING",
                          "INVENTORY",
                          "REPORTING",
                          "DISPLAY_ONLY"
                        ]
                      }
                    },
                    "groupingBehavior": {
                      "type": "string",
                      "enum": [
                        "NONE",
                        "GROUPING_KEY",
                        "UNIT_DETAIL"
                      ]
                    },
                    "usageFlags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "CONFIGURATION",
                          "VARIANT_SELECTOR",
                          "DISPLAY",
                          "BROWSE_FACET"
                        ]
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Update attribute assignment"
      },
      "delete": {
        "operationId": "deleteAttributeAssignment",
        "summary": "Delete an attribute assignment",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeAssignmentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete attribute assignment"
      }
    },
    "/api/v1/bundles": {
      "get": {
        "operationId": "listBundles",
        "summary": "List packages and solutions",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "kind",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "code",
                          "name",
                          "description",
                          "kind",
                          "status",
                          "effectiveFrom",
                          "effectiveTo",
                          "standaloneSellable",
                          "visibility",
                          "facts",
                          "instanceNoun",
                          "instanceLabelAttributes",
                          "aliases",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "effectiveFrom": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "standaloneSellable": {
                            "type": "boolean"
                          },
                          "visibility": {
                            "type": "string",
                            "enum": [
                              "PUBLIC",
                              "RESTRICTED"
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceNoun": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "singular",
                                  "plural"
                                ],
                                "properties": {
                                  "singular": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 40
                                  },
                                  "plural": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 40
                                  }
                                },
                                "description": "What one instance is called, singular and plural."
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "instanceLabelAttributes": {
                            "type": "array",
                            "maxItems": 3,
                            "items": {
                              "type": "string"
                            },
                            "description": "Ordered attribute codes whose values name one instance."
                          },
                          "aliases": {
                            "type": "array",
                            "maxItems": 10,
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 60
                            },
                            "description": "Other names for this record. Browse search matches them."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createBundle",
        "summary": "Create a package or solution",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "PACKAGE",
                      "SOLUTION"
                    ]
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "standaloneSellable": {
                    "default": true,
                    "type": "boolean"
                  },
                  "visibility": {
                    "default": "PUBLIC",
                    "type": "string",
                    "enum": [
                      "PUBLIC",
                      "RESTRICTED"
                    ]
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "instanceNoun": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "singular": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What one is called, in the catalogue's own words."
                          },
                          "plural": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What several are called."
                          }
                        },
                        "required": [
                          "singular",
                          "plural"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "instanceLabelAttributes": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                    }
                  },
                  "aliases": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  }
                },
                "required": [
                  "code",
                  "name",
                  "kind"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "kind",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "standaloneSellable",
                    "visibility",
                    "facts",
                    "instanceNoun",
                    "instanceLabelAttributes",
                    "aliases",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "standaloneSellable": {
                      "type": "boolean"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "RESTRICTED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "instanceNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one instance is called, singular and plural."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "instanceLabelAttributes": {
                      "type": "array",
                      "maxItems": 3,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered attribute codes whose values name one instance."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/bundles/{bundleId}": {
      "get": {
        "operationId": "getBundle",
        "summary": "Get a package or solution",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "bundleId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "kind",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "standaloneSellable",
                    "visibility",
                    "facts",
                    "instanceNoun",
                    "instanceLabelAttributes",
                    "aliases",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "standaloneSellable": {
                      "type": "boolean"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "RESTRICTED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "instanceNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one instance is called, singular and plural."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "instanceLabelAttributes": {
                      "type": "array",
                      "maxItems": 3,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered attribute codes whose values name one instance."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateBundle",
        "summary": "Update a package or solution",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "standaloneSellable": {
                    "type": "boolean"
                  },
                  "visibility": {
                    "type": "string",
                    "enum": [
                      "PUBLIC",
                      "RESTRICTED"
                    ]
                  },
                  "facts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "instanceNoun": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "singular": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What one is called, in the catalogue's own words."
                          },
                          "plural": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40,
                            "description": "What several are called."
                          }
                        },
                        "required": [
                          "singular",
                          "plural"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "instanceLabelAttributes": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                    }
                  },
                  "aliases": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "bundleId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "kind",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "standaloneSellable",
                    "visibility",
                    "facts",
                    "instanceNoun",
                    "instanceLabelAttributes",
                    "aliases",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "standaloneSellable": {
                      "type": "boolean"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "RESTRICTED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "instanceNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one instance is called, singular and plural."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "instanceLabelAttributes": {
                      "type": "array",
                      "maxItems": 3,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered attribute codes whose values name one instance."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteBundle",
        "summary": "Delete a package or solution",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "bundleId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete an unused package or solution"
      }
    },
    "/api/v1/product-addon-groups": {
      "get": {
        "operationId": "listProductAddonGroups",
        "summary": "List add-on groups",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_OFFERING",
                "PRODUCT_VARIANT",
                "PACKAGE"
              ]
            },
            "in": "query",
            "name": "sourceType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "sourceCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceProductOfferingId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "sourceProductOfferingCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "sourceType",
                          "sourceId",
                          "code",
                          "name",
                          "description",
                          "minSelect",
                          "maxSelect",
                          "displayOrder",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE"
                            ]
                          },
                          "sourceId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "minSelect": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxSelect": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createProductAddonGroup",
        "summary": "Create an add-on group",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "sourceType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE"
                    ]
                  },
                  "sourceId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "sourceCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "sourceProductOfferingId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "sourceProductOfferingCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "minSelect": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxSelect": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": [
                  "sourceType",
                  "code",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "sourceType",
                    "sourceId",
                    "code",
                    "name",
                    "description",
                    "minSelect",
                    "maxSelect",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "sourceId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/product-addon-groups/{addonGroupId}": {
      "get": {
        "operationId": "getProductAddonGroup",
        "summary": "Get an add-on group",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "addonGroupId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "sourceType",
                    "sourceId",
                    "code",
                    "name",
                    "description",
                    "minSelect",
                    "maxSelect",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "sourceId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateProductAddonGroup",
        "summary": "Update an add-on group",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "minSelect": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxSelect": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "addonGroupId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "sourceType",
                    "sourceId",
                    "code",
                    "name",
                    "description",
                    "minSelect",
                    "maxSelect",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "sourceId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteProductAddonGroup",
        "summary": "Delete an add-on group",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "addonGroupId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete an unused add-on group"
      }
    },
    "/api/v1/catalogue-relationships": {
      "get": {
        "operationId": "listCatalogueRelationships",
        "summary": "List relationships",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_OFFERING",
                "PRODUCT_VARIANT",
                "PACKAGE"
              ]
            },
            "in": "query",
            "name": "sourceType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "sourceCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceProductOfferingId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "sourceProductOfferingCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_OFFERING",
                "PRODUCT_VARIANT",
                "PACKAGE"
              ]
            },
            "in": "query",
            "name": "targetType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "targetId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "targetCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "targetProductOfferingId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "targetProductOfferingCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "OPTIONAL_ADDON",
                "REQUIRED_ADDON",
                "UPGRADE_TO",
                "MIGRATES_TO"
              ]
            },
            "in": "query",
            "name": "relationshipType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "addonGroupId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "sourceType",
                          "sourceId",
                          "targetType",
                          "targetId",
                          "relationshipType",
                          "addonGroupId",
                          "minQuantity",
                          "maxQuantity",
                          "defaultQuantity",
                          "defaultSelected",
                          "required",
                          "priority",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE"
                            ]
                          },
                          "sourceId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "targetType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE"
                            ]
                          },
                          "targetId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "relationshipType": {
                            "type": "string",
                            "enum": [
                              "OPTIONAL_ADDON",
                              "REQUIRED_ADDON",
                              "UPGRADE_TO",
                              "MIGRATES_TO"
                            ]
                          },
                          "addonGroupId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "minQuantity": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxQuantity": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "defaultQuantity": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "defaultSelected": {
                            "type": "boolean"
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "priority": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List catalogue relationships"
      },
      "post": {
        "operationId": "createCatalogueRelationship",
        "summary": "Create a relationship",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "sourceType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE"
                    ]
                  },
                  "sourceId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "sourceCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "sourceProductOfferingId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "sourceProductOfferingCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "targetType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE"
                    ]
                  },
                  "targetId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "targetCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "targetProductOfferingId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "targetProductOfferingCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "relationshipType": {
                    "type": "string",
                    "enum": [
                      "OPTIONAL_ADDON",
                      "REQUIRED_ADDON",
                      "UPGRADE_TO",
                      "MIGRATES_TO"
                    ]
                  },
                  "addonGroupId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "addonGroupCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "minQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultSelected": {
                    "default": false,
                    "type": "boolean"
                  },
                  "required": {
                    "default": false,
                    "type": "boolean"
                  },
                  "priority": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": [
                  "sourceType",
                  "targetType",
                  "relationshipType"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "sourceType",
                    "sourceId",
                    "targetType",
                    "targetId",
                    "relationshipType",
                    "addonGroupId",
                    "minQuantity",
                    "maxQuantity",
                    "defaultQuantity",
                    "defaultSelected",
                    "required",
                    "priority",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "sourceId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "targetType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "targetId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "relationshipType": {
                      "type": "string",
                      "enum": [
                        "OPTIONAL_ADDON",
                        "REQUIRED_ADDON",
                        "UPGRADE_TO",
                        "MIGRATES_TO"
                      ]
                    },
                    "addonGroupId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultSelected": {
                      "type": "boolean"
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "priority": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Create a catalogue relationship"
      }
    },
    "/api/v1/catalogue-relationships/{relationshipId}": {
      "get": {
        "operationId": "getCatalogueRelationship",
        "summary": "Get a relationship",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "relationshipId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "sourceType",
                    "sourceId",
                    "targetType",
                    "targetId",
                    "relationshipType",
                    "addonGroupId",
                    "minQuantity",
                    "maxQuantity",
                    "defaultQuantity",
                    "defaultSelected",
                    "required",
                    "priority",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "sourceId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "targetType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "targetId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "relationshipType": {
                      "type": "string",
                      "enum": [
                        "OPTIONAL_ADDON",
                        "REQUIRED_ADDON",
                        "UPGRADE_TO",
                        "MIGRATES_TO"
                      ]
                    },
                    "addonGroupId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultSelected": {
                      "type": "boolean"
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "priority": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Get a catalogue relationship"
      },
      "patch": {
        "operationId": "updateCatalogueRelationship",
        "summary": "Update a relationship",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "relationshipType": {
                    "type": "string",
                    "enum": [
                      "OPTIONAL_ADDON",
                      "REQUIRED_ADDON",
                      "UPGRADE_TO",
                      "MIGRATES_TO"
                    ]
                  },
                  "addonGroupId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addonGroupCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "minQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultSelected": {
                    "type": "boolean"
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "priority": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "relationshipId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "sourceType",
                    "sourceId",
                    "targetType",
                    "targetId",
                    "relationshipType",
                    "addonGroupId",
                    "minQuantity",
                    "maxQuantity",
                    "defaultQuantity",
                    "defaultSelected",
                    "required",
                    "priority",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "sourceId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "targetType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "targetId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "relationshipType": {
                      "type": "string",
                      "enum": [
                        "OPTIONAL_ADDON",
                        "REQUIRED_ADDON",
                        "UPGRADE_TO",
                        "MIGRATES_TO"
                      ]
                    },
                    "addonGroupId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultSelected": {
                      "type": "boolean"
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "priority": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Update a catalogue relationship"
      },
      "delete": {
        "operationId": "deleteCatalogueRelationship",
        "summary": "Delete a relationship",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "relationshipId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete a catalogue relationship"
      }
    },
    "/api/v1/catalogue-views": {
      "get": {
        "operationId": "listCatalogueViews",
        "summary": "List catalogue views",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "code",
                          "name",
                          "channel",
                          "segment",
                          "market",
                          "defaultLocale",
                          "supportedLocales",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "channel": {
                            "type": "string"
                          },
                          "segment": {
                            "type": "string"
                          },
                          "market": {
                            "type": "string"
                          },
                          "defaultLocale": {
                            "type": "string"
                          },
                          "supportedLocales": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createCatalogueView",
        "summary": "Create a catalogue view",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "channel": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "segment": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "market": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "defaultLocale": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 35
                  },
                  "supportedLocales": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 2,
                      "maxLength": 35
                    }
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "required": [
                  "code",
                  "channel",
                  "segment",
                  "market",
                  "defaultLocale",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "channel",
                    "segment",
                    "market",
                    "defaultLocale",
                    "supportedLocales",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "channel": {
                      "type": "string"
                    },
                    "segment": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string"
                    },
                    "defaultLocale": {
                      "type": "string"
                    },
                    "supportedLocales": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewId}": {
      "get": {
        "operationId": "getCatalogueView",
        "summary": "Get a catalogue view",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "catalogueViewId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "channel",
                    "segment",
                    "market",
                    "defaultLocale",
                    "supportedLocales",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "channel": {
                      "type": "string"
                    },
                    "segment": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string"
                    },
                    "defaultLocale": {
                      "type": "string"
                    },
                    "supportedLocales": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateCatalogueView",
        "summary": "Update a catalogue view",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "channel": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "segment": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "market": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "defaultLocale": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 35
                  },
                  "supportedLocales": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 2,
                      "maxLength": 35
                    }
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "catalogueViewId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "channel",
                    "segment",
                    "market",
                    "defaultLocale",
                    "supportedLocales",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "channel": {
                      "type": "string"
                    },
                    "segment": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string"
                    },
                    "defaultLocale": {
                      "type": "string"
                    },
                    "supportedLocales": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteCatalogueView",
        "summary": "Delete a catalogue view",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "catalogueViewId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete an unused catalogue view"
      }
    },
    "/api/v1/categories": {
      "get": {
        "operationId": "listCategories",
        "summary": "List categories",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueViewId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueViewCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueViewId",
                          "parentCategoryId",
                          "code",
                          "name",
                          "description",
                          "displayOrder",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentCategoryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createCategory",
        "summary": "Create a category",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "catalogueViewId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueViewCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "parentCategoryId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "parentCategoryCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": [
                  "code",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueViewId",
                    "parentCategoryId",
                    "code",
                    "name",
                    "description",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCategoryId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/categories/{categoryId}": {
      "get": {
        "operationId": "getCategory",
        "summary": "Get a category",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "categoryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueViewId",
                    "parentCategoryId",
                    "code",
                    "name",
                    "description",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCategoryId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateCategory",
        "summary": "Update a category",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "parentCategoryId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "parentCategoryCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "categoryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueViewId",
                    "parentCategoryId",
                    "code",
                    "name",
                    "description",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCategoryId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteCategory",
        "summary": "Delete a category",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "categoryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete an unused category"
      }
    },
    "/api/v1/category-assignments": {
      "get": {
        "operationId": "listCategoryAssignments",
        "summary": "List category placements",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_OFFERING",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "itemType",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "itemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "categoryId",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "itemName",
                          "itemStatus",
                          "displayOrder",
                          "featured",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "categoryId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "itemStatus": {
                            "type": "string"
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "featured": {
                            "type": "boolean"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List category placements for an item"
      },
      "post": {
        "operationId": "createCategoryAssignment",
        "summary": "Place an item in a category",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "catalogueViewId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueViewCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "categoryId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "categoryCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "itemType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_OFFERING",
                      "PACKAGE",
                      "SOLUTION"
                    ]
                  },
                  "itemId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "itemCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "displayOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "featured": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "itemType"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "categoryId",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "itemStatus",
                    "displayOrder",
                    "featured",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "categoryId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "itemStatus": {
                      "type": "string"
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "featured": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/categories/{categoryId}/assignments": {
      "get": {
        "operationId": "listCategoryAssignmentsByCategory",
        "summary": "List items in a category",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "categoryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "categoryId",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "itemName",
                          "itemStatus",
                          "displayOrder",
                          "featured",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "categoryId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "itemStatus": {
                            "type": "string"
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "featured": {
                            "type": "boolean"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List offerings placed in a category"
      }
    },
    "/api/v1/categories/{categoryId}/browse-filters": {
      "get": {
        "operationId": "listBrowseFilters",
        "summary": "List browse filters",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "categoryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueViewId",
                          "categoryId",
                          "attributeId",
                          "attributeCode",
                          "label",
                          "filterType",
                          "displayControl",
                          "displayOrder",
                          "required",
                          "dependsOnFilterId",
                          "visibleCondition",
                          "optionSource",
                          "options",
                          "defaultValue",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "categoryId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "attributeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attributeCode": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "filterType": {
                            "type": "string",
                            "enum": [
                              "PICKLIST",
                              "MULTI_SELECT",
                              "BOOLEAN",
                              "RANGE",
                              "TEXT",
                              "LOCATION",
                              "DATE_RANGE"
                            ]
                          },
                          "displayControl": {
                            "type": "string",
                            "enum": [
                              "SELECT",
                              "CHECKBOXES",
                              "RADIO",
                              "TOGGLE",
                              "SLIDER",
                              "TEXT_INPUT",
                              "LOCATION_PICKER",
                              "DATE_RANGE"
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "dependsOnFilterId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "visibleCondition": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "optionSource": {
                            "type": "string",
                            "enum": [
                              "LISTING_VALUES",
                              "STATIC_VALUES"
                            ]
                          },
                          "options": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "defaultValue": {
                            "anyOf": [
                              {},
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List category browse filters"
      }
    },
    "/api/v1/browse-filters/{browseFilterId}": {
      "get": {
        "operationId": "getBrowseFilter",
        "summary": "Get a browse filter",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "browseFilterId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueViewId",
                    "categoryId",
                    "attributeId",
                    "attributeCode",
                    "label",
                    "filterType",
                    "displayControl",
                    "displayOrder",
                    "required",
                    "dependsOnFilterId",
                    "visibleCondition",
                    "optionSource",
                    "options",
                    "defaultValue",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "categoryId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributeCode": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "filterType": {
                      "type": "string",
                      "enum": [
                        "PICKLIST",
                        "MULTI_SELECT",
                        "BOOLEAN",
                        "RANGE",
                        "TEXT",
                        "LOCATION",
                        "DATE_RANGE"
                      ]
                    },
                    "displayControl": {
                      "type": "string",
                      "enum": [
                        "SELECT",
                        "CHECKBOXES",
                        "RADIO",
                        "TOGGLE",
                        "SLIDER",
                        "TEXT_INPUT",
                        "LOCATION_PICKER",
                        "DATE_RANGE"
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "dependsOnFilterId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "visibleCondition": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "optionSource": {
                      "type": "string",
                      "enum": [
                        "LISTING_VALUES",
                        "STATIC_VALUES"
                      ]
                    },
                    "options": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "defaultValue": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateBrowseFilter",
        "summary": "Update a browse filter",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "attributeId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributeCode": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "filterType": {
                    "type": "string",
                    "enum": [
                      "PICKLIST",
                      "MULTI_SELECT",
                      "BOOLEAN",
                      "RANGE",
                      "TEXT",
                      "LOCATION",
                      "DATE_RANGE"
                    ]
                  },
                  "displayControl": {
                    "type": "string",
                    "enum": [
                      "SELECT",
                      "CHECKBOXES",
                      "RADIO",
                      "TOGGLE",
                      "SLIDER",
                      "TEXT_INPUT",
                      "LOCATION_PICKER",
                      "DATE_RANGE"
                    ]
                  },
                  "displayOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "required": {
                    "type": "boolean"
                  },
                  "dependsOnFilterId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dependsOnAttributeCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_]{0,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "visibleCondition": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "optionSource": {
                    "type": "string",
                    "enum": [
                      "LISTING_VALUES",
                      "STATIC_VALUES"
                    ]
                  },
                  "options": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "defaultValue": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "browseFilterId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueViewId",
                    "categoryId",
                    "attributeId",
                    "attributeCode",
                    "label",
                    "filterType",
                    "displayControl",
                    "displayOrder",
                    "required",
                    "dependsOnFilterId",
                    "visibleCondition",
                    "optionSource",
                    "options",
                    "defaultValue",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "categoryId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributeCode": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "filterType": {
                      "type": "string",
                      "enum": [
                        "PICKLIST",
                        "MULTI_SELECT",
                        "BOOLEAN",
                        "RANGE",
                        "TEXT",
                        "LOCATION",
                        "DATE_RANGE"
                      ]
                    },
                    "displayControl": {
                      "type": "string",
                      "enum": [
                        "SELECT",
                        "CHECKBOXES",
                        "RADIO",
                        "TOGGLE",
                        "SLIDER",
                        "TEXT_INPUT",
                        "LOCATION_PICKER",
                        "DATE_RANGE"
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "dependsOnFilterId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "visibleCondition": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "optionSource": {
                      "type": "string",
                      "enum": [
                        "LISTING_VALUES",
                        "STATIC_VALUES"
                      ]
                    },
                    "options": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "defaultValue": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteBrowseFilter",
        "summary": "Delete a browse filter",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "browseFilterId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete an unused browse filter"
      }
    },
    "/api/v1/bundles/{bundleId}/components": {
      "get": {
        "operationId": "listBundleComponents",
        "summary": "List components",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "bundleId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "bundleId",
                          "code",
                          "name",
                          "description",
                          "minSelect",
                          "maxSelect",
                          "displayOrder",
                          "visibilityCondition",
                          "addMode",
                          "aliases",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "bundleId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "minSelect": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxSelect": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "visibilityCondition": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "addMode": {
                            "type": "string",
                            "enum": [
                              "LIST",
                              "NEW_ROW"
                            ],
                            "description": "How a seller adds this Solution step's products: LIST shows each product with Add; NEW_ROW ends the step with an empty row to search and choose in. Package contents are always LIST."
                          },
                          "aliases": {
                            "type": "array",
                            "maxItems": 10,
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 60
                            },
                            "description": "Other names for this record. Browse search matches them."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List components of a package or solution"
      }
    },
    "/api/v1/bundle-components/{componentId}": {
      "get": {
        "operationId": "getBundleComponent",
        "summary": "Get a component",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "componentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "bundleId",
                    "code",
                    "name",
                    "description",
                    "minSelect",
                    "maxSelect",
                    "displayOrder",
                    "visibilityCondition",
                    "addMode",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "bundleId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "visibilityCondition": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "addMode": {
                      "type": "string",
                      "enum": [
                        "LIST",
                        "NEW_ROW"
                      ],
                      "description": "How a seller adds this Solution step's products: LIST shows each product with Add; NEW_ROW ends the step with an empty row to search and choose in. Package contents are always LIST."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateBundleComponent",
        "summary": "Update a component",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "minSelect": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxSelect": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "visibilityCondition": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": true
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addMode": {
                    "type": "string",
                    "enum": [
                      "LIST",
                      "NEW_ROW"
                    ]
                  },
                  "aliases": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  },
                  "displayOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "componentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "bundleId",
                    "code",
                    "name",
                    "description",
                    "minSelect",
                    "maxSelect",
                    "displayOrder",
                    "visibilityCondition",
                    "addMode",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "bundleId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "visibilityCondition": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "addMode": {
                      "type": "string",
                      "enum": [
                        "LIST",
                        "NEW_ROW"
                      ],
                      "description": "How a seller adds this Solution step's products: LIST shows each product with Add; NEW_ROW ends the step with an empty row to search and choose in. Package contents are always LIST."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteBundleComponent",
        "summary": "Delete a component",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "componentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/bundle-components/{componentId}/options": {
      "get": {
        "operationId": "listBundleComponentOptions",
        "summary": "List component options",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "componentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "bundleComponentId",
                          "optionType",
                          "optionId",
                          "defaultSelected",
                          "minQuantity",
                          "maxQuantity",
                          "defaultQuantity",
                          "quantityMode",
                          "displayOrder",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "bundleComponentId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "optionType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_DEFINITION",
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE"
                            ]
                          },
                          "optionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "defaultSelected": {
                            "type": "boolean"
                          },
                          "minQuantity": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxQuantity": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "defaultQuantity": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantityMode": {
                            "type": "string",
                            "enum": [
                              "FOLLOW_PARENT",
                              "FIXED",
                              "USER_ENTERED"
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/bundle-component-options/{optionId}": {
      "get": {
        "operationId": "getBundleComponentOption",
        "summary": "Get a component option",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "optionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "bundleComponentId",
                    "optionType",
                    "optionId",
                    "defaultSelected",
                    "minQuantity",
                    "maxQuantity",
                    "defaultQuantity",
                    "quantityMode",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "bundleComponentId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "optionType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "optionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "defaultSelected": {
                      "type": "boolean"
                    },
                    "minQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "quantityMode": {
                      "type": "string",
                      "enum": [
                        "FOLLOW_PARENT",
                        "FIXED",
                        "USER_ENTERED"
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateBundleComponentOption",
        "summary": "Update a component option",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "defaultSelected": {
                    "type": "boolean"
                  },
                  "minQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "quantityMode": {
                    "type": "string",
                    "enum": [
                      "FOLLOW_PARENT",
                      "FIXED",
                      "USER_ENTERED"
                    ]
                  },
                  "displayOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "optionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "bundleComponentId",
                    "optionType",
                    "optionId",
                    "defaultSelected",
                    "minQuantity",
                    "maxQuantity",
                    "defaultQuantity",
                    "quantityMode",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "bundleComponentId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "optionType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "optionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "defaultSelected": {
                      "type": "boolean"
                    },
                    "minQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "quantityMode": {
                      "type": "string",
                      "enum": [
                        "FOLLOW_PARENT",
                        "FIXED",
                        "USER_ENTERED"
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteBundleComponentOption",
        "summary": "Delete a component option",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "optionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/catalogues/{catalogueCode}/rules/fields": {
      "get": {
        "operationId": "getBusinessRuleFields",
        "summary": "List rule fields",
        "tags": [
          "Catalogue Authoring — Rules"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "categories",
                    "evaluationTimings",
                    "outcomeTypes",
                    "valueTypes",
                    "fields"
                  ],
                  "properties": {
                    "categories": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "evaluationTimings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "outcomeTypes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "valueTypes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "path",
                          "label",
                          "group",
                          "valueType",
                          "minimumTiming",
                          "operators"
                        ],
                        "properties": {
                          "path": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "group": {
                            "type": "string",
                            "enum": [
                              "CUSTOMER",
                              "CART",
                              "PRODUCT",
                              "PARENT",
                              "CANDIDATE",
                              "PRICING",
                              "ATTRIBUTES",
                              "COLLECTIONS"
                            ]
                          },
                          "valueType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "CODE",
                              "NUMBER",
                              "MONEY",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME",
                              "LIST",
                              "COLLECTION"
                            ]
                          },
                          "elementType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "minimumTiming": {
                            "type": "string",
                            "enum": [
                              "IMMEDIATE",
                              "AFTER_PRICING"
                            ]
                          },
                          "allowDeclaredType": {
                            "type": "boolean"
                          },
                          "operators": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "options": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "label",
                                "value"
                              ],
                              "properties": {
                                "label": {
                                  "type": "string"
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "source": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type"
                            ],
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "SYSTEM",
                                  "ATTRIBUTE",
                                  "ATTRIBUTE_GROUP"
                                ]
                              },
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Get fields available to catalogue rules"
      }
    },
    "/api/v1/catalogues/{catalogueCode}/rules": {
      "get": {
        "operationId": "listBusinessRules",
        "summary": "List business rules",
        "tags": [
          "Catalogue Authoring — Rules"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "ELIGIBILITY",
                "COMPATIBILITY",
                "VALIDATION",
                "RECOMMENDATION",
                "APPROVAL",
                "PRICING"
              ]
            },
            "in": "query",
            "name": "category",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            },
            "in": "query",
            "name": "enabled",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "CART",
                "PRODUCT_DEFINITION",
                "SELLABLE_ITEM",
                "ADDON_OPTION"
              ]
            },
            "in": "query",
            "name": "appliesToType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "IMMEDIATE",
                "DURING_PRICING",
                "AFTER_PRICING",
                "SUBMIT_ONLY"
              ]
            },
            "in": "query",
            "name": "evaluationTiming",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "EXPRESSION",
                "DECISION_TABLE"
              ]
            },
            "in": "query",
            "name": "ruleForm",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "LIVE",
                "UNPUBLISHED_NEW",
                "UNPUBLISHED_CHANGES",
                "DISABLED_PENDING_PUBLICATION",
                "NOT_LIVE"
              ]
            },
            "in": "query",
            "name": "publicationState",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "effectiveAt",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "code",
                          "name",
                          "description",
                          "category",
                          "appliesTo",
                          "catalogueViewCodes",
                          "ruleForm",
                          "definition",
                          "evaluationTiming",
                          "enabled",
                          "effectiveFrom",
                          "effectiveTo",
                          "displayOrder",
                          "testCases",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "publication"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "category": {
                            "type": "string",
                            "enum": [
                              "ELIGIBILITY",
                              "COMPATIBILITY",
                              "VALIDATION",
                              "RECOMMENDATION",
                              "APPROVAL",
                              "PRICING"
                            ]
                          },
                          "appliesTo": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "CART"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_DEFINITION"
                                    ]
                                  },
                                  "productDefinitionCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64,
                                    "pattern": "^[A-Z][A-Z0-9_]*$"
                                  }
                                },
                                "required": [
                                  "type",
                                  "productDefinitionCode"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "SELLABLE_ITEM"
                                    ]
                                  },
                                  "itemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "itemCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64,
                                    "pattern": "^[A-Z][A-Z0-9_]*$"
                                  }
                                },
                                "required": [
                                  "type",
                                  "itemType",
                                  "itemCode"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "ADDON_OPTION"
                                    ]
                                  },
                                  "parentItemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "parentItemCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64,
                                    "pattern": "^[A-Z][A-Z0-9_]*$"
                                  },
                                  "addonGroupCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64,
                                    "pattern": "^[A-Z][A-Z0-9_]*$"
                                  },
                                  "targetItemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "targetItemCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64,
                                    "pattern": "^[A-Z][A-Z0-9_]*$"
                                  }
                                },
                                "required": [
                                  "type",
                                  "parentItemType",
                                  "parentItemCode",
                                  "addonGroupCode",
                                  "targetItemType",
                                  "targetItemCode"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "catalogueViewCodes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "ruleForm": {
                            "type": "string",
                            "enum": [
                              "EXPRESSION",
                              "DECISION_TABLE"
                            ]
                          },
                          "definition": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "evaluationTiming": {
                            "type": "string",
                            "enum": [
                              "IMMEDIATE",
                              "DURING_PRICING",
                              "AFTER_PRICING",
                              "SUBMIT_ONLY"
                            ]
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "effectiveFrom": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "testCases": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "code": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200
                                },
                                "context": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "subject": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "enum": [
                                            "CART"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "type"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "enum": [
                                            "SELLABLE_ITEM"
                                          ]
                                        },
                                        "itemType": {
                                          "type": "string",
                                          "enum": [
                                            "PRODUCT_OFFERING",
                                            "PRODUCT_VARIANT",
                                            "PACKAGE",
                                            "SOLUTION"
                                          ]
                                        },
                                        "itemCode": {
                                          "type": "string",
                                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                        },
                                        "productVariantCode": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "productDefinitionCode": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "itemType",
                                        "itemCode"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "enum": [
                                            "ADDON_OPTION"
                                          ]
                                        },
                                        "parentItemType": {
                                          "type": "string",
                                          "enum": [
                                            "PRODUCT_OFFERING",
                                            "PRODUCT_VARIANT",
                                            "PACKAGE",
                                            "SOLUTION"
                                          ]
                                        },
                                        "parentItemCode": {
                                          "type": "string",
                                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                        },
                                        "parentVariantCode": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "addonGroupCode": {
                                          "type": "string",
                                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                        },
                                        "targetItemType": {
                                          "type": "string",
                                          "enum": [
                                            "PRODUCT_OFFERING",
                                            "PRODUCT_VARIANT",
                                            "PACKAGE",
                                            "SOLUTION"
                                          ]
                                        },
                                        "targetItemCode": {
                                          "type": "string",
                                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                        },
                                        "targetVariantCode": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "type",
                                        "parentItemType",
                                        "parentItemCode",
                                        "addonGroupCode",
                                        "targetItemType",
                                        "targetItemCode"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                "expected": {
                                  "type": "object",
                                  "properties": {
                                    "matched": {
                                      "type": "boolean"
                                    },
                                    "outcomeCodes": {
                                      "maxItems": 50,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      }
                                    }
                                  },
                                  "required": [
                                    "matched"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "code",
                                "context",
                                "subject",
                                "expected"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "publication": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "state",
                              "currentPublishRunId",
                              "publishedAt",
                              "targetCatalogueViewCodes",
                              "publishedCatalogueViewCodes"
                            ],
                            "properties": {
                              "state": {
                                "type": "string",
                                "enum": [
                                  "LIVE",
                                  "UNPUBLISHED_NEW",
                                  "UNPUBLISHED_CHANGES",
                                  "DISABLED_PENDING_PUBLICATION",
                                  "NOT_LIVE"
                                ]
                              },
                              "currentPublishRunId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "publishedAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targetCatalogueViewCodes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "publishedCatalogueViewCodes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "total": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createBusinessRule",
        "summary": "Create a business rule",
        "tags": [
          "Catalogue Authoring — Rules"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "code",
                  "name",
                  "category",
                  "appliesTo",
                  "definition"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]*$",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "catalogueViewCodes": {
                    "type": "array",
                    "maxItems": 100,
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z][A-Z0-9_]*$",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "ELIGIBILITY",
                      "COMPATIBILITY",
                      "VALIDATION",
                      "RECOMMENDATION",
                      "APPROVAL",
                      "PRICING"
                    ]
                  },
                  "appliesTo": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "CART"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_DEFINITION"
                            ]
                          },
                          "productDefinitionCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          }
                        },
                        "required": [
                          "type",
                          "productDefinitionCode"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "SELLABLE_ITEM"
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          }
                        },
                        "required": [
                          "type",
                          "itemType",
                          "itemCode"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "ADDON_OPTION"
                            ]
                          },
                          "parentItemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "parentItemCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          },
                          "addonGroupCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          },
                          "targetItemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "targetItemCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          }
                        },
                        "required": [
                          "type",
                          "parentItemType",
                          "parentItemCode",
                          "addonGroupCode",
                          "targetItemType",
                          "targetItemCode"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "evaluationTiming": {
                    "type": "string",
                    "enum": [
                      "IMMEDIATE",
                      "DURING_PRICING",
                      "AFTER_PRICING",
                      "SUBMIT_ONLY"
                    ]
                  },
                  "definition": {
                    "$ref": "#/components/schemas/def-1"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "effectiveFrom": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effectiveTo": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "testCases": {
                    "type": "array",
                    "maxItems": 100,
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "context": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "subject": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "CART"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "SELLABLE_ITEM"
                                  ]
                                },
                                "itemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PRODUCT_VARIANT",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "itemCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "productVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productDefinitionCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "itemType",
                                "itemCode"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "ADDON_OPTION"
                                  ]
                                },
                                "parentItemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PRODUCT_VARIANT",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "parentItemCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "parentVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "addonGroupCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "targetItemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PRODUCT_VARIANT",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "targetItemCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "targetVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "parentItemType",
                                "parentItemCode",
                                "addonGroupCode",
                                "targetItemType",
                                "targetItemCode"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "expected": {
                          "type": "object",
                          "properties": {
                            "matched": {
                              "type": "boolean"
                            },
                            "outcomeCodes": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                              }
                            }
                          },
                          "required": [
                            "matched"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "code",
                        "context",
                        "subject",
                        "expected"
                      ],
                      "additionalProperties": false
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "category",
                    "appliesTo",
                    "catalogueViewCodes",
                    "ruleForm",
                    "definition",
                    "evaluationTiming",
                    "enabled",
                    "effectiveFrom",
                    "effectiveTo",
                    "displayOrder",
                    "testCases",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "publication"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "category": {
                      "type": "string",
                      "enum": [
                        "ELIGIBILITY",
                        "COMPATIBILITY",
                        "VALIDATION",
                        "RECOMMENDATION",
                        "APPROVAL",
                        "PRICING"
                      ]
                    },
                    "appliesTo": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "CART"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_DEFINITION"
                              ]
                            },
                            "productDefinitionCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            }
                          },
                          "required": [
                            "type",
                            "productDefinitionCode"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "SELLABLE_ITEM"
                              ]
                            },
                            "itemType": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PRODUCT_VARIANT",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "itemCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            }
                          },
                          "required": [
                            "type",
                            "itemType",
                            "itemCode"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "ADDON_OPTION"
                              ]
                            },
                            "parentItemType": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PRODUCT_VARIANT",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "parentItemCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            },
                            "addonGroupCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            },
                            "targetItemType": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PRODUCT_VARIANT",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "targetItemCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            }
                          },
                          "required": [
                            "type",
                            "parentItemType",
                            "parentItemCode",
                            "addonGroupCode",
                            "targetItemType",
                            "targetItemCode"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "catalogueViewCodes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "ruleForm": {
                      "type": "string",
                      "enum": [
                        "EXPRESSION",
                        "DECISION_TABLE"
                      ]
                    },
                    "definition": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "evaluationTiming": {
                      "type": "string",
                      "enum": [
                        "IMMEDIATE",
                        "DURING_PRICING",
                        "AFTER_PRICING",
                        "SUBMIT_ONLY"
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "effectiveFrom": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "testCases": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "context": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "subject": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "CART"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "SELLABLE_ITEM"
                                    ]
                                  },
                                  "itemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "itemCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "productVariantCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "productDefinitionCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "itemType",
                                  "itemCode"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "ADDON_OPTION"
                                    ]
                                  },
                                  "parentItemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "parentItemCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "parentVariantCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "addonGroupCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "targetItemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "targetItemCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "targetVariantCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "parentItemType",
                                  "parentItemCode",
                                  "addonGroupCode",
                                  "targetItemType",
                                  "targetItemCode"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "expected": {
                            "type": "object",
                            "properties": {
                              "matched": {
                                "type": "boolean"
                              },
                              "outcomeCodes": {
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                }
                              }
                            },
                            "required": [
                              "matched"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "code",
                          "context",
                          "subject",
                          "expected"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "publication": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "state",
                        "currentPublishRunId",
                        "publishedAt",
                        "targetCatalogueViewCodes",
                        "publishedCatalogueViewCodes"
                      ],
                      "properties": {
                        "state": {
                          "type": "string",
                          "enum": [
                            "LIVE",
                            "UNPUBLISHED_NEW",
                            "UNPUBLISHED_CHANGES",
                            "DISABLED_PENDING_PUBLICATION",
                            "NOT_LIVE"
                          ]
                        },
                        "currentPublishRunId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "publishedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "targetCatalogueViewCodes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "publishedCatalogueViewCodes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/catalogues/{catalogueCode}/rules/{ruleCode}": {
      "get": {
        "operationId": "getBusinessRule",
        "summary": "Get a business rule",
        "tags": [
          "Catalogue Authoring — Rules"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "ruleCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "category",
                    "appliesTo",
                    "catalogueViewCodes",
                    "ruleForm",
                    "definition",
                    "evaluationTiming",
                    "enabled",
                    "effectiveFrom",
                    "effectiveTo",
                    "displayOrder",
                    "testCases",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "publication"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "category": {
                      "type": "string",
                      "enum": [
                        "ELIGIBILITY",
                        "COMPATIBILITY",
                        "VALIDATION",
                        "RECOMMENDATION",
                        "APPROVAL",
                        "PRICING"
                      ]
                    },
                    "appliesTo": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "CART"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_DEFINITION"
                              ]
                            },
                            "productDefinitionCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            }
                          },
                          "required": [
                            "type",
                            "productDefinitionCode"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "SELLABLE_ITEM"
                              ]
                            },
                            "itemType": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PRODUCT_VARIANT",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "itemCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            }
                          },
                          "required": [
                            "type",
                            "itemType",
                            "itemCode"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "ADDON_OPTION"
                              ]
                            },
                            "parentItemType": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PRODUCT_VARIANT",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "parentItemCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            },
                            "addonGroupCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            },
                            "targetItemType": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PRODUCT_VARIANT",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "targetItemCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            }
                          },
                          "required": [
                            "type",
                            "parentItemType",
                            "parentItemCode",
                            "addonGroupCode",
                            "targetItemType",
                            "targetItemCode"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "catalogueViewCodes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "ruleForm": {
                      "type": "string",
                      "enum": [
                        "EXPRESSION",
                        "DECISION_TABLE"
                      ]
                    },
                    "definition": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "evaluationTiming": {
                      "type": "string",
                      "enum": [
                        "IMMEDIATE",
                        "DURING_PRICING",
                        "AFTER_PRICING",
                        "SUBMIT_ONLY"
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "effectiveFrom": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "testCases": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "context": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "subject": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "CART"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "SELLABLE_ITEM"
                                    ]
                                  },
                                  "itemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "itemCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "productVariantCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "productDefinitionCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "itemType",
                                  "itemCode"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "ADDON_OPTION"
                                    ]
                                  },
                                  "parentItemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "parentItemCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "parentVariantCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "addonGroupCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "targetItemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "targetItemCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "targetVariantCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "parentItemType",
                                  "parentItemCode",
                                  "addonGroupCode",
                                  "targetItemType",
                                  "targetItemCode"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "expected": {
                            "type": "object",
                            "properties": {
                              "matched": {
                                "type": "boolean"
                              },
                              "outcomeCodes": {
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                }
                              }
                            },
                            "required": [
                              "matched"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "code",
                          "context",
                          "subject",
                          "expected"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "publication": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "state",
                        "currentPublishRunId",
                        "publishedAt",
                        "targetCatalogueViewCodes",
                        "publishedCatalogueViewCodes"
                      ],
                      "properties": {
                        "state": {
                          "type": "string",
                          "enum": [
                            "LIVE",
                            "UNPUBLISHED_NEW",
                            "UNPUBLISHED_CHANGES",
                            "DISABLED_PENDING_PUBLICATION",
                            "NOT_LIVE"
                          ]
                        },
                        "currentPublishRunId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "publishedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "targetCatalogueViewCodes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "publishedCatalogueViewCodes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateBusinessRule",
        "summary": "Update a business rule",
        "tags": [
          "Catalogue Authoring — Rules"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "category": {
                    "type": "string",
                    "enum": [
                      "ELIGIBILITY",
                      "COMPATIBILITY",
                      "VALIDATION",
                      "RECOMMENDATION",
                      "APPROVAL",
                      "PRICING"
                    ]
                  },
                  "appliesTo": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "CART"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_DEFINITION"
                            ]
                          },
                          "productDefinitionCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          }
                        },
                        "required": [
                          "type",
                          "productDefinitionCode"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "SELLABLE_ITEM"
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          }
                        },
                        "required": [
                          "type",
                          "itemType",
                          "itemCode"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "ADDON_OPTION"
                            ]
                          },
                          "parentItemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "parentItemCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          },
                          "addonGroupCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          },
                          "targetItemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "targetItemCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          }
                        },
                        "required": [
                          "type",
                          "parentItemType",
                          "parentItemCode",
                          "addonGroupCode",
                          "targetItemType",
                          "targetItemCode"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "catalogueViewCodes": {
                    "type": "array",
                    "maxItems": 100,
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z][A-Z0-9_]*$",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  },
                  "evaluationTiming": {
                    "type": "string",
                    "enum": [
                      "IMMEDIATE",
                      "DURING_PRICING",
                      "AFTER_PRICING",
                      "SUBMIT_ONLY"
                    ]
                  },
                  "definition": {
                    "$ref": "#/components/schemas/def-1"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "effectiveFrom": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effectiveTo": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "displayOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "testCases": {
                    "type": "array",
                    "maxItems": 100,
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "context": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "subject": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "CART"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "SELLABLE_ITEM"
                                  ]
                                },
                                "itemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PRODUCT_VARIANT",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "itemCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "productVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productDefinitionCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "itemType",
                                "itemCode"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "ADDON_OPTION"
                                  ]
                                },
                                "parentItemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PRODUCT_VARIANT",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "parentItemCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "parentVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "addonGroupCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "targetItemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PRODUCT_VARIANT",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "targetItemCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "targetVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "parentItemType",
                                "parentItemCode",
                                "addonGroupCode",
                                "targetItemType",
                                "targetItemCode"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "expected": {
                          "type": "object",
                          "properties": {
                            "matched": {
                              "type": "boolean"
                            },
                            "outcomeCodes": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                              }
                            }
                          },
                          "required": [
                            "matched"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "code",
                        "context",
                        "subject",
                        "expected"
                      ],
                      "additionalProperties": false
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "ruleCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "category",
                    "appliesTo",
                    "catalogueViewCodes",
                    "ruleForm",
                    "definition",
                    "evaluationTiming",
                    "enabled",
                    "effectiveFrom",
                    "effectiveTo",
                    "displayOrder",
                    "testCases",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "publication"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "category": {
                      "type": "string",
                      "enum": [
                        "ELIGIBILITY",
                        "COMPATIBILITY",
                        "VALIDATION",
                        "RECOMMENDATION",
                        "APPROVAL",
                        "PRICING"
                      ]
                    },
                    "appliesTo": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "CART"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_DEFINITION"
                              ]
                            },
                            "productDefinitionCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            }
                          },
                          "required": [
                            "type",
                            "productDefinitionCode"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "SELLABLE_ITEM"
                              ]
                            },
                            "itemType": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PRODUCT_VARIANT",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "itemCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            }
                          },
                          "required": [
                            "type",
                            "itemType",
                            "itemCode"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "ADDON_OPTION"
                              ]
                            },
                            "parentItemType": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PRODUCT_VARIANT",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "parentItemCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            },
                            "addonGroupCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            },
                            "targetItemType": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PRODUCT_VARIANT",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "targetItemCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            }
                          },
                          "required": [
                            "type",
                            "parentItemType",
                            "parentItemCode",
                            "addonGroupCode",
                            "targetItemType",
                            "targetItemCode"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "catalogueViewCodes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "ruleForm": {
                      "type": "string",
                      "enum": [
                        "EXPRESSION",
                        "DECISION_TABLE"
                      ]
                    },
                    "definition": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "evaluationTiming": {
                      "type": "string",
                      "enum": [
                        "IMMEDIATE",
                        "DURING_PRICING",
                        "AFTER_PRICING",
                        "SUBMIT_ONLY"
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "effectiveFrom": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "testCases": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "context": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "subject": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "CART"
                                    ]
                                  }
                                },
                                "required": [
                                  "type"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "SELLABLE_ITEM"
                                    ]
                                  },
                                  "itemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "itemCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "productVariantCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "productDefinitionCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "itemType",
                                  "itemCode"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "ADDON_OPTION"
                                    ]
                                  },
                                  "parentItemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "parentItemCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "parentVariantCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "addonGroupCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "targetItemType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "targetItemCode": {
                                    "type": "string",
                                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                  },
                                  "targetVariantCode": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "type",
                                  "parentItemType",
                                  "parentItemCode",
                                  "addonGroupCode",
                                  "targetItemType",
                                  "targetItemCode"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          "expected": {
                            "type": "object",
                            "properties": {
                              "matched": {
                                "type": "boolean"
                              },
                              "outcomeCodes": {
                                "maxItems": 50,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                }
                              }
                            },
                            "required": [
                              "matched"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "code",
                          "context",
                          "subject",
                          "expected"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "publication": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "state",
                        "currentPublishRunId",
                        "publishedAt",
                        "targetCatalogueViewCodes",
                        "publishedCatalogueViewCodes"
                      ],
                      "properties": {
                        "state": {
                          "type": "string",
                          "enum": [
                            "LIVE",
                            "UNPUBLISHED_NEW",
                            "UNPUBLISHED_CHANGES",
                            "DISABLED_PENDING_PUBLICATION",
                            "NOT_LIVE"
                          ]
                        },
                        "currentPublishRunId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "publishedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "targetCatalogueViewCodes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "publishedCatalogueViewCodes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteBusinessRule",
        "summary": "Delete a business rule",
        "tags": [
          "Catalogue Authoring — Rules"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "ruleCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/catalogue-publishes": {
      "get": {
        "operationId": "listCataloguePublishes",
        "summary": "List publishes",
        "tags": [
          "Catalogue Publishing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PREVIEW",
                "PUBLISH"
              ]
            },
            "in": "query",
            "name": "kind",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "QUEUED",
                "RUNNING",
                "READY",
                "BLOCKED",
                "STALE",
                "SUCCEEDED",
                "FAILED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "nextCursor",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "catalogueId",
                          "kind",
                          "status",
                          "trigger",
                          "baselinePublishRunId",
                          "lastChangeId",
                          "requestedBy",
                          "queuedAt",
                          "startedAt",
                          "completedAt",
                          "preparedAt",
                          "confirmedAt",
                          "confirmedBy",
                          "progress",
                          "validationReport",
                          "counts",
                          "error",
                          "metadata",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "PREVIEW",
                              "PUBLISH"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "QUEUED",
                              "RUNNING",
                              "READY",
                              "BLOCKED",
                              "STALE",
                              "SUCCEEDED",
                              "FAILED"
                            ]
                          },
                          "trigger": {
                            "type": "string",
                            "enum": [
                              "MANUAL",
                              "AGREEMENT_ACTIVATION"
                            ]
                          },
                          "baselinePublishRunId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastChangeId": {
                            "type": "string",
                            "pattern": "^[0-9]+$"
                          },
                          "requestedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "queuedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "startedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "preparedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confirmedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confirmedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "progress": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "validationReport": {
                            "type": "object",
                            "properties": {
                              "valid": {
                                "type": "boolean"
                              },
                              "errors": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "code",
                                    "message"
                                  ],
                                  "properties": {
                                    "code": {
                                      "type": "string"
                                    },
                                    "message": {
                                      "type": "string"
                                    }
                                  },
                                  "additionalProperties": true
                                }
                              },
                              "warnings": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "required": [
                                    "code",
                                    "message"
                                  ],
                                  "properties": {
                                    "code": {
                                      "type": "string"
                                    },
                                    "message": {
                                      "type": "string"
                                    }
                                  },
                                  "additionalProperties": true
                                }
                              }
                            },
                            "additionalProperties": true
                          },
                          "counts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "error": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "410": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHING",
        "description": "List publish history"
      },
      "post": {
        "operationId": "confirmCataloguePublish",
        "summary": "Publish a catalogue",
        "tags": [
          "Catalogue Publishing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "previewId"
                ],
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "catalogueCode": {
                    "type": "string"
                  },
                  "previewId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "expectedLastChangeId": {
                    "type": "string",
                    "pattern": "^(0|[1-9][0-9]{0,18})$",
                    "description": "The change watermark that was reviewed; a different one returns publish_preview_stale."
                  }
                },
                "additionalProperties": false,
                "oneOf": [
                  {
                    "required": [
                      "catalogueId"
                    ],
                    "not": {
                      "required": [
                        "catalogueCode"
                      ]
                    }
                  },
                  {
                    "required": [
                      "catalogueCode"
                    ],
                    "not": {
                      "required": [
                        "catalogueId"
                      ]
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "published",
                    "run",
                    "current"
                  ],
                  "properties": {
                    "published": {
                      "type": "boolean"
                    },
                    "run": {
                      "type": "object",
                      "required": [
                        "id",
                        "catalogueId",
                        "kind",
                        "status",
                        "trigger",
                        "baselinePublishRunId",
                        "lastChangeId",
                        "requestedBy",
                        "queuedAt",
                        "startedAt",
                        "completedAt",
                        "preparedAt",
                        "confirmedAt",
                        "confirmedBy",
                        "progress",
                        "validationReport",
                        "counts",
                        "error",
                        "metadata",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "PREVIEW",
                            "PUBLISH"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "QUEUED",
                            "RUNNING",
                            "READY",
                            "BLOCKED",
                            "STALE",
                            "SUCCEEDED",
                            "FAILED"
                          ]
                        },
                        "trigger": {
                          "type": "string",
                          "enum": [
                            "MANUAL",
                            "AGREEMENT_ACTIVATION"
                          ]
                        },
                        "baselinePublishRunId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastChangeId": {
                          "type": "string",
                          "pattern": "^[0-9]+$"
                        },
                        "requestedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "queuedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "startedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "completedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "preparedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "confirmedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "confirmedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "progress": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "validationReport": {
                          "type": "object",
                          "properties": {
                            "valid": {
                              "type": "boolean"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "code",
                                  "message"
                                ],
                                "properties": {
                                  "code": {
                                    "type": "string"
                                  },
                                  "message": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": true
                              }
                            },
                            "warnings": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "required": [
                                  "code",
                                  "message"
                                ],
                                "properties": {
                                  "code": {
                                    "type": "string"
                                  },
                                  "message": {
                                    "type": "string"
                                  }
                                },
                                "additionalProperties": true
                              }
                            }
                          },
                          "additionalProperties": true
                        },
                        "counts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "error": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": true
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "additionalProperties": false
                    },
                    "current": {
                      "type": "object",
                      "required": [
                        "catalogueId",
                        "publishRunId",
                        "swappedAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "publishRunId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "swappedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "410": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.publish"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "PUBLISHING",
        "description": "Publish a prepared preview. Every change in the preview goes live together."
      }
    },
    "/api/v1/catalogue-publishes/status": {
      "get": {
        "operationId": "getCataloguePublishStatus",
        "summary": "Get publish status",
        "tags": [
          "Catalogue Publishing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "catalogueId",
                    "state",
                    "hasUnpublishedChanges",
                    "pendingChangeCount",
                    "pendingRecordCount",
                    "current",
                    "preview"
                  ],
                  "properties": {
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "NEVER_PUBLISHED",
                        "UP_TO_DATE",
                        "CHANGES_PENDING",
                        "PREPARING",
                        "READY",
                        "BLOCKED",
                        "FAILED",
                        "STALE"
                      ]
                    },
                    "hasUnpublishedChanges": {
                      "type": "boolean"
                    },
                    "pendingChangeCount": {
                      "type": "integer"
                    },
                    "pendingRecordCount": {
                      "type": "integer"
                    },
                    "current": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "catalogueId",
                            "kind",
                            "status",
                            "trigger",
                            "baselinePublishRunId",
                            "lastChangeId",
                            "requestedBy",
                            "queuedAt",
                            "startedAt",
                            "completedAt",
                            "preparedAt",
                            "confirmedAt",
                            "confirmedBy",
                            "progress",
                            "validationReport",
                            "counts",
                            "error",
                            "metadata",
                            "createdAt",
                            "updatedAt"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "catalogueId": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "PREVIEW",
                                "PUBLISH"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "QUEUED",
                                "RUNNING",
                                "READY",
                                "BLOCKED",
                                "STALE",
                                "SUCCEEDED",
                                "FAILED"
                              ]
                            },
                            "trigger": {
                              "type": "string",
                              "enum": [
                                "MANUAL",
                                "AGREEMENT_ACTIVATION"
                              ]
                            },
                            "baselinePublishRunId": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastChangeId": {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            "requestedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "queuedAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "startedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "completedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "preparedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confirmedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confirmedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "progress": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "validationReport": {
                              "type": "object",
                              "properties": {
                                "valid": {
                                  "type": "boolean"
                                },
                                "errors": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "required": [
                                      "code",
                                      "message"
                                    ],
                                    "properties": {
                                      "code": {
                                        "type": "string"
                                      },
                                      "message": {
                                        "type": "string"
                                      }
                                    },
                                    "additionalProperties": true
                                  }
                                },
                                "warnings": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "required": [
                                      "code",
                                      "message"
                                    ],
                                    "properties": {
                                      "code": {
                                        "type": "string"
                                      },
                                      "message": {
                                        "type": "string"
                                      }
                                    },
                                    "additionalProperties": true
                                  }
                                }
                              },
                              "additionalProperties": true
                            },
                            "counts": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time"
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "preview": {
                      "anyOf": [
                        {
                          "type": "object",
                          "required": [
                            "id",
                            "catalogueId",
                            "kind",
                            "status",
                            "trigger",
                            "baselinePublishRunId",
                            "lastChangeId",
                            "requestedBy",
                            "queuedAt",
                            "startedAt",
                            "completedAt",
                            "preparedAt",
                            "confirmedAt",
                            "confirmedBy",
                            "progress",
                            "validationReport",
                            "counts",
                            "error",
                            "metadata",
                            "createdAt",
                            "updatedAt"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "catalogueId": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "PREVIEW",
                                "PUBLISH"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "QUEUED",
                                "RUNNING",
                                "READY",
                                "BLOCKED",
                                "STALE",
                                "SUCCEEDED",
                                "FAILED"
                              ]
                            },
                            "trigger": {
                              "type": "string",
                              "enum": [
                                "MANUAL",
                                "AGREEMENT_ACTIVATION"
                              ]
                            },
                            "baselinePublishRunId": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastChangeId": {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            "requestedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "queuedAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "startedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "completedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "preparedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confirmedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "confirmedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "progress": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "validationReport": {
                              "type": "object",
                              "properties": {
                                "valid": {
                                  "type": "boolean"
                                },
                                "errors": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "required": [
                                      "code",
                                      "message"
                                    ],
                                    "properties": {
                                      "code": {
                                        "type": "string"
                                      },
                                      "message": {
                                        "type": "string"
                                      }
                                    },
                                    "additionalProperties": true
                                  }
                                },
                                "warnings": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "required": [
                                      "code",
                                      "message"
                                    ],
                                    "properties": {
                                      "code": {
                                        "type": "string"
                                      },
                                      "message": {
                                        "type": "string"
                                      }
                                    },
                                    "additionalProperties": true
                                  }
                                }
                              },
                              "additionalProperties": true
                            },
                            "counts": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "error": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "createdAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "updatedAt": {
                              "type": "string",
                              "format": "date-time"
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "410": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHING",
        "description": "Get current publication and pending-change status"
      }
    },
    "/api/v1/catalogue-publishes/current": {
      "get": {
        "operationId": "getCurrentCataloguePublish",
        "summary": "Get the current publish",
        "tags": [
          "Catalogue Publishing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "catalogueId",
                    "publishRunId",
                    "swappedAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "swappedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "410": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHING",
        "description": "Get the current live publish pointer"
      }
    },
    "/api/v1/catalogue-publishes/{publishRunId}": {
      "get": {
        "operationId": "getCataloguePublish",
        "summary": "Get a publish",
        "tags": [
          "Catalogue Publishing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "path",
            "name": "publishRunId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "catalogueId",
                    "kind",
                    "status",
                    "trigger",
                    "baselinePublishRunId",
                    "lastChangeId",
                    "requestedBy",
                    "queuedAt",
                    "startedAt",
                    "completedAt",
                    "preparedAt",
                    "confirmedAt",
                    "confirmedBy",
                    "progress",
                    "validationReport",
                    "counts",
                    "error",
                    "metadata",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "PREVIEW",
                        "PUBLISH"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "QUEUED",
                        "RUNNING",
                        "READY",
                        "BLOCKED",
                        "STALE",
                        "SUCCEEDED",
                        "FAILED"
                      ]
                    },
                    "trigger": {
                      "type": "string",
                      "enum": [
                        "MANUAL",
                        "AGREEMENT_ACTIVATION"
                      ]
                    },
                    "baselinePublishRunId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastChangeId": {
                      "type": "string",
                      "pattern": "^[0-9]+$"
                    },
                    "requestedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "queuedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "startedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "completedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "preparedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "confirmedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "confirmedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "progress": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationReport": {
                      "type": "object",
                      "properties": {
                        "valid": {
                          "type": "boolean"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "counts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "410": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHING",
        "description": "Get a publish history record"
      }
    },
    "/api/v1/catalogue-publish-previews/{previewId}": {
      "get": {
        "operationId": "getCataloguePublishPreview",
        "summary": "Get a publish preview",
        "tags": [
          "Catalogue Publishing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "path",
            "name": "previewId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "catalogueId",
                    "kind",
                    "status",
                    "trigger",
                    "baselinePublishRunId",
                    "lastChangeId",
                    "requestedBy",
                    "queuedAt",
                    "startedAt",
                    "completedAt",
                    "preparedAt",
                    "confirmedAt",
                    "confirmedBy",
                    "progress",
                    "validationReport",
                    "counts",
                    "error",
                    "metadata",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "PREVIEW",
                        "PUBLISH"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "QUEUED",
                        "RUNNING",
                        "READY",
                        "BLOCKED",
                        "STALE",
                        "SUCCEEDED",
                        "FAILED"
                      ]
                    },
                    "trigger": {
                      "type": "string",
                      "enum": [
                        "MANUAL",
                        "AGREEMENT_ACTIVATION"
                      ]
                    },
                    "baselinePublishRunId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastChangeId": {
                      "type": "string",
                      "pattern": "^[0-9]+$"
                    },
                    "requestedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "queuedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "startedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "completedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "preparedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "confirmedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "confirmedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "progress": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationReport": {
                      "type": "object",
                      "properties": {
                        "valid": {
                          "type": "boolean"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "counts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "410": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHING"
      }
    },
    "/api/v1/catalogue-home/summary": {
      "get": {
        "operationId": "getCatalogueHomeSummary",
        "summary": "Get catalogue overview",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "catalogueId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "generatedAt",
                    "catalogue",
                    "availableModules",
                    "release",
                    "coverage",
                    "recentlyEdited",
                    "recentPublishRuns"
                  ],
                  "properties": {
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "catalogue": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "code",
                        "name",
                        "status"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "RETIRED"
                          ]
                        }
                      }
                    },
                    "availableModules": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "pricing",
                        "rules",
                        "publishing"
                      ],
                      "properties": {
                        "pricing": {
                          "type": "boolean"
                        },
                        "rules": {
                          "type": "boolean"
                        },
                        "publishing": {
                          "type": "boolean"
                        }
                      }
                    },
                    "release": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "state",
                        "hasUnpublishedChanges",
                        "current",
                        "preview",
                        "changes",
                        "blockers"
                      ],
                      "properties": {
                        "state": {
                          "type": "string",
                          "enum": [
                            "NEVER_PUBLISHED",
                            "UP_TO_DATE",
                            "CHANGES_PENDING",
                            "PREPARING",
                            "READY",
                            "BLOCKED",
                            "FAILED",
                            "STALE"
                          ]
                        },
                        "hasUnpublishedChanges": {
                          "type": "boolean"
                        },
                        "current": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "publishedAt",
                                "confirmedBy"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "publishedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date-time"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "confirmedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "preview": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "status",
                                "preparedAt",
                                "validationIssueCount",
                                "lastChangeId"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "QUEUED",
                                    "RUNNING",
                                    "READY",
                                    "BLOCKED",
                                    "STALE",
                                    "SUCCEEDED",
                                    "FAILED"
                                  ]
                                },
                                "preparedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date-time"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "validationIssueCount": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "lastChangeId": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "changes": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "availability",
                            "total",
                            "byArea"
                          ],
                          "properties": {
                            "availability": {
                              "type": "string",
                              "enum": [
                                "READY",
                                "NOT_PREPARED",
                                "BLOCKED",
                                "STALE",
                                "NONE"
                              ]
                            },
                            "total": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "byArea": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": {
                                    "type": "integer",
                                    "minimum": 0
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        "blockers": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "availability",
                            "count"
                          ],
                          "properties": {
                            "availability": {
                              "type": "string",
                              "enum": [
                                "AVAILABLE",
                                "NONE"
                              ]
                            },
                            "count": {
                              "type": "integer",
                              "minimum": 0
                            }
                          }
                        }
                      }
                    },
                    "coverage": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "activeViews",
                        "productDefinitions",
                        "customerFacingOffers",
                        "packages",
                        "solutions",
                        "pricebooks",
                        "rateCards",
                        "activeRules",
                        "rulesNotLive",
                        "missingEffectivePrices"
                      ],
                      "properties": {
                        "activeViews": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "productDefinitions": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "customerFacingOffers": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "packages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "solutions": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "pricebooks": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "rateCards": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "activeRules": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "rulesNotLive": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "missingEffectivePrices": {
                          "type": "integer",
                          "minimum": 0
                        }
                      }
                    },
                    "recentlyEdited": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "recordType",
                          "recordId",
                          "code",
                          "name",
                          "updatedAt",
                          "updatedBy",
                          "publicationState"
                        ],
                        "properties": {
                          "recordType": {
                            "type": "string"
                          },
                          "recordId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "publicationState": {
                            "type": "string",
                            "enum": [
                              "LIVE",
                              "PENDING",
                              "RETIRED"
                            ]
                          }
                        }
                      }
                    },
                    "recentPublishRuns": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "status",
                          "kind",
                          "completedAt",
                          "preparedAt",
                          "requestedBy",
                          "changeTotal"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "QUEUED",
                              "RUNNING",
                              "READY",
                              "BLOCKED",
                              "STALE",
                              "SUCCEEDED",
                              "FAILED"
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "PREVIEW",
                              "PUBLISH"
                            ]
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "preparedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "requestedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changeTotal": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Get counts and status for the catalogue overview."
      }
    },
    "/api/v1/catalogue-home/actions": {
      "get": {
        "operationId": "getCatalogueHomeActions",
        "summary": "List catalogue actions",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "catalogueId",
            "required": true
          },
          {
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "PUBLISH_BLOCKER",
                  "FAILED_PUBLISH",
                  "STALE_PREVIEW",
                  "MISSING_EFFECTIVE_PRICE",
                  "RULE_NOT_LIVE",
                  "VIEW_COVERAGE_GAP"
                ]
              }
            },
            "in": "query",
            "name": "types",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "generatedAt",
                    "asOf",
                    "totalCount",
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "generatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "asOf": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "totalCount": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "severity",
                          "type",
                          "record",
                          "reasonCode",
                          "supportingFactCount",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "BLOCKER",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "PUBLISH_BLOCKER",
                              "FAILED_PUBLISH",
                              "STALE_PREVIEW",
                              "MISSING_EFFECTIVE_PRICE",
                              "RULE_NOT_LIVE",
                              "VIEW_COVERAGE_GAP"
                            ]
                          },
                          "record": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "id",
                                  "code",
                                  "name"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string"
                                  },
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "code": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "reasonCode": {
                            "type": "string"
                          },
                          "supportingFactCount": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Get ranked catalogue authoring actions"
      }
    },
    "/api/v1/catalogue-changes": {
      "get": {
        "operationId": "listCatalogueChanges",
        "summary": "List catalogue changes",
        "tags": [
          "Catalogue Publishing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "CATALOGUE"
              ]
            },
            "in": "query",
            "name": "owner",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "customerAgreementId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PENDING",
                "ALL"
              ]
            },
            "in": "query",
            "name": "state",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "publishRunId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "agreementPublicationId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "catalogue",
                "catalogue_view",
                "category",
                "category_assignment",
                "browse_filter",
                "product_definition",
                "product_offering",
                "product_variant",
                "bundle",
                "bundle_component",
                "bundle_component_option",
                "product_addon_group",
                "catalogue_relationship",
                "attribute_definition",
                "attribute_group",
                "attribute_assignment",
                "pricebook",
                "pricebook_assignment",
                "pricebook_entry",
                "charge_definition",
                "rate_card",
                "rate",
                "business_rule",
                "customer_agreement",
                "customer_agreement_product",
                "customer_agreement_snapshot"
              ]
            },
            "in": "query",
            "name": "tableName",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "recordId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "in": "query",
            "name": "reviewToken",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "nextCursor",
                    "throughChangeId",
                    "reviewToken"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "catalogueId",
                          "tableName",
                          "recordId",
                          "action",
                          "oldRow",
                          "newRow",
                          "changedColumns",
                          "changedBy",
                          "requestId",
                          "changedAt",
                          "publishRunId",
                          "agreementPublicationId",
                          "fields"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "tableName": {
                            "type": "string"
                          },
                          "recordId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "INSERT",
                              "UPDATE",
                              "DELETE"
                            ]
                          },
                          "oldRow": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "newRow": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changedColumns": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "requestId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "publishRunId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "agreementPublicationId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "path",
                                "before",
                                "after",
                                "beforePresent",
                                "afterPresent"
                              ],
                              "properties": {
                                "path": {
                                  "type": "string"
                                },
                                "before": {},
                                "after": {},
                                "beforePresent": {
                                  "type": "boolean"
                                },
                                "afterPresent": {
                                  "type": "boolean"
                                },
                                "beforeLabel": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "afterLabel": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            }
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "throughChangeId": {
                      "type": "string"
                    },
                    "reviewToken": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": []
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHING",
        "description": "Read immutable change history"
      }
    },
    "/api/v1/catalogue-changes/records": {
      "get": {
        "operationId": "listCatalogueChangeRecords",
        "summary": "List changes by record",
        "tags": [
          "Catalogue Publishing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "CATALOGUE"
              ]
            },
            "in": "query",
            "name": "owner",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "customerAgreementId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PENDING",
                "ALL"
              ]
            },
            "in": "query",
            "name": "state",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "publishRunId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "agreementPublicationId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "catalogue",
                "catalogue_view",
                "category",
                "category_assignment",
                "browse_filter",
                "product_definition",
                "product_offering",
                "product_variant",
                "bundle",
                "bundle_component",
                "bundle_component_option",
                "product_addon_group",
                "catalogue_relationship",
                "attribute_definition",
                "attribute_group",
                "attribute_assignment",
                "pricebook",
                "pricebook_assignment",
                "pricebook_entry",
                "charge_definition",
                "rate_card",
                "rate",
                "business_rule",
                "customer_agreement",
                "customer_agreement_product",
                "customer_agreement_snapshot"
              ]
            },
            "in": "query",
            "name": "tableName",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "recordId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "in": "query",
            "name": "reviewToken",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 4096
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ADDED",
                "CHANGED",
                "REMOVED",
                "NO_NET_CHANGE"
              ]
            },
            "in": "query",
            "name": "netResult",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "changedBy",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 200
            },
            "in": "query",
            "name": "q",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "items",
                    "nextCursor",
                    "throughChangeId",
                    "reviewToken",
                    "total"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "tableName",
                          "recordId",
                          "label",
                          "netResult",
                          "fields",
                          "changeCount",
                          "changedBy",
                          "firstChangedAt",
                          "lastChangedAt"
                        ],
                        "properties": {
                          "tableName": {
                            "type": "string"
                          },
                          "recordId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "label": {
                            "type": "object",
                            "required": [
                              "code",
                              "name"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          },
                          "netResult": {
                            "type": "string",
                            "enum": [
                              "ADDED",
                              "CHANGED",
                              "REMOVED",
                              "NO_NET_CHANGE"
                            ]
                          },
                          "fields": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "path",
                                "before",
                                "after",
                                "beforePresent",
                                "afterPresent"
                              ],
                              "properties": {
                                "path": {
                                  "type": "string"
                                },
                                "before": {},
                                "after": {},
                                "beforePresent": {
                                  "type": "boolean"
                                },
                                "afterPresent": {
                                  "type": "boolean"
                                },
                                "beforeLabel": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "afterLabel": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "changeCount": {
                            "type": "integer"
                          },
                          "changedBy": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "firstChangedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "lastChangedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "throughChangeId": {
                      "type": "string"
                    },
                    "reviewToken": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer"
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": []
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHING",
        "description": "Review saved changes grouped by record"
      }
    },
    "/api/v1/catalogue-change-sets/preview": {
      "post": {
        "operationId": "previewCatalogueChangeSet",
        "summary": "Preview a change set",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "description": "Checks the steps in order as one change. Nothing is saved. Returns what each step would change and the reviewedBasis to save exactly those changes.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "steps"
                ],
                "additionalProperties": false,
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Exactly one of catalogueId or catalogueCode."
                  },
                  "catalogueCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "steps": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "required": [
                        "operation",
                        "input"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "operation": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z_]{2,63}$",
                          "description": "A reviewed catalogue record operation, for example CREATE_PRODUCT_DEFINITION."
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true,
                          "description": "The same input as the single command, without commandId and reviewedBasis. A record an earlier step creates is referenced by its code."
                        }
                      }
                    },
                    "description": "Applied in order. All steps are saved or none."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "catalogue",
                    "steps",
                    "recordCount",
                    "reviewedBasis",
                    "observedAt"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "catalogue": {
                      "type": "object",
                      "required": [
                        "id",
                        "code",
                        "name"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "index",
                          "operation",
                          "records"
                        ],
                        "additionalProperties": false,
                        "properties": {
                          "index": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "operation": {
                            "type": "string"
                          },
                          "records": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "tableName",
                                "recordId",
                                "label",
                                "netResult",
                                "fields"
                              ],
                              "additionalProperties": false,
                              "properties": {
                                "tableName": {
                                  "type": "string",
                                  "enum": [
                                    "catalogue",
                                    "catalogue_view",
                                    "category",
                                    "category_assignment",
                                    "browse_filter",
                                    "product_definition",
                                    "product_offering",
                                    "product_variant",
                                    "bundle",
                                    "bundle_component",
                                    "bundle_component_option",
                                    "product_addon_group",
                                    "catalogue_relationship",
                                    "attribute_definition",
                                    "attribute_group",
                                    "attribute_assignment",
                                    "pricebook",
                                    "pricebook_assignment",
                                    "pricebook_entry",
                                    "charge_definition",
                                    "rate_card",
                                    "rate",
                                    "business_rule",
                                    "customer_agreement",
                                    "customer_agreement_product",
                                    "customer_agreement_snapshot"
                                  ]
                                },
                                "recordId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Null in a preview for a record the set creates."
                                },
                                "label": {
                                  "type": "object",
                                  "required": [
                                    "code",
                                    "name"
                                  ],
                                  "additionalProperties": false,
                                  "properties": {
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "netResult": {
                                  "type": "string",
                                  "enum": [
                                    "ADDED",
                                    "CHANGED",
                                    "REMOVED"
                                  ]
                                },
                                "fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "required": [
                                      "path",
                                      "before",
                                      "after",
                                      "beforePresent",
                                      "afterPresent"
                                    ],
                                    "additionalProperties": false,
                                    "properties": {
                                      "path": {
                                        "type": "string"
                                      },
                                      "before": {},
                                      "after": {},
                                      "beforePresent": {
                                        "type": "boolean"
                                      },
                                      "afterPresent": {
                                        "type": "boolean"
                                      },
                                      "beforeLabel": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "afterLabel": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "recordCount": {
                      "type": "integer"
                    },
                    "reviewedBasis": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "observedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": []
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/catalogue-change-sets": {
      "post": {
        "operationId": "applyCatalogueChangeSet",
        "summary": "Save a change set",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "description": "Saves the steps in order as one change: all or none. The saved changes must equal the previewed ones (reviewedBasis), otherwise nothing is saved and 409 record_review_stale is returned. Repeating the same commandId returns the first result.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "steps",
                  "commandId",
                  "reviewedBasis"
                ],
                "additionalProperties": false,
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "description": "Exactly one of catalogueId or catalogueCode."
                  },
                  "catalogueCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "steps": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 50,
                    "items": {
                      "type": "object",
                      "required": [
                        "operation",
                        "input"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "operation": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z_]{2,63}$",
                          "description": "A reviewed catalogue record operation, for example CREATE_PRODUCT_DEFINITION."
                        },
                        "input": {
                          "type": "object",
                          "additionalProperties": true,
                          "description": "The same input as the single command, without commandId and reviewedBasis. A record an earlier step creates is referenced by its code."
                        }
                      }
                    },
                    "description": "Applied in order. All steps are saved or none."
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "reviewedBasis": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "commandId",
                    "catalogue",
                    "steps",
                    "recordCount",
                    "recordedAt"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "commandId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogue": {
                      "type": "object",
                      "required": [
                        "id",
                        "code",
                        "name"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    },
                    "steps": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "index",
                          "operation",
                          "records"
                        ],
                        "additionalProperties": false,
                        "properties": {
                          "index": {
                            "type": "integer",
                            "minimum": 0
                          },
                          "operation": {
                            "type": "string"
                          },
                          "records": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "required": [
                                "tableName",
                                "recordId",
                                "label",
                                "netResult",
                                "fields"
                              ],
                              "additionalProperties": false,
                              "properties": {
                                "tableName": {
                                  "type": "string",
                                  "enum": [
                                    "catalogue",
                                    "catalogue_view",
                                    "category",
                                    "category_assignment",
                                    "browse_filter",
                                    "product_definition",
                                    "product_offering",
                                    "product_variant",
                                    "bundle",
                                    "bundle_component",
                                    "bundle_component_option",
                                    "product_addon_group",
                                    "catalogue_relationship",
                                    "attribute_definition",
                                    "attribute_group",
                                    "attribute_assignment",
                                    "pricebook",
                                    "pricebook_assignment",
                                    "pricebook_entry",
                                    "charge_definition",
                                    "rate_card",
                                    "rate",
                                    "business_rule",
                                    "customer_agreement",
                                    "customer_agreement_product",
                                    "customer_agreement_snapshot"
                                  ]
                                },
                                "recordId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Null in a preview for a record the set creates."
                                },
                                "label": {
                                  "type": "object",
                                  "required": [
                                    "code",
                                    "name"
                                  ],
                                  "additionalProperties": false,
                                  "properties": {
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    }
                                  }
                                },
                                "netResult": {
                                  "type": "string",
                                  "enum": [
                                    "ADDED",
                                    "CHANGED",
                                    "REMOVED"
                                  ]
                                },
                                "fields": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "required": [
                                      "path",
                                      "before",
                                      "after",
                                      "beforePresent",
                                      "afterPresent"
                                    ],
                                    "additionalProperties": false,
                                    "properties": {
                                      "path": {
                                        "type": "string"
                                      },
                                      "before": {},
                                      "after": {},
                                      "beforePresent": {
                                        "type": "boolean"
                                      },
                                      "afterPresent": {
                                        "type": "boolean"
                                      },
                                      "beforeLabel": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "afterLabel": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "recordCount": {
                      "type": "integer"
                    },
                    "recordedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": []
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/catalogues/{catalogueId}/retire": {
      "post": {
        "operationId": "retireCatalogue",
        "summary": "Retire a catalogue",
        "tags": [
          "Catalogue Authoring — Catalogues"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "catalogueId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "status",
                    "retiredAt",
                    "metadata",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/product-definitions/{productDefinitionId}/retire": {
      "post": {
        "operationId": "retireProductDefinition",
        "summary": "Retire a product definition",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "quantityStrategy",
                    "orderProductType",
                    "description",
                    "facts",
                    "instanceNoun",
                    "instanceLabelAttributes",
                    "unitNoun",
                    "unitLabelAttributes",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "orderProductType": {
                      "type": "string",
                      "enum": [
                        "SUBSCRIPTION",
                        "DELIVERABLE"
                      ]
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "instanceNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one instance is called, singular and plural."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "instanceLabelAttributes": {
                      "type": "array",
                      "maxItems": 3,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered attribute codes whose values name one instance."
                    },
                    "unitNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one unit is called, singular and plural. Only with quantity strategy UNIT."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unitLabelAttributes": {
                      "type": "array",
                      "maxItems": 2,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered UNIT-level attribute codes whose values name one unit. Only with quantity strategy UNIT."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/product-offerings/{productOfferingId}/retire": {
      "post": {
        "operationId": "retireProductOffering",
        "summary": "Retire a product offering",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productOfferingId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "productDefinitionId",
                    "code",
                    "name",
                    "description",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "standaloneSellable",
                    "visibility",
                    "productFamily",
                    "facts",
                    "aliases",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "standaloneSellable": {
                      "type": "boolean"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "RESTRICTED"
                      ]
                    },
                    "productFamily": {
                      "type": "string"
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/product-variants/{productVariantId}/retire": {
      "post": {
        "operationId": "retireProductVariant",
        "summary": "Retire a product variant",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "productVariantId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "productOfferingId",
                    "code",
                    "name",
                    "skuCode",
                    "facts",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productOfferingId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "skuCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/attribute-definitions/{attributeDefinitionId}/retire": {
      "post": {
        "operationId": "retireAttributeDefinition",
        "summary": "Retire an attribute definition",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "dataType",
                    "unit",
                    "allowedValues",
                    "validation",
                    "attributeCategory",
                    "piiClassification",
                    "copyable",
                    "searchable",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dataType": {
                      "type": "string",
                      "enum": [
                        "TEXT",
                        "NUMBER",
                        "BOOLEAN",
                        "DATE",
                        "DATE_TIME",
                        "MONEY",
                        "ADDRESS",
                        "ENUM",
                        "MULTI_SELECT",
                        "JSON"
                      ]
                    },
                    "unit": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "allowedValues": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "validation": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "Type-specific validation. TEXT: minLength, maxLength, pattern. NUMBER/MONEY: minimum, maximum. DATE/DATE_TIME: earliest, latest. MULTI_SELECT: minItems, maxItems. Unknown extension keys are preserved.",
                      "properties": {
                        "minLength": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "maxLength": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "pattern": {
                          "type": "string",
                          "description": "A valid JavaScript regular expression."
                        },
                        "minimum": {
                          "type": "number"
                        },
                        "maximum": {
                          "type": "number"
                        },
                        "earliest": {
                          "type": "string",
                          "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                        },
                        "latest": {
                          "type": "string",
                          "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                        },
                        "minItems": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "maxItems": {
                          "type": "integer",
                          "minimum": 0
                        }
                      }
                    },
                    "attributeCategory": {
                      "type": "string",
                      "enum": [
                        "COMMERCIAL",
                        "NON_COMMERCIAL"
                      ]
                    },
                    "piiClassification": {
                      "type": "string",
                      "enum": [
                        "NONE",
                        "PERSONAL",
                        "SENSITIVE"
                      ]
                    },
                    "copyable": {
                      "type": "boolean",
                      "description": "Whether copy configuration copies this value into a new quote. False for values that identify one service, such as service ids, circuit ids and serial numbers."
                    },
                    "searchable": {
                      "type": "boolean",
                      "description": "Whether values of this attribute are copied into subscription and service search, so those records can be filtered by an exact value."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Retire attribute definition"
      }
    },
    "/api/v1/attribute-groups/{attributeGroupId}/retire": {
      "post": {
        "operationId": "retireAttributeGroup",
        "summary": "Retire an attribute group",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeGroupId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "displayOrder",
                    "repeatable",
                    "minInstances",
                    "maxInstances",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "repeatable": {
                      "type": "boolean"
                    },
                    "minInstances": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxInstances": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Retire attribute group"
      }
    },
    "/api/v1/attribute-assignments/{attributeAssignmentId}/retire": {
      "post": {
        "operationId": "retireAttributeAssignment",
        "summary": "Retire an attribute assignment",
        "tags": [
          "Catalogue Authoring — Attributes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "attributeAssignmentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "ownerType",
                    "ownerId",
                    "attributeId",
                    "attributeGroupId",
                    "displayComponentId",
                    "valueLevel",
                    "required",
                    "editable",
                    "visible",
                    "defaultValue",
                    "displayOrder",
                    "impactFlags",
                    "groupingBehavior",
                    "usageFlags",
                    "metadata",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "ownerType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "CATALOGUE_VIEW",
                        "BUNDLE",
                        "BUNDLE_COMPONENT"
                      ]
                    },
                    "ownerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeGroupId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "valueLevel": {
                      "type": "string",
                      "enum": [
                        "CART",
                        "CART_ITEM",
                        "UNIT"
                      ]
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "editable": {
                      "type": "boolean"
                    },
                    "visible": {
                      "type": "boolean"
                    },
                    "defaultValue": {},
                    "displayOrder": {
                      "type": "integer"
                    },
                    "impactFlags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "PRICING",
                          "ELIGIBILITY",
                          "COMPATIBILITY",
                          "FULFILLMENT",
                          "BILLING",
                          "INVENTORY",
                          "REPORTING",
                          "DISPLAY_ONLY"
                        ]
                      }
                    },
                    "groupingBehavior": {
                      "type": "string",
                      "enum": [
                        "NONE",
                        "GROUPING_KEY",
                        "UNIT_DETAIL"
                      ]
                    },
                    "usageFlags": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "CONFIGURATION",
                          "VARIANT_SELECTOR",
                          "DISPLAY",
                          "BROWSE_FACET"
                        ]
                      }
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Retire attribute assignment"
      }
    },
    "/api/v1/bundles/{bundleId}/retire": {
      "post": {
        "operationId": "retireBundle",
        "summary": "Retire a package or solution",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "bundleId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "code",
                    "name",
                    "description",
                    "kind",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "standaloneSellable",
                    "visibility",
                    "facts",
                    "instanceNoun",
                    "instanceLabelAttributes",
                    "aliases",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "standaloneSellable": {
                      "type": "boolean"
                    },
                    "visibility": {
                      "type": "string",
                      "enum": [
                        "PUBLIC",
                        "RESTRICTED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "instanceNoun": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "singular",
                            "plural"
                          ],
                          "properties": {
                            "singular": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            },
                            "plural": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 40
                            }
                          },
                          "description": "What one instance is called, singular and plural."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "instanceLabelAttributes": {
                      "type": "array",
                      "maxItems": 3,
                      "items": {
                        "type": "string"
                      },
                      "description": "Ordered attribute codes whose values name one instance."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/product-addon-groups/{addonGroupId}/retire": {
      "post": {
        "operationId": "retireProductAddonGroup",
        "summary": "Retire an add-on group",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "addonGroupId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "sourceType",
                    "sourceId",
                    "code",
                    "name",
                    "description",
                    "minSelect",
                    "maxSelect",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "sourceId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/catalogue-relationships/{relationshipId}/retire": {
      "post": {
        "operationId": "retireCatalogueRelationship",
        "summary": "Retire a relationship",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "relationshipId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "sourceType",
                    "sourceId",
                    "targetType",
                    "targetId",
                    "relationshipType",
                    "addonGroupId",
                    "minQuantity",
                    "maxQuantity",
                    "defaultQuantity",
                    "defaultSelected",
                    "required",
                    "priority",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "sourceId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "targetType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "targetId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "relationshipType": {
                      "type": "string",
                      "enum": [
                        "OPTIONAL_ADDON",
                        "REQUIRED_ADDON",
                        "UPGRADE_TO",
                        "MIGRATES_TO"
                      ]
                    },
                    "addonGroupId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultSelected": {
                      "type": "boolean"
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "priority": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Retire a catalogue relationship"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewId}/categories/order": {
      "put": {
        "operationId": "reorderCategories",
        "summary": "Reorder sibling categories",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "parentCategoryId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "orderedCategoryIds": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  }
                },
                "required": [
                  "parentCategoryId",
                  "orderedCategoryIds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "catalogueViewId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueViewId",
                          "parentCategoryId",
                          "code",
                          "name",
                          "description",
                          "displayOrder",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentCategoryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/category-assignments/{assignmentId}": {
      "patch": {
        "operationId": "updateCategoryAssignment",
        "summary": "Update a category placement",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "displayOrder": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "featured": {
                    "type": "boolean"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "assignmentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "categoryId",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "itemStatus",
                    "displayOrder",
                    "featured",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "categoryId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "itemStatus": {
                      "type": "string"
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "featured": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteCategoryAssignment",
        "summary": "Remove from a category",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "assignmentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Remove an item from a category"
      }
    },
    "/api/v1/categories/{categoryId}/assignments/order": {
      "put": {
        "operationId": "reorderCategoryAssignments",
        "summary": "Reorder items in a category",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "orderedAssignmentIds": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  }
                },
                "required": [
                  "orderedAssignmentIds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "categoryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "categoryId",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "itemName",
                          "itemStatus",
                          "displayOrder",
                          "featured",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "categoryId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "itemStatus": {
                            "type": "string"
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "featured": {
                            "type": "boolean"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Reorder offerings within a category"
      }
    },
    "/api/v1/browse-filters": {
      "post": {
        "operationId": "createBrowseFilter",
        "summary": "Create a browse filter",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "catalogueViewId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueViewCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "categoryId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "categoryCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "attributeId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributeCode": {
                    "type": "string",
                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                  },
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "filterType": {
                    "type": "string",
                    "enum": [
                      "PICKLIST",
                      "MULTI_SELECT",
                      "BOOLEAN",
                      "RANGE",
                      "TEXT",
                      "LOCATION",
                      "DATE_RANGE"
                    ]
                  },
                  "displayControl": {
                    "type": "string",
                    "enum": [
                      "SELECT",
                      "CHECKBOXES",
                      "RADIO",
                      "TOGGLE",
                      "SLIDER",
                      "TEXT_INPUT",
                      "LOCATION_PICKER",
                      "DATE_RANGE"
                    ]
                  },
                  "displayOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "required": {
                    "default": false,
                    "type": "boolean"
                  },
                  "dependsOnFilterId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "dependsOnAttributeCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_]{0,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "visibleCondition": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "optionSource": {
                    "type": "string",
                    "enum": [
                      "LISTING_VALUES",
                      "STATIC_VALUES"
                    ]
                  },
                  "options": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "defaultValue": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "attributeCode",
                  "label",
                  "filterType",
                  "displayControl",
                  "optionSource"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueViewId",
                    "categoryId",
                    "attributeId",
                    "attributeCode",
                    "label",
                    "filterType",
                    "displayControl",
                    "displayOrder",
                    "required",
                    "dependsOnFilterId",
                    "visibleCondition",
                    "optionSource",
                    "options",
                    "defaultValue",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "categoryId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "attributeId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributeCode": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "filterType": {
                      "type": "string",
                      "enum": [
                        "PICKLIST",
                        "MULTI_SELECT",
                        "BOOLEAN",
                        "RANGE",
                        "TEXT",
                        "LOCATION",
                        "DATE_RANGE"
                      ]
                    },
                    "displayControl": {
                      "type": "string",
                      "enum": [
                        "SELECT",
                        "CHECKBOXES",
                        "RADIO",
                        "TOGGLE",
                        "SLIDER",
                        "TEXT_INPUT",
                        "LOCATION_PICKER",
                        "DATE_RANGE"
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "dependsOnFilterId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "visibleCondition": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "optionSource": {
                      "type": "string",
                      "enum": [
                        "LISTING_VALUES",
                        "STATIC_VALUES"
                      ]
                    },
                    "options": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "defaultValue": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Create a category browse filter"
      }
    },
    "/api/v1/categories/{categoryId}/browse-filters/order": {
      "put": {
        "operationId": "reorderBrowseFilters",
        "summary": "Reorder browse filters",
        "tags": [
          "Catalogue Authoring — Views, Categories & Filters"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "orderedBrowseFilterIds": {
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  }
                },
                "required": [
                  "orderedBrowseFilterIds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "categoryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueViewId",
                          "categoryId",
                          "attributeId",
                          "attributeCode",
                          "label",
                          "filterType",
                          "displayControl",
                          "displayOrder",
                          "required",
                          "dependsOnFilterId",
                          "visibleCondition",
                          "optionSource",
                          "options",
                          "defaultValue",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "categoryId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "attributeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attributeCode": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "filterType": {
                            "type": "string",
                            "enum": [
                              "PICKLIST",
                              "MULTI_SELECT",
                              "BOOLEAN",
                              "RANGE",
                              "TEXT",
                              "LOCATION",
                              "DATE_RANGE"
                            ]
                          },
                          "displayControl": {
                            "type": "string",
                            "enum": [
                              "SELECT",
                              "CHECKBOXES",
                              "RADIO",
                              "TOGGLE",
                              "SLIDER",
                              "TEXT_INPUT",
                              "LOCATION_PICKER",
                              "DATE_RANGE"
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "dependsOnFilterId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "visibleCondition": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "optionSource": {
                            "type": "string",
                            "enum": [
                              "LISTING_VALUES",
                              "STATIC_VALUES"
                            ]
                          },
                          "options": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "defaultValue": {
                            "anyOf": [
                              {},
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Reorder category browse filters"
      }
    },
    "/api/v1/bundle-components": {
      "post": {
        "operationId": "createBundleComponent",
        "summary": "Add a component",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "bundleId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "bundleCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "minSelect": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxSelect": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "visibilityCondition": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": true
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addMode": {
                    "type": "string",
                    "enum": [
                      "LIST",
                      "NEW_ROW"
                    ]
                  },
                  "aliases": {
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    }
                  },
                  "displayOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": [
                  "code",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "bundleId",
                    "code",
                    "name",
                    "description",
                    "minSelect",
                    "maxSelect",
                    "displayOrder",
                    "visibilityCondition",
                    "addMode",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "bundleId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "visibilityCondition": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "addMode": {
                      "type": "string",
                      "enum": [
                        "LIST",
                        "NEW_ROW"
                      ],
                      "description": "How a seller adds this Solution step's products: LIST shows each product with Add; NEW_ROW ends the step with an empty row to search and choose in. Package contents are always LIST."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Add a component (package group or solution step)"
      }
    },
    "/api/v1/bundle-components/{componentId}/retire": {
      "post": {
        "operationId": "retireBundleComponent",
        "summary": "Retire a component",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "componentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "bundleId",
                    "code",
                    "name",
                    "description",
                    "minSelect",
                    "maxSelect",
                    "displayOrder",
                    "visibilityCondition",
                    "addMode",
                    "aliases",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "bundleId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "minSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxSelect": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "visibilityCondition": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "addMode": {
                      "type": "string",
                      "enum": [
                        "LIST",
                        "NEW_ROW"
                      ],
                      "description": "How a seller adds this Solution step's products: LIST shows each product with Add; NEW_ROW ends the step with an empty row to search and choose in. Package contents are always LIST."
                    },
                    "aliases": {
                      "type": "array",
                      "maxItems": 10,
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 60
                      },
                      "description": "Other names for this record. Browse search matches them."
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/bundle-component-options": {
      "post": {
        "operationId": "createBundleComponentOption",
        "summary": "Add a component option",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "bundleId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "bundleCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "bundleComponentId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "bundleComponentCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "optionType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_DEFINITION",
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE"
                    ]
                  },
                  "optionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "optionCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "optionProductOfferingId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "optionProductOfferingCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "defaultSelected": {
                    "default": false,
                    "type": "boolean"
                  },
                  "minQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "defaultQuantity": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "quantityMode": {
                    "type": "string",
                    "enum": [
                      "FOLLOW_PARENT",
                      "FIXED",
                      "USER_ENTERED"
                    ]
                  },
                  "displayOrder": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  }
                },
                "required": [
                  "optionType",
                  "quantityMode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "bundleComponentId",
                    "optionType",
                    "optionId",
                    "defaultSelected",
                    "minQuantity",
                    "maxQuantity",
                    "defaultQuantity",
                    "quantityMode",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "bundleComponentId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "optionType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "optionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "defaultSelected": {
                      "type": "boolean"
                    },
                    "minQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "quantityMode": {
                      "type": "string",
                      "enum": [
                        "FOLLOW_PARENT",
                        "FIXED",
                        "USER_ENTERED"
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Add an option to a component"
      }
    },
    "/api/v1/bundle-component-options/{optionId}/retire": {
      "post": {
        "operationId": "retireBundleComponentOption",
        "summary": "Retire a component option",
        "tags": [
          "Catalogue Authoring — Packages & Solutions"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "optionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "bundleComponentId",
                    "optionType",
                    "optionId",
                    "defaultSelected",
                    "minQuantity",
                    "maxQuantity",
                    "defaultQuantity",
                    "quantityMode",
                    "displayOrder",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "bundleComponentId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "optionType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE"
                      ]
                    },
                    "optionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "defaultSelected": {
                      "type": "boolean"
                    },
                    "minQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "defaultQuantity": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "quantityMode": {
                      "type": "string",
                      "enum": [
                        "FOLLOW_PARENT",
                        "FIXED",
                        "USER_ENTERED"
                      ]
                    },
                    "displayOrder": {
                      "type": "integer"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/product-setups": {
      "post": {
        "operationId": "createProductSetup",
        "summary": "Create a product setup",
        "tags": [
          "Catalogue Authoring — Products"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "productDefinition": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "quantityStrategy": {
                        "default": "MULTIPLIER",
                        "type": "string",
                        "enum": [
                          "MULTIPLIER",
                          "UNIT"
                        ]
                      },
                      "orderProductType": {
                        "default": "SUBSCRIPTION",
                        "type": "string",
                        "enum": [
                          "SUBSCRIPTION",
                          "DELIVERABLE"
                        ]
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "facts": {
                        "default": {},
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      "instanceNoun": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "singular": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 40,
                                "description": "What one is called, in the catalogue's own words."
                              },
                              "plural": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 40,
                                "description": "What several are called."
                              }
                            },
                            "required": [
                              "singular",
                              "plural"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "instanceLabelAttributes": {
                        "maxItems": 3,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$"
                        }
                      },
                      "aliases": {
                        "maxItems": 10,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        }
                      },
                      "unitNoun": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "singular": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 40,
                                "description": "What one is called, in the catalogue's own words."
                              },
                              "plural": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 40,
                                "description": "What several are called."
                              }
                            },
                            "required": [
                              "singular",
                              "plural"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "unitLabelAttributes": {
                        "maxItems": 2,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$"
                        }
                      }
                    },
                    "required": [
                      "code",
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  "offering": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "effectiveFrom": {},
                      "effectiveTo": {
                        "anyOf": [
                          {},
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "standaloneSellable": {
                        "default": true,
                        "type": "boolean"
                      },
                      "visibility": {
                        "default": "PUBLIC",
                        "type": "string",
                        "enum": [
                          "PUBLIC",
                          "RESTRICTED"
                        ]
                      },
                      "productFamily": {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      "facts": {
                        "default": {},
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      "aliases": {
                        "maxItems": 10,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 60
                        }
                      }
                    },
                    "required": [
                      "code",
                      "name",
                      "productFamily"
                    ],
                    "additionalProperties": false
                  },
                  "variants": {
                    "default": [],
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "skuCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "facts": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "code",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "attributeDefinitions": {
                    "default": [],
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "dataType": {
                          "type": "string",
                          "enum": [
                            "TEXT",
                            "NUMBER",
                            "BOOLEAN",
                            "DATE",
                            "DATE_TIME",
                            "MONEY",
                            "ADDRESS",
                            "ENUM",
                            "MULTI_SELECT",
                            "JSON"
                          ]
                        },
                        "unit": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "allowedValues": {
                          "anyOf": [
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "validation": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "attributeCategory": {
                          "type": "string",
                          "enum": [
                            "COMMERCIAL",
                            "NON_COMMERCIAL"
                          ]
                        },
                        "piiClassification": {
                          "default": "NONE",
                          "type": "string",
                          "enum": [
                            "NONE",
                            "PERSONAL",
                            "SENSITIVE"
                          ]
                        },
                        "copyable": {
                          "default": true,
                          "type": "boolean"
                        },
                        "searchable": {
                          "type": "boolean"
                        },
                        "aliases": {
                          "maxItems": 10,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 60
                          }
                        }
                      },
                      "required": [
                        "code",
                        "name",
                        "dataType",
                        "attributeCategory"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "attributeGroups": {
                    "default": [],
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "displayOrder": {
                          "default": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000
                        },
                        "repeatable": {
                          "default": false,
                          "type": "boolean"
                        },
                        "minInstances": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "maxInstances": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "code",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "assignments": {
                    "default": [],
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "ownerType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT_DEFINITION",
                            "PRODUCT_OFFERING",
                            "PRODUCT_VARIANT",
                            "CATALOGUE_VIEW",
                            "BUNDLE",
                            "BUNDLE_COMPONENT"
                          ]
                        },
                        "ownerId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "ownerCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                            },
                            {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]{0,63}$"
                            }
                          ]
                        },
                        "attributeId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "attributeCode": {
                          "type": "string",
                          "pattern": "^[a-z][a-z0-9_]{0,63}$"
                        },
                        "attributeGroupId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "attributeGroupCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]{0,63}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "valueLevel": {
                          "type": "string",
                          "enum": [
                            "CART",
                            "CART_ITEM",
                            "UNIT"
                          ]
                        },
                        "required": {
                          "default": false,
                          "type": "boolean"
                        },
                        "editable": {
                          "default": true,
                          "type": "boolean"
                        },
                        "visible": {
                          "default": true,
                          "type": "boolean"
                        },
                        "defaultValue": {
                          "anyOf": [
                            {},
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "displayOrder": {
                          "default": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000
                        },
                        "impactFlags": {
                          "default": [],
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "PRICING",
                              "ELIGIBILITY",
                              "COMPATIBILITY",
                              "FULFILLMENT",
                              "BILLING",
                              "INVENTORY",
                              "REPORTING",
                              "DISPLAY_ONLY"
                            ]
                          }
                        },
                        "groupingBehavior": {
                          "default": "NONE",
                          "type": "string",
                          "enum": [
                            "NONE",
                            "GROUPING_KEY",
                            "UNIT_DETAIL"
                          ]
                        },
                        "usageFlags": {
                          "minItems": 1,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "CONFIGURATION",
                              "VARIANT_SELECTOR",
                              "DISPLAY",
                              "BROWSE_FACET"
                            ]
                          }
                        },
                        "metadata": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "ownerType",
                        "valueLevel"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "categoryAssignments": {
                    "default": [],
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "catalogueViewId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "catalogueViewCode": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "categoryId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "categoryCode": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "displayOrder": {
                          "default": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000
                        },
                        "featured": {
                          "default": false,
                          "type": "boolean"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "productDefinition",
                  "offering"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "productDefinition",
                    "offering",
                    "variants",
                    "attributeDefinitions",
                    "attributeGroups",
                    "assignments",
                    "categoryAssignments"
                  ],
                  "properties": {
                    "productDefinition": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "catalogueId",
                        "code",
                        "name",
                        "quantityStrategy",
                        "orderProductType",
                        "description",
                        "facts",
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes",
                        "aliases",
                        "status",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "quantityStrategy": {
                          "type": "string",
                          "enum": [
                            "MULTIPLIER",
                            "UNIT"
                          ]
                        },
                        "orderProductType": {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                },
                                "plural": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                }
                              },
                              "description": "What one instance is called, singular and plural."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "maxItems": 3,
                          "items": {
                            "type": "string"
                          },
                          "description": "Ordered attribute codes whose values name one instance."
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                },
                                "plural": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                }
                              },
                              "description": "What one unit is called, singular and plural. Only with quantity strategy UNIT."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "maxItems": 2,
                          "items": {
                            "type": "string"
                          },
                          "description": "Ordered UNIT-level attribute codes whose values name one unit. Only with quantity strategy UNIT."
                        },
                        "aliases": {
                          "type": "array",
                          "maxItems": 10,
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 60
                          },
                          "description": "Other names for this record. Browse search matches them."
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "RETIRED"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "offering": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "catalogueId",
                        "productDefinitionId",
                        "code",
                        "name",
                        "description",
                        "status",
                        "effectiveFrom",
                        "effectiveTo",
                        "standaloneSellable",
                        "visibility",
                        "productFamily",
                        "facts",
                        "aliases",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "productDefinitionId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "RETIRED"
                          ]
                        },
                        "effectiveFrom": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "effectiveTo": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "standaloneSellable": {
                          "type": "boolean"
                        },
                        "visibility": {
                          "type": "string",
                          "enum": [
                            "PUBLIC",
                            "RESTRICTED"
                          ]
                        },
                        "productFamily": {
                          "type": "string"
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "aliases": {
                          "type": "array",
                          "maxItems": 10,
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 60
                          },
                          "description": "Other names for this record. Browse search matches them."
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "variants": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "productOfferingId",
                          "code",
                          "name",
                          "skuCode",
                          "facts",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "productOfferingId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "skuCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "attributeDefinitions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "code",
                          "name",
                          "description",
                          "dataType",
                          "unit",
                          "allowedValues",
                          "validation",
                          "attributeCategory",
                          "piiClassification",
                          "copyable",
                          "searchable",
                          "aliases",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dataType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "NUMBER",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME",
                              "MONEY",
                              "ADDRESS",
                              "ENUM",
                              "MULTI_SELECT",
                              "JSON"
                            ]
                          },
                          "unit": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "allowedValues": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "validation": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "Type-specific validation. TEXT: minLength, maxLength, pattern. NUMBER/MONEY: minimum, maximum. DATE/DATE_TIME: earliest, latest. MULTI_SELECT: minItems, maxItems. Unknown extension keys are preserved.",
                            "properties": {
                              "minLength": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "maxLength": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "pattern": {
                                "type": "string",
                                "description": "A valid JavaScript regular expression."
                              },
                              "minimum": {
                                "type": "number"
                              },
                              "maximum": {
                                "type": "number"
                              },
                              "earliest": {
                                "type": "string",
                                "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                              },
                              "latest": {
                                "type": "string",
                                "description": "YYYY-MM-DD for DATE; ISO date-time for DATE_TIME."
                              },
                              "minItems": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "maxItems": {
                                "type": "integer",
                                "minimum": 0
                              }
                            }
                          },
                          "attributeCategory": {
                            "type": "string",
                            "enum": [
                              "COMMERCIAL",
                              "NON_COMMERCIAL"
                            ]
                          },
                          "piiClassification": {
                            "type": "string",
                            "enum": [
                              "NONE",
                              "PERSONAL",
                              "SENSITIVE"
                            ]
                          },
                          "copyable": {
                            "type": "boolean",
                            "description": "Whether copy configuration copies this value into a new quote. False for values that identify one service, such as service ids, circuit ids and serial numbers."
                          },
                          "searchable": {
                            "type": "boolean",
                            "description": "Whether values of this attribute are copied into subscription and service search, so those records can be filtered by an exact value."
                          },
                          "aliases": {
                            "type": "array",
                            "maxItems": 10,
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 60
                            },
                            "description": "Other names for this record. Browse search matches them."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "attributeGroups": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "code",
                          "name",
                          "description",
                          "displayOrder",
                          "repeatable",
                          "minInstances",
                          "maxInstances",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "repeatable": {
                            "type": "boolean"
                          },
                          "minInstances": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxInstances": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "assignments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "ownerType",
                          "ownerId",
                          "attributeId",
                          "attributeGroupId",
                          "displayComponentId",
                          "valueLevel",
                          "required",
                          "editable",
                          "visible",
                          "defaultValue",
                          "displayOrder",
                          "impactFlags",
                          "groupingBehavior",
                          "usageFlags",
                          "metadata",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "ownerType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_DEFINITION",
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "CATALOGUE_VIEW",
                              "BUNDLE",
                              "BUNDLE_COMPONENT"
                            ]
                          },
                          "ownerId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "attributeId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "attributeGroupId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayComponentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "valueLevel": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "UNIT"
                            ]
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "editable": {
                            "type": "boolean"
                          },
                          "visible": {
                            "type": "boolean"
                          },
                          "defaultValue": {},
                          "displayOrder": {
                            "type": "integer"
                          },
                          "impactFlags": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "PRICING",
                                "ELIGIBILITY",
                                "COMPATIBILITY",
                                "FULFILLMENT",
                                "BILLING",
                                "INVENTORY",
                                "REPORTING",
                                "DISPLAY_ONLY"
                              ]
                            }
                          },
                          "groupingBehavior": {
                            "type": "string",
                            "enum": [
                              "NONE",
                              "GROUPING_KEY",
                              "UNIT_DETAIL"
                            ]
                          },
                          "usageFlags": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "CONFIGURATION",
                                "VARIANT_SELECTOR",
                                "DISPLAY",
                                "BROWSE_FACET"
                              ]
                            }
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "categoryAssignments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "categoryId",
                          "itemType",
                          "itemId",
                          "displayOrder",
                          "featured",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "categoryId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "featured": {
                            "type": "boolean"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Create or reuse a complete product setup"
      }
    },
    "/api/v1/catalogues/{catalogueCode}/rules/validate": {
      "post": {
        "operationId": "validateBusinessRule",
        "summary": "Validate a business rule",
        "tags": [
          "Catalogue Authoring — Rules"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rule",
                  "testCases"
                ],
                "properties": {
                  "rule": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "category",
                      "appliesTo",
                      "evaluationTiming",
                      "definition"
                    ],
                    "properties": {
                      "category": {
                        "type": "string",
                        "enum": [
                          "ELIGIBILITY",
                          "COMPATIBILITY",
                          "VALIDATION",
                          "RECOMMENDATION",
                          "APPROVAL",
                          "PRICING"
                        ]
                      },
                      "appliesTo": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "CART"
                                ]
                              }
                            },
                            "required": [
                              "type"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_DEFINITION"
                                ]
                              },
                              "productDefinitionCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              }
                            },
                            "required": [
                              "type",
                              "productDefinitionCode"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "SELLABLE_ITEM"
                                ]
                              },
                              "itemType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "itemCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              }
                            },
                            "required": [
                              "type",
                              "itemType",
                              "itemCode"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "ADDON_OPTION"
                                ]
                              },
                              "parentItemType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "parentItemCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              },
                              "addonGroupCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              },
                              "targetItemType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "targetItemCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              }
                            },
                            "required": [
                              "type",
                              "parentItemType",
                              "parentItemCode",
                              "addonGroupCode",
                              "targetItemType",
                              "targetItemCode"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "evaluationTiming": {
                        "type": "string",
                        "enum": [
                          "IMMEDIATE",
                          "DURING_PRICING",
                          "AFTER_PRICING",
                          "SUBMIT_ONLY"
                        ]
                      },
                      "definition": {
                        "$ref": "#/components/schemas/def-1"
                      }
                    }
                  },
                  "testCases": {
                    "type": "array",
                    "maxItems": 100,
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "context": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "subject": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "CART"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "SELLABLE_ITEM"
                                  ]
                                },
                                "itemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PRODUCT_VARIANT",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "itemCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "productVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productDefinitionCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "itemType",
                                "itemCode"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "ADDON_OPTION"
                                  ]
                                },
                                "parentItemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PRODUCT_VARIANT",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "parentItemCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "parentVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "addonGroupCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "targetItemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PRODUCT_VARIANT",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "targetItemCode": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "targetVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "parentItemType",
                                "parentItemCode",
                                "addonGroupCode",
                                "targetItemType",
                                "targetItemCode"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "expected": {
                          "type": "object",
                          "properties": {
                            "matched": {
                              "type": "boolean"
                            },
                            "outcomeCodes": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                              }
                            }
                          },
                          "required": [
                            "matched"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "code",
                        "context",
                        "subject",
                        "expected"
                      ],
                      "additionalProperties": false
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "valid",
                    "issues",
                    "dependencyKeys"
                  ],
                  "properties": {
                    "valid": {
                      "type": "boolean"
                    },
                    "issues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "path",
                          "message"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "path": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "dependencyKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Validate an unpublished business rule"
      }
    },
    "/api/v1/catalogues/{catalogueCode}/rules/simulate": {
      "post": {
        "operationId": "simulateBusinessRule",
        "summary": "Simulate a business rule",
        "tags": [
          "Catalogue Authoring — Rules"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "context",
                  "subject"
                ],
                "properties": {
                  "ruleCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]*$",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "rule": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "category",
                      "appliesTo",
                      "evaluationTiming",
                      "definition"
                    ],
                    "properties": {
                      "category": {
                        "type": "string",
                        "enum": [
                          "ELIGIBILITY",
                          "COMPATIBILITY",
                          "VALIDATION",
                          "RECOMMENDATION",
                          "APPROVAL",
                          "PRICING"
                        ]
                      },
                      "appliesTo": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "CART"
                                ]
                              }
                            },
                            "required": [
                              "type"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_DEFINITION"
                                ]
                              },
                              "productDefinitionCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              }
                            },
                            "required": [
                              "type",
                              "productDefinitionCode"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "SELLABLE_ITEM"
                                ]
                              },
                              "itemType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "itemCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              }
                            },
                            "required": [
                              "type",
                              "itemType",
                              "itemCode"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "ADDON_OPTION"
                                ]
                              },
                              "parentItemType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "parentItemCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              },
                              "addonGroupCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              },
                              "targetItemType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "targetItemCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              }
                            },
                            "required": [
                              "type",
                              "parentItemType",
                              "parentItemCode",
                              "addonGroupCode",
                              "targetItemType",
                              "targetItemCode"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "evaluationTiming": {
                        "type": "string",
                        "enum": [
                          "IMMEDIATE",
                          "DURING_PRICING",
                          "AFTER_PRICING",
                          "SUBMIT_ONLY"
                        ]
                      },
                      "definition": {
                        "$ref": "#/components/schemas/def-1"
                      }
                    }
                  },
                  "context": {
                    "type": "object",
                    "additionalProperties": true
                  },
                  "subject": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "CART"
                            ]
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "SELLABLE_ITEM"
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemCode": {
                            "type": "string",
                            "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                          },
                          "productVariantCode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionCode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "itemType",
                          "itemCode"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "ADDON_OPTION"
                            ]
                          },
                          "parentItemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "parentItemCode": {
                            "type": "string",
                            "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                          },
                          "parentVariantCode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "addonGroupCode": {
                            "type": "string",
                            "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                          },
                          "targetItemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "targetItemCode": {
                            "type": "string",
                            "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                          },
                          "targetVariantCode": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "parentItemType",
                          "parentItemCode",
                          "addonGroupCode",
                          "targetItemType",
                          "targetItemCode"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "matched",
                    "outcomes",
                    "dependencyKeys"
                  ],
                  "properties": {
                    "matched": {
                      "type": "boolean"
                    },
                    "outcomes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "RECOMMEND_PRODUCT",
                              "REQUIRE_APPROVAL",
                              "ACTIVATE_CHARGE",
                              "SELECT_PRICE"
                            ]
                          },
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          },
                          "message": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          },
                          "targetProductCodes": {
                            "minItems": 1,
                            "maxItems": 50,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            }
                          },
                          "targetChargeDefinitionId": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "targetChargeDefinitionCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          },
                          "priceCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          },
                          "remediation": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "NONE",
                                  "ADD_PRODUCT",
                                  "REMOVE_PRODUCT",
                                  "CHANGE_ATTRIBUTE"
                                ]
                              },
                              "productCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Z][A-Z0-9_]*$"
                              },
                              "attributeCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64,
                                "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
                              }
                            },
                            "required": [
                              "type"
                            ],
                            "additionalProperties": false
                          },
                          "decisionRowCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "type",
                          "code",
                          "message"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "dependencyKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Simulate a saved or unpublished business rule"
      }
    },
    "/api/v1/catalogue-views/product-definition-schemas/{catalogueCode}/{productDefinitionCode}": {
      "get": {
        "operationId": "getPublishedProductDefinitionSchema",
        "summary": "Get a product data schema",
        "tags": [
          "Published Catalogue View — Product Data Schemas"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "productDefinitionCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "catalogueId",
                    "catalogueCode",
                    "publishRunId",
                    "productDefinition",
                    "products",
                    "sourceFields"
                  ],
                  "properties": {
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinition": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "code",
                        "name",
                        "quantityStrategy",
                        "orderProductType",
                        "facts",
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "quantityStrategy": {
                          "type": "string",
                          "enum": [
                            "MULTIPLIER",
                            "UNIT"
                          ]
                        },
                        "orderProductType": {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                },
                                "plural": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                }
                              },
                              "description": "What one instance is called. Null when not set or published before naming existed."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "maxItems": 3,
                          "items": {
                            "type": "string"
                          },
                          "description": "Ordered attribute codes whose values name one instance."
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                },
                                "plural": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                }
                              },
                              "description": "What one unit is called. Only with quantity strategy UNIT."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "maxItems": 2,
                          "items": {
                            "type": "string"
                          },
                          "description": "Ordered UNIT-level attribute codes whose values name one unit."
                        }
                      }
                    },
                    "products": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "catalogueViewId",
                          "productId",
                          "productCode",
                          "variantCodes",
                          "bundleComponentId",
                          "bundleComponentCode"
                        ],
                        "properties": {
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "productId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "variantCodes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "bundleComponentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "bundleComponentCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "sourceFields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "path",
                          "code",
                          "label",
                          "dataType",
                          "attributeCategory",
                          "valueLevel",
                          "groupCode",
                          "repeatable",
                          "required",
                          "availableOn"
                        ],
                        "properties": {
                          "path": {
                            "type": "string"
                          },
                          "code": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "dataType": {
                            "type": "string"
                          },
                          "attributeCategory": {
                            "type": "string"
                          },
                          "valueLevel": {
                            "type": "string"
                          },
                          "groupCode": {
                            "type": "string"
                          },
                          "repeatable": {
                            "type": "boolean"
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "availableOn": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "catalogueViewId",
                                "productCode",
                                "variantCode",
                                "bundleComponentCode"
                              ],
                              "properties": {
                                "catalogueViewId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "productCode": {
                                  "type": "string"
                                },
                                "variantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "bundleComponentCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Returns the published Product Definition fields available to Product Data Mapping."
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/rules": {
      "get": {
        "operationId": "getPublishedRules",
        "summary": "Get published rules",
        "tags": [
          "Published Catalogue View — Rules"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "publishRunId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ELIGIBILITY",
                "COMPATIBILITY",
                "VALIDATION",
                "RECOMMENDATION",
                "APPROVAL",
                "PRICING"
              ]
            },
            "in": "query",
            "name": "category",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "IMMEDIATE",
                "DURING_PRICING",
                "AFTER_PRICING",
                "SUBMIT_ONLY"
              ]
            },
            "in": "query",
            "name": "evaluationTiming",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "CART",
                "PRODUCT_DEFINITION",
                "SELLABLE_ITEM",
                "ADDON_OPTION"
              ]
            },
            "in": "query",
            "name": "appliesToType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "catalogueViewCode",
                    "rules"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "required": [
                          "id",
                          "code",
                          "name",
                          "description",
                          "category",
                          "appliesTo",
                          "evaluationTiming",
                          "definition",
                          "enabled",
                          "effectiveFrom",
                          "effectiveTo",
                          "displayOrder",
                          "dependencyKeys"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "category": {
                            "type": "string",
                            "enum": [
                              "ELIGIBILITY",
                              "COMPATIBILITY",
                              "VALIDATION",
                              "RECOMMENDATION",
                              "APPROVAL",
                              "PRICING"
                            ]
                          },
                          "appliesTo": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "evaluationTiming": {
                            "type": "string",
                            "enum": [
                              "IMMEDIATE",
                              "DURING_PRICING",
                              "AFTER_PRICING",
                              "SUBMIT_ONLY"
                            ]
                          },
                          "definition": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "effectiveFrom": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "dependencyKeys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Get the business rules published for a catalogue view."
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/rules/pricing-candidates/select": {
      "post": {
        "operationId": "selectPublishedPricingRuleCandidates",
        "summary": "Select pricing rules",
        "tags": [
          "Published Catalogue View — Rules"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "publishRunId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "targets": {
                    "minItems": 1,
                    "maxItems": 5000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "scopeType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT_DEFINITION",
                            "SELLABLE_ITEM",
                            "ADDON_OPTION"
                          ]
                        },
                        "scopeKey": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "targetChargeDefinitionId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      },
                      "required": [
                        "scopeType",
                        "scopeKey",
                        "targetChargeDefinitionId"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "publishRunId",
                  "targets"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "catalogueViewCode",
                    "rules"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "rules": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "required": [
                          "id",
                          "code",
                          "name",
                          "description",
                          "category",
                          "appliesTo",
                          "evaluationTiming",
                          "definition",
                          "enabled",
                          "effectiveFrom",
                          "effectiveTo",
                          "displayOrder",
                          "dependencyKeys",
                          "scopeType",
                          "scopeKey",
                          "targetChargeDefinitionId",
                          "requiredAttributeKeys"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "category": {
                            "type": "string",
                            "enum": [
                              "ELIGIBILITY",
                              "COMPATIBILITY",
                              "VALIDATION",
                              "RECOMMENDATION",
                              "APPROVAL",
                              "PRICING"
                            ]
                          },
                          "appliesTo": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "evaluationTiming": {
                            "type": "string",
                            "enum": [
                              "IMMEDIATE",
                              "DURING_PRICING",
                              "AFTER_PRICING",
                              "SUBMIT_ONLY"
                            ]
                          },
                          "definition": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "effectiveFrom": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "dependencyKeys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "scopeType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_DEFINITION",
                              "SELLABLE_ITEM",
                              "ADDON_OPTION"
                            ]
                          },
                          "scopeKey": {
                            "type": "string"
                          },
                          "targetChargeDefinitionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "requiredAttributeKeys": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Select the published pricing rules that apply to a charge."
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/prices/select": {
      "post": {
        "operationId": "selectPublishedPrices",
        "summary": "Select prices",
        "tags": [
          "Published Catalogue View — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "publishRunId",
                  "pricebookId",
                  "selections"
                ],
                "properties": {
                  "publishRunId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "pricebookId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "selections": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 5000,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "requestId",
                        "chargeDefinitionId",
                        "selector"
                      ],
                      "properties": {
                        "requestId": {
                          "type": "string"
                        },
                        "chargeDefinitionId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "selector": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "allowDefault": {
                          "type": "boolean",
                          "default": false
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "pricebookId",
                    "selections"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "selections": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "requestId",
                          "status",
                          "matchedDefault",
                          "selector"
                        ],
                        "properties": {
                          "requestId": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "SELECTED",
                              "MISSING"
                            ]
                          },
                          "matchedDefault": {
                            "type": "boolean"
                          },
                          "selector": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "pricingMethod": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "resolvedPrice": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "sourcePricebookId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourcePricebookEntryId": {
                            "type": "string",
                            "format": "uuid"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Select published prices for many charges in one request."
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/agreement-constraints": {
      "get": {
        "operationId": "getCatalogueViewAgreementConstraints",
        "summary": "List agreement constraints",
        "tags": [
          "Published Catalogue View — Browse"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "in": "query",
            "name": "accountId",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "productCode",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "productCode",
                    "customerAgreementId",
                    "constraints"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "productCode": {
                      "type": "string"
                    },
                    "customerAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "constraints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Approved values and variants a customer's agreement sets for one product"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/context": {
      "get": {
        "operationId": "resolveCatalogueViewSellingContext",
        "summary": "Get selling context",
        "tags": [
          "Published Catalogue View — Context"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "pricebookId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "pricebookCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueId",
                    "catalogueCode",
                    "catalogueName",
                    "catalogueViewId",
                    "catalogueViewCode",
                    "catalogueViewName",
                    "channel",
                    "segment",
                    "market",
                    "defaultLocale",
                    "supportedLocales",
                    "accountId",
                    "pricebookId",
                    "pricebookCode",
                    "pricebookName",
                    "pricebookSource",
                    "agreementId",
                    "agreementCode",
                    "agreementName",
                    "discretionaryDiscountsAllowed",
                    "currency",
                    "visibilityMode",
                    "allowedProductCount"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "catalogueName": {
                      "type": "string"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "catalogueViewName": {
                      "type": "string"
                    },
                    "channel": {
                      "type": "string"
                    },
                    "segment": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string"
                    },
                    "defaultLocale": {
                      "type": "string"
                    },
                    "supportedLocales": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "accountId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "type": "string"
                    },
                    "pricebookName": {
                      "type": "string"
                    },
                    "pricebookSource": {
                      "type": "string",
                      "enum": [
                        "PRICEBOOK_OVERRIDE",
                        "AGREEMENT",
                        "ACCOUNT",
                        "CATALOGUE_VIEW_DEFAULT"
                      ]
                    },
                    "agreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "discretionaryDiscountsAllowed": {
                      "type": "boolean"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "visibilityMode": {
                      "type": "string",
                      "enum": [
                        "STANDARD_CATALOGUE",
                        "ADD_TO_CATALOGUE",
                        "ONLY_AGREEMENT_PRODUCTS"
                      ]
                    },
                    "allowedProductCount": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Resolve the published selling context for an Account"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/categories": {
      "get": {
        "operationId": "getCatalogueViewCategories",
        "summary": "List categories",
        "tags": [
          "Published Catalogue View — Browse"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueViewId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueViewCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "items",
                    "tree"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueViewId",
                          "parentCategoryId",
                          "code",
                          "name",
                          "description",
                          "displayOrder",
                          "payload"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentCategoryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "payload": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "tree": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Get published categories for a catalogue view"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/categories/{categoryCode}/filters": {
      "get": {
        "operationId": "getCatalogueViewCategoryFilters",
        "summary": "List category filters",
        "tags": [
          "Published Catalogue View — Browse"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueViewId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueViewCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "categoryId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "categoryCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 8000
            },
            "in": "query",
            "name": "filters",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "categoryCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "category",
                    "items"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "category": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "catalogueViewId",
                        "parentCategoryId",
                        "code",
                        "name",
                        "description",
                        "displayOrder",
                        "payload"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueViewId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "parentCategoryId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "displayOrder": {
                          "type": "integer"
                        },
                        "payload": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "attributeId",
                          "attributeCode",
                          "label",
                          "filterType",
                          "displayControl",
                          "displayOrder",
                          "required",
                          "dependsOnFilterId",
                          "dependsOnAttributeCode",
                          "visibleCondition",
                          "optionSource",
                          "options",
                          "defaultValue",
                          "selection",
                          "visible",
                          "range",
                          "payload"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "attributeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attributeCode": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "filterType": {
                            "type": "string",
                            "enum": [
                              "PICKLIST",
                              "MULTI_SELECT",
                              "BOOLEAN",
                              "RANGE",
                              "TEXT",
                              "LOCATION",
                              "DATE_RANGE"
                            ]
                          },
                          "displayControl": {
                            "type": "string"
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "dependsOnFilterId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dependsOnAttributeCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "visibleCondition": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "optionSource": {
                            "type": "string",
                            "enum": [
                              "LISTING_VALUES",
                              "STATIC_VALUES"
                            ]
                          },
                          "options": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "value",
                                "label",
                                "count",
                                "selected",
                                "displayOrder"
                              ],
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                },
                                "count": {
                                  "type": "integer"
                                },
                                "selected": {
                                  "type": "boolean"
                                },
                                "displayOrder": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "defaultValue": {
                            "anyOf": [
                              {},
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "selection": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "visible": {
                            "type": "boolean"
                          },
                          "range": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "min",
                                  "max"
                                ],
                                "properties": {
                                  "min": {
                                    "type": "number"
                                  },
                                  "max": {
                                    "type": "number"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "payload": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Get the browse filters published for a category."
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/categories/{categoryCode}/products": {
      "get": {
        "operationId": "browseCatalogueViewCategoryProducts",
        "summary": "Browse products",
        "tags": [
          "Published Catalogue View — Browse"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueViewId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueViewCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "categoryId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "categoryCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "pricebookId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "pricebookCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "q",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 8000
            },
            "in": "query",
            "name": "filters",
            "required": false
          },
          {
            "schema": {
              "default": 24,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "categoryCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "category",
                    "items",
                    "nextCursor",
                    "facets",
                    "totalMatched"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "category": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "catalogueViewId",
                        "parentCategoryId",
                        "code",
                        "name",
                        "description",
                        "displayOrder",
                        "payload"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueViewId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "parentCategoryId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "displayOrder": {
                          "type": "integer"
                        },
                        "payload": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "categoryId",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "title",
                          "shortDescription",
                          "imageUrl",
                          "badges",
                          "displayOrder",
                          "featured",
                          "visibility",
                          "pricebookId",
                          "priceSummary",
                          "payload"
                        ],
                        "properties": {
                          "categoryId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "shortDescription": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "imageUrl": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "badges": {
                            "type": "array",
                            "items": {}
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "featured": {
                            "type": "boolean"
                          },
                          "visibility": {
                            "type": "string"
                          },
                          "pricebookId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priceSummary": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true,
                                "required": [
                                  "pricebookId",
                                  "currency",
                                  "recurringAmount",
                                  "recurringPeriod",
                                  "oneTimeAmount",
                                  "isFromPrice",
                                  "priceBasis",
                                  "sortAmount",
                                  "summary"
                                ],
                                "properties": {
                                  "pricebookId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "recurringAmount": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "recurringPeriod": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "oneTimeAmount": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "isFromPrice": {
                                    "type": "boolean"
                                  },
                                  "priceBasis": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "sortAmount": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "summary": {
                                    "type": "object",
                                    "additionalProperties": true
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "payload": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facets": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "attributeId",
                          "attributeCode",
                          "label",
                          "filterType",
                          "displayControl",
                          "displayOrder",
                          "required",
                          "dependsOnFilterId",
                          "dependsOnAttributeCode",
                          "visibleCondition",
                          "optionSource",
                          "options",
                          "defaultValue",
                          "selection",
                          "visible",
                          "range",
                          "payload"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "attributeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attributeCode": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "filterType": {
                            "type": "string",
                            "enum": [
                              "PICKLIST",
                              "MULTI_SELECT",
                              "BOOLEAN",
                              "RANGE",
                              "TEXT",
                              "LOCATION",
                              "DATE_RANGE"
                            ]
                          },
                          "displayControl": {
                            "type": "string"
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "dependsOnFilterId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dependsOnAttributeCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "visibleCondition": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "optionSource": {
                            "type": "string",
                            "enum": [
                              "LISTING_VALUES",
                              "STATIC_VALUES"
                            ]
                          },
                          "options": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "value",
                                "label",
                                "count",
                                "selected",
                                "displayOrder"
                              ],
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "label": {
                                  "type": "string"
                                },
                                "count": {
                                  "type": "integer"
                                },
                                "selected": {
                                  "type": "boolean"
                                },
                                "displayOrder": {
                                  "type": "integer"
                                }
                              }
                            }
                          },
                          "defaultValue": {
                            "anyOf": [
                              {},
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "selection": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "visible": {
                            "type": "boolean"
                          },
                          "range": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "min",
                                  "max"
                                ],
                                "properties": {
                                  "min": {
                                    "type": "number"
                                  },
                                  "max": {
                                    "type": "number"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "payload": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "totalMatched": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Browse the published offerings in a category."
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/search/suggestions": {
      "get": {
        "operationId": "suggestCatalogueViewProducts",
        "summary": "Suggest products",
        "tags": [
          "Published Catalogue View — Browse"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueViewId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueViewCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "categoryId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "categoryCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "q",
            "required": true
          },
          {
            "schema": {
              "default": 8,
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "items"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "categoryId",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "title"
                        ],
                        "properties": {
                          "categoryId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Suggest published products from a search term"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/products/{productCode}": {
      "get": {
        "operationId": "getCatalogueViewProduct",
        "summary": "Get a product",
        "tags": [
          "Published Catalogue View — Browse"
        ],
        "description": "Returns a product sold on its own in the view. 404 published_listing_not_found carries details.reason UNKNOWN_CODE, NOT_IN_VIEW, NOT_VISIBLE_FOR_ACCOUNT or SOLD_WITHIN_ONLY (with details.soldWithin) and details.next.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueViewId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueViewCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "categoryId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "categoryCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "pricebookId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "pricebookCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "productCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "product"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "product": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "categoryId",
                        "productType",
                        "productId",
                        "productCode",
                        "title",
                        "shortDescription",
                        "imageUrl",
                        "badges",
                        "displayOrder",
                        "featured",
                        "visibility",
                        "pricebookId",
                        "priceSummary",
                        "payload"
                      ],
                      "properties": {
                        "categoryId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "productType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT",
                            "PACKAGE",
                            "SOLUTION"
                          ]
                        },
                        "productId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "productCode": {
                          "type": "string"
                        },
                        "title": {
                          "type": "string"
                        },
                        "shortDescription": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "imageUrl": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "badges": {
                          "type": "array",
                          "items": {}
                        },
                        "displayOrder": {
                          "type": "integer"
                        },
                        "featured": {
                          "type": "boolean"
                        },
                        "visibility": {
                          "type": "string"
                        },
                        "pricebookId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "priceSummary": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": true,
                              "required": [
                                "pricebookId",
                                "currency",
                                "recurringAmount",
                                "recurringPeriod",
                                "oneTimeAmount",
                                "isFromPrice",
                                "priceBasis",
                                "sortAmount",
                                "summary"
                              ],
                              "properties": {
                                "pricebookId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "recurringAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "recurringPeriod": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oneTimeAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isFromPrice": {
                                  "type": "boolean"
                                },
                                "priceBasis": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sortAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "summary": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "payload": {
                          "type": "object",
                          "additionalProperties": true,
                          "properties": {
                            "selectedVariant": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "code",
                                "name",
                                "skuCode",
                                "facts"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "code": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "skuCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "facts": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/products/{productCode}/sold-within": {
      "get": {
        "operationId": "getCatalogueViewProductSoldWithin",
        "summary": "Get where a product is sold",
        "tags": [
          "Published Catalogue View — Browse"
        ],
        "description": "Resolves a product offering, variant, package or solution code and returns whether it has its own listing and which Packages and Solutions offer it in a step. Account visibility applies. 404 published_listing_not_found carries details.reason UNKNOWN_CODE, NOT_IN_VIEW or NOT_VISIBLE_FOR_ACCOUNT.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueViewId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueViewCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "productCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "standaloneSellable",
                    "offering",
                    "variant",
                    "soldWithin",
                    "next"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "standaloneSellable": {
                      "type": "boolean",
                      "description": "True when the product has its own visible listing in this view; false when it is sold only inside the listed Packages or Solutions."
                    },
                    "offering": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "itemType",
                        "id",
                        "code",
                        "name"
                      ],
                      "properties": {
                        "itemType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT_OFFERING",
                            "PACKAGE",
                            "SOLUTION"
                          ]
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    },
                    "variant": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "code",
                            "name",
                            "skuCode"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "code": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "skuCode": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "soldWithin": {
                      "type": "array",
                      "maxItems": 20,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "itemType",
                          "code",
                          "name",
                          "componentCode",
                          "componentName"
                        ],
                        "properties": {
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "componentCode": {
                            "type": "string",
                            "description": "Package component or Solution step that offers the product."
                          },
                          "componentName": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "next": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/products/{productCode}/configuration": {
      "get": {
        "operationId": "getCatalogueViewProductConfiguration",
        "summary": "Get product configuration",
        "tags": [
          "Published Catalogue View — Configuration"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "productType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "publishRunId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                {
                  "type": "string",
                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                }
              ]
            },
            "in": "path",
            "name": "productCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "itemType",
                    "itemId",
                    "payload"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "payload": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "catalogueView",
                        "channelGroups",
                        "item",
                        "groups",
                        "variants",
                        "variantSelection",
                        "components",
                        "relationships"
                      ],
                      "properties": {
                        "catalogueView": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "code",
                            "channel",
                            "segment",
                            "market",
                            "name"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "code": {
                              "type": "string"
                            },
                            "channel": {
                              "type": "string"
                            },
                            "segment": {
                              "type": "string"
                            },
                            "market": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        },
                        "channelGroups": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "code",
                              "name",
                              "description",
                              "displayOrder",
                              "repeatable",
                              "minInstances",
                              "maxInstances",
                              "attributes"
                            ],
                            "properties": {
                              "id": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "displayOrder": {
                                "type": "integer"
                              },
                              "repeatable": {
                                "type": "boolean"
                              },
                              "minInstances": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "maxInstances": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "attributes": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "code",
                                    "name",
                                    "description",
                                    "dataType",
                                    "unit",
                                    "allowedValues",
                                    "validation",
                                    "attributeCategory",
                                    "piiClassification",
                                    "copyable",
                                    "ownerType",
                                    "valueLevel",
                                    "commercial",
                                    "placement",
                                    "required",
                                    "editable",
                                    "visible",
                                    "defaultValue",
                                    "displayOrder",
                                    "impactFlags",
                                    "groupingBehavior",
                                    "usageFlags",
                                    "metadata",
                                    "source"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "dataType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "NUMBER",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME",
                                        "MONEY",
                                        "ADDRESS",
                                        "ENUM",
                                        "MULTI_SELECT",
                                        "JSON"
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "allowedValues": {
                                      "anyOf": [
                                        {},
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "validation": {
                                      "type": "object",
                                      "additionalProperties": true
                                    },
                                    "attributeCategory": {
                                      "type": "string",
                                      "enum": [
                                        "COMMERCIAL",
                                        "NON_COMMERCIAL"
                                      ]
                                    },
                                    "piiClassification": {
                                      "type": "string",
                                      "enum": [
                                        "NONE",
                                        "PERSONAL",
                                        "SENSITIVE"
                                      ]
                                    },
                                    "copyable": {
                                      "type": "boolean",
                                      "description": "Whether copy configuration copies this value into a new quote."
                                    },
                                    "searchable": {
                                      "type": "boolean",
                                      "description": "Whether values of this attribute are copied into subscription and service search. Absent in older runs (treat as false)."
                                    },
                                    "aliases": {
                                      "type": "array",
                                      "maxItems": 10,
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 60
                                      },
                                      "description": "Other names for this record used in search. Absent in older runs (treat as empty)."
                                    },
                                    "ownerType": {
                                      "type": "string",
                                      "enum": [
                                        "PRODUCT_DEFINITION",
                                        "PRODUCT_OFFERING",
                                        "PRODUCT_VARIANT",
                                        "CATALOGUE_VIEW",
                                        "BUNDLE",
                                        "BUNDLE_COMPONENT"
                                      ]
                                    },
                                    "valueLevel": {
                                      "type": "string",
                                      "enum": [
                                        "CART",
                                        "CART_ITEM",
                                        "UNIT"
                                      ]
                                    },
                                    "required": {
                                      "type": "boolean"
                                    },
                                    "commercial": {
                                      "type": "boolean"
                                    },
                                    "placement": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "componentCode"
                                          ],
                                          "properties": {
                                            "componentCode": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "editable": {
                                      "type": "boolean"
                                    },
                                    "visible": {
                                      "type": "boolean"
                                    },
                                    "defaultValue": {
                                      "anyOf": [
                                        {},
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "displayOrder": {
                                      "type": "integer"
                                    },
                                    "impactFlags": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "groupingBehavior": {
                                      "type": "string",
                                      "enum": [
                                        "NONE",
                                        "GROUPING_KEY",
                                        "UNIT_DETAIL"
                                      ]
                                    },
                                    "usageFlags": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "metadata": {
                                      "type": "object",
                                      "additionalProperties": true
                                    },
                                    "source": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "ownerType",
                                        "ownerId",
                                        "assignmentId"
                                      ],
                                      "properties": {
                                        "ownerType": {
                                          "type": "string"
                                        },
                                        "ownerId": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "assignmentId": {
                                          "type": "string",
                                          "format": "uuid"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "item": {
                          "type": "object",
                          "additionalProperties": true,
                          "required": [
                            "type",
                            "id",
                            "code",
                            "name",
                            "facts"
                          ],
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "code": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "description": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            },
                            "effectiveFrom": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "effectiveTo": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "standaloneSellable": {
                              "type": "boolean"
                            },
                            "visibility": {
                              "type": "string"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "commercialLock": {
                              "type": "boolean"
                            },
                            "productFamily": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "facts": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "instanceNoun": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "singular",
                                    "plural"
                                  ],
                                  "properties": {
                                    "singular": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 40
                                    },
                                    "plural": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 40
                                    }
                                  },
                                  "description": "What one instance is called, singular and plural. Absent in older runs (treat as null)."
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "instanceLabelAttributes": {
                              "type": "array",
                              "maxItems": 3,
                              "items": {
                                "type": "string"
                              },
                              "description": "Ordered attribute codes whose values name one instance. Absent in older runs (treat as empty)."
                            },
                            "aliases": {
                              "type": "array",
                              "maxItems": 10,
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 60
                              },
                              "description": "Other names for this record used in search. Absent in older runs (treat as empty)."
                            },
                            "productDefinition": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "code",
                                "name",
                                "quantityStrategy",
                                "orderProductType",
                                "facts"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "code": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "quantityStrategy": {
                                  "type": "string",
                                  "enum": [
                                    "MULTIPLIER",
                                    "UNIT"
                                  ]
                                },
                                "orderProductType": {
                                  "type": "string",
                                  "enum": [
                                    "SUBSCRIPTION",
                                    "DELIVERABLE"
                                  ]
                                },
                                "facts": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "instanceNoun": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "singular",
                                        "plural"
                                      ],
                                      "properties": {
                                        "singular": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 40
                                        },
                                        "plural": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 40
                                        }
                                      },
                                      "description": "What one instance is called, singular and plural. Absent in older runs (treat as null)."
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "instanceLabelAttributes": {
                                  "type": "array",
                                  "maxItems": 3,
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Ordered attribute codes whose values name one instance. Absent in older runs (treat as empty)."
                                },
                                "aliases": {
                                  "type": "array",
                                  "maxItems": 10,
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 60
                                  },
                                  "description": "Other names for this record used in search. Absent in older runs (treat as empty)."
                                },
                                "unitNoun": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "singular",
                                        "plural"
                                      ],
                                      "properties": {
                                        "singular": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 40
                                        },
                                        "plural": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 40
                                        }
                                      },
                                      "description": "What one unit is called, singular and plural. Only with quantity strategy UNIT. Absent in older runs (treat as null)."
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unitLabelAttributes": {
                                  "type": "array",
                                  "maxItems": 2,
                                  "items": {
                                    "type": "string"
                                  },
                                  "description": "Ordered UNIT-level attribute codes whose values name one unit. Absent in older runs (treat as empty)."
                                }
                              }
                            }
                          }
                        },
                        "groups": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "code",
                              "name",
                              "description",
                              "displayOrder",
                              "repeatable",
                              "minInstances",
                              "maxInstances",
                              "attributes"
                            ],
                            "properties": {
                              "id": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "displayOrder": {
                                "type": "integer"
                              },
                              "repeatable": {
                                "type": "boolean"
                              },
                              "minInstances": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "maxInstances": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "attributes": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "code",
                                    "name",
                                    "description",
                                    "dataType",
                                    "unit",
                                    "allowedValues",
                                    "validation",
                                    "attributeCategory",
                                    "piiClassification",
                                    "copyable",
                                    "ownerType",
                                    "valueLevel",
                                    "commercial",
                                    "placement",
                                    "required",
                                    "editable",
                                    "visible",
                                    "defaultValue",
                                    "displayOrder",
                                    "impactFlags",
                                    "groupingBehavior",
                                    "usageFlags",
                                    "metadata",
                                    "source"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "dataType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "NUMBER",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME",
                                        "MONEY",
                                        "ADDRESS",
                                        "ENUM",
                                        "MULTI_SELECT",
                                        "JSON"
                                      ]
                                    },
                                    "unit": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "allowedValues": {
                                      "anyOf": [
                                        {},
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "validation": {
                                      "type": "object",
                                      "additionalProperties": true
                                    },
                                    "attributeCategory": {
                                      "type": "string",
                                      "enum": [
                                        "COMMERCIAL",
                                        "NON_COMMERCIAL"
                                      ]
                                    },
                                    "piiClassification": {
                                      "type": "string",
                                      "enum": [
                                        "NONE",
                                        "PERSONAL",
                                        "SENSITIVE"
                                      ]
                                    },
                                    "copyable": {
                                      "type": "boolean",
                                      "description": "Whether copy configuration copies this value into a new quote."
                                    },
                                    "searchable": {
                                      "type": "boolean",
                                      "description": "Whether values of this attribute are copied into subscription and service search. Absent in older runs (treat as false)."
                                    },
                                    "aliases": {
                                      "type": "array",
                                      "maxItems": 10,
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 60
                                      },
                                      "description": "Other names for this record used in search. Absent in older runs (treat as empty)."
                                    },
                                    "ownerType": {
                                      "type": "string",
                                      "enum": [
                                        "PRODUCT_DEFINITION",
                                        "PRODUCT_OFFERING",
                                        "PRODUCT_VARIANT",
                                        "CATALOGUE_VIEW",
                                        "BUNDLE",
                                        "BUNDLE_COMPONENT"
                                      ]
                                    },
                                    "valueLevel": {
                                      "type": "string",
                                      "enum": [
                                        "CART",
                                        "CART_ITEM",
                                        "UNIT"
                                      ]
                                    },
                                    "required": {
                                      "type": "boolean"
                                    },
                                    "commercial": {
                                      "type": "boolean"
                                    },
                                    "placement": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "componentCode"
                                          ],
                                          "properties": {
                                            "componentCode": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "editable": {
                                      "type": "boolean"
                                    },
                                    "visible": {
                                      "type": "boolean"
                                    },
                                    "defaultValue": {
                                      "anyOf": [
                                        {},
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "displayOrder": {
                                      "type": "integer"
                                    },
                                    "impactFlags": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "groupingBehavior": {
                                      "type": "string",
                                      "enum": [
                                        "NONE",
                                        "GROUPING_KEY",
                                        "UNIT_DETAIL"
                                      ]
                                    },
                                    "usageFlags": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "metadata": {
                                      "type": "object",
                                      "additionalProperties": true
                                    },
                                    "source": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "ownerType",
                                        "ownerId",
                                        "assignmentId"
                                      ],
                                      "properties": {
                                        "ownerType": {
                                          "type": "string"
                                        },
                                        "ownerId": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "assignmentId": {
                                          "type": "string",
                                          "format": "uuid"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "code",
                              "name",
                              "skuCode",
                              "facts",
                              "adds",
                              "overrides"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "skuCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "facts": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "adds": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "group",
                                    "attribute"
                                  ],
                                  "properties": {
                                    "group": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "id",
                                        "code",
                                        "name",
                                        "repeatable",
                                        "minInstances",
                                        "maxInstances"
                                      ],
                                      "properties": {
                                        "id": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "code": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "repeatable": {
                                          "type": "boolean"
                                        },
                                        "minInstances": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maxInstances": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    "attribute": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "id",
                                        "code",
                                        "name",
                                        "description",
                                        "dataType",
                                        "unit",
                                        "allowedValues",
                                        "validation",
                                        "attributeCategory",
                                        "piiClassification",
                                        "copyable",
                                        "ownerType",
                                        "valueLevel",
                                        "commercial",
                                        "placement",
                                        "required",
                                        "editable",
                                        "visible",
                                        "defaultValue",
                                        "displayOrder",
                                        "impactFlags",
                                        "groupingBehavior",
                                        "usageFlags",
                                        "metadata",
                                        "source"
                                      ],
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "code": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "description": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "dataType": {
                                          "type": "string",
                                          "enum": [
                                            "TEXT",
                                            "NUMBER",
                                            "BOOLEAN",
                                            "DATE",
                                            "DATE_TIME",
                                            "MONEY",
                                            "ADDRESS",
                                            "ENUM",
                                            "MULTI_SELECT",
                                            "JSON"
                                          ]
                                        },
                                        "unit": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "allowedValues": {
                                          "anyOf": [
                                            {},
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "validation": {
                                          "type": "object",
                                          "additionalProperties": true
                                        },
                                        "attributeCategory": {
                                          "type": "string",
                                          "enum": [
                                            "COMMERCIAL",
                                            "NON_COMMERCIAL"
                                          ]
                                        },
                                        "piiClassification": {
                                          "type": "string",
                                          "enum": [
                                            "NONE",
                                            "PERSONAL",
                                            "SENSITIVE"
                                          ]
                                        },
                                        "copyable": {
                                          "type": "boolean",
                                          "description": "Whether copy configuration copies this value into a new quote."
                                        },
                                        "searchable": {
                                          "type": "boolean",
                                          "description": "Whether values of this attribute are copied into subscription and service search. Absent in older runs (treat as false)."
                                        },
                                        "aliases": {
                                          "type": "array",
                                          "maxItems": 10,
                                          "items": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 60
                                          },
                                          "description": "Other names for this record used in search. Absent in older runs (treat as empty)."
                                        },
                                        "ownerType": {
                                          "type": "string",
                                          "enum": [
                                            "PRODUCT_DEFINITION",
                                            "PRODUCT_OFFERING",
                                            "PRODUCT_VARIANT",
                                            "CATALOGUE_VIEW",
                                            "BUNDLE",
                                            "BUNDLE_COMPONENT"
                                          ]
                                        },
                                        "valueLevel": {
                                          "type": "string",
                                          "enum": [
                                            "CART",
                                            "CART_ITEM",
                                            "UNIT"
                                          ]
                                        },
                                        "required": {
                                          "type": "boolean"
                                        },
                                        "commercial": {
                                          "type": "boolean"
                                        },
                                        "placement": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "componentCode"
                                              ],
                                              "properties": {
                                                "componentCode": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "editable": {
                                          "type": "boolean"
                                        },
                                        "visible": {
                                          "type": "boolean"
                                        },
                                        "defaultValue": {
                                          "anyOf": [
                                            {},
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "displayOrder": {
                                          "type": "integer"
                                        },
                                        "impactFlags": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        },
                                        "groupingBehavior": {
                                          "type": "string",
                                          "enum": [
                                            "NONE",
                                            "GROUPING_KEY",
                                            "UNIT_DETAIL"
                                          ]
                                        },
                                        "usageFlags": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        },
                                        "metadata": {
                                          "type": "object",
                                          "additionalProperties": true
                                        },
                                        "source": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "ownerType",
                                            "ownerId",
                                            "assignmentId"
                                          ],
                                          "properties": {
                                            "ownerType": {
                                              "type": "string"
                                            },
                                            "ownerId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "assignmentId": {
                                              "type": "string",
                                              "format": "uuid"
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "overrides": {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "group",
                                    "attribute"
                                  ],
                                  "properties": {
                                    "group": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "id",
                                        "code",
                                        "name",
                                        "repeatable",
                                        "minInstances",
                                        "maxInstances"
                                      ],
                                      "properties": {
                                        "id": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "code": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "repeatable": {
                                          "type": "boolean"
                                        },
                                        "minInstances": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maxInstances": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      }
                                    },
                                    "attribute": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "id",
                                        "code",
                                        "name",
                                        "description",
                                        "dataType",
                                        "unit",
                                        "allowedValues",
                                        "validation",
                                        "attributeCategory",
                                        "piiClassification",
                                        "copyable",
                                        "ownerType",
                                        "valueLevel",
                                        "commercial",
                                        "placement",
                                        "required",
                                        "editable",
                                        "visible",
                                        "defaultValue",
                                        "displayOrder",
                                        "impactFlags",
                                        "groupingBehavior",
                                        "usageFlags",
                                        "metadata",
                                        "source"
                                      ],
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "code": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "description": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "dataType": {
                                          "type": "string",
                                          "enum": [
                                            "TEXT",
                                            "NUMBER",
                                            "BOOLEAN",
                                            "DATE",
                                            "DATE_TIME",
                                            "MONEY",
                                            "ADDRESS",
                                            "ENUM",
                                            "MULTI_SELECT",
                                            "JSON"
                                          ]
                                        },
                                        "unit": {
                                          "anyOf": [
                                            {
                                              "type": "string"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "allowedValues": {
                                          "anyOf": [
                                            {},
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "validation": {
                                          "type": "object",
                                          "additionalProperties": true
                                        },
                                        "attributeCategory": {
                                          "type": "string",
                                          "enum": [
                                            "COMMERCIAL",
                                            "NON_COMMERCIAL"
                                          ]
                                        },
                                        "piiClassification": {
                                          "type": "string",
                                          "enum": [
                                            "NONE",
                                            "PERSONAL",
                                            "SENSITIVE"
                                          ]
                                        },
                                        "copyable": {
                                          "type": "boolean",
                                          "description": "Whether copy configuration copies this value into a new quote."
                                        },
                                        "searchable": {
                                          "type": "boolean",
                                          "description": "Whether values of this attribute are copied into subscription and service search. Absent in older runs (treat as false)."
                                        },
                                        "aliases": {
                                          "type": "array",
                                          "maxItems": 10,
                                          "items": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 60
                                          },
                                          "description": "Other names for this record used in search. Absent in older runs (treat as empty)."
                                        },
                                        "ownerType": {
                                          "type": "string",
                                          "enum": [
                                            "PRODUCT_DEFINITION",
                                            "PRODUCT_OFFERING",
                                            "PRODUCT_VARIANT",
                                            "CATALOGUE_VIEW",
                                            "BUNDLE",
                                            "BUNDLE_COMPONENT"
                                          ]
                                        },
                                        "valueLevel": {
                                          "type": "string",
                                          "enum": [
                                            "CART",
                                            "CART_ITEM",
                                            "UNIT"
                                          ]
                                        },
                                        "required": {
                                          "type": "boolean"
                                        },
                                        "commercial": {
                                          "type": "boolean"
                                        },
                                        "placement": {
                                          "anyOf": [
                                            {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "componentCode"
                                              ],
                                              "properties": {
                                                "componentCode": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "editable": {
                                          "type": "boolean"
                                        },
                                        "visible": {
                                          "type": "boolean"
                                        },
                                        "defaultValue": {
                                          "anyOf": [
                                            {},
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "displayOrder": {
                                          "type": "integer"
                                        },
                                        "impactFlags": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        },
                                        "groupingBehavior": {
                                          "type": "string",
                                          "enum": [
                                            "NONE",
                                            "GROUPING_KEY",
                                            "UNIT_DETAIL"
                                          ]
                                        },
                                        "usageFlags": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        },
                                        "metadata": {
                                          "type": "object",
                                          "additionalProperties": true
                                        },
                                        "source": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "ownerType",
                                            "ownerId",
                                            "assignmentId"
                                          ],
                                          "properties": {
                                            "ownerType": {
                                              "type": "string"
                                            },
                                            "ownerId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "assignmentId": {
                                              "type": "string",
                                              "format": "uuid"
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "variantSelection": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "required",
                                "defaultVariantCode",
                                "dimensions",
                                "variants"
                              ],
                              "properties": {
                                "required": {
                                  "type": "boolean"
                                },
                                "defaultVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "dimensions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "attributeId",
                                      "attributeCode",
                                      "label",
                                      "dataType",
                                      "unit",
                                      "required",
                                      "displayOrder",
                                      "values",
                                      "metadata",
                                      "source"
                                    ],
                                    "properties": {
                                      "attributeId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "attributeCode": {
                                        "type": "string"
                                      },
                                      "label": {
                                        "type": "string"
                                      },
                                      "dataType": {
                                        "type": "string"
                                      },
                                      "unit": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "required": {
                                        "type": "boolean"
                                      },
                                      "displayOrder": {
                                        "type": "integer"
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "value",
                                            "label",
                                            "displayOrder",
                                            "variantCodes"
                                          ],
                                          "properties": {
                                            "value": {},
                                            "label": {
                                              "type": "string"
                                            },
                                            "displayOrder": {
                                              "type": "integer"
                                            },
                                            "variantCodes": {
                                              "type": "array",
                                              "items": {
                                                "type": "string"
                                              }
                                            }
                                          }
                                        }
                                      },
                                      "metadata": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "source": {
                                        "type": "object",
                                        "additionalProperties": true
                                      }
                                    }
                                  }
                                },
                                "variants": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "variantId",
                                      "variantCode",
                                      "productCode",
                                      "name",
                                      "skuCode",
                                      "values",
                                      "facts"
                                    ],
                                    "properties": {
                                      "variantId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "variantCode": {
                                        "type": "string"
                                      },
                                      "productCode": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "skuCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "values": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "facts": {
                                        "type": "object",
                                        "additionalProperties": true
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "components": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "code",
                              "name",
                              "description",
                              "minSelect",
                              "maxSelect",
                              "displayOrder",
                              "visibilityCondition",
                              "questionAttributeCodes",
                              "groups",
                              "options"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "minSelect": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "maxSelect": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "displayOrder": {
                                "type": "integer"
                              },
                              "visibilityCondition": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "addMode": {
                                "type": "string",
                                "enum": [
                                  "LIST",
                                  "NEW_ROW"
                                ],
                                "description": "How a seller adds this step's products: LIST shows each product with Add; NEW_ROW ends the step with an empty row to search and choose in. Always LIST for package contents; absent only in runs published before the setting existed (treat as LIST)."
                              },
                              "aliases": {
                                "type": "array",
                                "maxItems": 10,
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 60
                                },
                                "description": "Other names for this record used in search. Absent in older runs (treat as empty)."
                              },
                              "questionAttributeCodes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "groups": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "code",
                                    "name",
                                    "description",
                                    "displayOrder",
                                    "repeatable",
                                    "minInstances",
                                    "maxInstances",
                                    "attributes"
                                  ],
                                  "properties": {
                                    "id": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "displayOrder": {
                                      "type": "integer"
                                    },
                                    "repeatable": {
                                      "type": "boolean"
                                    },
                                    "minInstances": {
                                      "anyOf": [
                                        {
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maxInstances": {
                                      "anyOf": [
                                        {
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "attributes": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "id",
                                          "code",
                                          "name",
                                          "description",
                                          "dataType",
                                          "unit",
                                          "allowedValues",
                                          "validation",
                                          "attributeCategory",
                                          "piiClassification",
                                          "copyable",
                                          "ownerType",
                                          "valueLevel",
                                          "commercial",
                                          "placement",
                                          "required",
                                          "editable",
                                          "visible",
                                          "defaultValue",
                                          "displayOrder",
                                          "impactFlags",
                                          "groupingBehavior",
                                          "usageFlags",
                                          "metadata",
                                          "source"
                                        ],
                                        "properties": {
                                          "id": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "code": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "description": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "dataType": {
                                            "type": "string",
                                            "enum": [
                                              "TEXT",
                                              "NUMBER",
                                              "BOOLEAN",
                                              "DATE",
                                              "DATE_TIME",
                                              "MONEY",
                                              "ADDRESS",
                                              "ENUM",
                                              "MULTI_SELECT",
                                              "JSON"
                                            ]
                                          },
                                          "unit": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "allowedValues": {
                                            "anyOf": [
                                              {},
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "validation": {
                                            "type": "object",
                                            "additionalProperties": true
                                          },
                                          "attributeCategory": {
                                            "type": "string",
                                            "enum": [
                                              "COMMERCIAL",
                                              "NON_COMMERCIAL"
                                            ]
                                          },
                                          "piiClassification": {
                                            "type": "string",
                                            "enum": [
                                              "NONE",
                                              "PERSONAL",
                                              "SENSITIVE"
                                            ]
                                          },
                                          "copyable": {
                                            "type": "boolean",
                                            "description": "Whether copy configuration copies this value into a new quote."
                                          },
                                          "searchable": {
                                            "type": "boolean",
                                            "description": "Whether values of this attribute are copied into subscription and service search. Absent in older runs (treat as false)."
                                          },
                                          "aliases": {
                                            "type": "array",
                                            "maxItems": 10,
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 60
                                            },
                                            "description": "Other names for this record used in search. Absent in older runs (treat as empty)."
                                          },
                                          "ownerType": {
                                            "type": "string",
                                            "enum": [
                                              "PRODUCT_DEFINITION",
                                              "PRODUCT_OFFERING",
                                              "PRODUCT_VARIANT",
                                              "CATALOGUE_VIEW",
                                              "BUNDLE",
                                              "BUNDLE_COMPONENT"
                                            ]
                                          },
                                          "valueLevel": {
                                            "type": "string",
                                            "enum": [
                                              "CART",
                                              "CART_ITEM",
                                              "UNIT"
                                            ]
                                          },
                                          "required": {
                                            "type": "boolean"
                                          },
                                          "commercial": {
                                            "type": "boolean"
                                          },
                                          "placement": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "componentCode"
                                                ],
                                                "properties": {
                                                  "componentCode": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "editable": {
                                            "type": "boolean"
                                          },
                                          "visible": {
                                            "type": "boolean"
                                          },
                                          "defaultValue": {
                                            "anyOf": [
                                              {},
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "displayOrder": {
                                            "type": "integer"
                                          },
                                          "impactFlags": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "groupingBehavior": {
                                            "type": "string",
                                            "enum": [
                                              "NONE",
                                              "GROUPING_KEY",
                                              "UNIT_DETAIL"
                                            ]
                                          },
                                          "usageFlags": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "metadata": {
                                            "type": "object",
                                            "additionalProperties": true
                                          },
                                          "source": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "ownerType",
                                              "ownerId",
                                              "assignmentId"
                                            ],
                                            "properties": {
                                              "ownerType": {
                                                "type": "string"
                                              },
                                              "ownerId": {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              "assignmentId": {
                                                "type": "string",
                                                "format": "uuid"
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "sourceOptionId",
                                    "sourceOptionType",
                                    "optionType",
                                    "optionId",
                                    "defaultSelected",
                                    "minQuantity",
                                    "maxQuantity",
                                    "defaultQuantity",
                                    "quantityMode",
                                    "displayOrder",
                                    "locked"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "sourceOptionId": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "sourceOptionType": {
                                      "type": "string",
                                      "enum": [
                                        "PRODUCT_DEFINITION",
                                        "PRODUCT_OFFERING",
                                        "PRODUCT_VARIANT",
                                        "PACKAGE",
                                        "SOLUTION"
                                      ]
                                    },
                                    "optionType": {
                                      "type": "string",
                                      "enum": [
                                        "PRODUCT_DEFINITION",
                                        "PRODUCT_OFFERING",
                                        "PRODUCT_VARIANT",
                                        "PACKAGE",
                                        "SOLUTION"
                                      ]
                                    },
                                    "optionId": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "defaultSelected": {
                                      "type": "boolean"
                                    },
                                    "minQuantity": {
                                      "anyOf": [
                                        {
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maxQuantity": {
                                      "anyOf": [
                                        {
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "defaultQuantity": {
                                      "anyOf": [
                                        {
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "quantityMode": {
                                      "type": "string",
                                      "enum": [
                                        "FOLLOW_PARENT",
                                        "FIXED",
                                        "USER_ENTERED"
                                      ]
                                    },
                                    "displayOrder": {
                                      "type": "integer"
                                    },
                                    "locked": {
                                      "type": "boolean"
                                    },
                                    "definition": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "id",
                                        "code",
                                        "name"
                                      ],
                                      "description": "Present only on a PRODUCT_DEFINITION option.",
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "code": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "candidateCount": {
                                      "type": "integer",
                                      "description": "Active products the definition offers when published. Present only on a PRODUCT_DEFINITION option."
                                    },
                                    "candidate": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "shortDescription",
                                            "sortName",
                                            "searchText",
                                            "facets",
                                            "facetLabels"
                                          ],
                                          "properties": {
                                            "shortDescription": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sortName": {
                                              "type": "string"
                                            },
                                            "searchText": {
                                              "type": "string"
                                            },
                                            "facets": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "type": "array",
                                                "items": {
                                                  "type": "string"
                                                }
                                              }
                                            },
                                            "facetLabels": {
                                              "type": "object",
                                              "additionalProperties": {
                                                "type": "string"
                                              }
                                            }
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "item": {
                                      "type": "object",
                                      "additionalProperties": true,
                                      "required": [
                                        "item"
                                      ],
                                      "properties": {
                                        "item": {
                                          "type": "object",
                                          "additionalProperties": true,
                                          "required": [
                                            "type",
                                            "id"
                                          ],
                                          "properties": {
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "PRODUCT_OFFERING",
                                                "PRODUCT_VARIANT",
                                                "PACKAGE",
                                                "SOLUTION"
                                              ]
                                            },
                                            "id": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "code": {
                                              "type": "string"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "description": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "status": {
                                              "type": "string"
                                            },
                                            "cycle": {
                                              "type": "boolean"
                                            },
                                            "unavailable": {
                                              "type": "boolean"
                                            },
                                            "skuCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "facts": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "kind": {
                                              "type": "string",
                                              "enum": [
                                                "PACKAGE",
                                                "SOLUTION"
                                              ]
                                            },
                                            "commercialLock": {
                                              "type": "boolean"
                                            },
                                            "productOffering": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "id",
                                                "code",
                                                "name"
                                              ],
                                              "properties": {
                                                "id": {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                "code": {
                                                  "type": "string"
                                                },
                                                "name": {
                                                  "type": "string"
                                                }
                                              }
                                            }
                                          }
                                        },
                                        "selectedVariantId": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "productConfiguration": {
                                          "type": "object",
                                          "additionalProperties": true,
                                          "required": [
                                            "item"
                                          ],
                                          "properties": {
                                            "item": {
                                              "type": "object",
                                              "additionalProperties": true,
                                              "required": [
                                                "type",
                                                "id"
                                              ],
                                              "properties": {
                                                "type": {
                                                  "type": "string",
                                                  "enum": [
                                                    "PRODUCT_OFFERING",
                                                    "PRODUCT_VARIANT",
                                                    "PACKAGE",
                                                    "SOLUTION"
                                                  ]
                                                },
                                                "id": {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                "code": {
                                                  "type": "string"
                                                },
                                                "name": {
                                                  "type": "string"
                                                },
                                                "description": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "status": {
                                                  "type": "string"
                                                },
                                                "cycle": {
                                                  "type": "boolean"
                                                },
                                                "unavailable": {
                                                  "type": "boolean"
                                                },
                                                "skuCode": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "facts": {
                                                  "type": "object",
                                                  "additionalProperties": true
                                                },
                                                "kind": {
                                                  "type": "string",
                                                  "enum": [
                                                    "PACKAGE",
                                                    "SOLUTION"
                                                  ]
                                                },
                                                "commercialLock": {
                                                  "type": "boolean"
                                                },
                                                "productOffering": {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "id",
                                                    "code",
                                                    "name"
                                                  ],
                                                  "properties": {
                                                    "id": {
                                                      "type": "string",
                                                      "format": "uuid"
                                                    },
                                                    "code": {
                                                      "type": "string"
                                                    },
                                                    "name": {
                                                      "type": "string"
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "relationships": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Get current published product configuration"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/products/{productCode}/configuration/structure": {
      "get": {
        "operationId": "getCatalogueViewProductConfigurationStructure",
        "summary": "Get product structure",
        "tags": [
          "Published Catalogue View — Browse"
        ],
        "description": "One bounded read of the root, each step or component with its options, variants (listed up to 12, otherwise summarised by selector dimension), required fields and add-on groups. Parts dropped to stay within about 24 KB are listed in omittedPaths. 409 configuration_too_large when even the reduced structure does not fit.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "productType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "publishRunId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                {
                  "type": "string",
                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                }
              ]
            },
            "in": "path",
            "name": "productCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "itemType",
                    "itemId",
                    "section",
                    "structure",
                    "omittedPaths"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "section": {
                      "enum": [
                        "STRUCTURE"
                      ]
                    },
                    "structure": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "root",
                        "components"
                      ],
                      "properties": {
                        "root": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "itemType",
                            "code",
                            "name",
                            "requiredFields",
                            "optionalFieldCount"
                          ],
                          "properties": {
                            "itemType": {
                              "type": "string",
                              "enum": [
                                "PRODUCT_OFFERING",
                                "PACKAGE",
                                "SOLUTION"
                              ]
                            },
                            "code": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "quantityStrategy": {
                              "type": "string",
                              "enum": [
                                "MULTIPLIER",
                                "UNIT"
                              ]
                            },
                            "variants": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "count"
                              ],
                              "properties": {
                                "count": {
                                  "type": "integer",
                                  "minimum": 1
                                },
                                "defaultVariantCode": {
                                  "type": "string"
                                },
                                "dimensions": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "code",
                                      "label",
                                      "values"
                                    ],
                                    "properties": {
                                      "code": {
                                        "type": "string"
                                      },
                                      "label": {
                                        "type": "string"
                                      },
                                      "values": {
                                        "type": "array",
                                        "items": {}
                                      },
                                      "valueCount": {
                                        "type": "integer"
                                      }
                                    }
                                  }
                                },
                                "items": {
                                  "type": "array",
                                  "maxItems": 12,
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "code",
                                      "name"
                                    ],
                                    "properties": {
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "values": {
                                        "type": "object",
                                        "additionalProperties": true
                                      }
                                    }
                                  }
                                },
                                "itemsTruncated": {
                                  "type": "boolean"
                                },
                                "resolveBy": {
                                  "type": "string"
                                }
                              }
                            },
                            "requiredFields": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "code",
                                  "name",
                                  "dataType",
                                  "valueLevel"
                                ],
                                "properties": {
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "dataType": {
                                    "type": "string"
                                  },
                                  "valueLevel": {
                                    "type": "string",
                                    "enum": [
                                      "CART",
                                      "CART_ITEM",
                                      "UNIT"
                                    ]
                                  },
                                  "defaultValue": {},
                                  "allowedValues": {
                                    "type": "array",
                                    "maxItems": 20,
                                    "items": {}
                                  },
                                  "allowedValueCount": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "description": "Total allowed values when the list is truncated or omitted."
                                  },
                                  "repeatableGroup": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "code",
                                      "minInstances",
                                      "maxInstances"
                                    ],
                                    "properties": {
                                      "code": {
                                        "type": "string"
                                      },
                                      "minInstances": {
                                        "anyOf": [
                                          {
                                            "type": "integer"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "maxInstances": {
                                        "anyOf": [
                                          {
                                            "type": "integer"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "optionalFieldCount": {
                              "type": "integer",
                              "minimum": 0
                            },
                            "addonGroups": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "code",
                                  "name",
                                  "minSelect",
                                  "maxSelect",
                                  "addons"
                                ],
                                "properties": {
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "minSelect": {
                                    "anyOf": [
                                      {
                                        "type": "integer"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "maxSelect": {
                                    "anyOf": [
                                      {
                                        "type": "integer"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "variantCodes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "Present when the group applies only to these variants."
                                  },
                                  "addons": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "targetType",
                                        "code",
                                        "name",
                                        "required",
                                        "defaultSelected",
                                        "minQuantity",
                                        "maxQuantity",
                                        "defaultQuantity"
                                      ],
                                      "properties": {
                                        "targetType": {
                                          "type": "string",
                                          "enum": [
                                            "PRODUCT_OFFERING",
                                            "PRODUCT_VARIANT",
                                            "PACKAGE"
                                          ]
                                        },
                                        "code": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "required": {
                                          "type": "boolean"
                                        },
                                        "defaultSelected": {
                                          "type": "boolean"
                                        },
                                        "minQuantity": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maxQuantity": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "defaultQuantity": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "quantityStrategy": {
                                          "type": "string",
                                          "enum": [
                                            "MULTIPLIER",
                                            "UNIT"
                                          ]
                                        },
                                        "requiredFields": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "code",
                                              "name",
                                              "dataType",
                                              "valueLevel"
                                            ],
                                            "properties": {
                                              "code": {
                                                "type": "string"
                                              },
                                              "name": {
                                                "type": "string"
                                              },
                                              "dataType": {
                                                "type": "string"
                                              },
                                              "valueLevel": {
                                                "type": "string",
                                                "enum": [
                                                  "CART",
                                                  "CART_ITEM",
                                                  "UNIT"
                                                ]
                                              },
                                              "defaultValue": {},
                                              "allowedValues": {
                                                "type": "array",
                                                "maxItems": 20,
                                                "items": {}
                                              },
                                              "allowedValueCount": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "description": "Total allowed values when the list is truncated or omitted."
                                              },
                                              "repeatableGroup": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "code",
                                                  "minInstances",
                                                  "maxInstances"
                                                ],
                                                "properties": {
                                                  "code": {
                                                    "type": "string"
                                                  },
                                                  "minInstances": {
                                                    "anyOf": [
                                                      {
                                                        "type": "integer"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "maxInstances": {
                                                    "anyOf": [
                                                      {
                                                        "type": "integer"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        },
                                        "requiredFieldCount": {
                                          "type": "integer",
                                          "minimum": 0
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "components": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "componentCode",
                              "name",
                              "minSelect",
                              "maxSelect",
                              "displayOrder",
                              "requiredFields",
                              "optionalFieldCount",
                              "options"
                            ],
                            "properties": {
                              "componentCode": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "minSelect": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "maxSelect": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "displayOrder": {
                                "type": "integer"
                              },
                              "addMode": {
                                "type": "string",
                                "enum": [
                                  "LIST",
                                  "NEW_ROW"
                                ],
                                "description": "How a seller adds this step's products: LIST or an empty NEW_ROW."
                              },
                              "questions": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "code",
                                    "name",
                                    "dataType",
                                    "valueLevel"
                                  ],
                                  "properties": {
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "dataType": {
                                      "type": "string"
                                    },
                                    "valueLevel": {
                                      "type": "string",
                                      "enum": [
                                        "CART",
                                        "CART_ITEM",
                                        "UNIT"
                                      ]
                                    },
                                    "defaultValue": {},
                                    "allowedValues": {
                                      "type": "array",
                                      "maxItems": 20,
                                      "items": {}
                                    },
                                    "allowedValueCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "description": "Total allowed values when the list is truncated or omitted."
                                    },
                                    "repeatableGroup": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "code",
                                        "minInstances",
                                        "maxInstances"
                                      ],
                                      "properties": {
                                        "code": {
                                          "type": "string"
                                        },
                                        "minInstances": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maxInstances": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      }
                                    }
                                  }
                                },
                                "description": "Solution fields asked at this step; their values belong to the Solution."
                              },
                              "optionalQuestionCount": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "requiredFields": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "code",
                                    "name",
                                    "dataType",
                                    "valueLevel"
                                  ],
                                  "properties": {
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "dataType": {
                                      "type": "string"
                                    },
                                    "valueLevel": {
                                      "type": "string",
                                      "enum": [
                                        "CART",
                                        "CART_ITEM",
                                        "UNIT"
                                      ]
                                    },
                                    "defaultValue": {},
                                    "allowedValues": {
                                      "type": "array",
                                      "maxItems": 20,
                                      "items": {}
                                    },
                                    "allowedValueCount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "description": "Total allowed values when the list is truncated or omitted."
                                    },
                                    "repeatableGroup": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "code",
                                        "minInstances",
                                        "maxInstances"
                                      ],
                                      "properties": {
                                        "code": {
                                          "type": "string"
                                        },
                                        "minInstances": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "maxInstances": {
                                          "anyOf": [
                                            {
                                              "type": "integer"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        }
                                      }
                                    }
                                  }
                                },
                                "description": "Step fields applied to each chosen option."
                              },
                              "optionalFieldCount": {
                                "type": "integer",
                                "minimum": 0
                              },
                              "options": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "optionType",
                                    "code",
                                    "name",
                                    "defaultSelected",
                                    "minQuantity",
                                    "maxQuantity",
                                    "defaultQuantity",
                                    "quantityMode",
                                    "displayOrder"
                                  ],
                                  "properties": {
                                    "optionType": {
                                      "type": "string",
                                      "enum": [
                                        "PRODUCT_DEFINITION",
                                        "PRODUCT_OFFERING",
                                        "PRODUCT_VARIANT",
                                        "PACKAGE",
                                        "SOLUTION"
                                      ]
                                    },
                                    "code": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "name": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "offeringCode": {
                                      "type": "string",
                                      "description": "Owning offering of a variant option."
                                    },
                                    "defaultSelected": {
                                      "type": "boolean"
                                    },
                                    "minQuantity": {
                                      "anyOf": [
                                        {
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maxQuantity": {
                                      "anyOf": [
                                        {
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "defaultQuantity": {
                                      "anyOf": [
                                        {
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "quantityMode": {
                                      "type": "string"
                                    },
                                    "displayOrder": {
                                      "type": "integer"
                                    },
                                    "locked": {
                                      "type": "boolean"
                                    },
                                    "unavailable": {
                                      "type": "boolean"
                                    },
                                    "candidateCount": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "next": {
                                      "type": "string"
                                    },
                                    "quantityStrategy": {
                                      "type": "string",
                                      "enum": [
                                        "MULTIPLIER",
                                        "UNIT"
                                      ]
                                    },
                                    "variants": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "count"
                                      ],
                                      "properties": {
                                        "count": {
                                          "type": "integer",
                                          "minimum": 1
                                        },
                                        "defaultVariantCode": {
                                          "type": "string"
                                        },
                                        "dimensions": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "code",
                                              "label",
                                              "values"
                                            ],
                                            "properties": {
                                              "code": {
                                                "type": "string"
                                              },
                                              "label": {
                                                "type": "string"
                                              },
                                              "values": {
                                                "type": "array",
                                                "items": {}
                                              },
                                              "valueCount": {
                                                "type": "integer"
                                              }
                                            }
                                          }
                                        },
                                        "items": {
                                          "type": "array",
                                          "maxItems": 12,
                                          "items": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "code",
                                              "name"
                                            ],
                                            "properties": {
                                              "code": {
                                                "type": "string"
                                              },
                                              "name": {
                                                "type": "string"
                                              },
                                              "values": {
                                                "type": "object",
                                                "additionalProperties": true
                                              }
                                            }
                                          }
                                        },
                                        "itemsTruncated": {
                                          "type": "boolean"
                                        },
                                        "resolveBy": {
                                          "type": "string"
                                        }
                                      }
                                    },
                                    "requiredFields": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "code",
                                          "name",
                                          "dataType",
                                          "valueLevel"
                                        ],
                                        "properties": {
                                          "code": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "dataType": {
                                            "type": "string"
                                          },
                                          "valueLevel": {
                                            "type": "string",
                                            "enum": [
                                              "CART",
                                              "CART_ITEM",
                                              "UNIT"
                                            ]
                                          },
                                          "defaultValue": {},
                                          "allowedValues": {
                                            "type": "array",
                                            "maxItems": 20,
                                            "items": {}
                                          },
                                          "allowedValueCount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "description": "Total allowed values when the list is truncated or omitted."
                                          },
                                          "repeatableGroup": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "code",
                                              "minInstances",
                                              "maxInstances"
                                            ],
                                            "properties": {
                                              "code": {
                                                "type": "string"
                                              },
                                              "minInstances": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "maxInstances": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "optionalFieldCount": {
                                      "type": "integer",
                                      "minimum": 0
                                    },
                                    "addonGroups": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "code",
                                          "name",
                                          "minSelect",
                                          "maxSelect",
                                          "addons"
                                        ],
                                        "properties": {
                                          "code": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "minSelect": {
                                            "anyOf": [
                                              {
                                                "type": "integer"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "maxSelect": {
                                            "anyOf": [
                                              {
                                                "type": "integer"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "variantCodes": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            },
                                            "description": "Present when the group applies only to these variants."
                                          },
                                          "addons": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "targetType",
                                                "code",
                                                "name",
                                                "required",
                                                "defaultSelected",
                                                "minQuantity",
                                                "maxQuantity",
                                                "defaultQuantity"
                                              ],
                                              "properties": {
                                                "targetType": {
                                                  "type": "string",
                                                  "enum": [
                                                    "PRODUCT_OFFERING",
                                                    "PRODUCT_VARIANT",
                                                    "PACKAGE"
                                                  ]
                                                },
                                                "code": {
                                                  "type": "string"
                                                },
                                                "name": {
                                                  "type": "string"
                                                },
                                                "required": {
                                                  "type": "boolean"
                                                },
                                                "defaultSelected": {
                                                  "type": "boolean"
                                                },
                                                "minQuantity": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "maxQuantity": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "defaultQuantity": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "quantityStrategy": {
                                                  "type": "string",
                                                  "enum": [
                                                    "MULTIPLIER",
                                                    "UNIT"
                                                  ]
                                                },
                                                "requiredFields": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "code",
                                                      "name",
                                                      "dataType",
                                                      "valueLevel"
                                                    ],
                                                    "properties": {
                                                      "code": {
                                                        "type": "string"
                                                      },
                                                      "name": {
                                                        "type": "string"
                                                      },
                                                      "dataType": {
                                                        "type": "string"
                                                      },
                                                      "valueLevel": {
                                                        "type": "string",
                                                        "enum": [
                                                          "CART",
                                                          "CART_ITEM",
                                                          "UNIT"
                                                        ]
                                                      },
                                                      "defaultValue": {},
                                                      "allowedValues": {
                                                        "type": "array",
                                                        "maxItems": 20,
                                                        "items": {}
                                                      },
                                                      "allowedValueCount": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "description": "Total allowed values when the list is truncated or omitted."
                                                      },
                                                      "repeatableGroup": {
                                                        "type": "object",
                                                        "additionalProperties": false,
                                                        "required": [
                                                          "code",
                                                          "minInstances",
                                                          "maxInstances"
                                                        ],
                                                        "properties": {
                                                          "code": {
                                                            "type": "string"
                                                          },
                                                          "minInstances": {
                                                            "anyOf": [
                                                              {
                                                                "type": "integer"
                                                              },
                                                              {
                                                                "type": "null"
                                                              }
                                                            ]
                                                          },
                                                          "maxInstances": {
                                                            "anyOf": [
                                                              {
                                                                "type": "integer"
                                                              },
                                                              {
                                                                "type": "null"
                                                              }
                                                            ]
                                                          }
                                                        }
                                                      }
                                                    }
                                                  }
                                                },
                                                "requiredFieldCount": {
                                                  "type": "integer",
                                                  "minimum": 0
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "components": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "componentCode",
                                          "name",
                                          "minSelect",
                                          "maxSelect",
                                          "displayOrder",
                                          "requiredFields",
                                          "optionalFieldCount",
                                          "options"
                                        ],
                                        "properties": {
                                          "componentCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "minSelect": {
                                            "anyOf": [
                                              {
                                                "type": "integer"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "maxSelect": {
                                            "anyOf": [
                                              {
                                                "type": "integer"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "displayOrder": {
                                            "type": "integer"
                                          },
                                          "addMode": {
                                            "type": "string",
                                            "enum": [
                                              "LIST",
                                              "NEW_ROW"
                                            ],
                                            "description": "How a seller adds this step's products: LIST or an empty NEW_ROW."
                                          },
                                          "questions": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "code",
                                                "name",
                                                "dataType",
                                                "valueLevel"
                                              ],
                                              "properties": {
                                                "code": {
                                                  "type": "string"
                                                },
                                                "name": {
                                                  "type": "string"
                                                },
                                                "dataType": {
                                                  "type": "string"
                                                },
                                                "valueLevel": {
                                                  "type": "string",
                                                  "enum": [
                                                    "CART",
                                                    "CART_ITEM",
                                                    "UNIT"
                                                  ]
                                                },
                                                "defaultValue": {},
                                                "allowedValues": {
                                                  "type": "array",
                                                  "maxItems": 20,
                                                  "items": {}
                                                },
                                                "allowedValueCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "description": "Total allowed values when the list is truncated or omitted."
                                                },
                                                "repeatableGroup": {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "code",
                                                    "minInstances",
                                                    "maxInstances"
                                                  ],
                                                  "properties": {
                                                    "code": {
                                                      "type": "string"
                                                    },
                                                    "minInstances": {
                                                      "anyOf": [
                                                        {
                                                          "type": "integer"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "maxInstances": {
                                                      "anyOf": [
                                                        {
                                                          "type": "integer"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  }
                                                }
                                              }
                                            },
                                            "description": "Solution fields asked at this step; their values belong to the Solution."
                                          },
                                          "optionalQuestionCount": {
                                            "type": "integer",
                                            "minimum": 0
                                          },
                                          "requiredFields": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "code",
                                                "name",
                                                "dataType",
                                                "valueLevel"
                                              ],
                                              "properties": {
                                                "code": {
                                                  "type": "string"
                                                },
                                                "name": {
                                                  "type": "string"
                                                },
                                                "dataType": {
                                                  "type": "string"
                                                },
                                                "valueLevel": {
                                                  "type": "string",
                                                  "enum": [
                                                    "CART",
                                                    "CART_ITEM",
                                                    "UNIT"
                                                  ]
                                                },
                                                "defaultValue": {},
                                                "allowedValues": {
                                                  "type": "array",
                                                  "maxItems": 20,
                                                  "items": {}
                                                },
                                                "allowedValueCount": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "description": "Total allowed values when the list is truncated or omitted."
                                                },
                                                "repeatableGroup": {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "code",
                                                    "minInstances",
                                                    "maxInstances"
                                                  ],
                                                  "properties": {
                                                    "code": {
                                                      "type": "string"
                                                    },
                                                    "minInstances": {
                                                      "anyOf": [
                                                        {
                                                          "type": "integer"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "maxInstances": {
                                                      "anyOf": [
                                                        {
                                                          "type": "integer"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    }
                                                  }
                                                }
                                              }
                                            },
                                            "description": "Step fields applied to each chosen option."
                                          },
                                          "optionalFieldCount": {
                                            "type": "integer",
                                            "minimum": 0
                                          },
                                          "options": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "optionType",
                                                "code",
                                                "name",
                                                "defaultSelected",
                                                "minQuantity",
                                                "maxQuantity",
                                                "defaultQuantity",
                                                "quantityMode",
                                                "displayOrder"
                                              ],
                                              "properties": {
                                                "optionType": {
                                                  "type": "string",
                                                  "enum": [
                                                    "PRODUCT_DEFINITION",
                                                    "PRODUCT_OFFERING",
                                                    "PRODUCT_VARIANT",
                                                    "PACKAGE",
                                                    "SOLUTION"
                                                  ]
                                                },
                                                "code": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "name": {
                                                  "anyOf": [
                                                    {
                                                      "type": "string"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "offeringCode": {
                                                  "type": "string",
                                                  "description": "Owning offering of a variant option."
                                                },
                                                "defaultSelected": {
                                                  "type": "boolean"
                                                },
                                                "minQuantity": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "maxQuantity": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "defaultQuantity": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "quantityMode": {
                                                  "type": "string"
                                                },
                                                "displayOrder": {
                                                  "type": "integer"
                                                },
                                                "locked": {
                                                  "type": "boolean"
                                                },
                                                "unavailable": {
                                                  "type": "boolean"
                                                },
                                                "candidateCount": {
                                                  "type": "integer",
                                                  "minimum": 0
                                                },
                                                "next": {
                                                  "type": "string"
                                                },
                                                "quantityStrategy": {
                                                  "type": "string",
                                                  "enum": [
                                                    "MULTIPLIER",
                                                    "UNIT"
                                                  ]
                                                },
                                                "variants": {
                                                  "type": "object",
                                                  "additionalProperties": false,
                                                  "required": [
                                                    "count"
                                                  ],
                                                  "properties": {
                                                    "count": {
                                                      "type": "integer",
                                                      "minimum": 1
                                                    },
                                                    "defaultVariantCode": {
                                                      "type": "string"
                                                    },
                                                    "dimensions": {
                                                      "type": "array",
                                                      "items": {
                                                        "type": "object",
                                                        "additionalProperties": false,
                                                        "required": [
                                                          "code",
                                                          "label",
                                                          "values"
                                                        ],
                                                        "properties": {
                                                          "code": {
                                                            "type": "string"
                                                          },
                                                          "label": {
                                                            "type": "string"
                                                          },
                                                          "values": {
                                                            "type": "array",
                                                            "items": {}
                                                          },
                                                          "valueCount": {
                                                            "type": "integer"
                                                          }
                                                        }
                                                      }
                                                    },
                                                    "items": {
                                                      "type": "array",
                                                      "maxItems": 12,
                                                      "items": {
                                                        "type": "object",
                                                        "additionalProperties": false,
                                                        "required": [
                                                          "code",
                                                          "name"
                                                        ],
                                                        "properties": {
                                                          "code": {
                                                            "type": "string"
                                                          },
                                                          "name": {
                                                            "type": "string"
                                                          },
                                                          "values": {
                                                            "type": "object",
                                                            "additionalProperties": true
                                                          }
                                                        }
                                                      }
                                                    },
                                                    "itemsTruncated": {
                                                      "type": "boolean"
                                                    },
                                                    "resolveBy": {
                                                      "type": "string"
                                                    }
                                                  }
                                                },
                                                "requiredFields": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "code",
                                                      "name",
                                                      "dataType",
                                                      "valueLevel"
                                                    ],
                                                    "properties": {
                                                      "code": {
                                                        "type": "string"
                                                      },
                                                      "name": {
                                                        "type": "string"
                                                      },
                                                      "dataType": {
                                                        "type": "string"
                                                      },
                                                      "valueLevel": {
                                                        "type": "string",
                                                        "enum": [
                                                          "CART",
                                                          "CART_ITEM",
                                                          "UNIT"
                                                        ]
                                                      },
                                                      "defaultValue": {},
                                                      "allowedValues": {
                                                        "type": "array",
                                                        "maxItems": 20,
                                                        "items": {}
                                                      },
                                                      "allowedValueCount": {
                                                        "type": "integer",
                                                        "minimum": 0,
                                                        "description": "Total allowed values when the list is truncated or omitted."
                                                      },
                                                      "repeatableGroup": {
                                                        "type": "object",
                                                        "additionalProperties": false,
                                                        "required": [
                                                          "code",
                                                          "minInstances",
                                                          "maxInstances"
                                                        ],
                                                        "properties": {
                                                          "code": {
                                                            "type": "string"
                                                          },
                                                          "minInstances": {
                                                            "anyOf": [
                                                              {
                                                                "type": "integer"
                                                              },
                                                              {
                                                                "type": "null"
                                                              }
                                                            ]
                                                          },
                                                          "maxInstances": {
                                                            "anyOf": [
                                                              {
                                                                "type": "integer"
                                                              },
                                                              {
                                                                "type": "null"
                                                              }
                                                            ]
                                                          }
                                                        }
                                                      }
                                                    }
                                                  }
                                                },
                                                "optionalFieldCount": {
                                                  "type": "integer",
                                                  "minimum": 0
                                                },
                                                "addonGroups": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "code",
                                                      "name",
                                                      "minSelect",
                                                      "maxSelect",
                                                      "addons"
                                                    ],
                                                    "properties": {
                                                      "code": {
                                                        "type": "string"
                                                      },
                                                      "name": {
                                                        "type": "string"
                                                      },
                                                      "minSelect": {
                                                        "anyOf": [
                                                          {
                                                            "type": "integer"
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "maxSelect": {
                                                        "anyOf": [
                                                          {
                                                            "type": "integer"
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "variantCodes": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        },
                                                        "description": "Present when the group applies only to these variants."
                                                      },
                                                      "addons": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "targetType",
                                                            "code",
                                                            "name",
                                                            "required",
                                                            "defaultSelected",
                                                            "minQuantity",
                                                            "maxQuantity",
                                                            "defaultQuantity"
                                                          ],
                                                          "properties": {
                                                            "targetType": {
                                                              "type": "string",
                                                              "enum": [
                                                                "PRODUCT_OFFERING",
                                                                "PRODUCT_VARIANT",
                                                                "PACKAGE"
                                                              ]
                                                            },
                                                            "code": {
                                                              "type": "string"
                                                            },
                                                            "name": {
                                                              "type": "string"
                                                            },
                                                            "required": {
                                                              "type": "boolean"
                                                            },
                                                            "defaultSelected": {
                                                              "type": "boolean"
                                                            },
                                                            "minQuantity": {
                                                              "anyOf": [
                                                                {
                                                                  "type": "integer"
                                                                },
                                                                {
                                                                  "type": "null"
                                                                }
                                                              ]
                                                            },
                                                            "maxQuantity": {
                                                              "anyOf": [
                                                                {
                                                                  "type": "integer"
                                                                },
                                                                {
                                                                  "type": "null"
                                                                }
                                                              ]
                                                            },
                                                            "defaultQuantity": {
                                                              "anyOf": [
                                                                {
                                                                  "type": "integer"
                                                                },
                                                                {
                                                                  "type": "null"
                                                                }
                                                              ]
                                                            },
                                                            "quantityStrategy": {
                                                              "type": "string",
                                                              "enum": [
                                                                "MULTIPLIER",
                                                                "UNIT"
                                                              ]
                                                            },
                                                            "requiredFields": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "object",
                                                                "additionalProperties": false,
                                                                "required": [
                                                                  "code",
                                                                  "name",
                                                                  "dataType",
                                                                  "valueLevel"
                                                                ],
                                                                "properties": {
                                                                  "code": {
                                                                    "type": "string"
                                                                  },
                                                                  "name": {
                                                                    "type": "string"
                                                                  },
                                                                  "dataType": {
                                                                    "type": "string"
                                                                  },
                                                                  "valueLevel": {
                                                                    "type": "string",
                                                                    "enum": [
                                                                      "CART",
                                                                      "CART_ITEM",
                                                                      "UNIT"
                                                                    ]
                                                                  },
                                                                  "defaultValue": {},
                                                                  "allowedValues": {
                                                                    "type": "array",
                                                                    "maxItems": 20,
                                                                    "items": {}
                                                                  },
                                                                  "allowedValueCount": {
                                                                    "type": "integer",
                                                                    "minimum": 0,
                                                                    "description": "Total allowed values when the list is truncated or omitted."
                                                                  },
                                                                  "repeatableGroup": {
                                                                    "type": "object",
                                                                    "additionalProperties": false,
                                                                    "required": [
                                                                      "code",
                                                                      "minInstances",
                                                                      "maxInstances"
                                                                    ],
                                                                    "properties": {
                                                                      "code": {
                                                                        "type": "string"
                                                                      },
                                                                      "minInstances": {
                                                                        "anyOf": [
                                                                          {
                                                                            "type": "integer"
                                                                          },
                                                                          {
                                                                            "type": "null"
                                                                          }
                                                                        ]
                                                                      },
                                                                      "maxInstances": {
                                                                        "anyOf": [
                                                                          {
                                                                            "type": "integer"
                                                                          },
                                                                          {
                                                                            "type": "null"
                                                                          }
                                                                        ]
                                                                      }
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            },
                                                            "requiredFieldCount": {
                                                              "type": "integer",
                                                              "minimum": 0
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  }
                                                },
                                                "componentCount": {
                                                  "type": "integer",
                                                  "minimum": 0
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "componentCount": {
                                      "type": "integer",
                                      "minimum": 0
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "omittedPaths": {
                      "type": "array",
                      "maxItems": 100,
                      "items": {
                        "type": "string"
                      },
                      "description": "Parts left out to keep the structure bounded; read them with section FIELDS."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/products/{productCode}/relationships": {
      "get": {
        "operationId": "getCatalogueViewProductRelationships",
        "summary": "Get product add-ons",
        "tags": [
          "Published Catalogue View — Configuration"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "productType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "productOfferingId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "productOfferingCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "schema": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                {
                  "type": "string",
                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                }
              ]
            },
            "in": "path",
            "name": "productCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "sourceType",
                    "sourceId",
                    "addonGroups",
                    "relationships"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "sourceId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "addonGroups": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "code",
                          "name",
                          "description",
                          "minSelect",
                          "maxSelect",
                          "displayOrder",
                          "options"
                        ],
                        "properties": {
                          "id": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "minSelect": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxSelect": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "options": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "relationshipId",
                                "relationshipType",
                                "addonGroupId",
                                "addonGroupCode",
                                "targetType",
                                "targetId",
                                "targetCode",
                                "targetName",
                                "minQuantity",
                                "maxQuantity",
                                "defaultQuantity",
                                "defaultSelected",
                                "required",
                                "priority",
                                "payload"
                              ],
                              "properties": {
                                "relationshipId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "relationshipType": {
                                  "type": "string",
                                  "enum": [
                                    "OPTIONAL_ADDON",
                                    "REQUIRED_ADDON",
                                    "UPGRADE_TO",
                                    "MIGRATES_TO"
                                  ]
                                },
                                "addonGroupId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "addonGroupCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "targetType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PRODUCT_VARIANT",
                                    "PACKAGE"
                                  ]
                                },
                                "targetId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "targetCode": {
                                  "type": "string"
                                },
                                "targetName": {
                                  "type": "string"
                                },
                                "minQuantity": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "maxQuantity": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "defaultQuantity": {
                                  "anyOf": [
                                    {
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "defaultSelected": {
                                  "type": "boolean"
                                },
                                "required": {
                                  "type": "boolean"
                                },
                                "priority": {
                                  "type": "integer"
                                },
                                "payload": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "relationships": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "upgradeTo",
                        "migratesTo"
                      ],
                      "properties": {
                        "upgradeTo": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "relationshipId",
                              "relationshipType",
                              "addonGroupId",
                              "addonGroupCode",
                              "targetType",
                              "targetId",
                              "targetCode",
                              "targetName",
                              "minQuantity",
                              "maxQuantity",
                              "defaultQuantity",
                              "defaultSelected",
                              "required",
                              "priority",
                              "payload"
                            ],
                            "properties": {
                              "relationshipId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "relationshipType": {
                                "type": "string",
                                "enum": [
                                  "OPTIONAL_ADDON",
                                  "REQUIRED_ADDON",
                                  "UPGRADE_TO",
                                  "MIGRATES_TO"
                                ]
                              },
                              "addonGroupId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "addonGroupCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targetType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE"
                                ]
                              },
                              "targetId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "targetCode": {
                                "type": "string"
                              },
                              "targetName": {
                                "type": "string"
                              },
                              "minQuantity": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "maxQuantity": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "defaultQuantity": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "defaultSelected": {
                                "type": "boolean"
                              },
                              "required": {
                                "type": "boolean"
                              },
                              "priority": {
                                "type": "integer"
                              },
                              "payload": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        },
                        "migratesTo": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "relationshipId",
                              "relationshipType",
                              "addonGroupId",
                              "addonGroupCode",
                              "targetType",
                              "targetId",
                              "targetCode",
                              "targetName",
                              "minQuantity",
                              "maxQuantity",
                              "defaultQuantity",
                              "defaultSelected",
                              "required",
                              "priority",
                              "payload"
                            ],
                            "properties": {
                              "relationshipId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "relationshipType": {
                                "type": "string",
                                "enum": [
                                  "OPTIONAL_ADDON",
                                  "REQUIRED_ADDON",
                                  "UPGRADE_TO",
                                  "MIGRATES_TO"
                                ]
                              },
                              "addonGroupId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "addonGroupCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targetType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE"
                                ]
                              },
                              "targetId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "targetCode": {
                                "type": "string"
                              },
                              "targetName": {
                                "type": "string"
                              },
                              "minQuantity": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "maxQuantity": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "defaultQuantity": {
                                "anyOf": [
                                  {
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "defaultSelected": {
                                "type": "boolean"
                              },
                              "required": {
                                "type": "boolean"
                              },
                              "priority": {
                                "type": "integer"
                              },
                              "payload": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Get current published add-ons and product relationships"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/products/{productCode}/charges": {
      "get": {
        "operationId": "getPublishedProductCharges",
        "summary": "Get product charges",
        "tags": [
          "Published Catalogue View — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "pricebookCode",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "productType",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "variantCode",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "productCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "pricebookId",
                    "pricebookCode",
                    "itemType",
                    "itemId",
                    "charges"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "type": "string"
                    },
                    "itemType": {
                      "type": "string"
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "itemType",
                          "itemId",
                          "chargeDefinitionId",
                          "chargeCode",
                          "chargeType",
                          "pricingRole",
                          "activationMode",
                          "billingPeriod",
                          "ratingMode",
                          "quantityBasis",
                          "inputAttributeId",
                          "inputAttributeCode",
                          "inputAttributeUnit",
                          "priceSource",
                          "pricingMethod",
                          "currency",
                          "resolvedPrice",
                          "sourcePricebookId",
                          "sourcePricebookEntryId",
                          "payload"
                        ],
                        "properties": {
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeDefinitionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "activationMode": {
                            "type": "string",
                            "enum": [
                              "ALWAYS",
                              "RULE_CONTROLLED"
                            ]
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "quantityBasis": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inputAttributeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inputAttributeCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inputAttributeUnit": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priceSource": {
                            "type": "string",
                            "enum": [
                              "CATALOGUE",
                              "EXTERNAL"
                            ]
                          },
                          "pricingMethod": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "resolvedPrice": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "payload": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Get the published charges of a product."
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/prices": {
      "get": {
        "operationId": "getPublishedPriceSummaries",
        "summary": "Get price summaries",
        "tags": [
          "Published Catalogue View — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "pricebookCode",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_OFFERING",
                "PRODUCT_VARIANT",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "itemType",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "itemRefs",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "productType",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "productCodes",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "variantCode",
            "required": false
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "pricebookId",
                    "pricebookCode",
                    "items"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "type": "string"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "itemType",
                          "itemId",
                          "currency",
                          "recurringAmount",
                          "recurringPeriod",
                          "oneTimeAmount",
                          "hasMeteredCharges",
                          "hasConditionalPricing",
                          "isFromPrice",
                          "priceBasis",
                          "sortAmount",
                          "summary"
                        ],
                        "properties": {
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "recurringAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "recurringPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "oneTimeAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "hasMeteredCharges": {
                            "type": "boolean"
                          },
                          "hasConditionalPricing": {
                            "type": "boolean"
                          },
                          "isFromPrice": {
                            "type": "boolean"
                          },
                          "priceBasis": {
                            "type": "string"
                          },
                          "sortAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "summary": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Get published price summaries for products in a catalogue view."
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/allowed-products": {
      "get": {
        "operationId": "getCatalogueViewAllowedProducts",
        "summary": "List agreement products",
        "tags": [
          "Published Catalogue View — Context"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueViewId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueViewCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "in": "query",
            "name": "accountId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "accountId",
                    "visibilityMode",
                    "items"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string"
                    },
                    "visibilityMode": {
                      "type": "string",
                      "enum": [
                        "ADD_TO_CATALOGUE",
                        "ONLY_AGREEMENT_PRODUCTS"
                      ]
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "customerAgreementId",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "payload"
                        ],
                        "properties": {
                          "customerAgreementId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "payload": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME",
        "description": "Get agreement products allowed for an Account"
      }
    },
    "/api/v1/catalogue-views/{catalogueViewCode}/step-candidates": {
      "get": {
        "operationId": "getCatalogueViewStepCandidates",
        "summary": "List solution step options",
        "tags": [
          "Published Catalogue View — Browse"
        ],
        "description": "Searches, filters and pages the products, variants and Packages a Solution step offers, from the publication the Quote uses. Candidate filters are sent as filter[<attributeCode>]=<value>; repeat a key to accept several values of one attribute. The cursor is opaque and keyset-based. Prices are not returned; read price summaries for the visible rows.",
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueViewId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueViewCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "publishRunId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "bundleCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "stepCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "q",
            "required": false
          },
          {
            "schema": {
              "default": "name",
              "type": "string",
              "enum": [
                "name",
                "code"
              ]
            },
            "in": "query",
            "name": "sort",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "in": "query",
            "name": "filter",
            "required": false,
            "description": "Candidate filters sent as filter[<attributeCode>]=<value>; repeat a key for several values."
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "catalogueViewCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "publishRunId",
                    "catalogueViewId",
                    "bundleCode",
                    "stepCode",
                    "total",
                    "items",
                    "filters",
                    "nextCursor"
                  ],
                  "properties": {
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "bundleCode": {
                      "type": "string"
                    },
                    "stepCode": {
                      "type": "string"
                    },
                    "total": {
                      "type": "integer",
                      "description": "Candidates matching the search and filters."
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "sourceOptionId",
                          "optionType",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "title",
                          "shortDescription",
                          "definition",
                          "facets"
                        ],
                        "properties": {
                          "sourceOptionId": {
                            "type": "string",
                            "format": "uuid",
                            "description": "The step option that offers this candidate."
                          },
                          "optionType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE"
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string",
                            "description": "The product code to add to the step."
                          },
                          "title": {
                            "type": "string"
                          },
                          "shortDescription": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "definition": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "code",
                                  "name"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "facets": {
                            "type": "object",
                            "additionalProperties": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "description": "Attribute code to the distinct values this candidate has for that attribute."
                          }
                        }
                      }
                    },
                    "filters": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "attributeCode",
                          "label",
                          "values"
                        ],
                        "properties": {
                          "attributeCode": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "value",
                                "count"
                              ],
                              "properties": {
                                "value": {
                                  "type": "string"
                                },
                                "count": {
                                  "type": "integer"
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "PUBLISHED_RUNTIME"
      }
    },
    "/api/v1/pricebooks": {
      "get": {
        "operationId": "listPricebooks",
        "summary": "List pricebooks",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "parentPricebookId",
                          "kind",
                          "code",
                          "name",
                          "description",
                          "currency",
                          "effectiveFrom",
                          "effectiveTo",
                          "status",
                          "facts",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentPricebookId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "STANDARD",
                              "AGREEMENT"
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "effectiveFrom": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createPricebook",
        "summary": "Create a pricebook",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "parentPricebookId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "parentPricebookCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "code",
                  "name",
                  "currency"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "parentPricebookId",
                    "kind",
                    "code",
                    "name",
                    "description",
                    "currency",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentPricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "STANDARD",
                        "AGREEMENT"
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/pricebooks/{pricebookId}": {
      "get": {
        "operationId": "getPricebook",
        "summary": "Get a pricebook",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "parentPricebookId",
                    "kind",
                    "code",
                    "name",
                    "description",
                    "currency",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentPricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "STANDARD",
                        "AGREEMENT"
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updatePricebook",
        "summary": "Update a pricebook",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "parentPricebookId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "parentPricebookCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  },
                  "facts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "parentPricebookId",
                    "kind",
                    "code",
                    "name",
                    "description",
                    "currency",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentPricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "STANDARD",
                        "AGREEMENT"
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deletePricebook",
        "summary": "Delete a pricebook",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/pricebook-assignments": {
      "get": {
        "operationId": "listPricebookAssignments",
        "summary": "List pricebook assignments",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "pricebookId",
                          "assignmentType",
                          "catalogueViewId",
                          "accountId",
                          "priority",
                          "effectiveFrom",
                          "effectiveTo",
                          "status",
                          "facts",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "pricebookId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "assignmentType": {
                            "type": "string",
                            "enum": [
                              "CATALOGUE_VIEW_DEFAULT",
                              "ACCOUNT"
                            ]
                          },
                          "catalogueViewId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "accountId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priority": {
                            "type": "integer"
                          },
                          "effectiveFrom": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createPricebookAssignment",
        "summary": "Create a pricebook assignment",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "pricebookId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "pricebookCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "assignmentType": {
                    "type": "string",
                    "enum": [
                      "CATALOGUE_VIEW_DEFAULT",
                      "ACCOUNT"
                    ]
                  },
                  "catalogueViewId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "catalogueViewCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "accountId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "priority": {
                    "default": 100,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "assignmentType"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "pricebookId",
                    "assignmentType",
                    "catalogueViewId",
                    "accountId",
                    "priority",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "assignmentType": {
                      "type": "string",
                      "enum": [
                        "CATALOGUE_VIEW_DEFAULT",
                        "ACCOUNT"
                      ]
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priority": {
                      "type": "integer"
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/pricebook-assignments/{assignmentId}": {
      "get": {
        "operationId": "getPricebookAssignment",
        "summary": "Get a pricebook assignment",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "assignmentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "pricebookId",
                    "assignmentType",
                    "catalogueViewId",
                    "accountId",
                    "priority",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "assignmentType": {
                      "type": "string",
                      "enum": [
                        "CATALOGUE_VIEW_DEFAULT",
                        "ACCOUNT"
                      ]
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priority": {
                      "type": "integer"
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updatePricebookAssignment",
        "summary": "Update a pricebook assignment",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pricebookId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "pricebookCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "assignmentType": {
                    "type": "string",
                    "enum": [
                      "CATALOGUE_VIEW_DEFAULT",
                      "ACCOUNT"
                    ]
                  },
                  "catalogueViewId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "catalogueViewCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "accountId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "priority": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000000
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  },
                  "facts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "assignmentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "pricebookId",
                    "assignmentType",
                    "catalogueViewId",
                    "accountId",
                    "priority",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "assignmentType": {
                      "type": "string",
                      "enum": [
                        "CATALOGUE_VIEW_DEFAULT",
                        "ACCOUNT"
                      ]
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priority": {
                      "type": "integer"
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deletePricebookAssignment",
        "summary": "Delete a pricebook assignment",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "assignmentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/charge-definitions": {
      "get": {
        "operationId": "listChargeDefinitions",
        "summary": "List charge definitions",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "ownerType",
                          "ownerId",
                          "code",
                          "name",
                          "description",
                          "chargeType",
                          "pricingRole",
                          "activationMode",
                          "billingPeriod",
                          "ratingMode",
                          "priceSource",
                          "quantityBasis",
                          "inputAttributeId",
                          "priceSelector",
                          "status",
                          "facts",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "ownerType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_DEFINITION",
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "ownerId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "activationMode": {
                            "type": "string",
                            "enum": [
                              "ALWAYS",
                              "RULE_CONTROLLED"
                            ]
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "priceSource": {
                            "type": "string",
                            "enum": [
                              "CATALOGUE",
                              "EXTERNAL"
                            ]
                          },
                          "quantityBasis": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "ITEM",
                                  "QUANTITY",
                                  "UNIT",
                                  "ATTRIBUTE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inputAttributeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priceSelector": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inputAttribute": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "code",
                                  "name",
                                  "dataType",
                                  "unit"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "dataType": {
                                    "type": "string"
                                  },
                                  "unit": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createChargeDefinition",
        "summary": "Create a charge definition",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "ownerType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_DEFINITION",
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE",
                      "SOLUTION"
                    ]
                  },
                  "ownerId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "ownerCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "ownerProductOfferingId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "ownerProductOfferingCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "chargeType": {
                    "type": "string",
                    "enum": [
                      "ONE_TIME",
                      "RECURRING"
                    ]
                  },
                  "pricingRole": {
                    "default": "CHARGE",
                    "type": "string",
                    "enum": [
                      "CHARGE",
                      "DISCOUNT",
                      "SURCHARGE"
                    ]
                  },
                  "activationMode": {
                    "default": "ALWAYS",
                    "type": "string",
                    "enum": [
                      "ALWAYS",
                      "RULE_CONTROLLED"
                    ]
                  },
                  "billingPeriod": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "ratingMode": {
                    "default": "CART",
                    "type": "string",
                    "enum": [
                      "CART",
                      "METERED"
                    ]
                  },
                  "priceSource": {
                    "default": "CATALOGUE",
                    "type": "string",
                    "enum": [
                      "CATALOGUE",
                      "EXTERNAL"
                    ]
                  },
                  "quantityBasis": {
                    "default": "ITEM",
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "ITEM",
                          "QUANTITY",
                          "UNIT",
                          "ATTRIBUTE"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inputAttributeId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inputAttributeCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_]{0,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "priceSelector": {
                    "default": null,
                    "anyOf": [
                      {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "ATTRIBUTE"
                                ]
                              },
                              "dimensions": {
                                "minItems": 1,
                                "maxItems": 5,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "attributeCode": {
                                      "type": "string",
                                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                                    },
                                    "valueType": {
                                      "type": "string",
                                      "enum": [
                                        "CODE",
                                        "NUMBER",
                                        "BOOLEAN"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "attributeCode",
                                    "valueType"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "mode",
                              "dimensions"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "RULE_CONTROLLED"
                                ]
                              },
                              "namedPrices": {
                                "minItems": 1,
                                "maxItems": 100,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "code": {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200
                                    }
                                  },
                                  "required": [
                                    "code",
                                    "name"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "defaultPriceCode": {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                              }
                            },
                            "required": [
                              "mode",
                              "namedPrices"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "ownerType",
                  "code",
                  "name",
                  "chargeType"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "ownerType",
                    "ownerId",
                    "code",
                    "name",
                    "description",
                    "chargeType",
                    "pricingRole",
                    "activationMode",
                    "billingPeriod",
                    "ratingMode",
                    "priceSource",
                    "quantityBasis",
                    "inputAttributeId",
                    "priceSelector",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "ownerType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "ownerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "chargeType": {
                      "type": "string",
                      "enum": [
                        "ONE_TIME",
                        "RECURRING"
                      ]
                    },
                    "pricingRole": {
                      "type": "string",
                      "enum": [
                        "CHARGE",
                        "DISCOUNT",
                        "SURCHARGE"
                      ]
                    },
                    "activationMode": {
                      "type": "string",
                      "enum": [
                        "ALWAYS",
                        "RULE_CONTROLLED"
                      ]
                    },
                    "billingPeriod": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ratingMode": {
                      "type": "string",
                      "enum": [
                        "CART",
                        "METERED"
                      ]
                    },
                    "priceSource": {
                      "type": "string",
                      "enum": [
                        "CATALOGUE",
                        "EXTERNAL"
                      ]
                    },
                    "quantityBasis": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "ITEM",
                            "QUANTITY",
                            "UNIT",
                            "ATTRIBUTE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "inputAttributeId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priceSelector": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "inputAttribute": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "code",
                            "name",
                            "dataType",
                            "unit"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "code": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "dataType": {
                              "type": "string"
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/charge-definitions/{chargeDefinitionId}": {
      "get": {
        "operationId": "getChargeDefinition",
        "summary": "Get a charge definition",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "chargeDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "ownerType",
                    "ownerId",
                    "code",
                    "name",
                    "description",
                    "chargeType",
                    "pricingRole",
                    "activationMode",
                    "billingPeriod",
                    "ratingMode",
                    "priceSource",
                    "quantityBasis",
                    "inputAttributeId",
                    "priceSelector",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "ownerType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "ownerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "chargeType": {
                      "type": "string",
                      "enum": [
                        "ONE_TIME",
                        "RECURRING"
                      ]
                    },
                    "pricingRole": {
                      "type": "string",
                      "enum": [
                        "CHARGE",
                        "DISCOUNT",
                        "SURCHARGE"
                      ]
                    },
                    "activationMode": {
                      "type": "string",
                      "enum": [
                        "ALWAYS",
                        "RULE_CONTROLLED"
                      ]
                    },
                    "billingPeriod": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ratingMode": {
                      "type": "string",
                      "enum": [
                        "CART",
                        "METERED"
                      ]
                    },
                    "priceSource": {
                      "type": "string",
                      "enum": [
                        "CATALOGUE",
                        "EXTERNAL"
                      ]
                    },
                    "quantityBasis": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "ITEM",
                            "QUANTITY",
                            "UNIT",
                            "ATTRIBUTE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "inputAttributeId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priceSelector": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "inputAttribute": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "code",
                            "name",
                            "dataType",
                            "unit"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "code": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "dataType": {
                              "type": "string"
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateChargeDefinition",
        "summary": "Update a charge definition",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "chargeType": {
                    "type": "string",
                    "enum": [
                      "ONE_TIME",
                      "RECURRING"
                    ]
                  },
                  "pricingRole": {
                    "type": "string",
                    "enum": [
                      "CHARGE",
                      "DISCOUNT",
                      "SURCHARGE"
                    ]
                  },
                  "activationMode": {
                    "type": "string",
                    "enum": [
                      "ALWAYS",
                      "RULE_CONTROLLED"
                    ]
                  },
                  "billingPeriod": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "ratingMode": {
                    "type": "string",
                    "enum": [
                      "CART",
                      "METERED"
                    ]
                  },
                  "priceSource": {
                    "type": "string",
                    "enum": [
                      "CATALOGUE",
                      "EXTERNAL"
                    ]
                  },
                  "quantityBasis": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "ITEM",
                          "QUANTITY",
                          "UNIT",
                          "ATTRIBUTE"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inputAttributeId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "inputAttributeCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[a-z][a-z0-9_]{0,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "priceSelector": {
                    "anyOf": [
                      {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "ATTRIBUTE"
                                ]
                              },
                              "dimensions": {
                                "minItems": 1,
                                "maxItems": 5,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "attributeCode": {
                                      "type": "string",
                                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                                    },
                                    "valueType": {
                                      "type": "string",
                                      "enum": [
                                        "CODE",
                                        "NUMBER",
                                        "BOOLEAN"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "attributeCode",
                                    "valueType"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "mode",
                              "dimensions"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "RULE_CONTROLLED"
                                ]
                              },
                              "namedPrices": {
                                "minItems": 1,
                                "maxItems": 100,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "code": {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    },
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200
                                    }
                                  },
                                  "required": [
                                    "code",
                                    "name"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "defaultPriceCode": {
                                "type": "string",
                                "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                              }
                            },
                            "required": [
                              "mode",
                              "namedPrices"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  },
                  "facts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "chargeDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "ownerType",
                    "ownerId",
                    "code",
                    "name",
                    "description",
                    "chargeType",
                    "pricingRole",
                    "activationMode",
                    "billingPeriod",
                    "ratingMode",
                    "priceSource",
                    "quantityBasis",
                    "inputAttributeId",
                    "priceSelector",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "ownerType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "ownerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "chargeType": {
                      "type": "string",
                      "enum": [
                        "ONE_TIME",
                        "RECURRING"
                      ]
                    },
                    "pricingRole": {
                      "type": "string",
                      "enum": [
                        "CHARGE",
                        "DISCOUNT",
                        "SURCHARGE"
                      ]
                    },
                    "activationMode": {
                      "type": "string",
                      "enum": [
                        "ALWAYS",
                        "RULE_CONTROLLED"
                      ]
                    },
                    "billingPeriod": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ratingMode": {
                      "type": "string",
                      "enum": [
                        "CART",
                        "METERED"
                      ]
                    },
                    "priceSource": {
                      "type": "string",
                      "enum": [
                        "CATALOGUE",
                        "EXTERNAL"
                      ]
                    },
                    "quantityBasis": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "ITEM",
                            "QUANTITY",
                            "UNIT",
                            "ATTRIBUTE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "inputAttributeId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priceSelector": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "inputAttribute": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "code",
                            "name",
                            "dataType",
                            "unit"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "code": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "dataType": {
                              "type": "string"
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteChargeDefinition",
        "summary": "Delete a charge definition",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "chargeDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/rate-cards": {
      "get": {
        "operationId": "listRateCards",
        "summary": "List rate cards",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "kind",
                          "customerAgreementId",
                          "code",
                          "name",
                          "description",
                          "rateType",
                          "unit",
                          "currency",
                          "status",
                          "facts",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "STANDARD",
                              "AGREEMENT"
                            ]
                          },
                          "customerAgreementId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateType": {
                            "type": "string",
                            "enum": [
                              "VOLUME",
                              "GRADUATED"
                            ]
                          },
                          "unit": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createRateCard",
        "summary": "Create a rate card",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rateType": {
                    "type": "string",
                    "enum": [
                      "VOLUME",
                      "GRADUATED"
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "code",
                  "name",
                  "rateType",
                  "unit",
                  "currency"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "kind",
                    "customerAgreementId",
                    "code",
                    "name",
                    "description",
                    "rateType",
                    "unit",
                    "currency",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "STANDARD",
                        "AGREEMENT"
                      ]
                    },
                    "customerAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateType": {
                      "type": "string",
                      "enum": [
                        "VOLUME",
                        "GRADUATED"
                      ]
                    },
                    "unit": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/rate-cards/{rateCardId}": {
      "get": {
        "operationId": "getRateCard",
        "summary": "Get a rate card",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateCardId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "kind",
                    "customerAgreementId",
                    "code",
                    "name",
                    "description",
                    "rateType",
                    "unit",
                    "currency",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "STANDARD",
                        "AGREEMENT"
                      ]
                    },
                    "customerAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateType": {
                      "type": "string",
                      "enum": [
                        "VOLUME",
                        "GRADUATED"
                      ]
                    },
                    "unit": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateRateCard",
        "summary": "Update a rate card",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rateType": {
                    "type": "string",
                    "enum": [
                      "VOLUME",
                      "GRADUATED"
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32
                  },
                  "currency": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 3
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  },
                  "facts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateCardId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "kind",
                    "customerAgreementId",
                    "code",
                    "name",
                    "description",
                    "rateType",
                    "unit",
                    "currency",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "STANDARD",
                        "AGREEMENT"
                      ]
                    },
                    "customerAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateType": {
                      "type": "string",
                      "enum": [
                        "VOLUME",
                        "GRADUATED"
                      ]
                    },
                    "unit": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteRateCard",
        "summary": "Delete a rate card",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateCardId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/rates": {
      "get": {
        "operationId": "listRates",
        "summary": "List rates",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "rateCardId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "rateCardCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "rateCardId",
                          "startAt",
                          "endBefore",
                          "unitPrice",
                          "fixedAmount",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "rateCardId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "startAt": {
                            "type": "number"
                          },
                          "endBefore": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "fixedAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createRate",
        "summary": "Create a rate",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rateCardId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "rateCardCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "startAt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "unitPrice": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fixedAmount": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "startAt"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "rateCardId",
                    "startAt",
                    "endBefore",
                    "unitPrice",
                    "fixedAmount",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "rateCardId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "startAt": {
                      "type": "number"
                    },
                    "endBefore": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unitPrice": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fixedAmount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/rates/{rateId}": {
      "get": {
        "operationId": "getRate",
        "summary": "Get a rate",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "rateCardId",
                    "startAt",
                    "endBefore",
                    "unitPrice",
                    "fixedAmount",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "rateCardId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "startAt": {
                      "type": "number"
                    },
                    "endBefore": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unitPrice": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fixedAmount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updateRate",
        "summary": "Update a rate",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "startAt": {
                    "type": "number",
                    "minimum": 0
                  },
                  "unitPrice": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fixedAmount": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "rateCardId",
                    "startAt",
                    "endBefore",
                    "unitPrice",
                    "fixedAmount",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "rateCardId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "startAt": {
                      "type": "number"
                    },
                    "endBefore": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unitPrice": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fixedAmount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deleteRate",
        "summary": "Delete a rate",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/pricebook-entries": {
      "get": {
        "operationId": "listPricebookEntries",
        "summary": "List pricebook entries",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "pricebookId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "pricebookCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "chargeDefinitionId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "chargeDefinitionCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "rateCardId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "groupDigest"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "pricebookId",
                          "chargeDefinitionId",
                          "selector",
                          "pricingMethod",
                          "amount",
                          "percentValue",
                          "targetChargeDefinitionId",
                          "rateCardId",
                          "effectiveFrom",
                          "effectiveTo",
                          "status",
                          "facts",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "pricebookId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeDefinitionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "selector": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "pricingMethod": {
                            "type": "string",
                            "enum": [
                              "FIXED_AMOUNT",
                              "RATE_CARD",
                              "PERCENT_OF_CHARGE"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "percentValue": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "targetChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateCardId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectiveFrom": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "groupDigest": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "post": {
        "operationId": "createPricebookEntry",
        "summary": "Create a pricebook entry",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pricebookId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "pricebookCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "chargeDefinitionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "chargeDefinitionCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "chargeDefinitionOwnerType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_DEFINITION",
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE",
                      "SOLUTION"
                    ]
                  },
                  "chargeDefinitionOwnerId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "chargeDefinitionOwnerCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "selector": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 200
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    }
                  },
                  "pricingMethod": {
                    "type": "string",
                    "enum": [
                      "FIXED_AMOUNT",
                      "RATE_CARD",
                      "PERCENT_OF_CHARGE"
                    ]
                  },
                  "amount": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "percentValue": {
                    "anyOf": [
                      {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 100000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetChargeDefinitionId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetChargeDefinitionCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetChargeDefinitionOwnerType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_DEFINITION",
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE",
                      "SOLUTION"
                    ]
                  },
                  "targetChargeDefinitionOwnerId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "targetChargeDefinitionOwnerCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "rateCardId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rateCardCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "pricingMethod"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "pricebookId",
                    "chargeDefinitionId",
                    "selector",
                    "pricingMethod",
                    "amount",
                    "percentValue",
                    "targetChargeDefinitionId",
                    "rateCardId",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "chargeDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "selector": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricingMethod": {
                      "type": "string",
                      "enum": [
                        "FIXED_AMOUNT",
                        "RATE_CARD",
                        "PERCENT_OF_CHARGE"
                      ]
                    },
                    "amount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "percentValue": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "targetChargeDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateCardId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/pricebook-entries/{pricebookEntryId}": {
      "get": {
        "operationId": "getPricebookEntry",
        "summary": "Get a pricebook entry",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookEntryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "pricebookId",
                    "chargeDefinitionId",
                    "selector",
                    "pricingMethod",
                    "amount",
                    "percentValue",
                    "targetChargeDefinitionId",
                    "rateCardId",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "chargeDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "selector": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricingMethod": {
                      "type": "string",
                      "enum": [
                        "FIXED_AMOUNT",
                        "RATE_CARD",
                        "PERCENT_OF_CHARGE"
                      ]
                    },
                    "amount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "percentValue": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "targetChargeDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateCardId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "patch": {
        "operationId": "updatePricebookEntry",
        "summary": "Update a pricebook entry",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "pricingMethod": {
                    "type": "string",
                    "enum": [
                      "FIXED_AMOUNT",
                      "RATE_CARD",
                      "PERCENT_OF_CHARGE"
                    ]
                  },
                  "selector": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 200
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    }
                  },
                  "amount": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "percentValue": {
                    "anyOf": [
                      {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 100000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetChargeDefinitionId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetChargeDefinitionCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetChargeDefinitionOwnerType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_DEFINITION",
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE",
                      "SOLUTION"
                    ]
                  },
                  "targetChargeDefinitionOwnerId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "targetChargeDefinitionOwnerCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "rateCardId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rateCardCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "RETIRED"
                    ]
                  },
                  "facts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookEntryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "pricebookId",
                    "chargeDefinitionId",
                    "selector",
                    "pricingMethod",
                    "amount",
                    "percentValue",
                    "targetChargeDefinitionId",
                    "rateCardId",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "chargeDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "selector": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricingMethod": {
                      "type": "string",
                      "enum": [
                        "FIXED_AMOUNT",
                        "RATE_CARD",
                        "PERCENT_OF_CHARGE"
                      ]
                    },
                    "amount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "percentValue": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "targetChargeDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateCardId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      },
      "delete": {
        "operationId": "deletePricebookEntry",
        "summary": "Delete a pricebook entry",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookEntryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/product-pricing-setups": {
      "get": {
        "operationId": "getProductPricingSetup",
        "summary": "Get product pricing",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_DEFINITION",
                "PRODUCT_OFFERING",
                "PRODUCT_VARIANT",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "ownerType",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "ownerId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "pricebookId",
            "required": true
          },
          {
            "schema": {},
            "in": "query",
            "name": "effectiveAt",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "catalogueId",
                    "owner",
                    "ownerHierarchy",
                    "pricebook",
                    "effectiveAt",
                    "charges"
                  ],
                  "properties": {
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "owner": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "ownerType",
                        "ownerId",
                        "parentOwnerId",
                        "catalogueId",
                        "code",
                        "name",
                        "status"
                      ],
                      "properties": {
                        "ownerType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT_DEFINITION",
                            "PRODUCT_OFFERING",
                            "PRODUCT_VARIANT",
                            "PACKAGE",
                            "SOLUTION"
                          ]
                        },
                        "ownerId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "parentOwnerId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        }
                      }
                    },
                    "ownerHierarchy": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "ownerType",
                          "ownerId",
                          "parentOwnerId",
                          "catalogueId",
                          "code",
                          "name",
                          "status"
                        ],
                        "properties": {
                          "ownerType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_DEFINITION",
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "ownerId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentOwnerId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "pricebook": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "catalogueId",
                        "parentPricebookId",
                        "kind",
                        "code",
                        "name",
                        "description",
                        "currency",
                        "effectiveFrom",
                        "effectiveTo",
                        "status",
                        "facts",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "parentPricebookId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "STANDARD",
                            "AGREEMENT"
                          ]
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "type": "string"
                        },
                        "effectiveFrom": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "effectiveTo": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "RETIRED"
                          ]
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "effectiveAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeDefinition",
                          "sourceOwner",
                          "inheritance",
                          "pricebookEntry",
                          "sourcePricebook",
                          "priceInheritance",
                          "rateCard",
                          "missingPrice"
                        ],
                        "properties": {
                          "chargeDefinition": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "catalogueId",
                              "ownerType",
                              "ownerId",
                              "code",
                              "name",
                              "description",
                              "chargeType",
                              "pricingRole",
                              "activationMode",
                              "billingPeriod",
                              "ratingMode",
                              "priceSource",
                              "quantityBasis",
                              "inputAttributeId",
                              "priceSelector",
                              "status",
                              "facts",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "catalogueId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "ownerType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_DEFINITION",
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "ownerId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "chargeType": {
                                "type": "string",
                                "enum": [
                                  "ONE_TIME",
                                  "RECURRING"
                                ]
                              },
                              "pricingRole": {
                                "type": "string",
                                "enum": [
                                  "CHARGE",
                                  "DISCOUNT",
                                  "SURCHARGE"
                                ]
                              },
                              "activationMode": {
                                "type": "string",
                                "enum": [
                                  "ALWAYS",
                                  "RULE_CONTROLLED"
                                ]
                              },
                              "billingPeriod": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "ratingMode": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "METERED"
                                ]
                              },
                              "priceSource": {
                                "type": "string",
                                "enum": [
                                  "CATALOGUE",
                                  "EXTERNAL"
                                ]
                              },
                              "quantityBasis": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "ITEM",
                                      "QUANTITY",
                                      "UNIT",
                                      "ATTRIBUTE"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "inputAttributeId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "priceSelector": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "inputAttribute": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "dataType",
                                      "unit"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "dataType": {
                                        "type": "string"
                                      },
                                      "unit": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "ACTIVE",
                                  "RETIRED"
                                ]
                              },
                              "facts": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          },
                          "sourceOwner": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "ownerType",
                              "ownerId",
                              "parentOwnerId",
                              "catalogueId",
                              "code",
                              "name",
                              "status"
                            ],
                            "properties": {
                              "ownerType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_DEFINITION",
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "ownerId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "parentOwnerId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "catalogueId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              }
                            }
                          },
                          "inheritance": {
                            "type": "string",
                            "enum": [
                              "DIRECT",
                              "INHERITED"
                            ]
                          },
                          "pricebookEntry": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "pricebookId",
                                  "chargeDefinitionId",
                                  "selector",
                                  "pricingMethod",
                                  "amount",
                                  "percentValue",
                                  "targetChargeDefinitionId",
                                  "rateCardId",
                                  "effectiveFrom",
                                  "effectiveTo",
                                  "status",
                                  "facts",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "pricebookId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "chargeDefinitionId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "selector": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "pricingMethod": {
                                    "type": "string",
                                    "enum": [
                                      "FIXED_AMOUNT",
                                      "RATE_CARD",
                                      "PERCENT_OF_CHARGE"
                                    ]
                                  },
                                  "amount": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "percentValue": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "targetChargeDefinitionId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "rateCardId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "effectiveFrom": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "effectiveTo": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  },
                                  "facts": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebook": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "catalogueId",
                                  "parentPricebookId",
                                  "kind",
                                  "code",
                                  "name",
                                  "description",
                                  "currency",
                                  "effectiveFrom",
                                  "effectiveTo",
                                  "status",
                                  "facts",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "catalogueId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "parentPricebookId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "STANDARD",
                                      "AGREEMENT"
                                    ]
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "description": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "effectiveFrom": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "effectiveTo": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  },
                                  "facts": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priceInheritance": {
                            "type": "string",
                            "enum": [
                              "DIRECT",
                              "INHERITED",
                              "MISSING"
                            ]
                          },
                          "rateCard": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "catalogueId",
                                  "kind",
                                  "customerAgreementId",
                                  "code",
                                  "name",
                                  "description",
                                  "rateType",
                                  "unit",
                                  "currency",
                                  "status",
                                  "facts",
                                  "createdAt",
                                  "updatedAt",
                                  "rates"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "catalogueId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "STANDARD",
                                      "AGREEMENT"
                                    ]
                                  },
                                  "customerAgreementId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "description": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "rateType": {
                                    "type": "string",
                                    "enum": [
                                      "VOLUME",
                                      "GRADUATED"
                                    ]
                                  },
                                  "unit": {
                                    "type": "string"
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  },
                                  "facts": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "rates": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "id",
                                        "rateCardId",
                                        "startAt",
                                        "endBefore",
                                        "unitPrice",
                                        "fixedAmount",
                                        "status",
                                        "createdAt",
                                        "updatedAt"
                                      ],
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "rateCardId": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "startAt": {
                                          "type": "number"
                                        },
                                        "endBefore": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "unitPrice": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "fixedAmount": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "status": {
                                          "type": "string",
                                          "enum": [
                                            "ACTIVE",
                                            "RETIRED"
                                          ]
                                        },
                                        "createdAt": {
                                          "type": "string",
                                          "format": "date-time"
                                        },
                                        "updatedAt": {
                                          "type": "string",
                                          "format": "date-time"
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "missingPrice": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Get composed item pricing"
      },
      "post": {
        "operationId": "createProductPricingSetup",
        "summary": "Create product pricing",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "ownerType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_DEFINITION",
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE",
                      "SOLUTION"
                    ]
                  },
                  "ownerId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "ownerCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "ownerProductOfferingId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "ownerProductOfferingCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "pricebookId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "pricebookCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "charges": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "ownerType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT_DEFINITION",
                            "PRODUCT_OFFERING",
                            "PRODUCT_VARIANT",
                            "PACKAGE",
                            "SOLUTION"
                          ]
                        },
                        "ownerId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "ownerCode": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "ownerProductOfferingId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "ownerProductOfferingCode": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "code": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "chargeType": {
                          "type": "string",
                          "enum": [
                            "ONE_TIME",
                            "RECURRING"
                          ]
                        },
                        "pricingRole": {
                          "default": "CHARGE",
                          "type": "string",
                          "enum": [
                            "CHARGE",
                            "DISCOUNT",
                            "SURCHARGE"
                          ]
                        },
                        "activationMode": {
                          "default": "ALWAYS",
                          "type": "string",
                          "enum": [
                            "ALWAYS",
                            "RULE_CONTROLLED"
                          ]
                        },
                        "billingPeriod": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "ratingMode": {
                          "default": "CART",
                          "type": "string",
                          "enum": [
                            "CART",
                            "METERED"
                          ]
                        },
                        "quantityBasis": {
                          "default": "ITEM",
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "ITEM",
                                "QUANTITY",
                                "UNIT",
                                "ATTRIBUTE"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "inputAttributeId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "inputAttributeCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[a-z][a-z0-9_]{0,63}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "priceSelector": {
                          "default": null,
                          "anyOf": [
                            {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "mode": {
                                      "type": "string",
                                      "enum": [
                                        "ATTRIBUTE"
                                      ]
                                    },
                                    "dimensions": {
                                      "minItems": 1,
                                      "maxItems": 5,
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "attributeCode": {
                                            "type": "string",
                                            "pattern": "^[a-z][a-z0-9_]{0,63}$"
                                          },
                                          "valueType": {
                                            "type": "string",
                                            "enum": [
                                              "CODE",
                                              "NUMBER",
                                              "BOOLEAN"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "attributeCode",
                                          "valueType"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "mode",
                                    "dimensions"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "mode": {
                                      "type": "string",
                                      "enum": [
                                        "RULE_CONTROLLED"
                                      ]
                                    },
                                    "namedPrices": {
                                      "minItems": 1,
                                      "maxItems": 100,
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "code": {
                                            "type": "string",
                                            "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                          },
                                          "name": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 200
                                          }
                                        },
                                        "required": [
                                          "code",
                                          "name"
                                        ],
                                        "additionalProperties": false
                                      }
                                    },
                                    "defaultPriceCode": {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    }
                                  },
                                  "required": [
                                    "mode",
                                    "namedPrices"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "facts": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "pricingMethod": {
                          "type": "string",
                          "enum": [
                            "FIXED_AMOUNT",
                            "RATE_CARD",
                            "PERCENT_OF_CHARGE"
                          ]
                        },
                        "selector": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 200
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              }
                            ]
                          }
                        },
                        "amount": {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "percentValue": {
                          "anyOf": [
                            {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "maximum": 100000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "targetChargeDefinitionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "targetChargeCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "targetChargeOwnerType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT_DEFINITION",
                            "PRODUCT_OFFERING",
                            "PRODUCT_VARIANT",
                            "PACKAGE",
                            "SOLUTION"
                          ]
                        },
                        "targetChargeOwnerId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "targetChargeOwnerCode": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "rateCardId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rateCardCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rateCard": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid",
                                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                                },
                                "code": {
                                  "type": "string",
                                  "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200
                                },
                                "description": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 2000
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rateType": {
                                  "type": "string",
                                  "enum": [
                                    "VOLUME",
                                    "GRADUATED"
                                  ]
                                },
                                "unit": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 32
                                },
                                "currency": {
                                  "type": "string",
                                  "minLength": 3,
                                  "maxLength": 3
                                },
                                "facts": {
                                  "default": {},
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "rates": {
                                  "default": [],
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "startAt": {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      "unitPrice": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "fixedAmount": {
                                        "anyOf": [
                                          {
                                            "type": "number",
                                            "minimum": 0
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "startAt"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "effectiveFrom": {},
                        "effectiveTo": {
                          "anyOf": [
                            {},
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "entryFacts": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "code",
                        "name",
                        "chargeType",
                        "pricingMethod"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "ownerType",
                  "charges"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "owner",
                    "pricebook",
                    "chargeDefinitions",
                    "rateCards",
                    "rates",
                    "pricebookEntries"
                  ],
                  "properties": {
                    "owner": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "ownerType"
                      ],
                      "properties": {
                        "ownerType": {
                          "type": "string"
                        },
                        "ownerId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "ownerCode": {
                          "type": "string"
                        }
                      }
                    },
                    "pricebook": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        }
                      }
                    },
                    "chargeDefinitions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "ownerType",
                          "ownerId",
                          "code",
                          "name",
                          "description",
                          "chargeType",
                          "pricingRole",
                          "activationMode",
                          "billingPeriod",
                          "ratingMode",
                          "priceSource",
                          "quantityBasis",
                          "inputAttributeId",
                          "priceSelector",
                          "status",
                          "facts",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "ownerType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_DEFINITION",
                              "PRODUCT_OFFERING",
                              "PRODUCT_VARIANT",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "ownerId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "activationMode": {
                            "type": "string",
                            "enum": [
                              "ALWAYS",
                              "RULE_CONTROLLED"
                            ]
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "priceSource": {
                            "type": "string",
                            "enum": [
                              "CATALOGUE",
                              "EXTERNAL"
                            ]
                          },
                          "quantityBasis": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "ITEM",
                                  "QUANTITY",
                                  "UNIT",
                                  "ATTRIBUTE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inputAttributeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priceSelector": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": true
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "inputAttribute": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "code",
                                  "name",
                                  "dataType",
                                  "unit"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "dataType": {
                                    "type": "string"
                                  },
                                  "unit": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "rateCards": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "kind",
                          "customerAgreementId",
                          "code",
                          "name",
                          "description",
                          "rateType",
                          "unit",
                          "currency",
                          "status",
                          "facts",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "STANDARD",
                              "AGREEMENT"
                            ]
                          },
                          "customerAgreementId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateType": {
                            "type": "string",
                            "enum": [
                              "VOLUME",
                              "GRADUATED"
                            ]
                          },
                          "unit": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "rates": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "rateCardId",
                          "startAt",
                          "endBefore",
                          "unitPrice",
                          "fixedAmount",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "rateCardId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "startAt": {
                            "type": "number"
                          },
                          "endBefore": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "fixedAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "pricebookEntries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "pricebookId",
                          "chargeDefinitionId",
                          "selector",
                          "pricingMethod",
                          "amount",
                          "percentValue",
                          "targetChargeDefinitionId",
                          "rateCardId",
                          "effectiveFrom",
                          "effectiveTo",
                          "status",
                          "facts",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "pricebookId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeDefinitionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "selector": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "pricingMethod": {
                            "type": "string",
                            "enum": [
                              "FIXED_AMOUNT",
                              "RATE_CARD",
                              "PERCENT_OF_CHARGE"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "percentValue": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "targetChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateCardId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectiveFrom": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Create a complete product pricing setup"
      }
    },
    "/api/v1/pricebooks/{pricebookId}/prices": {
      "get": {
        "operationId": "listPricebookPrices",
        "summary": "List pricebook prices",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_DEFINITION",
                "PRODUCT_OFFERING",
                "PRODUCT_VARIANT",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "ownerType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ONE_TIME",
                "RECURRING"
              ]
            },
            "in": "query",
            "name": "chargeType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "lifecycle",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRICED",
                "MISSING"
              ]
            },
            "in": "query",
            "name": "pricingState",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "effectiveAt",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "pricebook",
                    "effectiveAt",
                    "items",
                    "nextCursor",
                    "total"
                  ],
                  "properties": {
                    "pricebook": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "catalogueId",
                        "parentPricebookId",
                        "kind",
                        "code",
                        "name",
                        "description",
                        "currency",
                        "effectiveFrom",
                        "effectiveTo",
                        "status",
                        "facts",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "parentPricebookId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "STANDARD",
                            "AGREEMENT"
                          ]
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "type": "string"
                        },
                        "effectiveFrom": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "effectiveTo": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "RETIRED"
                          ]
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "effectiveAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeDefinition",
                          "sourceOwner",
                          "inheritance",
                          "pricebookEntry",
                          "sourcePricebook",
                          "priceInheritance",
                          "rateCard",
                          "missingPrice"
                        ],
                        "properties": {
                          "chargeDefinition": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "catalogueId",
                              "ownerType",
                              "ownerId",
                              "code",
                              "name",
                              "description",
                              "chargeType",
                              "pricingRole",
                              "activationMode",
                              "billingPeriod",
                              "ratingMode",
                              "priceSource",
                              "quantityBasis",
                              "inputAttributeId",
                              "priceSelector",
                              "status",
                              "facts",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "catalogueId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "ownerType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_DEFINITION",
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "ownerId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "chargeType": {
                                "type": "string",
                                "enum": [
                                  "ONE_TIME",
                                  "RECURRING"
                                ]
                              },
                              "pricingRole": {
                                "type": "string",
                                "enum": [
                                  "CHARGE",
                                  "DISCOUNT",
                                  "SURCHARGE"
                                ]
                              },
                              "activationMode": {
                                "type": "string",
                                "enum": [
                                  "ALWAYS",
                                  "RULE_CONTROLLED"
                                ]
                              },
                              "billingPeriod": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "ratingMode": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "METERED"
                                ]
                              },
                              "priceSource": {
                                "type": "string",
                                "enum": [
                                  "CATALOGUE",
                                  "EXTERNAL"
                                ]
                              },
                              "quantityBasis": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "ITEM",
                                      "QUANTITY",
                                      "UNIT",
                                      "ATTRIBUTE"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "inputAttributeId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "priceSelector": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "inputAttribute": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "dataType",
                                      "unit"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "dataType": {
                                        "type": "string"
                                      },
                                      "unit": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "ACTIVE",
                                  "RETIRED"
                                ]
                              },
                              "facts": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          },
                          "sourceOwner": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "ownerType",
                              "ownerId",
                              "parentOwnerId",
                              "catalogueId",
                              "code",
                              "name",
                              "status"
                            ],
                            "properties": {
                              "ownerType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_DEFINITION",
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "ownerId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "parentOwnerId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "catalogueId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              }
                            }
                          },
                          "inheritance": {
                            "type": "string",
                            "enum": [
                              "DIRECT",
                              "INHERITED"
                            ]
                          },
                          "pricebookEntry": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "pricebookId",
                                  "chargeDefinitionId",
                                  "selector",
                                  "pricingMethod",
                                  "amount",
                                  "percentValue",
                                  "targetChargeDefinitionId",
                                  "rateCardId",
                                  "effectiveFrom",
                                  "effectiveTo",
                                  "status",
                                  "facts",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "pricebookId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "chargeDefinitionId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "selector": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "pricingMethod": {
                                    "type": "string",
                                    "enum": [
                                      "FIXED_AMOUNT",
                                      "RATE_CARD",
                                      "PERCENT_OF_CHARGE"
                                    ]
                                  },
                                  "amount": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "percentValue": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "targetChargeDefinitionId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "rateCardId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "effectiveFrom": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "effectiveTo": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  },
                                  "facts": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebook": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "catalogueId",
                                  "parentPricebookId",
                                  "kind",
                                  "code",
                                  "name",
                                  "description",
                                  "currency",
                                  "effectiveFrom",
                                  "effectiveTo",
                                  "status",
                                  "facts",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "catalogueId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "parentPricebookId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "STANDARD",
                                      "AGREEMENT"
                                    ]
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "description": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "effectiveFrom": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "effectiveTo": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  },
                                  "facts": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priceInheritance": {
                            "type": "string",
                            "enum": [
                              "DIRECT",
                              "INHERITED",
                              "MISSING"
                            ]
                          },
                          "rateCard": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "catalogueId",
                                  "kind",
                                  "customerAgreementId",
                                  "code",
                                  "name",
                                  "description",
                                  "rateType",
                                  "unit",
                                  "currency",
                                  "status",
                                  "facts",
                                  "createdAt",
                                  "updatedAt",
                                  "rates"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "catalogueId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "STANDARD",
                                      "AGREEMENT"
                                    ]
                                  },
                                  "customerAgreementId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "description": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "rateType": {
                                    "type": "string",
                                    "enum": [
                                      "VOLUME",
                                      "GRADUATED"
                                    ]
                                  },
                                  "unit": {
                                    "type": "string"
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  },
                                  "facts": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "rates": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "id",
                                        "rateCardId",
                                        "startAt",
                                        "endBefore",
                                        "unitPrice",
                                        "fixedAmount",
                                        "status",
                                        "createdAt",
                                        "updatedAt"
                                      ],
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "rateCardId": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "startAt": {
                                          "type": "number"
                                        },
                                        "endBefore": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "unitPrice": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "fixedAmount": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "status": {
                                          "type": "string",
                                          "enum": [
                                            "ACTIVE",
                                            "RETIRED"
                                          ]
                                        },
                                        "createdAt": {
                                          "type": "string",
                                          "format": "date-time"
                                        },
                                        "updatedAt": {
                                          "type": "string",
                                          "format": "date-time"
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "missingPrice": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "total": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List composed prices in a pricebook"
      }
    },
    "/api/v1/rate-cards/{rateCardId}/prices": {
      "get": {
        "operationId": "listRateCardPrices",
        "summary": "List rate card prices",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateCardId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "rateCard",
                    "items"
                  ],
                  "properties": {
                    "rateCard": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "catalogueId",
                        "kind",
                        "customerAgreementId",
                        "code",
                        "name",
                        "description",
                        "rateType",
                        "unit",
                        "currency",
                        "status",
                        "facts",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "STANDARD",
                            "AGREEMENT"
                          ]
                        },
                        "customerAgreementId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rateType": {
                          "type": "string",
                          "enum": [
                            "VOLUME",
                            "GRADUATED"
                          ]
                        },
                        "unit": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "RETIRED"
                          ]
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "owner",
                          "chargeDefinition",
                          "pricebook",
                          "pricebookEntry"
                        ],
                        "properties": {
                          "owner": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "ownerType",
                                  "ownerId",
                                  "parentOwnerId",
                                  "catalogueId",
                                  "code",
                                  "name",
                                  "status"
                                ],
                                "properties": {
                                  "ownerType": {
                                    "type": "string",
                                    "enum": [
                                      "PRODUCT_DEFINITION",
                                      "PRODUCT_OFFERING",
                                      "PRODUCT_VARIANT",
                                      "PACKAGE",
                                      "SOLUTION"
                                    ]
                                  },
                                  "ownerId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "parentOwnerId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "catalogueId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "chargeDefinition": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "catalogueId",
                              "ownerType",
                              "ownerId",
                              "code",
                              "name",
                              "description",
                              "chargeType",
                              "pricingRole",
                              "activationMode",
                              "billingPeriod",
                              "ratingMode",
                              "priceSource",
                              "quantityBasis",
                              "inputAttributeId",
                              "priceSelector",
                              "status",
                              "facts",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "catalogueId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "ownerType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_DEFINITION",
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "ownerId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "chargeType": {
                                "type": "string",
                                "enum": [
                                  "ONE_TIME",
                                  "RECURRING"
                                ]
                              },
                              "pricingRole": {
                                "type": "string",
                                "enum": [
                                  "CHARGE",
                                  "DISCOUNT",
                                  "SURCHARGE"
                                ]
                              },
                              "activationMode": {
                                "type": "string",
                                "enum": [
                                  "ALWAYS",
                                  "RULE_CONTROLLED"
                                ]
                              },
                              "billingPeriod": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "ratingMode": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "METERED"
                                ]
                              },
                              "priceSource": {
                                "type": "string",
                                "enum": [
                                  "CATALOGUE",
                                  "EXTERNAL"
                                ]
                              },
                              "quantityBasis": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "ITEM",
                                      "QUANTITY",
                                      "UNIT",
                                      "ATTRIBUTE"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "inputAttributeId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "priceSelector": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "inputAttribute": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "dataType",
                                      "unit"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "dataType": {
                                        "type": "string"
                                      },
                                      "unit": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "ACTIVE",
                                  "RETIRED"
                                ]
                              },
                              "facts": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          },
                          "pricebook": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "catalogueId",
                              "parentPricebookId",
                              "kind",
                              "code",
                              "name",
                              "description",
                              "currency",
                              "effectiveFrom",
                              "effectiveTo",
                              "status",
                              "facts",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "catalogueId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "parentPricebookId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "STANDARD",
                                  "AGREEMENT"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "currency": {
                                "type": "string"
                              },
                              "effectiveFrom": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "effectiveTo": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "ACTIVE",
                                  "RETIRED"
                                ]
                              },
                              "facts": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          },
                          "pricebookEntry": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "pricebookId",
                              "chargeDefinitionId",
                              "selector",
                              "pricingMethod",
                              "amount",
                              "percentValue",
                              "targetChargeDefinitionId",
                              "rateCardId",
                              "effectiveFrom",
                              "effectiveTo",
                              "status",
                              "facts",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "pricebookId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "chargeDefinitionId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "selector": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "pricingMethod": {
                                "type": "string",
                                "enum": [
                                  "FIXED_AMOUNT",
                                  "RATE_CARD",
                                  "PERCENT_OF_CHARGE"
                                ]
                              },
                              "amount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "percentValue": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targetChargeDefinitionId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "rateCardId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectiveFrom": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "effectiveTo": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "ACTIVE",
                                  "RETIRED"
                                ]
                              },
                              "facts": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List prices that use a rate card"
      }
    },
    "/api/v1/rate-cards/{rateCardId}/preview": {
      "post": {
        "operationId": "previewRateCard",
        "summary": "Preview a rate card",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "quantity": {
                    "type": "number",
                    "minimum": 0
                  }
                },
                "required": [
                  "quantity"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateCardId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "rateCard",
                    "quantity",
                    "amount",
                    "effectiveUnitPrice",
                    "appliedRateId"
                  ],
                  "properties": {
                    "rateCard": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "catalogueId",
                        "kind",
                        "customerAgreementId",
                        "code",
                        "name",
                        "description",
                        "rateType",
                        "unit",
                        "currency",
                        "status",
                        "facts",
                        "createdAt",
                        "updatedAt",
                        "rates"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "STANDARD",
                            "AGREEMENT"
                          ]
                        },
                        "customerAgreementId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rateType": {
                          "type": "string",
                          "enum": [
                            "VOLUME",
                            "GRADUATED"
                          ]
                        },
                        "unit": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "RETIRED"
                          ]
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "rates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "rateCardId",
                              "startAt",
                              "endBefore",
                              "unitPrice",
                              "fixedAmount",
                              "status",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "rateCardId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "startAt": {
                                "type": "number"
                              },
                              "endBefore": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitPrice": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "fixedAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "ACTIVE",
                                  "RETIRED"
                                ]
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        }
                      }
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "amount": {
                      "type": "number"
                    },
                    "effectiveUnitPrice": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "appliedRateId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Calculate a rate card for a quantity"
      }
    },
    "/api/v1/product-pricing-previews": {
      "post": {
        "operationId": "previewProductPricing",
        "summary": "Preview product pricing",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "pricebookId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "itemType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_DEFINITION",
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE",
                      "SOLUTION"
                    ]
                  },
                  "itemId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "concreteItemType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT_OFFERING",
                      "PRODUCT_VARIANT",
                      "PACKAGE",
                      "SOLUTION"
                    ]
                  },
                  "concreteItemId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "effectiveAt": {},
                  "quantity": {
                    "default": 1,
                    "type": "number",
                    "minimum": 0
                  },
                  "attributes": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "selectedPriceCodes": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                    },
                    "additionalProperties": {
                      "type": "string",
                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                    }
                  }
                },
                "required": [
                  "catalogueId",
                  "pricebookId",
                  "itemType",
                  "itemId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "source",
                    "catalogueId",
                    "item",
                    "requestedOwner",
                    "pricebook",
                    "effectiveAt",
                    "quantity",
                    "attributes",
                    "totals",
                    "charges",
                    "issues"
                  ],
                  "properties": {
                    "source": {
                      "type": "string",
                      "enum": [
                        "AUTHORING"
                      ]
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "item": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "ownerType",
                        "ownerId",
                        "parentOwnerId",
                        "catalogueId",
                        "code",
                        "name",
                        "status"
                      ],
                      "properties": {
                        "ownerType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT_DEFINITION",
                            "PRODUCT_OFFERING",
                            "PRODUCT_VARIANT",
                            "PACKAGE",
                            "SOLUTION"
                          ]
                        },
                        "ownerId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "parentOwnerId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        }
                      }
                    },
                    "requestedOwner": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "ownerType",
                        "ownerId"
                      ],
                      "properties": {
                        "ownerType": {
                          "type": "string"
                        },
                        "ownerId": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    },
                    "pricebook": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "catalogueId",
                        "parentPricebookId",
                        "kind",
                        "code",
                        "name",
                        "description",
                        "currency",
                        "effectiveFrom",
                        "effectiveTo",
                        "status",
                        "facts",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "parentPricebookId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "STANDARD",
                            "AGREEMENT"
                          ]
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "type": "string"
                        },
                        "effectiveFrom": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "effectiveTo": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "RETIRED"
                          ]
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "effectiveAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "list",
                        "adjustments",
                        "sales"
                      ],
                      "properties": {
                        "list": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurring",
                            "oneTime"
                          ],
                          "properties": {
                            "recurring": {
                              "type": "number"
                            },
                            "oneTime": {
                              "type": "number"
                            }
                          }
                        },
                        "adjustments": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurring",
                            "oneTime"
                          ],
                          "properties": {
                            "recurring": {
                              "type": "number"
                            },
                            "oneTime": {
                              "type": "number"
                            }
                          }
                        },
                        "sales": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurring",
                            "oneTime"
                          ],
                          "properties": {
                            "recurring": {
                              "type": "number"
                            },
                            "oneTime": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeDefinitionId",
                          "chargeCode",
                          "chargeName",
                          "chargeType",
                          "billingPeriod",
                          "ratingMode",
                          "quantityBasis",
                          "pricingMethod",
                          "currency",
                          "quantity",
                          "unitPrice",
                          "amount",
                          "targetChargeDefinitionId",
                          "sourceOwnerType",
                          "sourceOwnerId",
                          "sourcePricebookId",
                          "sourcePricebookEntryId",
                          "rateCardId",
                          "rateId",
                          "priceDetails"
                        ],
                        "properties": {
                          "chargeDefinitionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "chargeName": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "quantityBasis": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "pricingMethod": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "targetChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceOwnerType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceOwnerId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateCardId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "issues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "message",
                          "chargeDefinitionId",
                          "chargeCode"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          },
                          "chargeDefinitionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Calculate unpublished product pricing"
      }
    },
    "/api/v1/customer-agreements": {
      "get": {
        "operationId": "listCustomerAgreements",
        "summary": "List agreements",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "catalogueViewId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3
            },
            "in": "query",
            "name": "currency",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "DRAFT",
                "PENDING_ACTIVATION",
                "ACTIVE",
                "TERMINATED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "CURRENT",
                "UPCOMING",
                "EXPIRED"
              ]
            },
            "in": "query",
            "name": "effectivity",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "effectiveAt",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "effectiveFromAfter",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "effectiveFromBefore",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "effectiveToAfter",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "effectiveToBefore",
            "required": false
          },
          {
            "schema": {
              "default": "UPDATED_DESC",
              "type": "string",
              "enum": [
                "UPDATED_DESC",
                "EFFECTIVE_FROM_ASC",
                "EFFECTIVE_TO_ASC"
              ]
            },
            "in": "query",
            "name": "sort",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "catalogueId",
                          "catalogueViewId",
                          "pricebookId",
                          "pricebookCode",
                          "basePricebookId",
                          "sourceAgreementId",
                          "code",
                          "name",
                          "description",
                          "accountId",
                          "currency",
                          "visibilityMode",
                          "allowDiscretionaryDiscounts",
                          "status",
                          "effectivity",
                          "effectiveFrom",
                          "effectiveTo",
                          "submittedAt",
                          "submittedBy",
                          "activatedAt",
                          "activatedBy",
                          "terminatedAt",
                          "terminatedBy",
                          "terminationReason",
                          "facts",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "pendingChangeCount",
                          "account"
                        ],
                        "properties": {
                          "pendingChangeCount": {
                            "type": "integer"
                          },
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "pricebookId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "pricebookCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "basePricebookId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceAgreementId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "visibilityMode": {
                            "type": "string",
                            "enum": [
                              "ADD_TO_CATALOGUE",
                              "ONLY_AGREEMENT_PRODUCTS"
                            ]
                          },
                          "allowDiscretionaryDiscounts": {
                            "type": "boolean"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "DRAFT",
                              "PENDING_ACTIVATION",
                              "ACTIVE",
                              "TERMINATED"
                            ]
                          },
                          "effectivity": {
                            "type": "string",
                            "enum": [
                              "CURRENT",
                              "UPCOMING",
                              "EXPIRED"
                            ]
                          },
                          "effectiveFrom": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "submittedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "submittedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "terminatedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "terminatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "terminationReason": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "account": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "accountNumber",
                                  "name",
                                  "legalName",
                                  "market",
                                  "segment",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "accountNumber": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "legalName": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "market": {
                                    "type": "string"
                                  },
                                  "segment": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "INACTIVE"
                                    ]
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List Customer Agreements"
      },
      "post": {
        "operationId": "createCustomerAgreement",
        "summary": "Create an agreement",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "catalogueCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "catalogueViewId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "catalogueViewCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "basePricebookId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "basePricebookCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "accountId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "visibilityMode": {
                    "default": "ADD_TO_CATALOGUE",
                    "type": "string",
                    "enum": [
                      "ADD_TO_CATALOGUE",
                      "ONLY_AGREEMENT_PRODUCTS"
                    ]
                  },
                  "allowDiscretionaryDiscounts": {
                    "default": true,
                    "type": "boolean"
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "code",
                  "name",
                  "accountId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "catalogueViewId",
                    "pricebookId",
                    "pricebookCode",
                    "basePricebookId",
                    "sourceAgreementId",
                    "code",
                    "name",
                    "description",
                    "accountId",
                    "currency",
                    "visibilityMode",
                    "allowDiscretionaryDiscounts",
                    "status",
                    "effectivity",
                    "effectiveFrom",
                    "effectiveTo",
                    "submittedAt",
                    "submittedBy",
                    "activatedAt",
                    "activatedBy",
                    "terminatedAt",
                    "terminatedBy",
                    "terminationReason",
                    "facts",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "pendingChangeCount"
                  ],
                  "properties": {
                    "pendingChangeCount": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "basePricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "visibilityMode": {
                      "type": "string",
                      "enum": [
                        "ADD_TO_CATALOGUE",
                        "ONLY_AGREEMENT_PRODUCTS"
                      ]
                    },
                    "allowDiscretionaryDiscounts": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PENDING_ACTIVATION",
                        "ACTIVE",
                        "TERMINATED"
                      ]
                    },
                    "effectivity": {
                      "type": "string",
                      "enum": [
                        "CURRENT",
                        "UPCOMING",
                        "EXPIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminationReason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Create a Customer Agreement"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}": {
      "get": {
        "operationId": "getCustomerAgreement",
        "summary": "Get an agreement",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "catalogueViewId",
                    "pricebookId",
                    "pricebookCode",
                    "basePricebookId",
                    "sourceAgreementId",
                    "code",
                    "name",
                    "description",
                    "accountId",
                    "currency",
                    "visibilityMode",
                    "allowDiscretionaryDiscounts",
                    "status",
                    "effectivity",
                    "effectiveFrom",
                    "effectiveTo",
                    "submittedAt",
                    "submittedBy",
                    "activatedAt",
                    "activatedBy",
                    "terminatedAt",
                    "terminatedBy",
                    "terminationReason",
                    "facts",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "pendingChangeCount",
                    "account",
                    "products"
                  ],
                  "properties": {
                    "pendingChangeCount": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "basePricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "visibilityMode": {
                      "type": "string",
                      "enum": [
                        "ADD_TO_CATALOGUE",
                        "ONLY_AGREEMENT_PRODUCTS"
                      ]
                    },
                    "allowDiscretionaryDiscounts": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PENDING_ACTIVATION",
                        "ACTIVE",
                        "TERMINATED"
                      ]
                    },
                    "effectivity": {
                      "type": "string",
                      "enum": [
                        "CURRENT",
                        "UPCOMING",
                        "EXPIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminationReason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "account": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "accountNumber",
                        "name",
                        "legalName",
                        "market",
                        "segment",
                        "status"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "accountNumber": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "type": "string"
                        },
                        "legalName": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "market": {
                          "type": "string"
                        },
                        "segment": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "INACTIVE"
                          ]
                        }
                      }
                    },
                    "products": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "customerAgreementId",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "displayOrder",
                          "facts",
                          "constraints",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "customerAgreementId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "constraints": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "attributeCode",
                                    "allowedValues"
                                  ],
                                  "additionalProperties": false,
                                  "properties": {
                                    "attributeCode": {
                                      "type": "string"
                                    },
                                    "allowedValues": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "required": [
                                    "allowedVariantCodes"
                                  ],
                                  "additionalProperties": false,
                                  "properties": {
                                    "allowedVariantCodes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              ]
                            },
                            "description": "Approved attribute values or variants for this customer; empty means no restriction."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Get a Customer Agreement"
      },
      "patch": {
        "operationId": "updateCustomerAgreement",
        "summary": "Update an agreement",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueViewId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "catalogueViewCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "visibilityMode": {
                    "type": "string",
                    "enum": [
                      "ADD_TO_CATALOGUE",
                      "ONLY_AGREEMENT_PRODUCTS"
                    ]
                  },
                  "allowDiscretionaryDiscounts": {
                    "type": "boolean"
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "catalogueViewId",
                    "pricebookId",
                    "pricebookCode",
                    "basePricebookId",
                    "sourceAgreementId",
                    "code",
                    "name",
                    "description",
                    "accountId",
                    "currency",
                    "visibilityMode",
                    "allowDiscretionaryDiscounts",
                    "status",
                    "effectivity",
                    "effectiveFrom",
                    "effectiveTo",
                    "submittedAt",
                    "submittedBy",
                    "activatedAt",
                    "activatedBy",
                    "terminatedAt",
                    "terminatedBy",
                    "terminationReason",
                    "facts",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "pendingChangeCount"
                  ],
                  "properties": {
                    "pendingChangeCount": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "basePricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "visibilityMode": {
                      "type": "string",
                      "enum": [
                        "ADD_TO_CATALOGUE",
                        "ONLY_AGREEMENT_PRODUCTS"
                      ]
                    },
                    "allowDiscretionaryDiscounts": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PENDING_ACTIVATION",
                        "ACTIVE",
                        "TERMINATED"
                      ]
                    },
                    "effectivity": {
                      "type": "string",
                      "enum": [
                        "CURRENT",
                        "UPCOMING",
                        "EXPIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminationReason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Update a Draft Customer Agreement"
      },
      "delete": {
        "operationId": "deleteCustomerAgreement",
        "summary": "Delete an agreement",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Delete a Draft Customer Agreement"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/products": {
      "get": {
        "operationId": "listCustomerAgreementProducts",
        "summary": "List agreement products",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "customerAgreementId",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "displayOrder",
                          "facts",
                          "constraints",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "customerAgreementId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "constraints": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "attributeCode",
                                    "allowedValues"
                                  ],
                                  "additionalProperties": false,
                                  "properties": {
                                    "attributeCode": {
                                      "type": "string"
                                    },
                                    "allowedValues": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "required": [
                                    "allowedVariantCodes"
                                  ],
                                  "additionalProperties": false,
                                  "properties": {
                                    "allowedVariantCodes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              ]
                            },
                            "description": "Approved attribute values or variants for this customer; empty means no restriction."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List Customer Agreement products"
      },
      "put": {
        "operationId": "replaceCustomerAgreementProducts",
        "summary": "Replace agreement products",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "default": [],
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "itemType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT_OFFERING",
                            "PACKAGE",
                            "SOLUTION"
                          ]
                        },
                        "itemId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "itemCode": {
                          "type": "string",
                          "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                        },
                        "displayOrder": {
                          "default": 0,
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 1000000
                        },
                        "facts": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "constraints": {
                          "default": [],
                          "maxItems": 20,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "attributeCode": {
                                    "type": "string",
                                    "pattern": "^[a-z][a-z0-9_]{0,63}$"
                                  },
                                  "allowedValues": {
                                    "minItems": 1,
                                    "maxItems": 100,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 200
                                    }
                                  }
                                },
                                "required": [
                                  "attributeCode",
                                  "allowedValues"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "allowedVariantCodes": {
                                    "minItems": 1,
                                    "maxItems": 100,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                                    }
                                  }
                                },
                                "required": [
                                  "allowedVariantCodes"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "itemType"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "customerAgreementId",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "displayOrder",
                          "facts",
                          "constraints",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "customerAgreementId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "displayOrder": {
                            "type": "integer"
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "constraints": {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "required": [
                                    "attributeCode",
                                    "allowedValues"
                                  ],
                                  "additionalProperties": false,
                                  "properties": {
                                    "attributeCode": {
                                      "type": "string"
                                    },
                                    "allowedValues": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "required": [
                                    "allowedVariantCodes"
                                  ],
                                  "additionalProperties": false,
                                  "properties": {
                                    "allowedVariantCodes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              ]
                            },
                            "description": "Approved attribute values or variants for this customer; empty means no restriction."
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Replace Customer Agreement products"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/prices": {
      "get": {
        "operationId": "listCustomerAgreementPrices",
        "summary": "List agreement prices",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_OFFERING",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "itemType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "itemId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "NEGOTIATED",
                "INHERITED"
              ]
            },
            "in": "query",
            "name": "pricingState",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "effectiveAt",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "agreement",
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "agreement": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "catalogueId",
                        "catalogueViewId",
                        "pricebookId",
                        "pricebookCode",
                        "basePricebookId",
                        "sourceAgreementId",
                        "code",
                        "name",
                        "description",
                        "accountId",
                        "currency",
                        "visibilityMode",
                        "allowDiscretionaryDiscounts",
                        "status",
                        "effectivity",
                        "effectiveFrom",
                        "effectiveTo",
                        "submittedAt",
                        "submittedBy",
                        "activatedAt",
                        "activatedBy",
                        "terminatedAt",
                        "terminatedBy",
                        "terminationReason",
                        "facts",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt",
                        "pendingChangeCount"
                      ],
                      "properties": {
                        "pendingChangeCount": {
                          "type": "integer"
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueViewId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "pricebookId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "basePricebookId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceAgreementId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "visibilityMode": {
                          "type": "string",
                          "enum": [
                            "ADD_TO_CATALOGUE",
                            "ONLY_AGREEMENT_PRODUCTS"
                          ]
                        },
                        "allowDiscretionaryDiscounts": {
                          "type": "boolean"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "DRAFT",
                            "PENDING_ACTIVATION",
                            "ACTIVE",
                            "TERMINATED"
                          ]
                        },
                        "effectivity": {
                          "type": "string",
                          "enum": [
                            "CURRENT",
                            "UPCOMING",
                            "EXPIRED"
                          ]
                        },
                        "effectiveFrom": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "effectiveTo": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "submittedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "submittedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "activatedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "activatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "terminatedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "terminatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "terminationReason": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "product",
                          "chargeDefinition",
                          "sourceOwner",
                          "selector",
                          "standardPrice",
                          "negotiatedPrice",
                          "effectivePrice",
                          "sourcePricebook",
                          "pricingState",
                          "rateCard",
                          "missingPrice"
                        ],
                        "properties": {
                          "product": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "customerAgreementId",
                              "itemType",
                              "itemId",
                              "itemCode",
                              "displayOrder",
                              "facts",
                              "constraints",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "customerAgreementId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "itemType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "itemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "itemCode": {
                                "type": "string"
                              },
                              "displayOrder": {
                                "type": "integer"
                              },
                              "facts": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "constraints": {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "required": [
                                        "attributeCode",
                                        "allowedValues"
                                      ],
                                      "additionalProperties": false,
                                      "properties": {
                                        "attributeCode": {
                                          "type": "string"
                                        },
                                        "allowedValues": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    },
                                    {
                                      "type": "object",
                                      "required": [
                                        "allowedVariantCodes"
                                      ],
                                      "additionalProperties": false,
                                      "properties": {
                                        "allowedVariantCodes": {
                                          "type": "array",
                                          "items": {
                                            "type": "string"
                                          }
                                        }
                                      }
                                    }
                                  ]
                                },
                                "description": "Approved attribute values or variants for this customer; empty means no restriction."
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          },
                          "chargeDefinition": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "code",
                              "name",
                              "chargeType",
                              "billingPeriod",
                              "ratingMode",
                              "quantityBasis",
                              "priceSelector"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "chargeType": {
                                "type": "string"
                              },
                              "billingPeriod": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "ratingMode": {
                                "type": "string"
                              },
                              "quantityBasis": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "priceSelector": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          },
                          "sourceOwner": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "ownerType",
                              "ownerId",
                              "parentOwnerId",
                              "catalogueId",
                              "code",
                              "name",
                              "status"
                            ],
                            "properties": {
                              "ownerType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_DEFINITION",
                                  "PRODUCT_OFFERING",
                                  "PRODUCT_VARIANT",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "ownerId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "parentOwnerId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "catalogueId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              }
                            }
                          },
                          "selector": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "standardPrice": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "pricebookId",
                                  "chargeDefinitionId",
                                  "selector",
                                  "pricingMethod",
                                  "amount",
                                  "percentValue",
                                  "targetChargeDefinitionId",
                                  "rateCardId",
                                  "effectiveFrom",
                                  "effectiveTo",
                                  "status",
                                  "facts",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "pricebookId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "chargeDefinitionId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "selector": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "pricingMethod": {
                                    "type": "string",
                                    "enum": [
                                      "FIXED_AMOUNT",
                                      "RATE_CARD",
                                      "PERCENT_OF_CHARGE"
                                    ]
                                  },
                                  "amount": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "percentValue": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "targetChargeDefinitionId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "rateCardId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "effectiveFrom": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "effectiveTo": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  },
                                  "facts": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "negotiatedPrice": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "pricebookId",
                                  "chargeDefinitionId",
                                  "selector",
                                  "pricingMethod",
                                  "amount",
                                  "percentValue",
                                  "targetChargeDefinitionId",
                                  "rateCardId",
                                  "effectiveFrom",
                                  "effectiveTo",
                                  "status",
                                  "facts",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "pricebookId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "chargeDefinitionId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "selector": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "pricingMethod": {
                                    "type": "string",
                                    "enum": [
                                      "FIXED_AMOUNT",
                                      "RATE_CARD",
                                      "PERCENT_OF_CHARGE"
                                    ]
                                  },
                                  "amount": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "percentValue": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "targetChargeDefinitionId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "rateCardId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "effectiveFrom": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "effectiveTo": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  },
                                  "facts": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectivePrice": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "pricebookId",
                                  "chargeDefinitionId",
                                  "selector",
                                  "pricingMethod",
                                  "amount",
                                  "percentValue",
                                  "targetChargeDefinitionId",
                                  "rateCardId",
                                  "effectiveFrom",
                                  "effectiveTo",
                                  "status",
                                  "facts",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "pricebookId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "chargeDefinitionId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "selector": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "pricingMethod": {
                                    "type": "string",
                                    "enum": [
                                      "FIXED_AMOUNT",
                                      "RATE_CARD",
                                      "PERCENT_OF_CHARGE"
                                    ]
                                  },
                                  "amount": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "percentValue": {
                                    "anyOf": [
                                      {
                                        "type": "number"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "targetChargeDefinitionId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "rateCardId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "effectiveFrom": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "effectiveTo": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  },
                                  "facts": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebook": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "catalogueId",
                                  "parentPricebookId",
                                  "kind",
                                  "code",
                                  "name",
                                  "currency",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "catalogueId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "parentPricebookId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "STANDARD",
                                      "AGREEMENT"
                                    ]
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "pricingState": {
                            "type": "string",
                            "enum": [
                              "NEGOTIATED",
                              "INHERITED"
                            ]
                          },
                          "rateCard": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "catalogueId",
                                  "kind",
                                  "customerAgreementId",
                                  "code",
                                  "name",
                                  "rateType",
                                  "unit",
                                  "currency",
                                  "status",
                                  "rates"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "catalogueId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "STANDARD",
                                      "AGREEMENT"
                                    ]
                                  },
                                  "customerAgreementId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "rateType": {
                                    "type": "string",
                                    "enum": [
                                      "VOLUME",
                                      "GRADUATED"
                                    ]
                                  },
                                  "unit": {
                                    "type": "string"
                                  },
                                  "currency": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "enum": [
                                      "ACTIVE",
                                      "RETIRED"
                                    ]
                                  },
                                  "rates": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "id",
                                        "rateCardId",
                                        "startAt",
                                        "endBefore",
                                        "unitPrice",
                                        "fixedAmount",
                                        "status"
                                      ],
                                      "properties": {
                                        "id": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "rateCardId": {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        "startAt": {
                                          "type": "number"
                                        },
                                        "endBefore": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "unitPrice": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "fixedAmount": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "status": {
                                          "type": "string",
                                          "enum": [
                                            "ACTIVE",
                                            "RETIRED"
                                          ]
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "missingPrice": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List standard and negotiated Agreement prices"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/readiness": {
      "get": {
        "operationId": "getCustomerAgreementReadiness",
        "summary": "Check agreement readiness",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "ready",
                    "blockers",
                    "warnings",
                    "summary",
                    "review",
                    "pendingChangeCount"
                  ],
                  "properties": {
                    "review": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "lastChangeId": {
                              "type": "string",
                              "pattern": "^[0-9]+$"
                            },
                            "cataloguePublishRunId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "submittedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                            }
                          },
                          "required": [
                            "lastChangeId",
                            "cataloguePublishRunId",
                            "submittedAt"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pendingChangeCount": {
                      "type": "integer"
                    },
                    "ready": {
                      "type": "boolean"
                    },
                    "blockers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "message"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          },
                          "details": {}
                        }
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "message"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          },
                          "details": {}
                        }
                      }
                    },
                    "summary": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Check Agreement readiness"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/activity": {
      "get": {
        "operationId": "listCustomerAgreementActivity",
        "summary": "List agreement activity",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "type",
                          "summary",
                          "payload",
                          "createdAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "SUBMITTED",
                              "RETURNED_TO_DRAFT",
                              "ACTIVATED",
                              "TERMINATED"
                            ]
                          },
                          "summary": {
                            "type": "string"
                          },
                          "payload": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List Agreement lifecycle activity"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/publications": {
      "get": {
        "operationId": "listCustomerAgreementPublications",
        "summary": "List agreement publications",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "action",
                          "lastChangeId",
                          "publishedBy",
                          "publishedAt",
                          "effectiveFrom",
                          "effectiveTo",
                          "cataloguePublishRunId"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ACTIVATE",
                              "TERMINATE",
                              "DISCARD"
                            ]
                          },
                          "lastChangeId": {
                            "type": "string"
                          },
                          "publishedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "publishedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "effectiveFrom": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cataloguePublishRunId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Read agreement publication history"
      }
    },
    "/api/v1/customer-agreement-product-candidates": {
      "get": {
        "operationId": "listCustomerAgreementProductCandidates",
        "summary": "List products for agreements",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT_OFFERING",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "itemType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "boolean"
            },
            "in": "query",
            "name": "selected",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "itemType",
                          "itemId",
                          "itemCode",
                          "name",
                          "description",
                          "imageUrl",
                          "visibility",
                          "selected"
                        ],
                        "properties": {
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "imageUrl": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "visibility": {
                            "type": "string",
                            "enum": [
                              "PUBLIC",
                              "RESTRICTED"
                            ]
                          },
                          "selected": {
                            "type": "boolean"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "List published products for an Agreement"
      }
    },
    "/api/v1/pricebooks/{pricebookId}/retire": {
      "post": {
        "operationId": "retirePricebook",
        "summary": "Retire a pricebook",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "parentPricebookId",
                    "kind",
                    "code",
                    "name",
                    "description",
                    "currency",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentPricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "STANDARD",
                        "AGREEMENT"
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/pricebook-assignments/{assignmentId}/retire": {
      "post": {
        "operationId": "retirePricebookAssignment",
        "summary": "Retire a pricebook assignment",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "assignmentId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "pricebookId",
                    "assignmentType",
                    "catalogueViewId",
                    "accountId",
                    "priority",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "assignmentType": {
                      "type": "string",
                      "enum": [
                        "CATALOGUE_VIEW_DEFAULT",
                        "ACCOUNT"
                      ]
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priority": {
                      "type": "integer"
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/charge-definitions/{chargeDefinitionId}/retire": {
      "post": {
        "operationId": "retireChargeDefinition",
        "summary": "Retire a charge definition",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "chargeDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "ownerType",
                    "ownerId",
                    "code",
                    "name",
                    "description",
                    "chargeType",
                    "pricingRole",
                    "activationMode",
                    "billingPeriod",
                    "ratingMode",
                    "priceSource",
                    "quantityBasis",
                    "inputAttributeId",
                    "priceSelector",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "ownerType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_DEFINITION",
                        "PRODUCT_OFFERING",
                        "PRODUCT_VARIANT",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "ownerId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "chargeType": {
                      "type": "string",
                      "enum": [
                        "ONE_TIME",
                        "RECURRING"
                      ]
                    },
                    "pricingRole": {
                      "type": "string",
                      "enum": [
                        "CHARGE",
                        "DISCOUNT",
                        "SURCHARGE"
                      ]
                    },
                    "activationMode": {
                      "type": "string",
                      "enum": [
                        "ALWAYS",
                        "RULE_CONTROLLED"
                      ]
                    },
                    "billingPeriod": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ratingMode": {
                      "type": "string",
                      "enum": [
                        "CART",
                        "METERED"
                      ]
                    },
                    "priceSource": {
                      "type": "string",
                      "enum": [
                        "CATALOGUE",
                        "EXTERNAL"
                      ]
                    },
                    "quantityBasis": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "ITEM",
                            "QUANTITY",
                            "UNIT",
                            "ATTRIBUTE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "inputAttributeId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priceSelector": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "inputAttribute": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "code",
                            "name",
                            "dataType",
                            "unit"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "code": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "dataType": {
                              "type": "string"
                            },
                            "unit": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/rate-cards/{rateCardId}/retire": {
      "post": {
        "operationId": "retireRateCard",
        "summary": "Retire a rate card",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateCardId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "kind",
                    "customerAgreementId",
                    "code",
                    "name",
                    "description",
                    "rateType",
                    "unit",
                    "currency",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "STANDARD",
                        "AGREEMENT"
                      ]
                    },
                    "customerAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateType": {
                      "type": "string",
                      "enum": [
                        "VOLUME",
                        "GRADUATED"
                      ]
                    },
                    "unit": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/rates/{rateId}/retire": {
      "post": {
        "operationId": "retireRate",
        "summary": "Retire a rate",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "rateCardId",
                    "startAt",
                    "endBefore",
                    "unitPrice",
                    "fixedAmount",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "rateCardId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "startAt": {
                      "type": "number"
                    },
                    "endBefore": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unitPrice": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "fixedAmount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/pricebook-entries/{pricebookEntryId}/retire": {
      "post": {
        "operationId": "retirePricebookEntry",
        "summary": "Retire a pricebook entry",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookEntryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "pricebookId",
                    "chargeDefinitionId",
                    "selector",
                    "pricingMethod",
                    "amount",
                    "percentValue",
                    "targetChargeDefinitionId",
                    "rateCardId",
                    "effectiveFrom",
                    "effectiveTo",
                    "status",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "chargeDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "selector": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricingMethod": {
                      "type": "string",
                      "enum": [
                        "FIXED_AMOUNT",
                        "RATE_CARD",
                        "PERCENT_OF_CHARGE"
                      ]
                    },
                    "amount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "percentValue": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "targetChargeDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateCardId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/pricebooks/{pricebookId}/charges/{chargeDefinitionId}/price-entries": {
      "put": {
        "operationId": "replacePricebookEntries",
        "summary": "Replace charge prices",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "expectedGroupDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "entries": {
                    "maxItems": 10000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "selector": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64
                          },
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 200
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "boolean"
                              }
                            ]
                          }
                        },
                        "pricingMethod": {
                          "type": "string",
                          "enum": [
                            "FIXED_AMOUNT",
                            "RATE_CARD",
                            "PERCENT_OF_CHARGE"
                          ]
                        },
                        "amount": {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "percentValue": {
                          "anyOf": [
                            {
                              "type": "number",
                              "exclusiveMinimum": 0,
                              "maximum": 100000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "targetChargeDefinitionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "rateCardId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "effectiveFrom": {},
                        "effectiveTo": {
                          "anyOf": [
                            {},
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "facts": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "pricingMethod",
                        "effectiveFrom"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "expectedGroupDigest",
                  "entries"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "chargeDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "groupDigest"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "pricebookId",
                          "chargeDefinitionId",
                          "selector",
                          "pricingMethod",
                          "amount",
                          "percentValue",
                          "targetChargeDefinitionId",
                          "rateCardId",
                          "effectiveFrom",
                          "effectiveTo",
                          "status",
                          "facts",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "pricebookId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeDefinitionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "selector": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "pricingMethod": {
                            "type": "string",
                            "enum": [
                              "FIXED_AMOUNT",
                              "RATE_CARD",
                              "PERCENT_OF_CHARGE"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "percentValue": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "targetChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "rateCardId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectiveFrom": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "groupDigest": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Replace all active price rows for one charge"
      }
    },
    "/api/v1/rate-cards/{rateCardId}/rates": {
      "put": {
        "operationId": "replaceRateCardRates",
        "summary": "Replace rate card rates",
        "tags": [
          "Catalogue Authoring — Pricing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rates": {
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "startAt": {
                          "type": "number",
                          "minimum": 0
                        },
                        "unitPrice": {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fixedAmount": {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "startAt"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "rates"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "rateCardId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "rateCardId",
                          "startAt",
                          "endBefore",
                          "unitPrice",
                          "fixedAmount",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "rateCardId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "startAt": {
                            "type": "number"
                          },
                          "endBefore": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "fixedAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Replace active rate-card rows"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/prices/{chargeDefinitionId}": {
      "put": {
        "operationId": "upsertCustomerAgreementPrice",
        "summary": "Set a negotiated price",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "selector": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 200
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    }
                  },
                  "pricingMethod": {
                    "type": "string",
                    "enum": [
                      "FIXED_AMOUNT",
                      "RATE_CARD",
                      "PERCENT_OF_CHARGE"
                    ]
                  },
                  "amount": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 999999999999
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "percentValue": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetChargeDefinitionId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rateCardId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rateCard": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "description": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2000
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "rateType": {
                        "type": "string",
                        "enum": [
                          "VOLUME",
                          "GRADUATED"
                        ]
                      },
                      "unit": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32
                      },
                      "rates": {
                        "minItems": 1,
                        "maxItems": 10000,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "startAt": {
                              "type": "number",
                              "minimum": 0
                            },
                            "unitPrice": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 999999999999
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "fixedAmount": {
                              "anyOf": [
                                {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 999999999999
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "startAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "facts": {
                        "default": {},
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "code",
                      "name",
                      "rateType",
                      "unit",
                      "rates"
                    ],
                    "additionalProperties": false
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "facts": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "pricingMethod"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "chargeDefinitionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "chargeDefinition",
                    "selector",
                    "pricingMethod",
                    "amount",
                    "percentValue",
                    "targetChargeDefinitionId",
                    "rateCard",
                    "effectiveFrom",
                    "effectiveTo",
                    "facts",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "chargeDefinition": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "code",
                        "name",
                        "chargeType",
                        "billingPeriod",
                        "ratingMode",
                        "quantityBasis",
                        "priceSelector"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "chargeType": {
                          "type": "string"
                        },
                        "billingPeriod": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "ratingMode": {
                          "type": "string"
                        },
                        "quantityBasis": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "priceSelector": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": true
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "selector": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricingMethod": {
                      "type": "string",
                      "enum": [
                        "FIXED_AMOUNT",
                        "RATE_CARD",
                        "PERCENT_OF_CHARGE"
                      ]
                    },
                    "amount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "percentValue": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "targetChargeDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "rateCard": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/prices/{chargeDefinitionId}/{pricebookEntryId}": {
      "delete": {
        "operationId": "deleteCustomerAgreementPrice",
        "summary": "Remove a negotiated price",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "chargeDefinitionId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "pricebookEntryId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/submit": {
      "post": {
        "operationId": "submitCustomerAgreement",
        "summary": "Submit an agreement",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "catalogueViewId",
                    "pricebookId",
                    "pricebookCode",
                    "basePricebookId",
                    "sourceAgreementId",
                    "code",
                    "name",
                    "description",
                    "accountId",
                    "currency",
                    "visibilityMode",
                    "allowDiscretionaryDiscounts",
                    "status",
                    "effectivity",
                    "effectiveFrom",
                    "effectiveTo",
                    "submittedAt",
                    "submittedBy",
                    "activatedAt",
                    "activatedBy",
                    "terminatedAt",
                    "terminatedBy",
                    "terminationReason",
                    "facts",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "pendingChangeCount"
                  ],
                  "properties": {
                    "pendingChangeCount": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "basePricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "visibilityMode": {
                      "type": "string",
                      "enum": [
                        "ADD_TO_CATALOGUE",
                        "ONLY_AGREEMENT_PRODUCTS"
                      ]
                    },
                    "allowDiscretionaryDiscounts": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PENDING_ACTIVATION",
                        "ACTIVE",
                        "TERMINATED"
                      ]
                    },
                    "effectivity": {
                      "type": "string",
                      "enum": [
                        "CURRENT",
                        "UPCOMING",
                        "EXPIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminationReason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Submit a Customer Agreement"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/return-to-draft": {
      "post": {
        "operationId": "returnCustomerAgreementToDraft",
        "summary": "Return an agreement to draft",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  }
                },
                "required": [
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "catalogueViewId",
                    "pricebookId",
                    "pricebookCode",
                    "basePricebookId",
                    "sourceAgreementId",
                    "code",
                    "name",
                    "description",
                    "accountId",
                    "currency",
                    "visibilityMode",
                    "allowDiscretionaryDiscounts",
                    "status",
                    "effectivity",
                    "effectiveFrom",
                    "effectiveTo",
                    "submittedAt",
                    "submittedBy",
                    "activatedAt",
                    "activatedBy",
                    "terminatedAt",
                    "terminatedBy",
                    "terminationReason",
                    "facts",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "pendingChangeCount"
                  ],
                  "properties": {
                    "pendingChangeCount": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "basePricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "visibilityMode": {
                      "type": "string",
                      "enum": [
                        "ADD_TO_CATALOGUE",
                        "ONLY_AGREEMENT_PRODUCTS"
                      ]
                    },
                    "allowDiscretionaryDiscounts": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PENDING_ACTIVATION",
                        "ACTIVE",
                        "TERMINATED"
                      ]
                    },
                    "effectivity": {
                      "type": "string",
                      "enum": [
                        "CURRENT",
                        "UPCOMING",
                        "EXPIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminationReason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Return a Customer Agreement to Draft"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/clone": {
      "post": {
        "operationId": "cloneCustomerAgreement",
        "summary": "Clone an agreement",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effectiveFrom": {},
                  "effectiveTo": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "code",
                  "name",
                  "effectiveFrom"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "catalogueViewId",
                    "pricebookId",
                    "pricebookCode",
                    "basePricebookId",
                    "sourceAgreementId",
                    "code",
                    "name",
                    "description",
                    "accountId",
                    "currency",
                    "visibilityMode",
                    "allowDiscretionaryDiscounts",
                    "status",
                    "effectivity",
                    "effectiveFrom",
                    "effectiveTo",
                    "submittedAt",
                    "submittedBy",
                    "activatedAt",
                    "activatedBy",
                    "terminatedAt",
                    "terminatedBy",
                    "terminationReason",
                    "facts",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "pendingChangeCount"
                  ],
                  "properties": {
                    "pendingChangeCount": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "basePricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "visibilityMode": {
                      "type": "string",
                      "enum": [
                        "ADD_TO_CATALOGUE",
                        "ONLY_AGREEMENT_PRODUCTS"
                      ]
                    },
                    "allowDiscretionaryDiscounts": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PENDING_ACTIVATION",
                        "ACTIVE",
                        "TERMINATED"
                      ]
                    },
                    "effectivity": {
                      "type": "string",
                      "enum": [
                        "CURRENT",
                        "UPCOMING",
                        "EXPIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminationReason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Clone a Customer Agreement"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/activate": {
      "post": {
        "operationId": "activateCustomerAgreement",
        "summary": "Activate an agreement",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lastChangeId": {
                    "type": "string",
                    "pattern": "^[0-9]+$"
                  },
                  "cataloguePublishRunId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "submittedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  }
                },
                "required": [
                  "lastChangeId",
                  "cataloguePublishRunId",
                  "submittedAt"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "catalogueViewId",
                    "pricebookId",
                    "pricebookCode",
                    "basePricebookId",
                    "sourceAgreementId",
                    "code",
                    "name",
                    "description",
                    "accountId",
                    "currency",
                    "visibilityMode",
                    "allowDiscretionaryDiscounts",
                    "status",
                    "effectivity",
                    "effectiveFrom",
                    "effectiveTo",
                    "submittedAt",
                    "submittedBy",
                    "activatedAt",
                    "activatedBy",
                    "terminatedAt",
                    "terminatedBy",
                    "terminationReason",
                    "facts",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "pendingChangeCount"
                  ],
                  "properties": {
                    "pendingChangeCount": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "basePricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "visibilityMode": {
                      "type": "string",
                      "enum": [
                        "ADD_TO_CATALOGUE",
                        "ONLY_AGREEMENT_PRODUCTS"
                      ]
                    },
                    "allowDiscretionaryDiscounts": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PENDING_ACTIVATION",
                        "ACTIVE",
                        "TERMINATED"
                      ]
                    },
                    "effectivity": {
                      "type": "string",
                      "enum": [
                        "CURRENT",
                        "UPCOMING",
                        "EXPIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminationReason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.agreement.activate"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Activate reviewed Agreement terms"
      }
    },
    "/api/v1/customer-agreements/{customerAgreementId}/terminate": {
      "post": {
        "operationId": "terminateCustomerAgreement",
        "summary": "Terminate an agreement",
        "tags": [
          "Catalogue Authoring — Agreements"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "reason": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  }
                },
                "required": [
                  "reason"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "customerAgreementId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "catalogueId",
                    "catalogueViewId",
                    "pricebookId",
                    "pricebookCode",
                    "basePricebookId",
                    "sourceAgreementId",
                    "code",
                    "name",
                    "description",
                    "accountId",
                    "currency",
                    "visibilityMode",
                    "allowDiscretionaryDiscounts",
                    "status",
                    "effectivity",
                    "effectiveFrom",
                    "effectiveTo",
                    "submittedAt",
                    "submittedBy",
                    "activatedAt",
                    "activatedBy",
                    "terminatedAt",
                    "terminatedBy",
                    "terminationReason",
                    "facts",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "pendingChangeCount"
                  ],
                  "properties": {
                    "pendingChangeCount": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "pricebookId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "basePricebookId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceAgreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "visibilityMode": {
                      "type": "string",
                      "enum": [
                        "ADD_TO_CATALOGUE",
                        "ONLY_AGREEMENT_PRODUCTS"
                      ]
                    },
                    "allowDiscretionaryDiscounts": {
                      "type": "boolean"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PENDING_ACTIVATION",
                        "ACTIVE",
                        "TERMINATED"
                      ]
                    },
                    "effectivity": {
                      "type": "string",
                      "enum": [
                        "CURRENT",
                        "UPCOMING",
                        "EXPIRED"
                      ]
                    },
                    "effectiveFrom": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "terminationReason": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.agreement.activate"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "x-nambikk-api-surface": "AUTHORING",
        "description": "Terminate a Customer Agreement"
      }
    },
    "/api/v1/catalogue-publish-previews": {
      "post": {
        "operationId": "requestCataloguePublishPreview",
        "summary": "Create a publish preview",
        "tags": [
          "Catalogue Publishing"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "catalogueId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "catalogueCode": {
                    "type": "string"
                  },
                  "metadata": {
                    "type": "object",
                    "additionalProperties": true
                  }
                },
                "additionalProperties": false,
                "oneOf": [
                  {
                    "required": [
                      "catalogueId"
                    ],
                    "not": {
                      "required": [
                        "catalogueCode"
                      ]
                    }
                  },
                  {
                    "required": [
                      "catalogueCode"
                    ],
                    "not": {
                      "required": [
                        "catalogueId"
                      ]
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "catalogueId",
                    "kind",
                    "status",
                    "trigger",
                    "baselinePublishRunId",
                    "lastChangeId",
                    "requestedBy",
                    "queuedAt",
                    "startedAt",
                    "completedAt",
                    "preparedAt",
                    "confirmedAt",
                    "confirmedBy",
                    "progress",
                    "validationReport",
                    "counts",
                    "error",
                    "metadata",
                    "createdAt",
                    "updatedAt",
                    "accepted",
                    "dispatch"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "PREVIEW",
                        "PUBLISH"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "QUEUED",
                        "RUNNING",
                        "READY",
                        "BLOCKED",
                        "STALE",
                        "SUCCEEDED",
                        "FAILED"
                      ]
                    },
                    "trigger": {
                      "type": "string",
                      "enum": [
                        "MANUAL",
                        "AGREEMENT_ACTIVATION"
                      ]
                    },
                    "baselinePublishRunId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastChangeId": {
                      "type": "string",
                      "pattern": "^[0-9]+$"
                    },
                    "requestedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "queuedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "startedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "completedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "preparedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "confirmedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "confirmedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "progress": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationReport": {
                      "type": "object",
                      "properties": {
                        "valid": {
                          "type": "boolean"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "counts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "accepted": {
                      "type": "boolean"
                    },
                    "dispatch": {
                      "type": "object",
                      "required": [
                        "status"
                      ],
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "ENQUEUED",
                            "SKIPPED",
                            "FAILED"
                          ]
                        },
                        "reason": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "202": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "catalogueId",
                    "kind",
                    "status",
                    "trigger",
                    "baselinePublishRunId",
                    "lastChangeId",
                    "requestedBy",
                    "queuedAt",
                    "startedAt",
                    "completedAt",
                    "preparedAt",
                    "confirmedAt",
                    "confirmedBy",
                    "progress",
                    "validationReport",
                    "counts",
                    "error",
                    "metadata",
                    "createdAt",
                    "updatedAt",
                    "accepted",
                    "dispatch"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "PREVIEW",
                        "PUBLISH"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "QUEUED",
                        "RUNNING",
                        "READY",
                        "BLOCKED",
                        "STALE",
                        "SUCCEEDED",
                        "FAILED"
                      ]
                    },
                    "trigger": {
                      "type": "string",
                      "enum": [
                        "MANUAL",
                        "AGREEMENT_ACTIVATION"
                      ]
                    },
                    "baselinePublishRunId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastChangeId": {
                      "type": "string",
                      "pattern": "^[0-9]+$"
                    },
                    "requestedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "queuedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "startedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "completedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "preparedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "confirmedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "confirmedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "progress": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationReport": {
                      "type": "object",
                      "properties": {
                        "valid": {
                          "type": "boolean"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": true
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              }
                            },
                            "additionalProperties": true
                          }
                        }
                      },
                      "additionalProperties": true
                    },
                    "counts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "error": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": true
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "accepted": {
                      "type": "boolean"
                    },
                    "dispatch": {
                      "type": "object",
                      "required": [
                        "status"
                      ],
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "ENQUEUED",
                            "SKIPPED",
                            "FAILED"
                          ]
                        },
                        "reason": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          },
          "410": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  },
                  "additionalProperties": true
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "catalogue.publish"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "x-nambikk-api-surface": "PUBLISHING",
        "description": "Prepare an exact publish preview"
      }
    },
    "/api/v1/accounts": {
      "get": {
        "operationId": "listAccounts",
        "summary": "Search accounts",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 7400
            },
            "in": "query",
            "name": "ids",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "INACTIVE"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ORGANIZATION",
                "INDIVIDUAL"
              ]
            },
            "in": "query",
            "name": "accountType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "segment",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "market",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "parentAccountId",
                          "accountType",
                          "accountNumber",
                          "name",
                          "legalName",
                          "segment",
                          "market",
                          "status",
                          "attributes",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentAccountId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "accountType": {
                            "type": "string",
                            "enum": [
                              "ORGANIZATION",
                              "INDIVIDUAL"
                            ]
                          },
                          "accountNumber": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "legalName": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "segment": {
                            "type": "string"
                          },
                          "market": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "INACTIVE"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Search Accounts"
      },
      "post": {
        "operationId": "createAccount",
        "summary": "Create an account",
        "tags": [
          "Customers"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "parentAccountId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "accountType": {
                    "type": "string",
                    "enum": [
                      "ORGANIZATION",
                      "INDIVIDUAL"
                    ]
                  },
                  "accountNumber": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z0-9][A-Z0-9_.-]{1,99}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "legalName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "segment": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "market": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "attributes": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "accountType",
                  "name",
                  "segment",
                  "market"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "parentAccountId",
                    "accountType",
                    "accountNumber",
                    "name",
                    "legalName",
                    "segment",
                    "market",
                    "status",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentAccountId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountType": {
                      "type": "string",
                      "enum": [
                        "ORGANIZATION",
                        "INDIVIDUAL"
                      ]
                    },
                    "accountNumber": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "legalName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "segment": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "description": "Create an Account"
      }
    },
    "/api/v1/accounts/{accountId}": {
      "get": {
        "operationId": "getAccount",
        "summary": "Get an account",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "accountId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "parentAccountId",
                    "accountType",
                    "accountNumber",
                    "name",
                    "legalName",
                    "segment",
                    "market",
                    "status",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentAccountId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountType": {
                      "type": "string",
                      "enum": [
                        "ORGANIZATION",
                        "INDIVIDUAL"
                      ]
                    },
                    "accountNumber": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "legalName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "segment": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get an Account"
      },
      "patch": {
        "operationId": "updateAccount",
        "summary": "Update an account",
        "tags": [
          "Customers"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "parentAccountId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "accountNumber": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z0-9][A-Z0-9_.-]{1,99}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "legalName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "segment": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "market": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "attributes": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "accountId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "parentAccountId",
                    "accountType",
                    "accountNumber",
                    "name",
                    "legalName",
                    "segment",
                    "market",
                    "status",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentAccountId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountType": {
                      "type": "string",
                      "enum": [
                        "ORGANIZATION",
                        "INDIVIDUAL"
                      ]
                    },
                    "accountNumber": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "legalName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "segment": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update an Account"
      }
    },
    "/api/v1/accounts/{accountId}/contacts": {
      "get": {
        "operationId": "listAccountContacts",
        "summary": "List account contacts",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "INACTIVE"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "accountId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "accountId",
                          "firstName",
                          "lastName",
                          "email",
                          "phone",
                          "status",
                          "attributes",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "firstName": {
                            "type": "string"
                          },
                          "lastName": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "email": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "email"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "phone": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "INACTIVE"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Account Contacts"
      },
      "post": {
        "operationId": "createAccountContact",
        "summary": "Create a contact",
        "tags": [
          "Customers"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "firstName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "lastName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 320,
                        "format": "email",
                        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phone": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[+0-9][0-9 ()-]{3,39}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributes": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "firstName"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "accountId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "accountId",
                    "firstName",
                    "lastName",
                    "email",
                    "phone",
                    "status",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "firstName": {
                      "type": "string"
                    },
                    "lastName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "email"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "phone": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Create an Account Contact"
      }
    },
    "/api/v1/contacts": {
      "get": {
        "operationId": "searchContacts",
        "summary": "Search contacts",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "INACTIVE"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "accountId",
                          "firstName",
                          "lastName",
                          "email",
                          "phone",
                          "status",
                          "attributes",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "account"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "firstName": {
                            "type": "string"
                          },
                          "lastName": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "email": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "email"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "phone": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "INACTIVE"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "account": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "name",
                              "accountNumber"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "name": {
                                "type": "string"
                              },
                              "accountNumber": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Search Contacts across Accounts"
      }
    },
    "/api/v1/contacts/{contactId}": {
      "get": {
        "operationId": "getContact",
        "summary": "Get a contact",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "contactId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "accountId",
                    "firstName",
                    "lastName",
                    "email",
                    "phone",
                    "status",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "firstName": {
                      "type": "string"
                    },
                    "lastName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "email"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "phone": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a Contact"
      },
      "patch": {
        "operationId": "updateContact",
        "summary": "Update a contact",
        "tags": [
          "Customers"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "firstName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "lastName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "email": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 320,
                        "format": "email",
                        "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "phone": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[+0-9][0-9 ()-]{3,39}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributes": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "contactId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "accountId",
                    "firstName",
                    "lastName",
                    "email",
                    "phone",
                    "status",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "firstName": {
                      "type": "string"
                    },
                    "lastName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "email"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "phone": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update a Contact"
      }
    },
    "/api/v1/external-references": {
      "get": {
        "operationId": "listExternalReferences",
        "summary": "Search external references",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACCOUNT",
                "CONTACT"
              ]
            },
            "in": "query",
            "name": "entityType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "entityId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "INACTIVE"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "systemCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "referenceType",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "entityType",
                          "entityId",
                          "systemCode",
                          "referenceType",
                          "externalCode",
                          "metadata",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "entityType": {
                            "type": "string",
                            "enum": [
                              "ACCOUNT",
                              "CONTACT"
                            ]
                          },
                          "entityId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "systemCode": {
                            "type": "string"
                          },
                          "referenceType": {
                            "type": "string"
                          },
                          "externalCode": {
                            "type": "string"
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "INACTIVE"
                            ]
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Search Account and Contact external references"
      }
    },
    "/api/v1/accounts/{accountId}/external-references": {
      "get": {
        "operationId": "listAccountExternalReferences",
        "summary": "List account references",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACCOUNT",
                "CONTACT"
              ]
            },
            "in": "query",
            "name": "entityType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "entityId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "INACTIVE"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "systemCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "referenceType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "accountId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "entityType",
                          "entityId",
                          "systemCode",
                          "referenceType",
                          "externalCode",
                          "metadata",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "entityType": {
                            "type": "string",
                            "enum": [
                              "ACCOUNT",
                              "CONTACT"
                            ]
                          },
                          "entityId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "systemCode": {
                            "type": "string"
                          },
                          "referenceType": {
                            "type": "string"
                          },
                          "externalCode": {
                            "type": "string"
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "INACTIVE"
                            ]
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Account external references"
      },
      "post": {
        "operationId": "createAccountExternalReference",
        "summary": "Add an account reference",
        "tags": [
          "Customers"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "systemCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "referenceType": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "externalCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "metadata": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "systemCode",
                  "referenceType",
                  "externalCode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "accountId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "entityType",
                    "entityId",
                    "systemCode",
                    "referenceType",
                    "externalCode",
                    "metadata",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "entityType": {
                      "type": "string",
                      "enum": [
                        "ACCOUNT",
                        "CONTACT"
                      ]
                    },
                    "entityId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "systemCode": {
                      "type": "string"
                    },
                    "referenceType": {
                      "type": "string"
                    },
                    "externalCode": {
                      "type": "string"
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Add an Account external reference"
      }
    },
    "/api/v1/contacts/{contactId}/external-references": {
      "get": {
        "operationId": "listContactExternalReferences",
        "summary": "List contact references",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACCOUNT",
                "CONTACT"
              ]
            },
            "in": "query",
            "name": "entityType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "entityId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "INACTIVE"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "systemCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "referenceType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "contactId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "entityType",
                          "entityId",
                          "systemCode",
                          "referenceType",
                          "externalCode",
                          "metadata",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "entityType": {
                            "type": "string",
                            "enum": [
                              "ACCOUNT",
                              "CONTACT"
                            ]
                          },
                          "entityId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "systemCode": {
                            "type": "string"
                          },
                          "referenceType": {
                            "type": "string"
                          },
                          "externalCode": {
                            "type": "string"
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "INACTIVE"
                            ]
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Contact external references"
      },
      "post": {
        "operationId": "createContactExternalReference",
        "summary": "Add a contact reference",
        "tags": [
          "Customers"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "systemCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "referenceType": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "externalCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "metadata": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "systemCode",
                  "referenceType",
                  "externalCode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "contactId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "entityType",
                    "entityId",
                    "systemCode",
                    "referenceType",
                    "externalCode",
                    "metadata",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "entityType": {
                      "type": "string",
                      "enum": [
                        "ACCOUNT",
                        "CONTACT"
                      ]
                    },
                    "entityId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "systemCode": {
                      "type": "string"
                    },
                    "referenceType": {
                      "type": "string"
                    },
                    "externalCode": {
                      "type": "string"
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Add a Contact external reference"
      }
    },
    "/api/v1/accounts/{accountId}/deactivate": {
      "post": {
        "operationId": "deactivateAccount",
        "summary": "Deactivate an account",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "accountId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "parentAccountId",
                    "accountType",
                    "accountNumber",
                    "name",
                    "legalName",
                    "segment",
                    "market",
                    "status",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentAccountId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountType": {
                      "type": "string",
                      "enum": [
                        "ORGANIZATION",
                        "INDIVIDUAL"
                      ]
                    },
                    "accountNumber": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "legalName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "segment": {
                      "type": "string"
                    },
                    "market": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Deactivate an Account"
      }
    },
    "/api/v1/contacts/{contactId}/deactivate": {
      "post": {
        "operationId": "deactivateContact",
        "summary": "Deactivate a contact",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "contactId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "accountId",
                    "firstName",
                    "lastName",
                    "email",
                    "phone",
                    "status",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "firstName": {
                      "type": "string"
                    },
                    "lastName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "email"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "phone": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Deactivate a Contact"
      }
    },
    "/api/v1/external-references/{externalReferenceId}": {
      "delete": {
        "operationId": "deleteExternalReference",
        "summary": "Delete an external reference",
        "tags": [
          "Customers"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "externalReferenceId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/v1/carts": {
      "get": {
        "operationId": "listCarts",
        "summary": "Search quotes",
        "tags": [
          "Quotes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "DRAFT",
                "PRICED",
                "PENDING_APPROVAL",
                "APPROVED",
                "ACCEPTED",
                "ORDERED",
                "CANCELLED",
                "EXPIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "minItems": 1,
              "maxItems": 8,
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "DRAFT",
                  "PRICED",
                  "PENDING_APPROVAL",
                  "APPROVED",
                  "ACCEPTED",
                  "ORDERED",
                  "CANCELLED",
                  "EXPIRED"
                ]
              }
            },
            "in": "query",
            "name": "statuses",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "VALID",
                "HAS_WARNINGS",
                "HAS_ERRORS"
              ]
            },
            "in": "query",
            "name": "validationStatus",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "NOT_ORDERED",
                "PARTIALLY_ORDERED",
                "ORDERED"
              ]
            },
            "in": "query",
            "name": "orderStatus",
            "required": false,
            "description": "Ordering progress: NOT_ORDERED, PARTIALLY_ORDERED or ORDERED."
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "NEW_SALE",
                "SUBSCRIPTION_CHANGE",
                "ORDER_AMENDMENT"
              ]
            },
            "in": "query",
            "name": "cartType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceOrderId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceSubscriptionId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "createdFrom",
            "required": false,
            "description": "Inclusive creation instant, with UTC or an explicit offset; requires createdTo."
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "createdTo",
            "required": false,
            "description": "Exclusive creation instant, later than createdFrom."
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "updatedFrom",
            "required": false,
            "description": "Inclusive last-update instant, with UTC or an explicit offset; requires updatedTo."
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "updatedTo",
            "required": false,
            "description": "Exclusive last-update instant, later than updatedFrom."
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "me",
                "unassigned"
              ]
            },
            "in": "query",
            "name": "assignedTo",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "query",
            "name": "assignedSellerId",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "acceptedFrom",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "acceptedTo",
            "required": false
          },
          {
            "schema": {
              "default": "UPDATED_DESC",
              "type": "string",
              "enum": [
                "UPDATED_DESC",
                "ACCEPTED_DESC",
                "CREATED_DESC"
              ]
            },
            "in": "query",
            "name": "sort",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartNumber",
                          "name",
                          "cartType",
                          "status",
                          "accountId",
                          "primaryContactId",
                          "assignedSellerId",
                          "assignedAt",
                          "assignedBy",
                          "catalogueCode",
                          "catalogueViewCode",
                          "pricebookCode",
                          "currency",
                          "agreementId",
                          "agreementCode",
                          "agreementName",
                          "discretionaryDiscountsAllowed",
                          "sourceCartId",
                          "sourceOrderId",
                          "sourceSubscriptionId",
                          "orderStatus",
                          "orderedItemCount",
                          "changeCode",
                          "attributes",
                          "validationStatus",
                          "validationIssues",
                          "ruleResults",
                          "pricedAt",
                          "expiresAt",
                          "acceptedAt",
                          "version",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "account"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartNumber": {
                            "type": "string"
                          },
                          "name": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cartType": {
                            "type": "string",
                            "enum": [
                              "NEW_SALE",
                              "SUBSCRIPTION_CHANGE",
                              "ORDER_AMENDMENT"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "DRAFT",
                              "PRICED",
                              "PENDING_APPROVAL",
                              "APPROVED",
                              "ACCEPTED",
                              "ORDERED",
                              "CANCELLED",
                              "EXPIRED"
                            ]
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "primaryContactId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "assignedSellerId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "assignedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "assignedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "catalogueCode": {
                            "type": "string"
                          },
                          "catalogueViewCode": {
                            "type": "string"
                          },
                          "pricebookCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "agreementId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "agreementCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "agreementName": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "discretionaryDiscountsAllowed": {
                            "type": "boolean"
                          },
                          "sourceCartId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceOrderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceSubscriptionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "orderStatus": {
                            "type": "string",
                            "enum": [
                              "NOT_ORDERED",
                              "PARTIALLY_ORDERED",
                              "ORDERED"
                            ],
                            "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                          },
                          "orderedItemCount": {
                            "type": "integer",
                            "description": "Number of top-level items already ordered."
                          },
                          "changeCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "validationStatus": {
                            "type": "string",
                            "enum": [
                              "VALID",
                              "HAS_WARNINGS",
                              "HAS_ERRORS"
                            ]
                          },
                          "validationIssues": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "code",
                                "severity",
                                "message",
                                "scope",
                                "source",
                                "details"
                              ],
                              "properties": {
                                "code": {
                                  "type": "string"
                                },
                                "severity": {
                                  "type": "string",
                                  "enum": [
                                    "ERROR",
                                    "WARNING",
                                    "INFO"
                                  ]
                                },
                                "message": {
                                  "type": "string"
                                },
                                "scope": {
                                  "type": "string",
                                  "enum": [
                                    "CART",
                                    "CART_ITEM",
                                    "ADDON_GROUP",
                                    "COMPONENT"
                                  ]
                                },
                                "cartItemId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "source": {
                                  "type": "string"
                                },
                                "details": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            }
                          },
                          "ruleResults": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "pricedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "acceptedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "version": {
                            "type": "integer"
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "account": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "name",
                              "accountNumber"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "name": {
                                "type": "string"
                              },
                              "accountNumber": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Search quotes. Quote paths use the resource name `carts`."
      },
      "post": {
        "operationId": "createCart",
        "summary": "Create a quote",
        "tags": [
          "Quotes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cartType": {
                    "default": "NEW_SALE",
                    "type": "string",
                    "enum": [
                      "NEW_SALE",
                      "SUBSCRIPTION_CHANGE",
                      "ORDER_AMENDMENT"
                    ]
                  },
                  "accountId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "primaryContactId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "catalogueViewCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "pricebookCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sourceCartId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sourceOrderId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sourceSubscriptionId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "changeCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributes": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "accountId",
                  "catalogueViewCode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartNumber",
                    "name",
                    "cartType",
                    "status",
                    "accountId",
                    "primaryContactId",
                    "assignedSellerId",
                    "assignedAt",
                    "assignedBy",
                    "catalogueCode",
                    "catalogueViewCode",
                    "pricebookCode",
                    "currency",
                    "agreementId",
                    "agreementCode",
                    "agreementName",
                    "discretionaryDiscountsAllowed",
                    "sourceCartId",
                    "sourceOrderId",
                    "sourceSubscriptionId",
                    "orderStatus",
                    "orderedItemCount",
                    "changeCode",
                    "attributes",
                    "validationStatus",
                    "validationIssues",
                    "ruleResults",
                    "pricedAt",
                    "expiresAt",
                    "acceptedAt",
                    "version",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartNumber": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cartType": {
                      "type": "string",
                      "enum": [
                        "NEW_SALE",
                        "SUBSCRIPTION_CHANGE",
                        "ORDER_AMENDMENT"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PRICED",
                        "PENDING_APPROVAL",
                        "APPROVED",
                        "ACCEPTED",
                        "ORDERED",
                        "CANCELLED",
                        "EXPIRED"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "primaryContactId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedSellerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "discretionaryDiscountsAllowed": {
                      "type": "boolean"
                    },
                    "sourceCartId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceOrderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceSubscriptionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_ORDERED",
                        "PARTIALLY_ORDERED",
                        "ORDERED"
                      ],
                      "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                    },
                    "orderedItemCount": {
                      "type": "integer",
                      "description": "Number of top-level items already ordered."
                    },
                    "changeCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "ruleResults": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "acceptedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "type": "integer"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "description": "Create a quote. Quote paths use the resource name `carts`."
      }
    },
    "/api/v1/carts/{cartId}/effective-view": {
      "get": {
        "operationId": "getEffectiveCartView",
        "summary": "Get a quote workspace",
        "tags": [
          "Quotes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "boolean"
            },
            "in": "query",
            "name": "includeRemoved",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "required": [
                    "cart",
                    "totals",
                    "totalsAreCurrent",
                    "approvalSummary",
                    "availableActions",
                    "items",
                    "change"
                  ],
                  "properties": {
                    "cart": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "cartNumber",
                        "name",
                        "cartType",
                        "status",
                        "accountId",
                        "primaryContactId",
                        "assignedSellerId",
                        "assignedAt",
                        "assignedBy",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "agreementId",
                        "agreementCode",
                        "agreementName",
                        "discretionaryDiscountsAllowed",
                        "sourceCartId",
                        "sourceOrderId",
                        "sourceSubscriptionId",
                        "orderStatus",
                        "orderedItemCount",
                        "changeCode",
                        "attributes",
                        "validationStatus",
                        "validationIssues",
                        "ruleResults",
                        "pricedAt",
                        "expiresAt",
                        "acceptedAt",
                        "version",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartNumber": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cartType": {
                          "type": "string",
                          "enum": [
                            "NEW_SALE",
                            "SUBSCRIPTION_CHANGE",
                            "ORDER_AMENDMENT"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "DRAFT",
                            "PRICED",
                            "PENDING_APPROVAL",
                            "APPROVED",
                            "ACCEPTED",
                            "ORDERED",
                            "CANCELLED",
                            "EXPIRED"
                          ]
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "primaryContactId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedSellerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementName": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "discretionaryDiscountsAllowed": {
                          "type": "boolean"
                        },
                        "sourceCartId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceOrderId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceSubscriptionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderStatus": {
                          "type": "string",
                          "enum": [
                            "NOT_ORDERED",
                            "PARTIALLY_ORDERED",
                            "ORDERED"
                          ],
                          "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                        },
                        "orderedItemCount": {
                          "type": "integer",
                          "description": "Number of top-level items already ordered."
                        },
                        "changeCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "attributes": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "validationStatus": {
                          "type": "string",
                          "enum": [
                            "VALID",
                            "HAS_WARNINGS",
                            "HAS_ERRORS"
                          ]
                        },
                        "validationIssues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "severity",
                              "message",
                              "scope",
                              "source",
                              "details"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "INFO"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "CART_ITEM",
                                  "ADDON_GROUP",
                                  "COMPONENT"
                                ]
                              },
                              "cartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "source": {
                                "type": "string"
                              },
                              "details": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        },
                        "ruleResults": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "pricedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "acceptedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "version": {
                          "type": "integer"
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency",
                        "oneTimeTotal",
                        "recurringTotalsByPeriod",
                        "meteredTariffCount",
                        "list",
                        "adjusted",
                        "sales"
                      ],
                      "properties": {
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oneTimeTotal": {
                          "type": "number"
                        },
                        "recurringTotalsByPeriod": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "billingPeriod",
                              "listAmount",
                              "adjustmentAmount",
                              "salesAmount"
                            ],
                            "properties": {
                              "billingPeriod": {
                                "type": "string"
                              },
                              "listAmount": {
                                "type": "number"
                              },
                              "adjustmentAmount": {
                                "type": "number"
                              },
                              "salesAmount": {
                                "type": "number"
                              }
                            }
                          }
                        },
                        "meteredTariffCount": {
                          "type": "integer"
                        },
                        "list": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "adjusted": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "sales": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    },
                    "totalsAreCurrent": {
                      "type": "boolean"
                    },
                    "approvalSummary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "status",
                        "requiresApproval",
                        "pendingChargeCount",
                        "pendingChargeIds",
                        "requirementCount",
                        "requirements",
                        "approvalRequestId",
                        "latestRequest"
                      ],
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "NOT_REQUIRED",
                            "NOT_SUBMITTED",
                            "SUBMITTED",
                            "APPROVED"
                          ]
                        },
                        "requiresApproval": {
                          "type": "boolean"
                        },
                        "pendingChargeCount": {
                          "type": "integer"
                        },
                        "pendingChargeIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "requirementCount": {
                          "type": "integer"
                        },
                        "requirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "code",
                              "message"
                            ],
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "DISCOUNT_LIMIT",
                                  "BUSINESS_RULE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "chargeId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "ruleCode": {
                                "type": "string"
                              },
                              "cartItemId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "resultKey": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "approvalRequestId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "latestRequest": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "status",
                                "requesterId",
                                "requestedAt",
                                "requestNote",
                                "decidedBy",
                                "decidedAt",
                                "decisionComment"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "PENDING",
                                    "APPROVED",
                                    "REJECTED",
                                    "WITHDRAWN",
                                    "CANCELLED"
                                  ]
                                },
                                "requesterId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "requestedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "requestNote": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "decidedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "decidedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date-time"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "decisionComment": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "availableActions": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "canEdit",
                        "canPrice",
                        "canSubmitForApproval",
                        "canWithdrawApproval",
                        "canSubmitOrder",
                        "canApplyAmendment",
                        "canCreateChangeOrder",
                        "canReopen"
                      ],
                      "properties": {
                        "canEdit": {
                          "type": "boolean"
                        },
                        "canPrice": {
                          "type": "boolean"
                        },
                        "canSubmitForApproval": {
                          "type": "boolean"
                        },
                        "canWithdrawApproval": {
                          "type": "boolean"
                        },
                        "canSubmitOrder": {
                          "type": "boolean"
                        },
                        "canApplyAmendment": {
                          "type": "boolean"
                        },
                        "canCreateChangeOrder": {
                          "type": "boolean"
                        },
                        "canReopen": {
                          "type": "boolean",
                          "description": "An approved new-sale Quote can be reopened for editing."
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartId",
                          "parentCartItemId",
                          "sourceCartItemId",
                          "sourceServiceId",
                          "sourceDeliverableItemId",
                          "sourceComponentType",
                          "sourceComponentId",
                          "componentRoleCode",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "itemName",
                          "productVariantId",
                          "productVariantCode",
                          "productDefinitionId",
                          "productDefinitionCode",
                          "orderProductType",
                          "cataloguePublishRunId",
                          "catalogueViewId",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "attributes",
                          "facts",
                          "charges",
                          "priceSnapshot",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "children"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceDeliverableItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "componentRoleCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "productVariantId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productVariantCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "orderProductType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "SUBSCRIPTION",
                                  "DELIVERABLE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cataloguePublishRunId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ADD",
                              "NO_CHANGE",
                              "MODIFY",
                              "REMOVE"
                            ]
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string",
                            "enum": [
                              "MULTIPLIER",
                              "UNIT"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "charges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "cartId",
                                "cartItemId",
                                "parentChargeId",
                                "sourceChargeId",
                                "chargeCode",
                                "name",
                                "chargeType",
                                "pricingRole",
                                "chargeSource",
                                "discountType",
                                "listAmount",
                                "amount",
                                "unitPrice",
                                "quantity",
                                "currency",
                                "billingPeriod",
                                "ratingMode",
                                "sourceChargeDefinitionId",
                                "sourcePricebookEntryId",
                                "sourcePricingRuleId",
                                "activatedByRuleIds",
                                "rateCardId",
                                "reasonCode",
                                "approvalStatus",
                                "createdBy",
                                "comment",
                                "priceDetails",
                                "status",
                                "createdAt",
                                "updatedAt"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartItemId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "parentChargeId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceChargeId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "chargeCode": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "chargeType": {
                                  "type": "string",
                                  "enum": [
                                    "ONE_TIME",
                                    "RECURRING"
                                  ]
                                },
                                "pricingRole": {
                                  "type": "string",
                                  "enum": [
                                    "CHARGE",
                                    "DISCOUNT",
                                    "SURCHARGE"
                                  ]
                                },
                                "chargeSource": {
                                  "type": "string",
                                  "enum": [
                                    "BASE_PRICE",
                                    "CATALOGUE_DISCOUNT",
                                    "CATALOGUE_WAIVER",
                                    "CATALOGUE_SURCHARGE",
                                    "DISCRETIONARY_DISCOUNT",
                                    "MANUAL_CHARGE",
                                    "EXTERNAL_PRICE"
                                  ]
                                },
                                "discountType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "AMOUNT",
                                        "PERCENT",
                                        "WAIVE"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "listAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unitPrice": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "quantity": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "billingPeriod": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "ratingMode": {
                                  "type": "string",
                                  "enum": [
                                    "CART",
                                    "METERED"
                                  ]
                                },
                                "sourceChargeDefinitionId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricebookEntryId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricingRuleId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activatedByRuleIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "rateCardId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "reasonCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvalStatus": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "comment": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "priceDetails": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "status": {
                                  "type": "string"
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                }
                              }
                            }
                          },
                          "priceSnapshot": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "externalPrices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "chargeCode",
                                "amount",
                                "listAmount",
                                "externalRef"
                              ],
                              "properties": {
                                "chargeCode": {
                                  "type": "string"
                                },
                                "amount": {
                                  "type": "number"
                                },
                                "listAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                          },
                          "status": {
                            "type": "string",
                            "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "journey": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "steps"
                            ],
                            "properties": {
                              "steps": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "componentId",
                                    "componentCode",
                                    "name",
                                    "displayOrder",
                                    "visible",
                                    "status",
                                    "questionAttributeCodes",
                                    "selectedCartItemIds"
                                  ],
                                  "properties": {
                                    "componentId": {
                                      "type": "string"
                                    },
                                    "componentCode": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": [
                                        "null",
                                        "string"
                                      ]
                                    },
                                    "displayOrder": {
                                      "type": "number"
                                    },
                                    "visible": {
                                      "type": "boolean"
                                    },
                                    "status": {
                                      "type": [
                                        "null",
                                        "string"
                                      ],
                                      "enum": [
                                        "COMPLETE",
                                        "NEEDS_ATTENTION",
                                        "NOT_STARTED",
                                        "OPTIONAL",
                                        null
                                      ]
                                    },
                                    "questionAttributeCodes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "selectedCartItemIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "children": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "cartId",
                                "parentCartItemId",
                                "sourceCartItemId",
                                "sourceServiceId",
                                "sourceDeliverableItemId",
                                "sourceComponentType",
                                "sourceComponentId",
                                "componentRoleCode",
                                "itemType",
                                "itemId",
                                "itemCode",
                                "itemName",
                                "productVariantId",
                                "productVariantCode",
                                "productDefinitionId",
                                "productDefinitionCode",
                                "orderProductType",
                                "cataloguePublishRunId",
                                "catalogueViewId",
                                "action",
                                "quantity",
                                "quantityStrategy",
                                "attributes",
                                "facts",
                                "charges",
                                "priceSnapshot",
                                "status",
                                "createdBy",
                                "updatedBy",
                                "createdAt",
                                "updatedAt",
                                "children"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "parentCartItemId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceCartItemId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceServiceId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceDeliverableItemId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceComponentType": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceComponentId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "componentRoleCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "itemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "itemId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "itemCode": {
                                  "type": "string"
                                },
                                "itemName": {
                                  "type": "string"
                                },
                                "productVariantId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productDefinitionId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productDefinitionCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "orderProductType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "SUBSCRIPTION",
                                        "DELIVERABLE"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "cataloguePublishRunId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "catalogueViewId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "ADD",
                                    "NO_CHANGE",
                                    "MODIFY",
                                    "REMOVE"
                                  ]
                                },
                                "quantity": {
                                  "type": "integer"
                                },
                                "quantityStrategy": {
                                  "type": "string",
                                  "enum": [
                                    "MULTIPLIER",
                                    "UNIT"
                                  ]
                                },
                                "attributes": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "facts": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "charges": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "cartId",
                                      "cartItemId",
                                      "parentChargeId",
                                      "sourceChargeId",
                                      "chargeCode",
                                      "name",
                                      "chargeType",
                                      "pricingRole",
                                      "chargeSource",
                                      "discountType",
                                      "listAmount",
                                      "amount",
                                      "unitPrice",
                                      "quantity",
                                      "currency",
                                      "billingPeriod",
                                      "ratingMode",
                                      "sourceChargeDefinitionId",
                                      "sourcePricebookEntryId",
                                      "sourcePricingRuleId",
                                      "activatedByRuleIds",
                                      "rateCardId",
                                      "reasonCode",
                                      "approvalStatus",
                                      "createdBy",
                                      "comment",
                                      "priceDetails",
                                      "status",
                                      "createdAt",
                                      "updatedAt"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "cartId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "cartItemId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "parentChargeId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceChargeId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "chargeCode": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "chargeType": {
                                        "type": "string",
                                        "enum": [
                                          "ONE_TIME",
                                          "RECURRING"
                                        ]
                                      },
                                      "pricingRole": {
                                        "type": "string",
                                        "enum": [
                                          "CHARGE",
                                          "DISCOUNT",
                                          "SURCHARGE"
                                        ]
                                      },
                                      "chargeSource": {
                                        "type": "string",
                                        "enum": [
                                          "BASE_PRICE",
                                          "CATALOGUE_DISCOUNT",
                                          "CATALOGUE_WAIVER",
                                          "CATALOGUE_SURCHARGE",
                                          "DISCRETIONARY_DISCOUNT",
                                          "MANUAL_CHARGE",
                                          "EXTERNAL_PRICE"
                                        ]
                                      },
                                      "discountType": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "AMOUNT",
                                              "PERCENT",
                                              "WAIVE"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "listAmount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unitPrice": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "quantity": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "ratingMode": {
                                        "type": "string",
                                        "enum": [
                                          "CART",
                                          "METERED"
                                        ]
                                      },
                                      "sourceChargeDefinitionId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourcePricebookEntryId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourcePricingRuleId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "activatedByRuleIds": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "format": "uuid"
                                        }
                                      },
                                      "rateCardId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "reasonCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "externalRef": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "approvalStatus": {
                                        "type": "string"
                                      },
                                      "createdBy": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "comment": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "priceDetails": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "status": {
                                        "type": "string"
                                      },
                                      "createdAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      "updatedAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      }
                                    }
                                  }
                                },
                                "priceSnapshot": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "externalPrices": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "chargeCode",
                                      "amount",
                                      "listAmount",
                                      "externalRef"
                                    ],
                                    "properties": {
                                      "chargeCode": {
                                        "type": "string"
                                      },
                                      "amount": {
                                        "type": "number"
                                      },
                                      "listAmount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "externalRef": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  }
                                },
                                "instanceLabel": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "naming": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "instanceNoun",
                                    "instanceLabelAttributes",
                                    "unitNoun",
                                    "unitLabelAttributes"
                                  ],
                                  "properties": {
                                    "instanceNoun": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "singular",
                                            "plural"
                                          ],
                                          "properties": {
                                            "singular": {
                                              "type": "string"
                                            },
                                            "plural": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "instanceLabelAttributes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "unitNoun": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "singular",
                                            "plural"
                                          ],
                                          "properties": {
                                            "singular": {
                                              "type": "string"
                                            },
                                            "plural": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "unitLabelAttributes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                },
                                "orderId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                },
                                "status": {
                                  "type": "string",
                                  "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                },
                                "createdBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "journey": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "steps"
                                  ],
                                  "properties": {
                                    "steps": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "componentId",
                                          "componentCode",
                                          "name",
                                          "displayOrder",
                                          "visible",
                                          "status",
                                          "questionAttributeCodes",
                                          "selectedCartItemIds"
                                        ],
                                        "properties": {
                                          "componentId": {
                                            "type": "string"
                                          },
                                          "componentCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": [
                                              "null",
                                              "string"
                                            ]
                                          },
                                          "displayOrder": {
                                            "type": "number"
                                          },
                                          "visible": {
                                            "type": "boolean"
                                          },
                                          "status": {
                                            "type": [
                                              "null",
                                              "string"
                                            ],
                                            "enum": [
                                              "COMPLETE",
                                              "NEEDS_ATTENTION",
                                              "NOT_STARTED",
                                              "OPTIONAL",
                                              null
                                            ]
                                          },
                                          "questionAttributeCodes": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "selectedCartItemIds": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                },
                                "children": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "cartId",
                                      "parentCartItemId",
                                      "sourceCartItemId",
                                      "sourceServiceId",
                                      "sourceDeliverableItemId",
                                      "sourceComponentType",
                                      "sourceComponentId",
                                      "componentRoleCode",
                                      "itemType",
                                      "itemId",
                                      "itemCode",
                                      "itemName",
                                      "productVariantId",
                                      "productVariantCode",
                                      "productDefinitionId",
                                      "productDefinitionCode",
                                      "orderProductType",
                                      "cataloguePublishRunId",
                                      "catalogueViewId",
                                      "action",
                                      "quantity",
                                      "quantityStrategy",
                                      "attributes",
                                      "facts",
                                      "charges",
                                      "priceSnapshot",
                                      "status",
                                      "createdBy",
                                      "updatedBy",
                                      "createdAt",
                                      "updatedAt",
                                      "children"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "cartId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "parentCartItemId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceCartItemId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceServiceId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceDeliverableItemId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceComponentType": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceComponentId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "componentRoleCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "itemType": {
                                        "type": "string",
                                        "enum": [
                                          "PRODUCT_OFFERING",
                                          "PACKAGE",
                                          "SOLUTION"
                                        ]
                                      },
                                      "itemId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "itemCode": {
                                        "type": "string"
                                      },
                                      "itemName": {
                                        "type": "string"
                                      },
                                      "productVariantId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "productVariantCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "productDefinitionId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "productDefinitionCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "orderProductType": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "SUBSCRIPTION",
                                              "DELIVERABLE"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "cataloguePublishRunId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "catalogueViewId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "action": {
                                        "type": "string",
                                        "enum": [
                                          "ADD",
                                          "NO_CHANGE",
                                          "MODIFY",
                                          "REMOVE"
                                        ]
                                      },
                                      "quantity": {
                                        "type": "integer"
                                      },
                                      "quantityStrategy": {
                                        "type": "string",
                                        "enum": [
                                          "MULTIPLIER",
                                          "UNIT"
                                        ]
                                      },
                                      "attributes": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "facts": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "charges": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "id",
                                            "cartId",
                                            "cartItemId",
                                            "parentChargeId",
                                            "sourceChargeId",
                                            "chargeCode",
                                            "name",
                                            "chargeType",
                                            "pricingRole",
                                            "chargeSource",
                                            "discountType",
                                            "listAmount",
                                            "amount",
                                            "unitPrice",
                                            "quantity",
                                            "currency",
                                            "billingPeriod",
                                            "ratingMode",
                                            "sourceChargeDefinitionId",
                                            "sourcePricebookEntryId",
                                            "sourcePricingRuleId",
                                            "activatedByRuleIds",
                                            "rateCardId",
                                            "reasonCode",
                                            "approvalStatus",
                                            "createdBy",
                                            "comment",
                                            "priceDetails",
                                            "status",
                                            "createdAt",
                                            "updatedAt"
                                          ],
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "cartId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "cartItemId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "parentChargeId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceChargeId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "chargeCode": {
                                              "type": "string"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "chargeType": {
                                              "type": "string",
                                              "enum": [
                                                "ONE_TIME",
                                                "RECURRING"
                                              ]
                                            },
                                            "pricingRole": {
                                              "type": "string",
                                              "enum": [
                                                "CHARGE",
                                                "DISCOUNT",
                                                "SURCHARGE"
                                              ]
                                            },
                                            "chargeSource": {
                                              "type": "string",
                                              "enum": [
                                                "BASE_PRICE",
                                                "CATALOGUE_DISCOUNT",
                                                "CATALOGUE_WAIVER",
                                                "CATALOGUE_SURCHARGE",
                                                "DISCRETIONARY_DISCOUNT",
                                                "MANUAL_CHARGE",
                                                "EXTERNAL_PRICE"
                                              ]
                                            },
                                            "discountType": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "AMOUNT",
                                                    "PERCENT",
                                                    "WAIVE"
                                                  ]
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "listAmount": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "amount": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "unitPrice": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "quantity": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "currency": {
                                              "type": "string"
                                            },
                                            "billingPeriod": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "ratingMode": {
                                              "type": "string",
                                              "enum": [
                                                "CART",
                                                "METERED"
                                              ]
                                            },
                                            "sourceChargeDefinitionId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourcePricebookEntryId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourcePricingRuleId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "activatedByRuleIds": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "format": "uuid"
                                              }
                                            },
                                            "rateCardId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "reasonCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "externalRef": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "approvalStatus": {
                                              "type": "string"
                                            },
                                            "createdBy": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "comment": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "priceDetails": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "status": {
                                              "type": "string"
                                            },
                                            "createdAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            },
                                            "updatedAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            }
                                          }
                                        }
                                      },
                                      "priceSnapshot": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "externalPrices": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "chargeCode",
                                            "amount",
                                            "listAmount",
                                            "externalRef"
                                          ],
                                          "properties": {
                                            "chargeCode": {
                                              "type": "string"
                                            },
                                            "amount": {
                                              "type": "number"
                                            },
                                            "listAmount": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "externalRef": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      },
                                      "instanceLabel": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "naming": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "instanceNoun",
                                          "instanceLabelAttributes",
                                          "unitNoun",
                                          "unitLabelAttributes"
                                        ],
                                        "properties": {
                                          "instanceNoun": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "singular",
                                                  "plural"
                                                ],
                                                "properties": {
                                                  "singular": {
                                                    "type": "string"
                                                  },
                                                  "plural": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "instanceLabelAttributes": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "unitNoun": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "singular",
                                                  "plural"
                                                ],
                                                "properties": {
                                                  "singular": {
                                                    "type": "string"
                                                  },
                                                  "plural": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "unitLabelAttributes": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      },
                                      "orderId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ],
                                        "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                      },
                                      "createdBy": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "updatedBy": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "createdAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      "updatedAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      "journey": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "steps"
                                        ],
                                        "properties": {
                                          "steps": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "componentId",
                                                "componentCode",
                                                "name",
                                                "displayOrder",
                                                "visible",
                                                "status",
                                                "questionAttributeCodes",
                                                "selectedCartItemIds"
                                              ],
                                              "properties": {
                                                "componentId": {
                                                  "type": "string"
                                                },
                                                "componentCode": {
                                                  "type": "string"
                                                },
                                                "name": {
                                                  "type": [
                                                    "null",
                                                    "string"
                                                  ]
                                                },
                                                "displayOrder": {
                                                  "type": "number"
                                                },
                                                "visible": {
                                                  "type": "boolean"
                                                },
                                                "status": {
                                                  "type": [
                                                    "null",
                                                    "string"
                                                  ],
                                                  "enum": [
                                                    "COMPLETE",
                                                    "NEEDS_ATTENTION",
                                                    "NOT_STARTED",
                                                    "OPTIONAL",
                                                    null
                                                  ]
                                                },
                                                "questionAttributeCodes": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                },
                                                "selectedCartItemIds": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      },
                                      "children": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "id",
                                            "cartId",
                                            "parentCartItemId",
                                            "sourceCartItemId",
                                            "sourceServiceId",
                                            "sourceDeliverableItemId",
                                            "sourceComponentType",
                                            "sourceComponentId",
                                            "componentRoleCode",
                                            "itemType",
                                            "itemId",
                                            "itemCode",
                                            "itemName",
                                            "productVariantId",
                                            "productVariantCode",
                                            "productDefinitionId",
                                            "productDefinitionCode",
                                            "orderProductType",
                                            "cataloguePublishRunId",
                                            "catalogueViewId",
                                            "action",
                                            "quantity",
                                            "quantityStrategy",
                                            "attributes",
                                            "facts",
                                            "charges",
                                            "priceSnapshot",
                                            "status",
                                            "createdBy",
                                            "updatedBy",
                                            "createdAt",
                                            "updatedAt",
                                            "children"
                                          ],
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "cartId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "parentCartItemId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceCartItemId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceServiceId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceDeliverableItemId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceComponentType": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceComponentId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "componentRoleCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "itemType": {
                                              "type": "string",
                                              "enum": [
                                                "PRODUCT_OFFERING",
                                                "PACKAGE",
                                                "SOLUTION"
                                              ]
                                            },
                                            "itemId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "itemCode": {
                                              "type": "string"
                                            },
                                            "itemName": {
                                              "type": "string"
                                            },
                                            "productVariantId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "productVariantCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "productDefinitionId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "productDefinitionCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "orderProductType": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "SUBSCRIPTION",
                                                    "DELIVERABLE"
                                                  ]
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "cataloguePublishRunId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "catalogueViewId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "action": {
                                              "type": "string",
                                              "enum": [
                                                "ADD",
                                                "NO_CHANGE",
                                                "MODIFY",
                                                "REMOVE"
                                              ]
                                            },
                                            "quantity": {
                                              "type": "integer"
                                            },
                                            "quantityStrategy": {
                                              "type": "string",
                                              "enum": [
                                                "MULTIPLIER",
                                                "UNIT"
                                              ]
                                            },
                                            "attributes": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "facts": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "charges": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "id",
                                                  "cartId",
                                                  "cartItemId",
                                                  "parentChargeId",
                                                  "sourceChargeId",
                                                  "chargeCode",
                                                  "name",
                                                  "chargeType",
                                                  "pricingRole",
                                                  "chargeSource",
                                                  "discountType",
                                                  "listAmount",
                                                  "amount",
                                                  "unitPrice",
                                                  "quantity",
                                                  "currency",
                                                  "billingPeriod",
                                                  "ratingMode",
                                                  "sourceChargeDefinitionId",
                                                  "sourcePricebookEntryId",
                                                  "sourcePricingRuleId",
                                                  "activatedByRuleIds",
                                                  "rateCardId",
                                                  "reasonCode",
                                                  "approvalStatus",
                                                  "createdBy",
                                                  "comment",
                                                  "priceDetails",
                                                  "status",
                                                  "createdAt",
                                                  "updatedAt"
                                                ],
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "cartId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "cartItemId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "parentChargeId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceChargeId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "chargeCode": {
                                                    "type": "string"
                                                  },
                                                  "name": {
                                                    "type": "string"
                                                  },
                                                  "chargeType": {
                                                    "type": "string",
                                                    "enum": [
                                                      "ONE_TIME",
                                                      "RECURRING"
                                                    ]
                                                  },
                                                  "pricingRole": {
                                                    "type": "string",
                                                    "enum": [
                                                      "CHARGE",
                                                      "DISCOUNT",
                                                      "SURCHARGE"
                                                    ]
                                                  },
                                                  "chargeSource": {
                                                    "type": "string",
                                                    "enum": [
                                                      "BASE_PRICE",
                                                      "CATALOGUE_DISCOUNT",
                                                      "CATALOGUE_WAIVER",
                                                      "CATALOGUE_SURCHARGE",
                                                      "DISCRETIONARY_DISCOUNT",
                                                      "MANUAL_CHARGE",
                                                      "EXTERNAL_PRICE"
                                                    ]
                                                  },
                                                  "discountType": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "enum": [
                                                          "AMOUNT",
                                                          "PERCENT",
                                                          "WAIVE"
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "listAmount": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "amount": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "unitPrice": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "quantity": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "currency": {
                                                    "type": "string"
                                                  },
                                                  "billingPeriod": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "ratingMode": {
                                                    "type": "string",
                                                    "enum": [
                                                      "CART",
                                                      "METERED"
                                                    ]
                                                  },
                                                  "sourceChargeDefinitionId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourcePricebookEntryId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourcePricingRuleId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "activatedByRuleIds": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "format": "uuid"
                                                    }
                                                  },
                                                  "rateCardId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "reasonCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "externalRef": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "approvalStatus": {
                                                    "type": "string"
                                                  },
                                                  "createdBy": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "comment": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "priceDetails": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "status": {
                                                    "type": "string"
                                                  },
                                                  "createdAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  },
                                                  "updatedAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  }
                                                }
                                              }
                                            },
                                            "priceSnapshot": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "externalPrices": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "chargeCode",
                                                  "amount",
                                                  "listAmount",
                                                  "externalRef"
                                                ],
                                                "properties": {
                                                  "chargeCode": {
                                                    "type": "string"
                                                  },
                                                  "amount": {
                                                    "type": "number"
                                                  },
                                                  "listAmount": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "externalRef": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                }
                                              }
                                            },
                                            "instanceLabel": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "naming": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "instanceNoun",
                                                "instanceLabelAttributes",
                                                "unitNoun",
                                                "unitLabelAttributes"
                                              ],
                                              "properties": {
                                                "instanceNoun": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "singular",
                                                        "plural"
                                                      ],
                                                      "properties": {
                                                        "singular": {
                                                          "type": "string"
                                                        },
                                                        "plural": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "instanceLabelAttributes": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                },
                                                "unitNoun": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "singular",
                                                        "plural"
                                                      ],
                                                      "properties": {
                                                        "singular": {
                                                          "type": "string"
                                                        },
                                                        "plural": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "unitLabelAttributes": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                }
                                              }
                                            },
                                            "orderId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ],
                                              "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                            },
                                            "status": {
                                              "type": "string",
                                              "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                            },
                                            "createdBy": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "updatedBy": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "createdAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            },
                                            "updatedAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            },
                                            "journey": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "steps"
                                              ],
                                              "properties": {
                                                "steps": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "componentId",
                                                      "componentCode",
                                                      "name",
                                                      "displayOrder",
                                                      "visible",
                                                      "status",
                                                      "questionAttributeCodes",
                                                      "selectedCartItemIds"
                                                    ],
                                                    "properties": {
                                                      "componentId": {
                                                        "type": "string"
                                                      },
                                                      "componentCode": {
                                                        "type": "string"
                                                      },
                                                      "name": {
                                                        "type": [
                                                          "null",
                                                          "string"
                                                        ]
                                                      },
                                                      "displayOrder": {
                                                        "type": "number"
                                                      },
                                                      "visible": {
                                                        "type": "boolean"
                                                      },
                                                      "status": {
                                                        "type": [
                                                          "null",
                                                          "string"
                                                        ],
                                                        "enum": [
                                                          "COMPLETE",
                                                          "NEEDS_ATTENTION",
                                                          "NOT_STARTED",
                                                          "OPTIONAL",
                                                          null
                                                        ]
                                                      },
                                                      "questionAttributeCodes": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      },
                                                      "selectedCartItemIds": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            },
                                            "children": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "id",
                                                  "cartId",
                                                  "parentCartItemId",
                                                  "sourceCartItemId",
                                                  "sourceServiceId",
                                                  "sourceDeliverableItemId",
                                                  "sourceComponentType",
                                                  "sourceComponentId",
                                                  "componentRoleCode",
                                                  "itemType",
                                                  "itemId",
                                                  "itemCode",
                                                  "itemName",
                                                  "productVariantId",
                                                  "productVariantCode",
                                                  "productDefinitionId",
                                                  "productDefinitionCode",
                                                  "orderProductType",
                                                  "cataloguePublishRunId",
                                                  "catalogueViewId",
                                                  "action",
                                                  "quantity",
                                                  "quantityStrategy",
                                                  "attributes",
                                                  "facts",
                                                  "charges",
                                                  "priceSnapshot",
                                                  "status",
                                                  "createdBy",
                                                  "updatedBy",
                                                  "createdAt",
                                                  "updatedAt",
                                                  "children"
                                                ],
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "cartId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "parentCartItemId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceCartItemId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceServiceId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceDeliverableItemId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceComponentType": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceComponentId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "componentRoleCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "itemType": {
                                                    "type": "string",
                                                    "enum": [
                                                      "PRODUCT_OFFERING",
                                                      "PACKAGE",
                                                      "SOLUTION"
                                                    ]
                                                  },
                                                  "itemId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "itemCode": {
                                                    "type": "string"
                                                  },
                                                  "itemName": {
                                                    "type": "string"
                                                  },
                                                  "productVariantId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "productVariantCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "productDefinitionId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "productDefinitionCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "orderProductType": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "enum": [
                                                          "SUBSCRIPTION",
                                                          "DELIVERABLE"
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "cataloguePublishRunId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "catalogueViewId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "action": {
                                                    "type": "string",
                                                    "enum": [
                                                      "ADD",
                                                      "NO_CHANGE",
                                                      "MODIFY",
                                                      "REMOVE"
                                                    ]
                                                  },
                                                  "quantity": {
                                                    "type": "integer"
                                                  },
                                                  "quantityStrategy": {
                                                    "type": "string",
                                                    "enum": [
                                                      "MULTIPLIER",
                                                      "UNIT"
                                                    ]
                                                  },
                                                  "attributes": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "facts": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "charges": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "id",
                                                        "cartId",
                                                        "cartItemId",
                                                        "parentChargeId",
                                                        "sourceChargeId",
                                                        "chargeCode",
                                                        "name",
                                                        "chargeType",
                                                        "pricingRole",
                                                        "chargeSource",
                                                        "discountType",
                                                        "listAmount",
                                                        "amount",
                                                        "unitPrice",
                                                        "quantity",
                                                        "currency",
                                                        "billingPeriod",
                                                        "ratingMode",
                                                        "sourceChargeDefinitionId",
                                                        "sourcePricebookEntryId",
                                                        "sourcePricingRuleId",
                                                        "activatedByRuleIds",
                                                        "rateCardId",
                                                        "reasonCode",
                                                        "approvalStatus",
                                                        "createdBy",
                                                        "comment",
                                                        "priceDetails",
                                                        "status",
                                                        "createdAt",
                                                        "updatedAt"
                                                      ],
                                                      "properties": {
                                                        "id": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "cartId": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "cartItemId": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "parentChargeId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sourceChargeId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "chargeCode": {
                                                          "type": "string"
                                                        },
                                                        "name": {
                                                          "type": "string"
                                                        },
                                                        "chargeType": {
                                                          "type": "string",
                                                          "enum": [
                                                            "ONE_TIME",
                                                            "RECURRING"
                                                          ]
                                                        },
                                                        "pricingRole": {
                                                          "type": "string",
                                                          "enum": [
                                                            "CHARGE",
                                                            "DISCOUNT",
                                                            "SURCHARGE"
                                                          ]
                                                        },
                                                        "chargeSource": {
                                                          "type": "string",
                                                          "enum": [
                                                            "BASE_PRICE",
                                                            "CATALOGUE_DISCOUNT",
                                                            "CATALOGUE_WAIVER",
                                                            "CATALOGUE_SURCHARGE",
                                                            "DISCRETIONARY_DISCOUNT",
                                                            "MANUAL_CHARGE",
                                                            "EXTERNAL_PRICE"
                                                          ]
                                                        },
                                                        "discountType": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "enum": [
                                                                "AMOUNT",
                                                                "PERCENT",
                                                                "WAIVE"
                                                              ]
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "listAmount": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "amount": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "unitPrice": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "quantity": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "currency": {
                                                          "type": "string"
                                                        },
                                                        "billingPeriod": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "ratingMode": {
                                                          "type": "string",
                                                          "enum": [
                                                            "CART",
                                                            "METERED"
                                                          ]
                                                        },
                                                        "sourceChargeDefinitionId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sourcePricebookEntryId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sourcePricingRuleId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "activatedByRuleIds": {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "string",
                                                            "format": "uuid"
                                                          }
                                                        },
                                                        "rateCardId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "reasonCode": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "externalRef": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "approvalStatus": {
                                                          "type": "string"
                                                        },
                                                        "createdBy": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "comment": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "priceDetails": {
                                                          "type": "object",
                                                          "additionalProperties": true
                                                        },
                                                        "status": {
                                                          "type": "string"
                                                        },
                                                        "createdAt": {
                                                          "type": "string",
                                                          "format": "date-time"
                                                        },
                                                        "updatedAt": {
                                                          "type": "string",
                                                          "format": "date-time"
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "priceSnapshot": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "externalPrices": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "chargeCode",
                                                        "amount",
                                                        "listAmount",
                                                        "externalRef"
                                                      ],
                                                      "properties": {
                                                        "chargeCode": {
                                                          "type": "string"
                                                        },
                                                        "amount": {
                                                          "type": "number"
                                                        },
                                                        "listAmount": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "externalRef": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "instanceLabel": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "naming": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "instanceNoun",
                                                      "instanceLabelAttributes",
                                                      "unitNoun",
                                                      "unitLabelAttributes"
                                                    ],
                                                    "properties": {
                                                      "instanceNoun": {
                                                        "anyOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "singular",
                                                              "plural"
                                                            ],
                                                            "properties": {
                                                              "singular": {
                                                                "type": "string"
                                                              },
                                                              "plural": {
                                                                "type": "string"
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "instanceLabelAttributes": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      },
                                                      "unitNoun": {
                                                        "anyOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "singular",
                                                              "plural"
                                                            ],
                                                            "properties": {
                                                              "singular": {
                                                                "type": "string"
                                                              },
                                                              "plural": {
                                                                "type": "string"
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "unitLabelAttributes": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "orderId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ],
                                                    "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                                  },
                                                  "status": {
                                                    "type": "string",
                                                    "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                                  },
                                                  "createdBy": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "updatedBy": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "createdAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  },
                                                  "updatedAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  },
                                                  "journey": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "steps"
                                                    ],
                                                    "properties": {
                                                      "steps": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "componentId",
                                                            "componentCode",
                                                            "name",
                                                            "displayOrder",
                                                            "visible",
                                                            "status",
                                                            "questionAttributeCodes",
                                                            "selectedCartItemIds"
                                                          ],
                                                          "properties": {
                                                            "componentId": {
                                                              "type": "string"
                                                            },
                                                            "componentCode": {
                                                              "type": "string"
                                                            },
                                                            "name": {
                                                              "type": [
                                                                "null",
                                                                "string"
                                                              ]
                                                            },
                                                            "displayOrder": {
                                                              "type": "number"
                                                            },
                                                            "visible": {
                                                              "type": "boolean"
                                                            },
                                                            "status": {
                                                              "type": [
                                                                "null",
                                                                "string"
                                                              ],
                                                              "enum": [
                                                                "COMPLETE",
                                                                "NEEDS_ATTENTION",
                                                                "NOT_STARTED",
                                                                "OPTIONAL",
                                                                null
                                                              ]
                                                            },
                                                            "questionAttributeCodes": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "selectedCartItemIds": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "string"
                                                              }
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "children": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "object",
                                                      "additionalProperties": true
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "change": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "kind",
                            "sourceOrder",
                            "sourceSubscription",
                            "baseline",
                            "proposed",
                            "delta",
                            "summary",
                            "itemChanges",
                            "serviceOutcomes"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "ORDER_AMENDMENT",
                                "SUBSCRIPTION_CHANGE"
                              ]
                            },
                            "sourceOrder": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "orderNumber",
                                    "revisionNumber"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "orderNumber": {
                                      "type": "string"
                                    },
                                    "revisionNumber": {
                                      "type": "integer",
                                      "minimum": 1
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sourceSubscription": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "subscriptionNumber",
                                    "name",
                                    "status"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "subscriptionNumber": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "status": {
                                      "type": "string"
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "baseline": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "currency",
                                "oneTimeTotal",
                                "recurringTotalsByPeriod",
                                "meteredTariffCount",
                                "list",
                                "adjusted",
                                "sales"
                              ],
                              "properties": {
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oneTimeTotal": {
                                  "type": "number"
                                },
                                "recurringTotalsByPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "billingPeriod",
                                      "listAmount",
                                      "adjustmentAmount",
                                      "salesAmount"
                                    ],
                                    "properties": {
                                      "billingPeriod": {
                                        "type": "string"
                                      },
                                      "listAmount": {
                                        "type": "number"
                                      },
                                      "adjustmentAmount": {
                                        "type": "number"
                                      },
                                      "salesAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                },
                                "meteredTariffCount": {
                                  "type": "integer"
                                },
                                "list": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "adjusted": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "sales": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              }
                            },
                            "proposed": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "currency",
                                "oneTimeTotal",
                                "recurringTotalsByPeriod",
                                "meteredTariffCount",
                                "list",
                                "adjusted",
                                "sales"
                              ],
                              "properties": {
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oneTimeTotal": {
                                  "type": "number"
                                },
                                "recurringTotalsByPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "billingPeriod",
                                      "listAmount",
                                      "adjustmentAmount",
                                      "salesAmount"
                                    ],
                                    "properties": {
                                      "billingPeriod": {
                                        "type": "string"
                                      },
                                      "listAmount": {
                                        "type": "number"
                                      },
                                      "adjustmentAmount": {
                                        "type": "number"
                                      },
                                      "salesAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                },
                                "meteredTariffCount": {
                                  "type": "integer"
                                },
                                "list": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "adjusted": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "sales": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              }
                            },
                            "delta": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "currency",
                                "oneTimeTotal",
                                "recurringTotalsByPeriod",
                                "meteredTariffCount",
                                "list",
                                "adjusted",
                                "sales"
                              ],
                              "properties": {
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oneTimeTotal": {
                                  "type": "number"
                                },
                                "recurringTotalsByPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "billingPeriod",
                                      "listAmount",
                                      "adjustmentAmount",
                                      "salesAmount"
                                    ],
                                    "properties": {
                                      "billingPeriod": {
                                        "type": "string"
                                      },
                                      "listAmount": {
                                        "type": "number"
                                      },
                                      "adjustmentAmount": {
                                        "type": "number"
                                      },
                                      "salesAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                },
                                "meteredTariffCount": {
                                  "type": "integer"
                                },
                                "list": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "adjusted": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "sales": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              }
                            },
                            "summary": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "addedItems",
                                "modifiedItems",
                                "removedItems",
                                "addedUnits",
                                "modifiedUnits",
                                "removedUnits"
                              ],
                              "properties": {
                                "addedItems": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "modifiedItems": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "removedItems": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "addedUnits": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "modifiedUnits": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "removedUnits": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              }
                            },
                            "itemChanges": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "cartItemId",
                                  "action",
                                  "before",
                                  "after"
                                ],
                                "properties": {
                                  "cartItemId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "action": {
                                    "type": "string",
                                    "enum": [
                                      "ADD",
                                      "MODIFY",
                                      "REMOVE"
                                    ]
                                  },
                                  "before": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "itemType",
                                          "itemCode",
                                          "itemName",
                                          "productVariantCode",
                                          "quantity",
                                          "quantityStrategy",
                                          "attributes"
                                        ],
                                        "properties": {
                                          "itemType": {
                                            "type": "string"
                                          },
                                          "itemCode": {
                                            "type": "string"
                                          },
                                          "itemName": {
                                            "type": "string"
                                          },
                                          "productVariantCode": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "quantityStrategy": {
                                            "type": "string",
                                            "enum": [
                                              "MULTIPLIER",
                                              "UNIT"
                                            ]
                                          },
                                          "attributes": {
                                            "type": "object",
                                            "additionalProperties": true
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "after": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "itemType",
                                          "itemCode",
                                          "itemName",
                                          "productVariantCode",
                                          "quantity",
                                          "quantityStrategy",
                                          "attributes"
                                        ],
                                        "properties": {
                                          "itemType": {
                                            "type": "string"
                                          },
                                          "itemCode": {
                                            "type": "string"
                                          },
                                          "itemName": {
                                            "type": "string"
                                          },
                                          "productVariantCode": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "quantityStrategy": {
                                            "type": "string",
                                            "enum": [
                                              "MULTIPLIER",
                                              "UNIT"
                                            ]
                                          },
                                          "attributes": {
                                            "type": "object",
                                            "additionalProperties": true
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                }
                              }
                            },
                            "serviceOutcomes": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "summary",
                                    "additions",
                                    "replacements",
                                    "removals",
                                    "previewLimit",
                                    "truncated"
                                  ],
                                  "properties": {
                                    "summary": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "added",
                                        "modified",
                                        "removed",
                                        "unchanged",
                                        "subscriptionsAdded",
                                        "deliverablesAdded"
                                      ],
                                      "properties": {
                                        "added": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "modified": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "removed": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "unchanged": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "subscriptionsAdded": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "deliverablesAdded": {
                                          "type": "integer",
                                          "minimum": 0
                                        }
                                      }
                                    },
                                    "additions": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "serviceId",
                                          "serviceNumber",
                                          "cartItemId",
                                          "unitNumber",
                                          "productCode",
                                          "name",
                                          "quantity",
                                          "status"
                                        ],
                                        "properties": {
                                          "serviceId": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "serviceNumber": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "cartItemId": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "unitNumber": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "productCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "status": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    "replacements": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "current",
                                          "proposed"
                                        ],
                                        "properties": {
                                          "current": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "serviceId",
                                              "serviceNumber",
                                              "cartItemId",
                                              "unitNumber",
                                              "productCode",
                                              "name",
                                              "quantity",
                                              "status"
                                            ],
                                            "properties": {
                                              "serviceId": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "serviceNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "cartItemId": {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              "unitNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer",
                                                    "minimum": 1
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "productCode": {
                                                "type": "string"
                                              },
                                              "name": {
                                                "type": "string"
                                              },
                                              "quantity": {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              "status": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            }
                                          },
                                          "proposed": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "serviceId",
                                              "serviceNumber",
                                              "cartItemId",
                                              "unitNumber",
                                              "productCode",
                                              "name",
                                              "quantity",
                                              "status"
                                            ],
                                            "properties": {
                                              "serviceId": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "serviceNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "cartItemId": {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              "unitNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer",
                                                    "minimum": 1
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "productCode": {
                                                "type": "string"
                                              },
                                              "name": {
                                                "type": "string"
                                              },
                                              "quantity": {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              "status": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "removals": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "serviceId",
                                          "serviceNumber",
                                          "cartItemId",
                                          "unitNumber",
                                          "productCode",
                                          "name",
                                          "quantity",
                                          "status"
                                        ],
                                        "properties": {
                                          "serviceId": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "serviceNumber": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "cartItemId": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "unitNumber": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "productCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "status": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    "previewLimit": {
                                      "type": "integer",
                                      "minimum": 1
                                    },
                                    "truncated": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a quote with its items arranged for editing, including items inherited from an order or subscription."
      }
    },
    "/api/v1/carts/{cartId}/order-readiness": {
      "get": {
        "operationId": "getCartOrderReadiness",
        "summary": "Check order readiness",
        "tags": [
          "Commercial close"
        ],
        "description": "Runs the same checks as ordering without writing anything: status, approval, validation, pending-approval charges, units and current prices. Rule validation is read as saved. New-sale quotes only.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "cartItemIds",
            "required": false,
            "description": "Comma-separated top-level item IDs to order; omit for the whole open quote."
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "cartId",
                    "cartType",
                    "ready",
                    "validationRefreshed",
                    "blockers"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartType": {
                      "type": "string"
                    },
                    "ready": {
                      "type": "boolean"
                    },
                    "validationRefreshed": {
                      "type": "boolean"
                    },
                    "blockers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "code",
                          "message",
                          "details"
                        ],
                        "additionalProperties": false,
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          },
                          "details": {}
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/v1/carts/{cartId}/submit-for-approval": {
      "post": {
        "operationId": "submitCartForApproval",
        "summary": "Submit a quote for approval",
        "tags": [
          "Approvals"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "reviewedBasis": {
                    "type": "object",
                    "properties": {
                      "discountAuthorityDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "commercialDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "approvalRequestId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "approvalDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "commercialDigest"
                    ],
                    "additionalProperties": false
                  },
                  "requestNote": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "status",
                    "requester",
                    "requestedAt",
                    "requestNote",
                    "decision",
                    "submittedQuote",
                    "availableActions",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "PENDING",
                        "APPROVED",
                        "REJECTED",
                        "WITHDRAWN",
                        "CANCELLED"
                      ]
                    },
                    "requester": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "name",
                        "email"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "email"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "requestedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "requestNote": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decision": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "actor",
                            "at",
                            "comment"
                          ],
                          "properties": {
                            "actor": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "name",
                                "email"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "email"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            "at": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "comment": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedQuote": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "schemaVersion",
                        "cartVersion",
                        "quote",
                        "account",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "itemCount",
                        "totals",
                        "requirements"
                      ],
                      "properties": {
                        "schemaVersion": {
                          "type": "integer",
                          "enum": [
                            1
                          ]
                        },
                        "cartVersion": {
                          "type": "integer"
                        },
                        "quote": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "number",
                            "name",
                            "type",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "number": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "NEW_SALE",
                                "SUBSCRIPTION_CHANGE",
                                "ORDER_AMENDMENT"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "DRAFT",
                                "PRICED",
                                "PENDING_APPROVAL",
                                "APPROVED",
                                "ACCEPTED",
                                "ORDERED",
                                "CANCELLED",
                                "EXPIRED"
                              ]
                            }
                          }
                        },
                        "account": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "number",
                            "name"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "number": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "itemCount": {
                          "type": "integer"
                        },
                        "totals": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "currency",
                            "oneTimeTotal",
                            "recurringTotalsByPeriod",
                            "meteredTariffCount",
                            "list",
                            "adjusted",
                            "sales"
                          ],
                          "properties": {
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oneTimeTotal": {
                              "type": "number"
                            },
                            "recurringTotalsByPeriod": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "billingPeriod",
                                  "listAmount",
                                  "adjustmentAmount",
                                  "salesAmount"
                                ],
                                "properties": {
                                  "billingPeriod": {
                                    "type": "string"
                                  },
                                  "listAmount": {
                                    "type": "number"
                                  },
                                  "adjustmentAmount": {
                                    "type": "number"
                                  },
                                  "salesAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            },
                            "meteredTariffCount": {
                              "type": "integer"
                            },
                            "list": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "adjusted": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "sales": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        },
                        "requirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "code",
                              "message",
                              "item",
                              "charge",
                              "targetCharge",
                              "discountType",
                              "requestedAmount",
                              "requestedPercent",
                              "effectiveAmount",
                              "effectivePercent",
                              "reasonCode",
                              "comment",
                              "authorityLimits",
                              "ruleCode",
                              "resultKey"
                            ],
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "DISCOUNT_LIMIT",
                                  "BUSINESS_RULE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "item": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "charge": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type",
                                      "currency",
                                      "billingPeriod",
                                      "amount"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targetCharge": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type",
                                      "currency",
                                      "billingPeriod",
                                      "amount"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "discountType": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requestedAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requestedPercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectiveAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectivePercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "reasonCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "comment": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "authorityLimits": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "code",
                                    "name",
                                    "maxAmount",
                                    "maxPercent",
                                    "currency"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maxPercent": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "currency": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              "ruleCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "resultKey": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "availableActions": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "canApprove",
                        "canReject"
                      ],
                      "properties": {
                        "canApprove": {
                          "type": "boolean"
                        },
                        "canReject": {
                          "type": "boolean"
                        }
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "execution": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "commandId",
                        "cartVersion"
                      ],
                      "properties": {
                        "commandId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartVersion": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Submit a Quote for commercial approval"
      }
    },
    "/api/v1/carts/{cartId}/withdraw-approval": {
      "post": {
        "operationId": "withdrawCartApproval",
        "summary": "Withdraw an approval request",
        "tags": [
          "Approvals"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "reviewedBasis": {
                    "type": "object",
                    "properties": {
                      "discountAuthorityDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "commercialDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "approvalRequestId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "approvalDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "commercialDigest"
                    ],
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "status",
                    "requester",
                    "requestedAt",
                    "requestNote",
                    "decision",
                    "submittedQuote",
                    "availableActions",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "PENDING",
                        "APPROVED",
                        "REJECTED",
                        "WITHDRAWN",
                        "CANCELLED"
                      ]
                    },
                    "requester": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "name",
                        "email"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "email"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "requestedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "requestNote": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decision": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "actor",
                            "at",
                            "comment"
                          ],
                          "properties": {
                            "actor": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "name",
                                "email"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "email"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            "at": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "comment": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedQuote": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "schemaVersion",
                        "cartVersion",
                        "quote",
                        "account",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "itemCount",
                        "totals",
                        "requirements"
                      ],
                      "properties": {
                        "schemaVersion": {
                          "type": "integer",
                          "enum": [
                            1
                          ]
                        },
                        "cartVersion": {
                          "type": "integer"
                        },
                        "quote": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "number",
                            "name",
                            "type",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "number": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "NEW_SALE",
                                "SUBSCRIPTION_CHANGE",
                                "ORDER_AMENDMENT"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "DRAFT",
                                "PRICED",
                                "PENDING_APPROVAL",
                                "APPROVED",
                                "ACCEPTED",
                                "ORDERED",
                                "CANCELLED",
                                "EXPIRED"
                              ]
                            }
                          }
                        },
                        "account": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "number",
                            "name"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "number": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "itemCount": {
                          "type": "integer"
                        },
                        "totals": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "currency",
                            "oneTimeTotal",
                            "recurringTotalsByPeriod",
                            "meteredTariffCount",
                            "list",
                            "adjusted",
                            "sales"
                          ],
                          "properties": {
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oneTimeTotal": {
                              "type": "number"
                            },
                            "recurringTotalsByPeriod": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "billingPeriod",
                                  "listAmount",
                                  "adjustmentAmount",
                                  "salesAmount"
                                ],
                                "properties": {
                                  "billingPeriod": {
                                    "type": "string"
                                  },
                                  "listAmount": {
                                    "type": "number"
                                  },
                                  "adjustmentAmount": {
                                    "type": "number"
                                  },
                                  "salesAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            },
                            "meteredTariffCount": {
                              "type": "integer"
                            },
                            "list": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "adjusted": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "sales": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        },
                        "requirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "code",
                              "message",
                              "item",
                              "charge",
                              "targetCharge",
                              "discountType",
                              "requestedAmount",
                              "requestedPercent",
                              "effectiveAmount",
                              "effectivePercent",
                              "reasonCode",
                              "comment",
                              "authorityLimits",
                              "ruleCode",
                              "resultKey"
                            ],
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "DISCOUNT_LIMIT",
                                  "BUSINESS_RULE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "item": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "charge": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type",
                                      "currency",
                                      "billingPeriod",
                                      "amount"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targetCharge": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type",
                                      "currency",
                                      "billingPeriod",
                                      "amount"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "discountType": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requestedAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requestedPercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectiveAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectivePercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "reasonCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "comment": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "authorityLimits": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "code",
                                    "name",
                                    "maxAmount",
                                    "maxPercent",
                                    "currency"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maxPercent": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "currency": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              "ruleCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "resultKey": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "availableActions": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "canApprove",
                        "canReject"
                      ],
                      "properties": {
                        "canApprove": {
                          "type": "boolean"
                        },
                        "canReject": {
                          "type": "boolean"
                        }
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "execution": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "commandId",
                        "cartVersion"
                      ],
                      "properties": {
                        "commandId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartVersion": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Withdraw the pending approval request for a Quote"
      }
    },
    "/api/v1/orders/{orderId}/amendments": {
      "post": {
        "operationId": "createOrderAmendment",
        "summary": "Amend an order",
        "tags": [
          "Order amendments"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedSourceDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "changeCode": {
                    "type": "string",
                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$"
                  },
                  "attributes": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "changeCode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "orderId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "required": [
                    "cart",
                    "totals",
                    "totalsAreCurrent",
                    "approvalSummary",
                    "availableActions",
                    "items",
                    "change"
                  ],
                  "properties": {
                    "cart": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "cartNumber",
                        "name",
                        "cartType",
                        "status",
                        "accountId",
                        "primaryContactId",
                        "assignedSellerId",
                        "assignedAt",
                        "assignedBy",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "agreementId",
                        "agreementCode",
                        "agreementName",
                        "discretionaryDiscountsAllowed",
                        "sourceCartId",
                        "sourceOrderId",
                        "sourceSubscriptionId",
                        "orderStatus",
                        "orderedItemCount",
                        "changeCode",
                        "attributes",
                        "validationStatus",
                        "validationIssues",
                        "ruleResults",
                        "pricedAt",
                        "expiresAt",
                        "acceptedAt",
                        "version",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartNumber": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cartType": {
                          "type": "string",
                          "enum": [
                            "NEW_SALE",
                            "SUBSCRIPTION_CHANGE",
                            "ORDER_AMENDMENT"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "DRAFT",
                            "PRICED",
                            "PENDING_APPROVAL",
                            "APPROVED",
                            "ACCEPTED",
                            "ORDERED",
                            "CANCELLED",
                            "EXPIRED"
                          ]
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "primaryContactId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedSellerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementName": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "discretionaryDiscountsAllowed": {
                          "type": "boolean"
                        },
                        "sourceCartId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceOrderId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceSubscriptionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderStatus": {
                          "type": "string",
                          "enum": [
                            "NOT_ORDERED",
                            "PARTIALLY_ORDERED",
                            "ORDERED"
                          ],
                          "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                        },
                        "orderedItemCount": {
                          "type": "integer",
                          "description": "Number of top-level items already ordered."
                        },
                        "changeCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "attributes": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "validationStatus": {
                          "type": "string",
                          "enum": [
                            "VALID",
                            "HAS_WARNINGS",
                            "HAS_ERRORS"
                          ]
                        },
                        "validationIssues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "severity",
                              "message",
                              "scope",
                              "source",
                              "details"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "INFO"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "CART_ITEM",
                                  "ADDON_GROUP",
                                  "COMPONENT"
                                ]
                              },
                              "cartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "source": {
                                "type": "string"
                              },
                              "details": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        },
                        "ruleResults": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "pricedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "acceptedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "version": {
                          "type": "integer"
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency",
                        "oneTimeTotal",
                        "recurringTotalsByPeriod",
                        "meteredTariffCount",
                        "list",
                        "adjusted",
                        "sales"
                      ],
                      "properties": {
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oneTimeTotal": {
                          "type": "number"
                        },
                        "recurringTotalsByPeriod": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "billingPeriod",
                              "listAmount",
                              "adjustmentAmount",
                              "salesAmount"
                            ],
                            "properties": {
                              "billingPeriod": {
                                "type": "string"
                              },
                              "listAmount": {
                                "type": "number"
                              },
                              "adjustmentAmount": {
                                "type": "number"
                              },
                              "salesAmount": {
                                "type": "number"
                              }
                            }
                          }
                        },
                        "meteredTariffCount": {
                          "type": "integer"
                        },
                        "list": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "adjusted": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "sales": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    },
                    "totalsAreCurrent": {
                      "type": "boolean"
                    },
                    "approvalSummary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "status",
                        "requiresApproval",
                        "pendingChargeCount",
                        "pendingChargeIds",
                        "requirementCount",
                        "requirements",
                        "approvalRequestId",
                        "latestRequest"
                      ],
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "NOT_REQUIRED",
                            "NOT_SUBMITTED",
                            "SUBMITTED",
                            "APPROVED"
                          ]
                        },
                        "requiresApproval": {
                          "type": "boolean"
                        },
                        "pendingChargeCount": {
                          "type": "integer"
                        },
                        "pendingChargeIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "requirementCount": {
                          "type": "integer"
                        },
                        "requirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "code",
                              "message"
                            ],
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "DISCOUNT_LIMIT",
                                  "BUSINESS_RULE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "chargeId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "ruleCode": {
                                "type": "string"
                              },
                              "cartItemId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "resultKey": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "approvalRequestId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "latestRequest": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "status",
                                "requesterId",
                                "requestedAt",
                                "requestNote",
                                "decidedBy",
                                "decidedAt",
                                "decisionComment"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "PENDING",
                                    "APPROVED",
                                    "REJECTED",
                                    "WITHDRAWN",
                                    "CANCELLED"
                                  ]
                                },
                                "requesterId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "requestedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "requestNote": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "decidedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "decidedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date-time"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "decisionComment": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "availableActions": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "canEdit",
                        "canPrice",
                        "canSubmitForApproval",
                        "canWithdrawApproval",
                        "canSubmitOrder",
                        "canApplyAmendment",
                        "canCreateChangeOrder",
                        "canReopen"
                      ],
                      "properties": {
                        "canEdit": {
                          "type": "boolean"
                        },
                        "canPrice": {
                          "type": "boolean"
                        },
                        "canSubmitForApproval": {
                          "type": "boolean"
                        },
                        "canWithdrawApproval": {
                          "type": "boolean"
                        },
                        "canSubmitOrder": {
                          "type": "boolean"
                        },
                        "canApplyAmendment": {
                          "type": "boolean"
                        },
                        "canCreateChangeOrder": {
                          "type": "boolean"
                        },
                        "canReopen": {
                          "type": "boolean",
                          "description": "An approved new-sale Quote can be reopened for editing."
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartId",
                          "parentCartItemId",
                          "sourceCartItemId",
                          "sourceServiceId",
                          "sourceDeliverableItemId",
                          "sourceComponentType",
                          "sourceComponentId",
                          "componentRoleCode",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "itemName",
                          "productVariantId",
                          "productVariantCode",
                          "productDefinitionId",
                          "productDefinitionCode",
                          "orderProductType",
                          "cataloguePublishRunId",
                          "catalogueViewId",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "attributes",
                          "facts",
                          "charges",
                          "priceSnapshot",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "children"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceDeliverableItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "componentRoleCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "productVariantId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productVariantCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "orderProductType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "SUBSCRIPTION",
                                  "DELIVERABLE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cataloguePublishRunId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ADD",
                              "NO_CHANGE",
                              "MODIFY",
                              "REMOVE"
                            ]
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string",
                            "enum": [
                              "MULTIPLIER",
                              "UNIT"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "charges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "cartId",
                                "cartItemId",
                                "parentChargeId",
                                "sourceChargeId",
                                "chargeCode",
                                "name",
                                "chargeType",
                                "pricingRole",
                                "chargeSource",
                                "discountType",
                                "listAmount",
                                "amount",
                                "unitPrice",
                                "quantity",
                                "currency",
                                "billingPeriod",
                                "ratingMode",
                                "sourceChargeDefinitionId",
                                "sourcePricebookEntryId",
                                "sourcePricingRuleId",
                                "activatedByRuleIds",
                                "rateCardId",
                                "reasonCode",
                                "approvalStatus",
                                "createdBy",
                                "comment",
                                "priceDetails",
                                "status",
                                "createdAt",
                                "updatedAt"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartItemId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "parentChargeId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceChargeId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "chargeCode": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "chargeType": {
                                  "type": "string",
                                  "enum": [
                                    "ONE_TIME",
                                    "RECURRING"
                                  ]
                                },
                                "pricingRole": {
                                  "type": "string",
                                  "enum": [
                                    "CHARGE",
                                    "DISCOUNT",
                                    "SURCHARGE"
                                  ]
                                },
                                "chargeSource": {
                                  "type": "string",
                                  "enum": [
                                    "BASE_PRICE",
                                    "CATALOGUE_DISCOUNT",
                                    "CATALOGUE_WAIVER",
                                    "CATALOGUE_SURCHARGE",
                                    "DISCRETIONARY_DISCOUNT",
                                    "MANUAL_CHARGE",
                                    "EXTERNAL_PRICE"
                                  ]
                                },
                                "discountType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "AMOUNT",
                                        "PERCENT",
                                        "WAIVE"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "listAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unitPrice": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "quantity": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "billingPeriod": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "ratingMode": {
                                  "type": "string",
                                  "enum": [
                                    "CART",
                                    "METERED"
                                  ]
                                },
                                "sourceChargeDefinitionId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricebookEntryId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricingRuleId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activatedByRuleIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "rateCardId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "reasonCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvalStatus": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "comment": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "priceDetails": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "status": {
                                  "type": "string"
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                }
                              }
                            }
                          },
                          "priceSnapshot": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "externalPrices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "chargeCode",
                                "amount",
                                "listAmount",
                                "externalRef"
                              ],
                              "properties": {
                                "chargeCode": {
                                  "type": "string"
                                },
                                "amount": {
                                  "type": "number"
                                },
                                "listAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                          },
                          "status": {
                            "type": "string",
                            "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "journey": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "steps"
                            ],
                            "properties": {
                              "steps": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "componentId",
                                    "componentCode",
                                    "name",
                                    "displayOrder",
                                    "visible",
                                    "status",
                                    "questionAttributeCodes",
                                    "selectedCartItemIds"
                                  ],
                                  "properties": {
                                    "componentId": {
                                      "type": "string"
                                    },
                                    "componentCode": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": [
                                        "null",
                                        "string"
                                      ]
                                    },
                                    "displayOrder": {
                                      "type": "number"
                                    },
                                    "visible": {
                                      "type": "boolean"
                                    },
                                    "status": {
                                      "type": [
                                        "null",
                                        "string"
                                      ],
                                      "enum": [
                                        "COMPLETE",
                                        "NEEDS_ATTENTION",
                                        "NOT_STARTED",
                                        "OPTIONAL",
                                        null
                                      ]
                                    },
                                    "questionAttributeCodes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "selectedCartItemIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "children": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "cartId",
                                "parentCartItemId",
                                "sourceCartItemId",
                                "sourceServiceId",
                                "sourceDeliverableItemId",
                                "sourceComponentType",
                                "sourceComponentId",
                                "componentRoleCode",
                                "itemType",
                                "itemId",
                                "itemCode",
                                "itemName",
                                "productVariantId",
                                "productVariantCode",
                                "productDefinitionId",
                                "productDefinitionCode",
                                "orderProductType",
                                "cataloguePublishRunId",
                                "catalogueViewId",
                                "action",
                                "quantity",
                                "quantityStrategy",
                                "attributes",
                                "facts",
                                "charges",
                                "priceSnapshot",
                                "status",
                                "createdBy",
                                "updatedBy",
                                "createdAt",
                                "updatedAt",
                                "children"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "parentCartItemId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceCartItemId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceServiceId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceDeliverableItemId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceComponentType": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceComponentId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "componentRoleCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "itemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "itemId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "itemCode": {
                                  "type": "string"
                                },
                                "itemName": {
                                  "type": "string"
                                },
                                "productVariantId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productDefinitionId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productDefinitionCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "orderProductType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "SUBSCRIPTION",
                                        "DELIVERABLE"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "cataloguePublishRunId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "catalogueViewId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "ADD",
                                    "NO_CHANGE",
                                    "MODIFY",
                                    "REMOVE"
                                  ]
                                },
                                "quantity": {
                                  "type": "integer"
                                },
                                "quantityStrategy": {
                                  "type": "string",
                                  "enum": [
                                    "MULTIPLIER",
                                    "UNIT"
                                  ]
                                },
                                "attributes": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "facts": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "charges": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "cartId",
                                      "cartItemId",
                                      "parentChargeId",
                                      "sourceChargeId",
                                      "chargeCode",
                                      "name",
                                      "chargeType",
                                      "pricingRole",
                                      "chargeSource",
                                      "discountType",
                                      "listAmount",
                                      "amount",
                                      "unitPrice",
                                      "quantity",
                                      "currency",
                                      "billingPeriod",
                                      "ratingMode",
                                      "sourceChargeDefinitionId",
                                      "sourcePricebookEntryId",
                                      "sourcePricingRuleId",
                                      "activatedByRuleIds",
                                      "rateCardId",
                                      "reasonCode",
                                      "approvalStatus",
                                      "createdBy",
                                      "comment",
                                      "priceDetails",
                                      "status",
                                      "createdAt",
                                      "updatedAt"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "cartId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "cartItemId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "parentChargeId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceChargeId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "chargeCode": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "chargeType": {
                                        "type": "string",
                                        "enum": [
                                          "ONE_TIME",
                                          "RECURRING"
                                        ]
                                      },
                                      "pricingRole": {
                                        "type": "string",
                                        "enum": [
                                          "CHARGE",
                                          "DISCOUNT",
                                          "SURCHARGE"
                                        ]
                                      },
                                      "chargeSource": {
                                        "type": "string",
                                        "enum": [
                                          "BASE_PRICE",
                                          "CATALOGUE_DISCOUNT",
                                          "CATALOGUE_WAIVER",
                                          "CATALOGUE_SURCHARGE",
                                          "DISCRETIONARY_DISCOUNT",
                                          "MANUAL_CHARGE",
                                          "EXTERNAL_PRICE"
                                        ]
                                      },
                                      "discountType": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "AMOUNT",
                                              "PERCENT",
                                              "WAIVE"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "listAmount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unitPrice": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "quantity": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "ratingMode": {
                                        "type": "string",
                                        "enum": [
                                          "CART",
                                          "METERED"
                                        ]
                                      },
                                      "sourceChargeDefinitionId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourcePricebookEntryId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourcePricingRuleId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "activatedByRuleIds": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "format": "uuid"
                                        }
                                      },
                                      "rateCardId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "reasonCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "externalRef": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "approvalStatus": {
                                        "type": "string"
                                      },
                                      "createdBy": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "comment": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "priceDetails": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "status": {
                                        "type": "string"
                                      },
                                      "createdAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      "updatedAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      }
                                    }
                                  }
                                },
                                "priceSnapshot": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "externalPrices": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "chargeCode",
                                      "amount",
                                      "listAmount",
                                      "externalRef"
                                    ],
                                    "properties": {
                                      "chargeCode": {
                                        "type": "string"
                                      },
                                      "amount": {
                                        "type": "number"
                                      },
                                      "listAmount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "externalRef": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  }
                                },
                                "instanceLabel": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "naming": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "instanceNoun",
                                    "instanceLabelAttributes",
                                    "unitNoun",
                                    "unitLabelAttributes"
                                  ],
                                  "properties": {
                                    "instanceNoun": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "singular",
                                            "plural"
                                          ],
                                          "properties": {
                                            "singular": {
                                              "type": "string"
                                            },
                                            "plural": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "instanceLabelAttributes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "unitNoun": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "singular",
                                            "plural"
                                          ],
                                          "properties": {
                                            "singular": {
                                              "type": "string"
                                            },
                                            "plural": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "unitLabelAttributes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                },
                                "orderId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                },
                                "status": {
                                  "type": "string",
                                  "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                },
                                "createdBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "journey": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "steps"
                                  ],
                                  "properties": {
                                    "steps": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "componentId",
                                          "componentCode",
                                          "name",
                                          "displayOrder",
                                          "visible",
                                          "status",
                                          "questionAttributeCodes",
                                          "selectedCartItemIds"
                                        ],
                                        "properties": {
                                          "componentId": {
                                            "type": "string"
                                          },
                                          "componentCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": [
                                              "null",
                                              "string"
                                            ]
                                          },
                                          "displayOrder": {
                                            "type": "number"
                                          },
                                          "visible": {
                                            "type": "boolean"
                                          },
                                          "status": {
                                            "type": [
                                              "null",
                                              "string"
                                            ],
                                            "enum": [
                                              "COMPLETE",
                                              "NEEDS_ATTENTION",
                                              "NOT_STARTED",
                                              "OPTIONAL",
                                              null
                                            ]
                                          },
                                          "questionAttributeCodes": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "selectedCartItemIds": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                },
                                "children": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "cartId",
                                      "parentCartItemId",
                                      "sourceCartItemId",
                                      "sourceServiceId",
                                      "sourceDeliverableItemId",
                                      "sourceComponentType",
                                      "sourceComponentId",
                                      "componentRoleCode",
                                      "itemType",
                                      "itemId",
                                      "itemCode",
                                      "itemName",
                                      "productVariantId",
                                      "productVariantCode",
                                      "productDefinitionId",
                                      "productDefinitionCode",
                                      "orderProductType",
                                      "cataloguePublishRunId",
                                      "catalogueViewId",
                                      "action",
                                      "quantity",
                                      "quantityStrategy",
                                      "attributes",
                                      "facts",
                                      "charges",
                                      "priceSnapshot",
                                      "status",
                                      "createdBy",
                                      "updatedBy",
                                      "createdAt",
                                      "updatedAt",
                                      "children"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "cartId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "parentCartItemId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceCartItemId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceServiceId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceDeliverableItemId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceComponentType": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceComponentId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "componentRoleCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "itemType": {
                                        "type": "string",
                                        "enum": [
                                          "PRODUCT_OFFERING",
                                          "PACKAGE",
                                          "SOLUTION"
                                        ]
                                      },
                                      "itemId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "itemCode": {
                                        "type": "string"
                                      },
                                      "itemName": {
                                        "type": "string"
                                      },
                                      "productVariantId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "productVariantCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "productDefinitionId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "productDefinitionCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "orderProductType": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "SUBSCRIPTION",
                                              "DELIVERABLE"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "cataloguePublishRunId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "catalogueViewId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "action": {
                                        "type": "string",
                                        "enum": [
                                          "ADD",
                                          "NO_CHANGE",
                                          "MODIFY",
                                          "REMOVE"
                                        ]
                                      },
                                      "quantity": {
                                        "type": "integer"
                                      },
                                      "quantityStrategy": {
                                        "type": "string",
                                        "enum": [
                                          "MULTIPLIER",
                                          "UNIT"
                                        ]
                                      },
                                      "attributes": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "facts": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "charges": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "id",
                                            "cartId",
                                            "cartItemId",
                                            "parentChargeId",
                                            "sourceChargeId",
                                            "chargeCode",
                                            "name",
                                            "chargeType",
                                            "pricingRole",
                                            "chargeSource",
                                            "discountType",
                                            "listAmount",
                                            "amount",
                                            "unitPrice",
                                            "quantity",
                                            "currency",
                                            "billingPeriod",
                                            "ratingMode",
                                            "sourceChargeDefinitionId",
                                            "sourcePricebookEntryId",
                                            "sourcePricingRuleId",
                                            "activatedByRuleIds",
                                            "rateCardId",
                                            "reasonCode",
                                            "approvalStatus",
                                            "createdBy",
                                            "comment",
                                            "priceDetails",
                                            "status",
                                            "createdAt",
                                            "updatedAt"
                                          ],
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "cartId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "cartItemId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "parentChargeId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceChargeId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "chargeCode": {
                                              "type": "string"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "chargeType": {
                                              "type": "string",
                                              "enum": [
                                                "ONE_TIME",
                                                "RECURRING"
                                              ]
                                            },
                                            "pricingRole": {
                                              "type": "string",
                                              "enum": [
                                                "CHARGE",
                                                "DISCOUNT",
                                                "SURCHARGE"
                                              ]
                                            },
                                            "chargeSource": {
                                              "type": "string",
                                              "enum": [
                                                "BASE_PRICE",
                                                "CATALOGUE_DISCOUNT",
                                                "CATALOGUE_WAIVER",
                                                "CATALOGUE_SURCHARGE",
                                                "DISCRETIONARY_DISCOUNT",
                                                "MANUAL_CHARGE",
                                                "EXTERNAL_PRICE"
                                              ]
                                            },
                                            "discountType": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "AMOUNT",
                                                    "PERCENT",
                                                    "WAIVE"
                                                  ]
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "listAmount": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "amount": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "unitPrice": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "quantity": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "currency": {
                                              "type": "string"
                                            },
                                            "billingPeriod": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "ratingMode": {
                                              "type": "string",
                                              "enum": [
                                                "CART",
                                                "METERED"
                                              ]
                                            },
                                            "sourceChargeDefinitionId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourcePricebookEntryId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourcePricingRuleId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "activatedByRuleIds": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "format": "uuid"
                                              }
                                            },
                                            "rateCardId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "reasonCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "externalRef": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "approvalStatus": {
                                              "type": "string"
                                            },
                                            "createdBy": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "comment": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "priceDetails": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "status": {
                                              "type": "string"
                                            },
                                            "createdAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            },
                                            "updatedAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            }
                                          }
                                        }
                                      },
                                      "priceSnapshot": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "externalPrices": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "chargeCode",
                                            "amount",
                                            "listAmount",
                                            "externalRef"
                                          ],
                                          "properties": {
                                            "chargeCode": {
                                              "type": "string"
                                            },
                                            "amount": {
                                              "type": "number"
                                            },
                                            "listAmount": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "externalRef": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      },
                                      "instanceLabel": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "naming": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "instanceNoun",
                                          "instanceLabelAttributes",
                                          "unitNoun",
                                          "unitLabelAttributes"
                                        ],
                                        "properties": {
                                          "instanceNoun": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "singular",
                                                  "plural"
                                                ],
                                                "properties": {
                                                  "singular": {
                                                    "type": "string"
                                                  },
                                                  "plural": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "instanceLabelAttributes": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "unitNoun": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "singular",
                                                  "plural"
                                                ],
                                                "properties": {
                                                  "singular": {
                                                    "type": "string"
                                                  },
                                                  "plural": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "unitLabelAttributes": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      },
                                      "orderId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ],
                                        "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                      },
                                      "createdBy": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "updatedBy": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "createdAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      "updatedAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      "journey": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "steps"
                                        ],
                                        "properties": {
                                          "steps": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "componentId",
                                                "componentCode",
                                                "name",
                                                "displayOrder",
                                                "visible",
                                                "status",
                                                "questionAttributeCodes",
                                                "selectedCartItemIds"
                                              ],
                                              "properties": {
                                                "componentId": {
                                                  "type": "string"
                                                },
                                                "componentCode": {
                                                  "type": "string"
                                                },
                                                "name": {
                                                  "type": [
                                                    "null",
                                                    "string"
                                                  ]
                                                },
                                                "displayOrder": {
                                                  "type": "number"
                                                },
                                                "visible": {
                                                  "type": "boolean"
                                                },
                                                "status": {
                                                  "type": [
                                                    "null",
                                                    "string"
                                                  ],
                                                  "enum": [
                                                    "COMPLETE",
                                                    "NEEDS_ATTENTION",
                                                    "NOT_STARTED",
                                                    "OPTIONAL",
                                                    null
                                                  ]
                                                },
                                                "questionAttributeCodes": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                },
                                                "selectedCartItemIds": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      },
                                      "children": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "id",
                                            "cartId",
                                            "parentCartItemId",
                                            "sourceCartItemId",
                                            "sourceServiceId",
                                            "sourceDeliverableItemId",
                                            "sourceComponentType",
                                            "sourceComponentId",
                                            "componentRoleCode",
                                            "itemType",
                                            "itemId",
                                            "itemCode",
                                            "itemName",
                                            "productVariantId",
                                            "productVariantCode",
                                            "productDefinitionId",
                                            "productDefinitionCode",
                                            "orderProductType",
                                            "cataloguePublishRunId",
                                            "catalogueViewId",
                                            "action",
                                            "quantity",
                                            "quantityStrategy",
                                            "attributes",
                                            "facts",
                                            "charges",
                                            "priceSnapshot",
                                            "status",
                                            "createdBy",
                                            "updatedBy",
                                            "createdAt",
                                            "updatedAt",
                                            "children"
                                          ],
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "cartId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "parentCartItemId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceCartItemId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceServiceId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceDeliverableItemId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceComponentType": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceComponentId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "componentRoleCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "itemType": {
                                              "type": "string",
                                              "enum": [
                                                "PRODUCT_OFFERING",
                                                "PACKAGE",
                                                "SOLUTION"
                                              ]
                                            },
                                            "itemId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "itemCode": {
                                              "type": "string"
                                            },
                                            "itemName": {
                                              "type": "string"
                                            },
                                            "productVariantId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "productVariantCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "productDefinitionId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "productDefinitionCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "orderProductType": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "SUBSCRIPTION",
                                                    "DELIVERABLE"
                                                  ]
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "cataloguePublishRunId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "catalogueViewId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "action": {
                                              "type": "string",
                                              "enum": [
                                                "ADD",
                                                "NO_CHANGE",
                                                "MODIFY",
                                                "REMOVE"
                                              ]
                                            },
                                            "quantity": {
                                              "type": "integer"
                                            },
                                            "quantityStrategy": {
                                              "type": "string",
                                              "enum": [
                                                "MULTIPLIER",
                                                "UNIT"
                                              ]
                                            },
                                            "attributes": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "facts": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "charges": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "id",
                                                  "cartId",
                                                  "cartItemId",
                                                  "parentChargeId",
                                                  "sourceChargeId",
                                                  "chargeCode",
                                                  "name",
                                                  "chargeType",
                                                  "pricingRole",
                                                  "chargeSource",
                                                  "discountType",
                                                  "listAmount",
                                                  "amount",
                                                  "unitPrice",
                                                  "quantity",
                                                  "currency",
                                                  "billingPeriod",
                                                  "ratingMode",
                                                  "sourceChargeDefinitionId",
                                                  "sourcePricebookEntryId",
                                                  "sourcePricingRuleId",
                                                  "activatedByRuleIds",
                                                  "rateCardId",
                                                  "reasonCode",
                                                  "approvalStatus",
                                                  "createdBy",
                                                  "comment",
                                                  "priceDetails",
                                                  "status",
                                                  "createdAt",
                                                  "updatedAt"
                                                ],
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "cartId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "cartItemId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "parentChargeId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceChargeId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "chargeCode": {
                                                    "type": "string"
                                                  },
                                                  "name": {
                                                    "type": "string"
                                                  },
                                                  "chargeType": {
                                                    "type": "string",
                                                    "enum": [
                                                      "ONE_TIME",
                                                      "RECURRING"
                                                    ]
                                                  },
                                                  "pricingRole": {
                                                    "type": "string",
                                                    "enum": [
                                                      "CHARGE",
                                                      "DISCOUNT",
                                                      "SURCHARGE"
                                                    ]
                                                  },
                                                  "chargeSource": {
                                                    "type": "string",
                                                    "enum": [
                                                      "BASE_PRICE",
                                                      "CATALOGUE_DISCOUNT",
                                                      "CATALOGUE_WAIVER",
                                                      "CATALOGUE_SURCHARGE",
                                                      "DISCRETIONARY_DISCOUNT",
                                                      "MANUAL_CHARGE",
                                                      "EXTERNAL_PRICE"
                                                    ]
                                                  },
                                                  "discountType": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "enum": [
                                                          "AMOUNT",
                                                          "PERCENT",
                                                          "WAIVE"
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "listAmount": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "amount": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "unitPrice": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "quantity": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "currency": {
                                                    "type": "string"
                                                  },
                                                  "billingPeriod": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "ratingMode": {
                                                    "type": "string",
                                                    "enum": [
                                                      "CART",
                                                      "METERED"
                                                    ]
                                                  },
                                                  "sourceChargeDefinitionId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourcePricebookEntryId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourcePricingRuleId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "activatedByRuleIds": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "format": "uuid"
                                                    }
                                                  },
                                                  "rateCardId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "reasonCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "externalRef": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "approvalStatus": {
                                                    "type": "string"
                                                  },
                                                  "createdBy": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "comment": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "priceDetails": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "status": {
                                                    "type": "string"
                                                  },
                                                  "createdAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  },
                                                  "updatedAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  }
                                                }
                                              }
                                            },
                                            "priceSnapshot": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "externalPrices": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "chargeCode",
                                                  "amount",
                                                  "listAmount",
                                                  "externalRef"
                                                ],
                                                "properties": {
                                                  "chargeCode": {
                                                    "type": "string"
                                                  },
                                                  "amount": {
                                                    "type": "number"
                                                  },
                                                  "listAmount": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "externalRef": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                }
                                              }
                                            },
                                            "instanceLabel": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "naming": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "instanceNoun",
                                                "instanceLabelAttributes",
                                                "unitNoun",
                                                "unitLabelAttributes"
                                              ],
                                              "properties": {
                                                "instanceNoun": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "singular",
                                                        "plural"
                                                      ],
                                                      "properties": {
                                                        "singular": {
                                                          "type": "string"
                                                        },
                                                        "plural": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "instanceLabelAttributes": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                },
                                                "unitNoun": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "singular",
                                                        "plural"
                                                      ],
                                                      "properties": {
                                                        "singular": {
                                                          "type": "string"
                                                        },
                                                        "plural": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "unitLabelAttributes": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                }
                                              }
                                            },
                                            "orderId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ],
                                              "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                            },
                                            "status": {
                                              "type": "string",
                                              "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                            },
                                            "createdBy": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "updatedBy": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "createdAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            },
                                            "updatedAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            },
                                            "journey": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "steps"
                                              ],
                                              "properties": {
                                                "steps": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "componentId",
                                                      "componentCode",
                                                      "name",
                                                      "displayOrder",
                                                      "visible",
                                                      "status",
                                                      "questionAttributeCodes",
                                                      "selectedCartItemIds"
                                                    ],
                                                    "properties": {
                                                      "componentId": {
                                                        "type": "string"
                                                      },
                                                      "componentCode": {
                                                        "type": "string"
                                                      },
                                                      "name": {
                                                        "type": [
                                                          "null",
                                                          "string"
                                                        ]
                                                      },
                                                      "displayOrder": {
                                                        "type": "number"
                                                      },
                                                      "visible": {
                                                        "type": "boolean"
                                                      },
                                                      "status": {
                                                        "type": [
                                                          "null",
                                                          "string"
                                                        ],
                                                        "enum": [
                                                          "COMPLETE",
                                                          "NEEDS_ATTENTION",
                                                          "NOT_STARTED",
                                                          "OPTIONAL",
                                                          null
                                                        ]
                                                      },
                                                      "questionAttributeCodes": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      },
                                                      "selectedCartItemIds": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            },
                                            "children": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "id",
                                                  "cartId",
                                                  "parentCartItemId",
                                                  "sourceCartItemId",
                                                  "sourceServiceId",
                                                  "sourceDeliverableItemId",
                                                  "sourceComponentType",
                                                  "sourceComponentId",
                                                  "componentRoleCode",
                                                  "itemType",
                                                  "itemId",
                                                  "itemCode",
                                                  "itemName",
                                                  "productVariantId",
                                                  "productVariantCode",
                                                  "productDefinitionId",
                                                  "productDefinitionCode",
                                                  "orderProductType",
                                                  "cataloguePublishRunId",
                                                  "catalogueViewId",
                                                  "action",
                                                  "quantity",
                                                  "quantityStrategy",
                                                  "attributes",
                                                  "facts",
                                                  "charges",
                                                  "priceSnapshot",
                                                  "status",
                                                  "createdBy",
                                                  "updatedBy",
                                                  "createdAt",
                                                  "updatedAt",
                                                  "children"
                                                ],
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "cartId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "parentCartItemId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceCartItemId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceServiceId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceDeliverableItemId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceComponentType": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceComponentId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "componentRoleCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "itemType": {
                                                    "type": "string",
                                                    "enum": [
                                                      "PRODUCT_OFFERING",
                                                      "PACKAGE",
                                                      "SOLUTION"
                                                    ]
                                                  },
                                                  "itemId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "itemCode": {
                                                    "type": "string"
                                                  },
                                                  "itemName": {
                                                    "type": "string"
                                                  },
                                                  "productVariantId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "productVariantCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "productDefinitionId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "productDefinitionCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "orderProductType": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "enum": [
                                                          "SUBSCRIPTION",
                                                          "DELIVERABLE"
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "cataloguePublishRunId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "catalogueViewId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "action": {
                                                    "type": "string",
                                                    "enum": [
                                                      "ADD",
                                                      "NO_CHANGE",
                                                      "MODIFY",
                                                      "REMOVE"
                                                    ]
                                                  },
                                                  "quantity": {
                                                    "type": "integer"
                                                  },
                                                  "quantityStrategy": {
                                                    "type": "string",
                                                    "enum": [
                                                      "MULTIPLIER",
                                                      "UNIT"
                                                    ]
                                                  },
                                                  "attributes": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "facts": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "charges": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "id",
                                                        "cartId",
                                                        "cartItemId",
                                                        "parentChargeId",
                                                        "sourceChargeId",
                                                        "chargeCode",
                                                        "name",
                                                        "chargeType",
                                                        "pricingRole",
                                                        "chargeSource",
                                                        "discountType",
                                                        "listAmount",
                                                        "amount",
                                                        "unitPrice",
                                                        "quantity",
                                                        "currency",
                                                        "billingPeriod",
                                                        "ratingMode",
                                                        "sourceChargeDefinitionId",
                                                        "sourcePricebookEntryId",
                                                        "sourcePricingRuleId",
                                                        "activatedByRuleIds",
                                                        "rateCardId",
                                                        "reasonCode",
                                                        "approvalStatus",
                                                        "createdBy",
                                                        "comment",
                                                        "priceDetails",
                                                        "status",
                                                        "createdAt",
                                                        "updatedAt"
                                                      ],
                                                      "properties": {
                                                        "id": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "cartId": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "cartItemId": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "parentChargeId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sourceChargeId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "chargeCode": {
                                                          "type": "string"
                                                        },
                                                        "name": {
                                                          "type": "string"
                                                        },
                                                        "chargeType": {
                                                          "type": "string",
                                                          "enum": [
                                                            "ONE_TIME",
                                                            "RECURRING"
                                                          ]
                                                        },
                                                        "pricingRole": {
                                                          "type": "string",
                                                          "enum": [
                                                            "CHARGE",
                                                            "DISCOUNT",
                                                            "SURCHARGE"
                                                          ]
                                                        },
                                                        "chargeSource": {
                                                          "type": "string",
                                                          "enum": [
                                                            "BASE_PRICE",
                                                            "CATALOGUE_DISCOUNT",
                                                            "CATALOGUE_WAIVER",
                                                            "CATALOGUE_SURCHARGE",
                                                            "DISCRETIONARY_DISCOUNT",
                                                            "MANUAL_CHARGE",
                                                            "EXTERNAL_PRICE"
                                                          ]
                                                        },
                                                        "discountType": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "enum": [
                                                                "AMOUNT",
                                                                "PERCENT",
                                                                "WAIVE"
                                                              ]
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "listAmount": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "amount": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "unitPrice": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "quantity": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "currency": {
                                                          "type": "string"
                                                        },
                                                        "billingPeriod": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "ratingMode": {
                                                          "type": "string",
                                                          "enum": [
                                                            "CART",
                                                            "METERED"
                                                          ]
                                                        },
                                                        "sourceChargeDefinitionId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sourcePricebookEntryId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sourcePricingRuleId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "activatedByRuleIds": {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "string",
                                                            "format": "uuid"
                                                          }
                                                        },
                                                        "rateCardId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "reasonCode": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "externalRef": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "approvalStatus": {
                                                          "type": "string"
                                                        },
                                                        "createdBy": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "comment": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "priceDetails": {
                                                          "type": "object",
                                                          "additionalProperties": true
                                                        },
                                                        "status": {
                                                          "type": "string"
                                                        },
                                                        "createdAt": {
                                                          "type": "string",
                                                          "format": "date-time"
                                                        },
                                                        "updatedAt": {
                                                          "type": "string",
                                                          "format": "date-time"
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "priceSnapshot": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "externalPrices": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "chargeCode",
                                                        "amount",
                                                        "listAmount",
                                                        "externalRef"
                                                      ],
                                                      "properties": {
                                                        "chargeCode": {
                                                          "type": "string"
                                                        },
                                                        "amount": {
                                                          "type": "number"
                                                        },
                                                        "listAmount": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "externalRef": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "instanceLabel": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "naming": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "instanceNoun",
                                                      "instanceLabelAttributes",
                                                      "unitNoun",
                                                      "unitLabelAttributes"
                                                    ],
                                                    "properties": {
                                                      "instanceNoun": {
                                                        "anyOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "singular",
                                                              "plural"
                                                            ],
                                                            "properties": {
                                                              "singular": {
                                                                "type": "string"
                                                              },
                                                              "plural": {
                                                                "type": "string"
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "instanceLabelAttributes": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      },
                                                      "unitNoun": {
                                                        "anyOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "singular",
                                                              "plural"
                                                            ],
                                                            "properties": {
                                                              "singular": {
                                                                "type": "string"
                                                              },
                                                              "plural": {
                                                                "type": "string"
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "unitLabelAttributes": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "orderId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ],
                                                    "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                                  },
                                                  "status": {
                                                    "type": "string",
                                                    "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                                  },
                                                  "createdBy": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "updatedBy": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "createdAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  },
                                                  "updatedAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  },
                                                  "journey": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "steps"
                                                    ],
                                                    "properties": {
                                                      "steps": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "componentId",
                                                            "componentCode",
                                                            "name",
                                                            "displayOrder",
                                                            "visible",
                                                            "status",
                                                            "questionAttributeCodes",
                                                            "selectedCartItemIds"
                                                          ],
                                                          "properties": {
                                                            "componentId": {
                                                              "type": "string"
                                                            },
                                                            "componentCode": {
                                                              "type": "string"
                                                            },
                                                            "name": {
                                                              "type": [
                                                                "null",
                                                                "string"
                                                              ]
                                                            },
                                                            "displayOrder": {
                                                              "type": "number"
                                                            },
                                                            "visible": {
                                                              "type": "boolean"
                                                            },
                                                            "status": {
                                                              "type": [
                                                                "null",
                                                                "string"
                                                              ],
                                                              "enum": [
                                                                "COMPLETE",
                                                                "NEEDS_ATTENTION",
                                                                "NOT_STARTED",
                                                                "OPTIONAL",
                                                                null
                                                              ]
                                                            },
                                                            "questionAttributeCodes": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "selectedCartItemIds": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "string"
                                                              }
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "children": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "object",
                                                      "additionalProperties": true
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "change": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "kind",
                            "sourceOrder",
                            "sourceSubscription",
                            "baseline",
                            "proposed",
                            "delta",
                            "summary",
                            "itemChanges",
                            "serviceOutcomes"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "ORDER_AMENDMENT",
                                "SUBSCRIPTION_CHANGE"
                              ]
                            },
                            "sourceOrder": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "orderNumber",
                                    "revisionNumber"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "orderNumber": {
                                      "type": "string"
                                    },
                                    "revisionNumber": {
                                      "type": "integer",
                                      "minimum": 1
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sourceSubscription": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "subscriptionNumber",
                                    "name",
                                    "status"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "subscriptionNumber": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "status": {
                                      "type": "string"
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "baseline": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "currency",
                                "oneTimeTotal",
                                "recurringTotalsByPeriod",
                                "meteredTariffCount",
                                "list",
                                "adjusted",
                                "sales"
                              ],
                              "properties": {
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oneTimeTotal": {
                                  "type": "number"
                                },
                                "recurringTotalsByPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "billingPeriod",
                                      "listAmount",
                                      "adjustmentAmount",
                                      "salesAmount"
                                    ],
                                    "properties": {
                                      "billingPeriod": {
                                        "type": "string"
                                      },
                                      "listAmount": {
                                        "type": "number"
                                      },
                                      "adjustmentAmount": {
                                        "type": "number"
                                      },
                                      "salesAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                },
                                "meteredTariffCount": {
                                  "type": "integer"
                                },
                                "list": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "adjusted": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "sales": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              }
                            },
                            "proposed": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "currency",
                                "oneTimeTotal",
                                "recurringTotalsByPeriod",
                                "meteredTariffCount",
                                "list",
                                "adjusted",
                                "sales"
                              ],
                              "properties": {
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oneTimeTotal": {
                                  "type": "number"
                                },
                                "recurringTotalsByPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "billingPeriod",
                                      "listAmount",
                                      "adjustmentAmount",
                                      "salesAmount"
                                    ],
                                    "properties": {
                                      "billingPeriod": {
                                        "type": "string"
                                      },
                                      "listAmount": {
                                        "type": "number"
                                      },
                                      "adjustmentAmount": {
                                        "type": "number"
                                      },
                                      "salesAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                },
                                "meteredTariffCount": {
                                  "type": "integer"
                                },
                                "list": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "adjusted": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "sales": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              }
                            },
                            "delta": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "currency",
                                "oneTimeTotal",
                                "recurringTotalsByPeriod",
                                "meteredTariffCount",
                                "list",
                                "adjusted",
                                "sales"
                              ],
                              "properties": {
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oneTimeTotal": {
                                  "type": "number"
                                },
                                "recurringTotalsByPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "billingPeriod",
                                      "listAmount",
                                      "adjustmentAmount",
                                      "salesAmount"
                                    ],
                                    "properties": {
                                      "billingPeriod": {
                                        "type": "string"
                                      },
                                      "listAmount": {
                                        "type": "number"
                                      },
                                      "adjustmentAmount": {
                                        "type": "number"
                                      },
                                      "salesAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                },
                                "meteredTariffCount": {
                                  "type": "integer"
                                },
                                "list": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "adjusted": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "sales": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              }
                            },
                            "summary": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "addedItems",
                                "modifiedItems",
                                "removedItems",
                                "addedUnits",
                                "modifiedUnits",
                                "removedUnits"
                              ],
                              "properties": {
                                "addedItems": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "modifiedItems": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "removedItems": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "addedUnits": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "modifiedUnits": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "removedUnits": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              }
                            },
                            "itemChanges": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "cartItemId",
                                  "action",
                                  "before",
                                  "after"
                                ],
                                "properties": {
                                  "cartItemId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "action": {
                                    "type": "string",
                                    "enum": [
                                      "ADD",
                                      "MODIFY",
                                      "REMOVE"
                                    ]
                                  },
                                  "before": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "itemType",
                                          "itemCode",
                                          "itemName",
                                          "productVariantCode",
                                          "quantity",
                                          "quantityStrategy",
                                          "attributes"
                                        ],
                                        "properties": {
                                          "itemType": {
                                            "type": "string"
                                          },
                                          "itemCode": {
                                            "type": "string"
                                          },
                                          "itemName": {
                                            "type": "string"
                                          },
                                          "productVariantCode": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "quantityStrategy": {
                                            "type": "string",
                                            "enum": [
                                              "MULTIPLIER",
                                              "UNIT"
                                            ]
                                          },
                                          "attributes": {
                                            "type": "object",
                                            "additionalProperties": true
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "after": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "itemType",
                                          "itemCode",
                                          "itemName",
                                          "productVariantCode",
                                          "quantity",
                                          "quantityStrategy",
                                          "attributes"
                                        ],
                                        "properties": {
                                          "itemType": {
                                            "type": "string"
                                          },
                                          "itemCode": {
                                            "type": "string"
                                          },
                                          "itemName": {
                                            "type": "string"
                                          },
                                          "productVariantCode": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "quantityStrategy": {
                                            "type": "string",
                                            "enum": [
                                              "MULTIPLIER",
                                              "UNIT"
                                            ]
                                          },
                                          "attributes": {
                                            "type": "object",
                                            "additionalProperties": true
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                }
                              }
                            },
                            "serviceOutcomes": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "summary",
                                    "additions",
                                    "replacements",
                                    "removals",
                                    "previewLimit",
                                    "truncated"
                                  ],
                                  "properties": {
                                    "summary": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "added",
                                        "modified",
                                        "removed",
                                        "unchanged",
                                        "subscriptionsAdded",
                                        "deliverablesAdded"
                                      ],
                                      "properties": {
                                        "added": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "modified": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "removed": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "unchanged": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "subscriptionsAdded": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "deliverablesAdded": {
                                          "type": "integer",
                                          "minimum": 0
                                        }
                                      }
                                    },
                                    "additions": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "serviceId",
                                          "serviceNumber",
                                          "cartItemId",
                                          "unitNumber",
                                          "productCode",
                                          "name",
                                          "quantity",
                                          "status"
                                        ],
                                        "properties": {
                                          "serviceId": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "serviceNumber": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "cartItemId": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "unitNumber": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "productCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "status": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    "replacements": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "current",
                                          "proposed"
                                        ],
                                        "properties": {
                                          "current": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "serviceId",
                                              "serviceNumber",
                                              "cartItemId",
                                              "unitNumber",
                                              "productCode",
                                              "name",
                                              "quantity",
                                              "status"
                                            ],
                                            "properties": {
                                              "serviceId": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "serviceNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "cartItemId": {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              "unitNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer",
                                                    "minimum": 1
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "productCode": {
                                                "type": "string"
                                              },
                                              "name": {
                                                "type": "string"
                                              },
                                              "quantity": {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              "status": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            }
                                          },
                                          "proposed": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "serviceId",
                                              "serviceNumber",
                                              "cartItemId",
                                              "unitNumber",
                                              "productCode",
                                              "name",
                                              "quantity",
                                              "status"
                                            ],
                                            "properties": {
                                              "serviceId": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "serviceNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "cartItemId": {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              "unitNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer",
                                                    "minimum": 1
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "productCode": {
                                                "type": "string"
                                              },
                                              "name": {
                                                "type": "string"
                                              },
                                              "quantity": {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              "status": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "removals": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "serviceId",
                                          "serviceNumber",
                                          "cartItemId",
                                          "unitNumber",
                                          "productCode",
                                          "name",
                                          "quantity",
                                          "status"
                                        ],
                                        "properties": {
                                          "serviceId": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "serviceNumber": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "cartItemId": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "unitNumber": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "productCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "status": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    "previewLimit": {
                                      "type": "integer",
                                      "minimum": 1
                                    },
                                    "truncated": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Create an editable amendment for an eligible Order before point of no return"
      }
    },
    "/api/v1/carts/{cartId}": {
      "get": {
        "operationId": "getCart",
        "summary": "Get a quote",
        "tags": [
          "Quotes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartNumber",
                    "name",
                    "cartType",
                    "status",
                    "accountId",
                    "primaryContactId",
                    "assignedSellerId",
                    "assignedAt",
                    "assignedBy",
                    "catalogueCode",
                    "catalogueViewCode",
                    "pricebookCode",
                    "currency",
                    "agreementId",
                    "agreementCode",
                    "agreementName",
                    "discretionaryDiscountsAllowed",
                    "sourceCartId",
                    "sourceOrderId",
                    "sourceSubscriptionId",
                    "orderStatus",
                    "orderedItemCount",
                    "changeCode",
                    "attributes",
                    "validationStatus",
                    "validationIssues",
                    "ruleResults",
                    "pricedAt",
                    "expiresAt",
                    "acceptedAt",
                    "version",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "items"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartNumber": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cartType": {
                      "type": "string",
                      "enum": [
                        "NEW_SALE",
                        "SUBSCRIPTION_CHANGE",
                        "ORDER_AMENDMENT"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PRICED",
                        "PENDING_APPROVAL",
                        "APPROVED",
                        "ACCEPTED",
                        "ORDERED",
                        "CANCELLED",
                        "EXPIRED"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "primaryContactId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedSellerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "discretionaryDiscountsAllowed": {
                      "type": "boolean"
                    },
                    "sourceCartId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceOrderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceSubscriptionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_ORDERED",
                        "PARTIALLY_ORDERED",
                        "ORDERED"
                      ],
                      "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                    },
                    "orderedItemCount": {
                      "type": "integer",
                      "description": "Number of top-level items already ordered."
                    },
                    "changeCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "ruleResults": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "acceptedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "type": "integer"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a quote and its items."
      },
      "patch": {
        "operationId": "updateCart",
        "summary": "Update a quote",
        "tags": [
          "Quotes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "primaryContactId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "pricebookCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "changeCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributes": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartNumber",
                    "name",
                    "cartType",
                    "status",
                    "accountId",
                    "primaryContactId",
                    "assignedSellerId",
                    "assignedAt",
                    "assignedBy",
                    "catalogueCode",
                    "catalogueViewCode",
                    "pricebookCode",
                    "currency",
                    "agreementId",
                    "agreementCode",
                    "agreementName",
                    "discretionaryDiscountsAllowed",
                    "sourceCartId",
                    "sourceOrderId",
                    "sourceSubscriptionId",
                    "orderStatus",
                    "orderedItemCount",
                    "changeCode",
                    "attributes",
                    "validationStatus",
                    "validationIssues",
                    "ruleResults",
                    "pricedAt",
                    "expiresAt",
                    "acceptedAt",
                    "version",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartNumber": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cartType": {
                      "type": "string",
                      "enum": [
                        "NEW_SALE",
                        "SUBSCRIPTION_CHANGE",
                        "ORDER_AMENDMENT"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PRICED",
                        "PENDING_APPROVAL",
                        "APPROVED",
                        "ACCEPTED",
                        "ORDERED",
                        "CANCELLED",
                        "EXPIRED"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "primaryContactId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedSellerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "discretionaryDiscountsAllowed": {
                      "type": "boolean"
                    },
                    "sourceCartId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceOrderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceSubscriptionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_ORDERED",
                        "PARTIALLY_ORDERED",
                        "ORDERED"
                      ],
                      "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                    },
                    "orderedItemCount": {
                      "type": "integer",
                      "description": "Number of top-level items already ordered."
                    },
                    "changeCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "ruleResults": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "acceptedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "type": "integer"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update Quote header details"
      },
      "delete": {
        "operationId": "deleteCart",
        "summary": "Delete a quote",
        "tags": [
          "Quotes"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "commandId",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "in": "query",
            "name": "expectedVersion",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Delete an eligible Quote"
      }
    },
    "/api/v1/carts/{cartId}/charges": {
      "get": {
        "operationId": "listCartCharges",
        "summary": "List quote charges",
        "tags": [
          "Commercial close"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "totals"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartId",
                          "cartItemId",
                          "parentChargeId",
                          "sourceChargeId",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "listAmount",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "ratingMode",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "rateCardId",
                          "reasonCode",
                          "approvalStatus",
                          "createdBy",
                          "comment",
                          "priceDetails",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "rateCardId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "comment": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency",
                        "oneTimeTotal",
                        "recurringTotalsByPeriod",
                        "meteredTariffCount",
                        "list",
                        "adjusted",
                        "sales"
                      ],
                      "properties": {
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oneTimeTotal": {
                          "type": "number"
                        },
                        "recurringTotalsByPeriod": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "billingPeriod",
                              "listAmount",
                              "adjustmentAmount",
                              "salesAmount"
                            ],
                            "properties": {
                              "billingPeriod": {
                                "type": "string"
                              },
                              "listAmount": {
                                "type": "number"
                              },
                              "adjustmentAmount": {
                                "type": "number"
                              },
                              "salesAmount": {
                                "type": "number"
                              }
                            }
                          }
                        },
                        "meteredTariffCount": {
                          "type": "integer"
                        },
                        "list": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "adjusted": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "sales": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List the charges and totals of a quote."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}": {
      "get": {
        "operationId": "getCartItem",
        "summary": "Get a quote item",
        "tags": [
          "Quote workspace"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get one item of a quote."
      },
      "delete": {
        "operationId": "removeCartItem",
        "summary": "Remove a quote item",
        "tags": [
          "Quote workspace"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "commandId",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "in": "query",
            "name": "expectedVersion",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Remove one item from a quote."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/units/summary": {
      "get": {
        "operationId": "getCartItemUnitSummary",
        "summary": "Get item unit summary",
        "tags": [
          "Quote workspace"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "expectedUnits",
                    "activeUnits",
                    "completeUnits",
                    "incompleteUnits",
                    "missingUnits",
                    "excessUnits",
                    "removedUnits",
                    "firstIncompleteUnitNumber",
                    "firstMissingUnitNumber",
                    "firstExcessUnitNumber",
                    "validationStatus",
                    "validationIssues"
                  ],
                  "properties": {
                    "expectedUnits": {
                      "type": "integer"
                    },
                    "activeUnits": {
                      "type": "integer"
                    },
                    "completeUnits": {
                      "type": "integer"
                    },
                    "incompleteUnits": {
                      "type": "integer"
                    },
                    "missingUnits": {
                      "type": "integer"
                    },
                    "excessUnits": {
                      "type": "integer"
                    },
                    "removedUnits": {
                      "type": "integer"
                    },
                    "firstIncompleteUnitNumber": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "firstMissingUnitNumber": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "firstExcessUnitNumber": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_VALIDATED",
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get quantity and configuration completeness for one Unit-based Quote item"
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/units": {
      "get": {
        "operationId": "listCartItemUnits",
        "summary": "List item units",
        "tags": [
          "Quote workspace"
        ],
        "parameters": [
          {
            "schema": {
              "default": 100,
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "boolean"
            },
            "in": "query",
            "name": "includeRemoved",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "summary",
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "summary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "expectedUnits",
                        "activeUnits",
                        "completeUnits",
                        "incompleteUnits",
                        "missingUnits",
                        "excessUnits",
                        "removedUnits",
                        "firstIncompleteUnitNumber",
                        "firstMissingUnitNumber",
                        "firstExcessUnitNumber",
                        "validationStatus",
                        "validationIssues"
                      ],
                      "properties": {
                        "expectedUnits": {
                          "type": "integer"
                        },
                        "activeUnits": {
                          "type": "integer"
                        },
                        "completeUnits": {
                          "type": "integer"
                        },
                        "incompleteUnits": {
                          "type": "integer"
                        },
                        "missingUnits": {
                          "type": "integer"
                        },
                        "excessUnits": {
                          "type": "integer"
                        },
                        "removedUnits": {
                          "type": "integer"
                        },
                        "firstIncompleteUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "firstMissingUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "firstExcessUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "validationStatus": {
                          "type": "string",
                          "enum": [
                            "NOT_VALIDATED",
                            "VALID",
                            "HAS_WARNINGS",
                            "HAS_ERRORS"
                          ]
                        },
                        "validationIssues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "severity",
                              "message",
                              "scope",
                              "source",
                              "details"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "INFO"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "CART_ITEM",
                                  "ADDON_GROUP",
                                  "COMPONENT"
                                ]
                              },
                              "cartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "source": {
                                "type": "string"
                              },
                              "details": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartItemId",
                          "unitNumber",
                          "attributes",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "unitNumber": {
                            "type": "integer"
                          },
                          "unitLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "REMOVED"
                            ]
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List the units of a quote item whose product is sold per unit."
      }
    },
    "/api/v1/carts/{cartId}/cancel": {
      "post": {
        "operationId": "cancelCart",
        "summary": "Cancel a quote",
        "tags": [
          "Quotes"
        ],
        "description": "On a Quote without orders, cancels it. On a Quote that already has orders, withdraws its open items and closes it as ORDERED; existing orders are not changed.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartNumber",
                    "name",
                    "cartType",
                    "status",
                    "accountId",
                    "primaryContactId",
                    "assignedSellerId",
                    "assignedAt",
                    "assignedBy",
                    "catalogueCode",
                    "catalogueViewCode",
                    "pricebookCode",
                    "currency",
                    "agreementId",
                    "agreementCode",
                    "agreementName",
                    "discretionaryDiscountsAllowed",
                    "sourceCartId",
                    "sourceOrderId",
                    "sourceSubscriptionId",
                    "orderStatus",
                    "orderedItemCount",
                    "changeCode",
                    "attributes",
                    "validationStatus",
                    "validationIssues",
                    "ruleResults",
                    "pricedAt",
                    "expiresAt",
                    "acceptedAt",
                    "version",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartNumber": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cartType": {
                      "type": "string",
                      "enum": [
                        "NEW_SALE",
                        "SUBSCRIPTION_CHANGE",
                        "ORDER_AMENDMENT"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PRICED",
                        "PENDING_APPROVAL",
                        "APPROVED",
                        "ACCEPTED",
                        "ORDERED",
                        "CANCELLED",
                        "EXPIRED"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "primaryContactId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedSellerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "discretionaryDiscountsAllowed": {
                      "type": "boolean"
                    },
                    "sourceCartId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceOrderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceSubscriptionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_ORDERED",
                        "PARTIALLY_ORDERED",
                        "ORDERED"
                      ],
                      "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                    },
                    "orderedItemCount": {
                      "type": "integer",
                      "description": "Number of top-level items already ordered."
                    },
                    "changeCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "ruleResults": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "acceptedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "type": "integer"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/v1/carts/{cartId}/reopen": {
      "post": {
        "operationId": "reopenCart",
        "summary": "Reopen an approved quote",
        "tags": [
          "Quotes"
        ],
        "description": "Returns an APPROVED new-sale Quote to PRICED. Later changes need approval again where limits or rules require it. Ordered items stay locked.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartNumber",
                    "name",
                    "cartType",
                    "status",
                    "accountId",
                    "primaryContactId",
                    "assignedSellerId",
                    "assignedAt",
                    "assignedBy",
                    "catalogueCode",
                    "catalogueViewCode",
                    "pricebookCode",
                    "currency",
                    "agreementId",
                    "agreementCode",
                    "agreementName",
                    "discretionaryDiscountsAllowed",
                    "sourceCartId",
                    "sourceOrderId",
                    "sourceSubscriptionId",
                    "orderStatus",
                    "orderedItemCount",
                    "changeCode",
                    "attributes",
                    "validationStatus",
                    "validationIssues",
                    "ruleResults",
                    "pricedAt",
                    "expiresAt",
                    "acceptedAt",
                    "version",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartNumber": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cartType": {
                      "type": "string",
                      "enum": [
                        "NEW_SALE",
                        "SUBSCRIPTION_CHANGE",
                        "ORDER_AMENDMENT"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PRICED",
                        "PENDING_APPROVAL",
                        "APPROVED",
                        "ACCEPTED",
                        "ORDERED",
                        "CANCELLED",
                        "EXPIRED"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "primaryContactId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedSellerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "discretionaryDiscountsAllowed": {
                      "type": "boolean"
                    },
                    "sourceCartId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceOrderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceSubscriptionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_ORDERED",
                        "PARTIALLY_ORDERED",
                        "ORDERED"
                      ],
                      "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                    },
                    "orderedItemCount": {
                      "type": "integer",
                      "description": "Number of top-level items already ordered."
                    },
                    "changeCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "ruleResults": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "acceptedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "type": "integer"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/v1/carts/{cartId}/validate": {
      "post": {
        "operationId": "validateCartForClose",
        "summary": "Validate a quote",
        "tags": [
          "Commercial close"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "reviewedBasis": {
                    "type": "object",
                    "properties": {
                      "discountAuthorityDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "commercialDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "approvalRequestId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "approvalDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "commercialDigest"
                    ],
                    "additionalProperties": false
                  },
                  "phase": {
                    "default": "PRE_ACCEPT",
                    "type": "string",
                    "enum": [
                      "IMMEDIATE",
                      "AFTER_PRICING",
                      "PRE_ACCEPT"
                    ]
                  },
                  "changedFields": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z0-9_*]+)*$"
                    }
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "cartId",
                    "phase",
                    "valid",
                    "errors",
                    "warnings",
                    "recommendations",
                    "approvalRequirements",
                    "results",
                    "publishRunId",
                    "evaluatedAt",
                    "durationMs",
                    "evaluatedRuleCount",
                    "evaluatedSubjectCount"
                  ],
                  "properties": {
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "phase": {
                      "type": "string",
                      "enum": [
                        "CANDIDATE",
                        "IMMEDIATE",
                        "AFTER_PRICING",
                        "PRE_ACCEPT"
                      ]
                    },
                    "valid": {
                      "type": "boolean"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "recommendations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "key",
                          "ruleCode",
                          "category",
                          "outcome",
                          "reference"
                        ],
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "ruleCode": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string",
                            "enum": [
                              "ELIGIBILITY",
                              "COMPATIBILITY",
                              "VALIDATION",
                              "RECOMMENDATION",
                              "APPROVAL",
                              "PRICING"
                            ]
                          },
                          "outcome": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "code",
                              "message"
                            ],
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "RECOMMEND_PRODUCT",
                                  "REQUIRE_APPROVAL",
                                  "ACTIVATE_CHARGE",
                                  "SELECT_PRICE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "targetChargeDefinitionId": {
                                "type": "string"
                              },
                              "targetChargeDefinitionCode": {
                                "type": "string"
                              },
                              "priceCode": {
                                "type": "string"
                              },
                              "targetProductCodes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "remediation": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "NONE",
                                      "ADD_PRODUCT",
                                      "REMOVE_PRODUCT",
                                      "CHANGE_ATTRIBUTE"
                                    ]
                                  },
                                  "productCode": {
                                    "type": "string"
                                  },
                                  "attributeCode": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          },
                          "reference": {
                            "type": "object",
                            "additionalProperties": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "decisionRowCode": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "approvalRequirements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "key",
                          "ruleCode",
                          "category",
                          "outcome",
                          "reference"
                        ],
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "ruleCode": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string",
                            "enum": [
                              "ELIGIBILITY",
                              "COMPATIBILITY",
                              "VALIDATION",
                              "RECOMMENDATION",
                              "APPROVAL",
                              "PRICING"
                            ]
                          },
                          "outcome": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "code",
                              "message"
                            ],
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "RECOMMEND_PRODUCT",
                                  "REQUIRE_APPROVAL",
                                  "ACTIVATE_CHARGE",
                                  "SELECT_PRICE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "targetChargeDefinitionId": {
                                "type": "string"
                              },
                              "targetChargeDefinitionCode": {
                                "type": "string"
                              },
                              "priceCode": {
                                "type": "string"
                              },
                              "targetProductCodes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "remediation": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "NONE",
                                      "ADD_PRODUCT",
                                      "REMOVE_PRODUCT",
                                      "CHANGE_ATTRIBUTE"
                                    ]
                                  },
                                  "productCode": {
                                    "type": "string"
                                  },
                                  "attributeCode": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          },
                          "reference": {
                            "type": "object",
                            "additionalProperties": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "decisionRowCode": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "key",
                          "ruleCode",
                          "category",
                          "outcome",
                          "reference"
                        ],
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "ruleCode": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string",
                            "enum": [
                              "ELIGIBILITY",
                              "COMPATIBILITY",
                              "VALIDATION",
                              "RECOMMENDATION",
                              "APPROVAL",
                              "PRICING"
                            ]
                          },
                          "outcome": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "code",
                              "message"
                            ],
                            "properties": {
                              "type": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "RECOMMEND_PRODUCT",
                                  "REQUIRE_APPROVAL",
                                  "ACTIVATE_CHARGE",
                                  "SELECT_PRICE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "targetChargeDefinitionId": {
                                "type": "string"
                              },
                              "targetChargeDefinitionCode": {
                                "type": "string"
                              },
                              "priceCode": {
                                "type": "string"
                              },
                              "targetProductCodes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "remediation": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "NONE",
                                      "ADD_PRODUCT",
                                      "REMOVE_PRODUCT",
                                      "CHANGE_ATTRIBUTE"
                                    ]
                                  },
                                  "productCode": {
                                    "type": "string"
                                  },
                                  "attributeCode": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          },
                          "reference": {
                            "type": "object",
                            "additionalProperties": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "decisionRowCode": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "evaluatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "durationMs": {
                      "type": "number"
                    },
                    "evaluatedRuleCount": {
                      "type": "integer"
                    },
                    "evaluatedSubjectCount": {
                      "type": "integer"
                    },
                    "version": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Validate a Quote at a commercial lifecycle phase"
      }
    },
    "/api/v1/carts/{cartId}/products/check": {
      "post": {
        "operationId": "checkCartProduct",
        "summary": "Check a product",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "productCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "productType": {
                    "type": "string",
                    "enum": [
                      "PRODUCT",
                      "PACKAGE",
                      "SOLUTION"
                    ]
                  },
                  "parentCartItemId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "addonGroupCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]*$"
                  },
                  "attributes": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "productCode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "cartId",
                    "phase",
                    "valid",
                    "allowed",
                    "errors",
                    "warnings",
                    "recommendations",
                    "approvalRequirements",
                    "results",
                    "resolvedResultKeys",
                    "publishRunId",
                    "evaluatedAt",
                    "durationMs",
                    "evaluatedRuleCount",
                    "evaluatedSubjectCount"
                  ],
                  "properties": {
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "phase": {
                      "type": "string",
                      "enum": [
                        "CANDIDATE"
                      ]
                    },
                    "valid": {
                      "type": "boolean"
                    },
                    "allowed": {
                      "type": "boolean"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "recommendations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "approvalRequirements": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      }
                    },
                    "resolvedResultKeys": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "publishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "evaluatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "durationMs": {
                      "type": "number"
                    },
                    "evaluatedRuleCount": {
                      "type": "integer"
                    },
                    "evaluatedSubjectCount": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Check whether a published product can be added to a Quote"
      }
    },
    "/api/v1/carts/{cartId}/items": {
      "post": {
        "operationId": "addCartItem",
        "summary": "Add a quote item",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "parentCartItemId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "productCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "componentCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "quantity": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "attributes": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "externalPrices": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "chargeCode": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$"
                        },
                        "amount": {
                          "type": "number"
                        },
                        "listAmount": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "externalRef": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "chargeCode",
                        "amount"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "productCode",
                  "quantity"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Add a published product to a Quote"
      }
    },
    "/api/v1/carts/{cartId}/items/copy": {
      "post": {
        "operationId": "copyCartConfiguration",
        "summary": "Copy a configuration",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "source": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "SUBSCRIPTION",
                          "CART_ITEM"
                        ]
                      },
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "cartId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      }
                    },
                    "required": [
                      "type",
                      "id"
                    ],
                    "additionalProperties": false
                  },
                  "set": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "source"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "rootItemId",
                    "source",
                    "items",
                    "skippedValues",
                    "cartVersion",
                    "validationStatus",
                    "validationIssues",
                    "validationIssueCount",
                    "pricing"
                  ],
                  "properties": {
                    "rootItemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "source": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "id",
                        "itemId",
                        "itemName"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "CART_ITEM"
                          ]
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "itemId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "itemName": {
                          "type": "string"
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "sourceItemId",
                          "itemId",
                          "itemName",
                          "componentRoleCode",
                          "productCode"
                        ],
                        "properties": {
                          "sourceItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "componentRoleCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productCode": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "skippedValues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "sourceItemId",
                          "itemName",
                          "attributeCode",
                          "unitNumber",
                          "reason"
                        ],
                        "properties": {
                          "sourceItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "attributeCode": {
                            "type": "string"
                          },
                          "unitNumber": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "NOT_ALLOWED"
                            ]
                          }
                        }
                      }
                    },
                    "cartVersion": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_VALIDATED",
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "maxItems": 50,
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "validationIssueCount": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "pricing": {
                      "type": "string",
                      "enum": [
                        "NOT_PRICED"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Copy an existing site, subscription or quote item configuration into a new-sale Quote"
      }
    },
    "/api/v1/carts/{cartId}/items/bulk": {
      "post": {
        "operationId": "bulkAddCartItems",
        "summary": "Add several quote items",
        "tags": [
          "Quote workspace"
        ],
        "description": "Adds every item as one change: all are added or none, and a failing item is named by its position. Each item is a top-level product with its quantity and values.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "productCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100000
                        },
                        "attributes": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "productCode",
                        "quantity"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "items"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "cartId",
                    "cartVersion",
                    "items"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartVersion": {
                      "type": "integer"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartId",
                          "parentCartItemId",
                          "sourceCartItemId",
                          "sourceServiceId",
                          "sourceDeliverableItemId",
                          "sourceComponentType",
                          "sourceComponentId",
                          "componentRoleCode",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "itemName",
                          "productVariantId",
                          "productVariantCode",
                          "productDefinitionId",
                          "productDefinitionCode",
                          "orderProductType",
                          "cataloguePublishRunId",
                          "catalogueViewId",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "attributes",
                          "facts",
                          "charges",
                          "priceSnapshot",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceDeliverableItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "componentRoleCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "productVariantId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productVariantCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "orderProductType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "SUBSCRIPTION",
                                  "DELIVERABLE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cataloguePublishRunId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ADD",
                              "NO_CHANGE",
                              "MODIFY",
                              "REMOVE"
                            ]
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string",
                            "enum": [
                              "MULTIPLIER",
                              "UNIT"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "charges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "chargeCode",
                                "name",
                                "chargeType",
                                "pricingRole",
                                "chargeSource",
                                "discountType",
                                "parentChargeId",
                                "ratingMode",
                                "amount",
                                "unitPrice",
                                "quantity",
                                "currency",
                                "billingPeriod",
                                "sourceChargeDefinitionId",
                                "sourcePricebookEntryId",
                                "sourcePricingRuleId",
                                "activatedByRuleIds",
                                "reasonCode",
                                "approvalStatus",
                                "priceDetails"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "chargeCode": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "chargeType": {
                                  "type": "string",
                                  "enum": [
                                    "ONE_TIME",
                                    "RECURRING"
                                  ]
                                },
                                "pricingRole": {
                                  "type": "string",
                                  "enum": [
                                    "CHARGE",
                                    "DISCOUNT",
                                    "SURCHARGE"
                                  ]
                                },
                                "chargeSource": {
                                  "type": "string",
                                  "enum": [
                                    "BASE_PRICE",
                                    "CATALOGUE_DISCOUNT",
                                    "CATALOGUE_WAIVER",
                                    "CATALOGUE_SURCHARGE",
                                    "DISCRETIONARY_DISCOUNT",
                                    "MANUAL_CHARGE",
                                    "EXTERNAL_PRICE"
                                  ]
                                },
                                "discountType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "AMOUNT",
                                        "PERCENT",
                                        "WAIVE"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "parentChargeId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "ratingMode": {
                                  "type": "string",
                                  "enum": [
                                    "CART",
                                    "METERED"
                                  ]
                                },
                                "amount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unitPrice": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "quantity": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "billingPeriod": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceChargeDefinitionId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricebookEntryId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricingRuleId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activatedByRuleIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "reasonCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvalStatus": {
                                  "type": "string"
                                },
                                "priceDetails": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            }
                          },
                          "priceSnapshot": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "externalPrices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "chargeCode",
                                "amount",
                                "listAmount",
                                "externalRef"
                              ],
                              "properties": {
                                "chargeCode": {
                                  "type": "string"
                                },
                                "amount": {
                                  "type": "number"
                                },
                                "listAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                          },
                          "status": {
                            "type": "string",
                            "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/change-quantity": {
      "post": {
        "operationId": "changeCartItemQuantity",
        "summary": "Change item quantity",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "quantity": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100000
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "quantity"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Change the quantity of a quote item."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/change-variant": {
      "post": {
        "operationId": "changeCartItemVariant",
        "summary": "Change item variant",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "productCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "productCode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Change the selected variant of one Quote product"
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/change-product": {
      "post": {
        "operationId": "changeCartItemProduct",
        "summary": "Change component product",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "productCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "productCode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Change the selected product of one Quote component"
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/units/bulk-upsert": {
      "post": {
        "operationId": "bulkUpsertCartItemUnits",
        "summary": "Update units in bulk",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rows": {
                    "minItems": 1,
                    "maxItems": 10000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "unitNumber": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100000
                        },
                        "attributes": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "required": [
                        "unitNumber"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "rows"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "summary",
                    "itemsUpdated",
                    "validationStatus",
                    "validationIssues"
                  ],
                  "properties": {
                    "summary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "expectedUnits",
                        "activeUnits",
                        "completeUnits",
                        "incompleteUnits",
                        "missingUnits",
                        "excessUnits",
                        "removedUnits",
                        "firstIncompleteUnitNumber",
                        "firstMissingUnitNumber",
                        "firstExcessUnitNumber",
                        "validationStatus",
                        "validationIssues"
                      ],
                      "properties": {
                        "expectedUnits": {
                          "type": "integer"
                        },
                        "activeUnits": {
                          "type": "integer"
                        },
                        "completeUnits": {
                          "type": "integer"
                        },
                        "incompleteUnits": {
                          "type": "integer"
                        },
                        "missingUnits": {
                          "type": "integer"
                        },
                        "excessUnits": {
                          "type": "integer"
                        },
                        "removedUnits": {
                          "type": "integer"
                        },
                        "firstIncompleteUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "firstMissingUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "firstExcessUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "validationStatus": {
                          "type": "string",
                          "enum": [
                            "NOT_VALIDATED",
                            "VALID",
                            "HAS_WARNINGS",
                            "HAS_ERRORS"
                          ]
                        },
                        "validationIssues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "severity",
                              "message",
                              "scope",
                              "source",
                              "details"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "INFO"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "CART_ITEM",
                                  "ADDON_GROUP",
                                  "COMPONENT"
                                ]
                              },
                              "cartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "source": {
                                "type": "string"
                              },
                              "details": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        }
                      }
                    },
                    "itemsUpdated": {
                      "type": "integer"
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_VALIDATED",
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Replace the configuration of several units in one request. All changes apply or none do."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/units/configure": {
      "post": {
        "operationId": "configureCartItemUnits",
        "summary": "Configure units",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rows": {
                    "minItems": 1,
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "unitNumber": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100000
                        },
                        "set": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "clear": {
                          "maxItems": 250,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[a-z][a-z0-9_]{0,63}$"
                          }
                        }
                      },
                      "required": [
                        "unitNumber"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "rows"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Set or clear values on units, identified by unit number."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/units/bulk-remove": {
      "post": {
        "operationId": "bulkRemoveCartItemUnits",
        "summary": "Remove units in bulk",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "unitIds": {
                    "minItems": 1,
                    "maxItems": 10000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  }
                },
                "required": [
                  "unitIds"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "summary",
                    "itemsRemoved",
                    "validationStatus",
                    "validationIssues"
                  ],
                  "properties": {
                    "summary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "expectedUnits",
                        "activeUnits",
                        "completeUnits",
                        "incompleteUnits",
                        "missingUnits",
                        "excessUnits",
                        "removedUnits",
                        "firstIncompleteUnitNumber",
                        "firstMissingUnitNumber",
                        "firstExcessUnitNumber",
                        "validationStatus",
                        "validationIssues"
                      ],
                      "properties": {
                        "expectedUnits": {
                          "type": "integer"
                        },
                        "activeUnits": {
                          "type": "integer"
                        },
                        "completeUnits": {
                          "type": "integer"
                        },
                        "incompleteUnits": {
                          "type": "integer"
                        },
                        "missingUnits": {
                          "type": "integer"
                        },
                        "excessUnits": {
                          "type": "integer"
                        },
                        "removedUnits": {
                          "type": "integer"
                        },
                        "firstIncompleteUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "firstMissingUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "firstExcessUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "validationStatus": {
                          "type": "string",
                          "enum": [
                            "NOT_VALIDATED",
                            "VALID",
                            "HAS_WARNINGS",
                            "HAS_ERRORS"
                          ]
                        },
                        "validationIssues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "severity",
                              "message",
                              "scope",
                              "source",
                              "details"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "INFO"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "CART_ITEM",
                                  "ADDON_GROUP",
                                  "COMPONENT"
                                ]
                              },
                              "cartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "source": {
                                "type": "string"
                              },
                              "details": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        }
                      }
                    },
                    "itemsUpdated": {
                      "type": "integer"
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_VALIDATED",
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "itemsRemoved": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Remove selected units in one request. All changes apply or none do."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/units/remove-excess": {
      "post": {
        "operationId": "removeExcessCartItemUnits",
        "summary": "Remove excess units",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "summary",
                    "itemsRemoved",
                    "validationStatus",
                    "validationIssues"
                  ],
                  "properties": {
                    "summary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "expectedUnits",
                        "activeUnits",
                        "completeUnits",
                        "incompleteUnits",
                        "missingUnits",
                        "excessUnits",
                        "removedUnits",
                        "firstIncompleteUnitNumber",
                        "firstMissingUnitNumber",
                        "firstExcessUnitNumber",
                        "validationStatus",
                        "validationIssues"
                      ],
                      "properties": {
                        "expectedUnits": {
                          "type": "integer"
                        },
                        "activeUnits": {
                          "type": "integer"
                        },
                        "completeUnits": {
                          "type": "integer"
                        },
                        "incompleteUnits": {
                          "type": "integer"
                        },
                        "missingUnits": {
                          "type": "integer"
                        },
                        "excessUnits": {
                          "type": "integer"
                        },
                        "removedUnits": {
                          "type": "integer"
                        },
                        "firstIncompleteUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "firstMissingUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "firstExcessUnitNumber": {
                          "anyOf": [
                            {
                              "type": "integer"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "validationStatus": {
                          "type": "string",
                          "enum": [
                            "NOT_VALIDATED",
                            "VALID",
                            "HAS_WARNINGS",
                            "HAS_ERRORS"
                          ]
                        },
                        "validationIssues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "severity",
                              "message",
                              "scope",
                              "source",
                              "details"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "INFO"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "CART_ITEM",
                                  "ADDON_GROUP",
                                  "COMPONENT"
                                ]
                              },
                              "cartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "source": {
                                "type": "string"
                              },
                              "details": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        }
                      }
                    },
                    "itemsUpdated": {
                      "type": "integer"
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_VALIDATED",
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "itemsRemoved": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Remove the units above the item quantity in one request."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/units/{cartItemUnitId}": {
      "put": {
        "operationId": "replaceCartItemUnitAttributes",
        "summary": "Replace a unit",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "attributes": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "attributes"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemUnitId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartItemId",
                    "unitNumber",
                    "attributes",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartItemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "unitNumber": {
                      "type": "integer"
                    },
                    "unitLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "REMOVED"
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Replace the configuration of one unit."
      },
      "delete": {
        "operationId": "removeCartItemUnit",
        "summary": "Remove a unit",
        "tags": [
          "Quote workspace"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemUnitId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Remove one unit from a quote item."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/units/{cartItemUnitId}/restore": {
      "post": {
        "operationId": "restoreCartItemUnit",
        "summary": "Restore a unit",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemUnitId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartItemId",
                    "unitNumber",
                    "attributes",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartItemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "unitNumber": {
                      "type": "integer"
                    },
                    "unitLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "REMOVED"
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Restore a removed unit that came from an existing order or subscription."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/configure": {
      "post": {
        "operationId": "configureCartItem",
        "summary": "Configure a quote item",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "set": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "clear": {
                    "maxItems": 250,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                    }
                  },
                  "externalPrices": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "chargeCode": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$"
                        },
                        "amount": {
                          "type": "number"
                        },
                        "listAmount": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "externalRef": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "chargeCode",
                        "amount"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Set or clear simple configuration values on a Quote item"
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/non-commercial-attributes": {
      "patch": {
        "operationId": "updateCartItemNonCommercialAttributes",
        "summary": "Update item service details",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "set": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "clear": {
                    "maxItems": 250,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z][a-z0-9_]{0,63}$"
                    }
                  },
                  "units": {
                    "maxItems": 10000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "unitId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "set": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "clear": {
                          "maxItems": 250,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[a-z][a-z0-9_]{0,63}$"
                          }
                        }
                      },
                      "required": [
                        "unitId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "cartId",
                    "cartVersion",
                    "changed",
                    "items"
                  ],
                  "properties": {
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartVersion": {
                      "type": "integer",
                      "description": "Unchanged when nothing changed, or when the values were written to services of an ordered Quote."
                    },
                    "changed": {
                      "type": "boolean"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "cartItemId",
                          "storedOn",
                          "changed",
                          "item",
                          "units",
                          "changedServiceIds"
                        ],
                        "properties": {
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "storedOn": {
                            "type": "string",
                            "enum": [
                              "QUOTE",
                              "SERVICE"
                            ],
                            "description": "Where the values live: on the Quote while it is open, on the item's Service once it is ordered."
                          },
                          "changed": {
                            "type": "boolean"
                          },
                          "item": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "cartId",
                              "parentCartItemId",
                              "sourceCartItemId",
                              "sourceServiceId",
                              "sourceDeliverableItemId",
                              "sourceComponentType",
                              "sourceComponentId",
                              "componentRoleCode",
                              "itemType",
                              "itemId",
                              "itemCode",
                              "itemName",
                              "productVariantId",
                              "productVariantCode",
                              "productDefinitionId",
                              "productDefinitionCode",
                              "orderProductType",
                              "cataloguePublishRunId",
                              "catalogueViewId",
                              "action",
                              "quantity",
                              "quantityStrategy",
                              "attributes",
                              "facts",
                              "charges",
                              "priceSnapshot",
                              "status",
                              "createdBy",
                              "updatedBy",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cartId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "parentCartItemId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceCartItemId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceDeliverableItemId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceComponentType": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceComponentId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "componentRoleCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "itemType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "itemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "itemCode": {
                                "type": "string"
                              },
                              "itemName": {
                                "type": "string"
                              },
                              "productVariantId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "productVariantCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "productDefinitionId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "productDefinitionCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "orderProductType": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "SUBSCRIPTION",
                                      "DELIVERABLE"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "cataloguePublishRunId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "catalogueViewId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "action": {
                                "type": "string",
                                "enum": [
                                  "ADD",
                                  "NO_CHANGE",
                                  "MODIFY",
                                  "REMOVE"
                                ]
                              },
                              "quantity": {
                                "type": "integer"
                              },
                              "quantityStrategy": {
                                "type": "string",
                                "enum": [
                                  "MULTIPLIER",
                                  "UNIT"
                                ]
                              },
                              "attributes": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "facts": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "charges": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "chargeCode",
                                    "name",
                                    "chargeType",
                                    "pricingRole",
                                    "chargeSource",
                                    "discountType",
                                    "parentChargeId",
                                    "ratingMode",
                                    "amount",
                                    "unitPrice",
                                    "quantity",
                                    "currency",
                                    "billingPeriod",
                                    "sourceChargeDefinitionId",
                                    "sourcePricebookEntryId",
                                    "sourcePricingRuleId",
                                    "activatedByRuleIds",
                                    "reasonCode",
                                    "approvalStatus",
                                    "priceDetails"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "chargeCode": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "chargeType": {
                                      "type": "string",
                                      "enum": [
                                        "ONE_TIME",
                                        "RECURRING"
                                      ]
                                    },
                                    "pricingRole": {
                                      "type": "string",
                                      "enum": [
                                        "CHARGE",
                                        "DISCOUNT",
                                        "SURCHARGE"
                                      ]
                                    },
                                    "chargeSource": {
                                      "type": "string",
                                      "enum": [
                                        "BASE_PRICE",
                                        "CATALOGUE_DISCOUNT",
                                        "CATALOGUE_WAIVER",
                                        "CATALOGUE_SURCHARGE",
                                        "DISCRETIONARY_DISCOUNT",
                                        "MANUAL_CHARGE",
                                        "EXTERNAL_PRICE"
                                      ]
                                    },
                                    "discountType": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "AMOUNT",
                                            "PERCENT",
                                            "WAIVE"
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "parentChargeId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "ratingMode": {
                                      "type": "string",
                                      "enum": [
                                        "CART",
                                        "METERED"
                                      ]
                                    },
                                    "amount": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "unitPrice": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "quantity": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "billingPeriod": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "sourceChargeDefinitionId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "sourcePricebookEntryId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "sourcePricingRuleId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "activatedByRuleIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "uuid"
                                      }
                                    },
                                    "reasonCode": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "externalRef": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "approvalStatus": {
                                      "type": "string"
                                    },
                                    "priceDetails": {
                                      "type": "object",
                                      "additionalProperties": true
                                    }
                                  }
                                }
                              },
                              "priceSnapshot": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "externalPrices": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "chargeCode",
                                    "amount",
                                    "listAmount",
                                    "externalRef"
                                  ],
                                  "properties": {
                                    "chargeCode": {
                                      "type": "string"
                                    },
                                    "amount": {
                                      "type": "number"
                                    },
                                    "listAmount": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "externalRef": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              "instanceLabel": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "naming": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "instanceNoun",
                                  "instanceLabelAttributes",
                                  "unitNoun",
                                  "unitLabelAttributes"
                                ],
                                "properties": {
                                  "instanceNoun": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "singular",
                                          "plural"
                                        ],
                                        "properties": {
                                          "singular": {
                                            "type": "string"
                                          },
                                          "plural": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "instanceLabelAttributes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "unitNoun": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "singular",
                                          "plural"
                                        ],
                                        "properties": {
                                          "singular": {
                                            "type": "string"
                                          },
                                          "plural": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "unitLabelAttributes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "orderId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                              },
                              "status": {
                                "type": "string",
                                "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                              },
                              "createdBy": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "updatedBy": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          },
                          "units": {
                            "type": "array",
                            "description": "The unit rows named in the request, as they read after the update.",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "unitNumber",
                                "status",
                                "attributes"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "unitNumber": {
                                  "type": "integer"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "ACTIVE",
                                    "REMOVED"
                                  ]
                                },
                                "attributes": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            }
                          },
                          "changedServiceIds": {
                            "type": "array",
                            "description": "Services changed by the request. Empty while the values are stored on the Quote.",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Set or clear service details on a quote item and its units, without changing price or approval."
      }
    },
    "/api/v1/carts/{cartId}/non-commercial-attributes/bulk-update": {
      "post": {
        "operationId": "bulkUpdateCartNonCommercialAttributes",
        "summary": "Update service details in bulk",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "cartItemId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "set": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "clear": {
                          "maxItems": 250,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[a-z][a-z0-9_]{0,63}$"
                          }
                        },
                        "units": {
                          "maxItems": 10000,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "unitId": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "set": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string"
                                },
                                "additionalProperties": {}
                              },
                              "clear": {
                                "maxItems": 250,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "pattern": "^[a-z][a-z0-9_]{0,63}$"
                                }
                              }
                            },
                            "required": [
                              "unitId"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "cartItemId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "items"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "cartId",
                    "cartVersion",
                    "changed",
                    "items"
                  ],
                  "properties": {
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartVersion": {
                      "type": "integer",
                      "description": "Unchanged when nothing changed, or when the values were written to services of an ordered Quote."
                    },
                    "changed": {
                      "type": "boolean"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "cartItemId",
                          "storedOn",
                          "changed",
                          "item",
                          "units",
                          "changedServiceIds"
                        ],
                        "properties": {
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "storedOn": {
                            "type": "string",
                            "enum": [
                              "QUOTE",
                              "SERVICE"
                            ],
                            "description": "Where the values live: on the Quote while it is open, on the item's Service once it is ordered."
                          },
                          "changed": {
                            "type": "boolean"
                          },
                          "item": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "cartId",
                              "parentCartItemId",
                              "sourceCartItemId",
                              "sourceServiceId",
                              "sourceDeliverableItemId",
                              "sourceComponentType",
                              "sourceComponentId",
                              "componentRoleCode",
                              "itemType",
                              "itemId",
                              "itemCode",
                              "itemName",
                              "productVariantId",
                              "productVariantCode",
                              "productDefinitionId",
                              "productDefinitionCode",
                              "orderProductType",
                              "cataloguePublishRunId",
                              "catalogueViewId",
                              "action",
                              "quantity",
                              "quantityStrategy",
                              "attributes",
                              "facts",
                              "charges",
                              "priceSnapshot",
                              "status",
                              "createdBy",
                              "updatedBy",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "cartId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "parentCartItemId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceCartItemId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceDeliverableItemId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceComponentType": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceComponentId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "componentRoleCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "itemType": {
                                "type": "string",
                                "enum": [
                                  "PRODUCT_OFFERING",
                                  "PACKAGE",
                                  "SOLUTION"
                                ]
                              },
                              "itemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "itemCode": {
                                "type": "string"
                              },
                              "itemName": {
                                "type": "string"
                              },
                              "productVariantId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "productVariantCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "productDefinitionId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "productDefinitionCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "orderProductType": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "SUBSCRIPTION",
                                      "DELIVERABLE"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "cataloguePublishRunId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "catalogueViewId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "action": {
                                "type": "string",
                                "enum": [
                                  "ADD",
                                  "NO_CHANGE",
                                  "MODIFY",
                                  "REMOVE"
                                ]
                              },
                              "quantity": {
                                "type": "integer"
                              },
                              "quantityStrategy": {
                                "type": "string",
                                "enum": [
                                  "MULTIPLIER",
                                  "UNIT"
                                ]
                              },
                              "attributes": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "facts": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "charges": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "chargeCode",
                                    "name",
                                    "chargeType",
                                    "pricingRole",
                                    "chargeSource",
                                    "discountType",
                                    "parentChargeId",
                                    "ratingMode",
                                    "amount",
                                    "unitPrice",
                                    "quantity",
                                    "currency",
                                    "billingPeriod",
                                    "sourceChargeDefinitionId",
                                    "sourcePricebookEntryId",
                                    "sourcePricingRuleId",
                                    "activatedByRuleIds",
                                    "reasonCode",
                                    "approvalStatus",
                                    "priceDetails"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "chargeCode": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "chargeType": {
                                      "type": "string",
                                      "enum": [
                                        "ONE_TIME",
                                        "RECURRING"
                                      ]
                                    },
                                    "pricingRole": {
                                      "type": "string",
                                      "enum": [
                                        "CHARGE",
                                        "DISCOUNT",
                                        "SURCHARGE"
                                      ]
                                    },
                                    "chargeSource": {
                                      "type": "string",
                                      "enum": [
                                        "BASE_PRICE",
                                        "CATALOGUE_DISCOUNT",
                                        "CATALOGUE_WAIVER",
                                        "CATALOGUE_SURCHARGE",
                                        "DISCRETIONARY_DISCOUNT",
                                        "MANUAL_CHARGE",
                                        "EXTERNAL_PRICE"
                                      ]
                                    },
                                    "discountType": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "enum": [
                                            "AMOUNT",
                                            "PERCENT",
                                            "WAIVE"
                                          ]
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "parentChargeId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "ratingMode": {
                                      "type": "string",
                                      "enum": [
                                        "CART",
                                        "METERED"
                                      ]
                                    },
                                    "amount": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "unitPrice": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "quantity": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "currency": {
                                      "type": "string"
                                    },
                                    "billingPeriod": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "sourceChargeDefinitionId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "sourcePricebookEntryId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "sourcePricingRuleId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "activatedByRuleIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "format": "uuid"
                                      }
                                    },
                                    "reasonCode": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "externalRef": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "approvalStatus": {
                                      "type": "string"
                                    },
                                    "priceDetails": {
                                      "type": "object",
                                      "additionalProperties": true
                                    }
                                  }
                                }
                              },
                              "priceSnapshot": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "externalPrices": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "chargeCode",
                                    "amount",
                                    "listAmount",
                                    "externalRef"
                                  ],
                                  "properties": {
                                    "chargeCode": {
                                      "type": "string"
                                    },
                                    "amount": {
                                      "type": "number"
                                    },
                                    "listAmount": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "externalRef": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              "instanceLabel": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "naming": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "instanceNoun",
                                  "instanceLabelAttributes",
                                  "unitNoun",
                                  "unitLabelAttributes"
                                ],
                                "properties": {
                                  "instanceNoun": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "singular",
                                          "plural"
                                        ],
                                        "properties": {
                                          "singular": {
                                            "type": "string"
                                          },
                                          "plural": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "instanceLabelAttributes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "unitNoun": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "singular",
                                          "plural"
                                        ],
                                        "properties": {
                                          "singular": {
                                            "type": "string"
                                          },
                                          "plural": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "unitLabelAttributes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "orderId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                              },
                              "status": {
                                "type": "string",
                                "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                              },
                              "createdBy": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "updatedBy": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          },
                          "units": {
                            "type": "array",
                            "description": "The unit rows named in the request, as they read after the update.",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "unitNumber",
                                "status",
                                "attributes"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "unitNumber": {
                                  "type": "integer"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "ACTIVE",
                                    "REMOVED"
                                  ]
                                },
                                "attributes": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            }
                          },
                          "changedServiceIds": {
                            "type": "array",
                            "description": "Services changed by the request. Empty while the values are stored on the Quote.",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Set or clear service details on many quote items and units in one request, without changing price or approval."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/attribute-groups/{groupCode}": {
      "put": {
        "operationId": "replaceCartItemAttributeGroup",
        "summary": "Replace an attribute group",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "rows": {
                    "maxItems": 10000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {}
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "rows"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]*$"
            },
            "in": "path",
            "name": "groupCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Replace one repeatable attribute group on a Quote item"
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/addons": {
      "put": {
        "operationId": "configureCartItemAddons",
        "summary": "Set item add-ons",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "items": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "relationshipId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "targetType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT_OFFERING",
                            "PACKAGE",
                            "SOLUTION"
                          ]
                        },
                        "targetRef": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64
                        },
                        "addonGroupCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100000
                        },
                        "attributes": {
                          "default": {},
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "parentItem",
                    "items",
                    "validationStatus",
                    "validationIssues"
                  ],
                  "properties": {
                    "parentItem": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "cartId",
                        "parentCartItemId",
                        "sourceCartItemId",
                        "sourceServiceId",
                        "sourceDeliverableItemId",
                        "sourceComponentType",
                        "sourceComponentId",
                        "componentRoleCode",
                        "itemType",
                        "itemId",
                        "itemCode",
                        "itemName",
                        "productVariantId",
                        "productVariantCode",
                        "productDefinitionId",
                        "productDefinitionCode",
                        "orderProductType",
                        "cataloguePublishRunId",
                        "catalogueViewId",
                        "action",
                        "quantity",
                        "quantityStrategy",
                        "attributes",
                        "facts",
                        "charges",
                        "priceSnapshot",
                        "status",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "parentCartItemId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceCartItemId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceServiceId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceDeliverableItemId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceComponentType": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceComponentId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "componentRoleCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "itemType": {
                          "type": "string",
                          "enum": [
                            "PRODUCT_OFFERING",
                            "PACKAGE",
                            "SOLUTION"
                          ]
                        },
                        "itemId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "itemCode": {
                          "type": "string"
                        },
                        "itemName": {
                          "type": "string"
                        },
                        "productVariantId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "productVariantCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "productDefinitionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "productDefinitionCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderProductType": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "SUBSCRIPTION",
                                "DELIVERABLE"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cataloguePublishRunId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "catalogueViewId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "action": {
                          "type": "string",
                          "enum": [
                            "ADD",
                            "NO_CHANGE",
                            "MODIFY",
                            "REMOVE"
                          ]
                        },
                        "quantity": {
                          "type": "integer"
                        },
                        "quantityStrategy": {
                          "type": "string",
                          "enum": [
                            "MULTIPLIER",
                            "UNIT"
                          ]
                        },
                        "attributes": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "charges": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "chargeCode",
                              "name",
                              "chargeType",
                              "pricingRole",
                              "chargeSource",
                              "discountType",
                              "parentChargeId",
                              "ratingMode",
                              "amount",
                              "unitPrice",
                              "quantity",
                              "currency",
                              "billingPeriod",
                              "sourceChargeDefinitionId",
                              "sourcePricebookEntryId",
                              "sourcePricingRuleId",
                              "activatedByRuleIds",
                              "reasonCode",
                              "approvalStatus",
                              "priceDetails"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "chargeCode": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "chargeType": {
                                "type": "string",
                                "enum": [
                                  "ONE_TIME",
                                  "RECURRING"
                                ]
                              },
                              "pricingRole": {
                                "type": "string",
                                "enum": [
                                  "CHARGE",
                                  "DISCOUNT",
                                  "SURCHARGE"
                                ]
                              },
                              "chargeSource": {
                                "type": "string",
                                "enum": [
                                  "BASE_PRICE",
                                  "CATALOGUE_DISCOUNT",
                                  "CATALOGUE_WAIVER",
                                  "CATALOGUE_SURCHARGE",
                                  "DISCRETIONARY_DISCOUNT",
                                  "MANUAL_CHARGE",
                                  "EXTERNAL_PRICE"
                                ]
                              },
                              "discountType": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "enum": [
                                      "AMOUNT",
                                      "PERCENT",
                                      "WAIVE"
                                    ]
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "parentChargeId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "ratingMode": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "METERED"
                                ]
                              },
                              "amount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitPrice": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "quantity": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "currency": {
                                "type": "string"
                              },
                              "billingPeriod": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourceChargeDefinitionId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourcePricebookEntryId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "sourcePricingRuleId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "activatedByRuleIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "format": "uuid"
                                }
                              },
                              "reasonCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "externalRef": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "approvalStatus": {
                                "type": "string"
                              },
                              "priceDetails": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        },
                        "priceSnapshot": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "externalPrices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "chargeCode",
                              "amount",
                              "listAmount",
                              "externalRef"
                            ],
                            "properties": {
                              "chargeCode": {
                                "type": "string"
                              },
                              "amount": {
                                "type": "number"
                              },
                              "listAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "externalRef": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "instanceLabel": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "naming": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "instanceNoun",
                            "instanceLabelAttributes",
                            "unitNoun",
                            "unitLabelAttributes"
                          ],
                          "properties": {
                            "instanceNoun": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "singular",
                                    "plural"
                                  ],
                                  "properties": {
                                    "singular": {
                                      "type": "string"
                                    },
                                    "plural": {
                                      "type": "string"
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "instanceLabelAttributes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "unitNoun": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "singular",
                                    "plural"
                                  ],
                                  "properties": {
                                    "singular": {
                                      "type": "string"
                                    },
                                    "plural": {
                                      "type": "string"
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "unitLabelAttributes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "orderId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                        },
                        "status": {
                          "type": "string",
                          "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartId",
                          "parentCartItemId",
                          "sourceCartItemId",
                          "sourceServiceId",
                          "sourceDeliverableItemId",
                          "sourceComponentType",
                          "sourceComponentId",
                          "componentRoleCode",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "itemName",
                          "productVariantId",
                          "productVariantCode",
                          "productDefinitionId",
                          "productDefinitionCode",
                          "orderProductType",
                          "cataloguePublishRunId",
                          "catalogueViewId",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "attributes",
                          "facts",
                          "charges",
                          "priceSnapshot",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceDeliverableItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "componentRoleCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "productVariantId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productVariantCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "orderProductType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "SUBSCRIPTION",
                                  "DELIVERABLE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cataloguePublishRunId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ADD",
                              "NO_CHANGE",
                              "MODIFY",
                              "REMOVE"
                            ]
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string",
                            "enum": [
                              "MULTIPLIER",
                              "UNIT"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "charges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "chargeCode",
                                "name",
                                "chargeType",
                                "pricingRole",
                                "chargeSource",
                                "discountType",
                                "parentChargeId",
                                "ratingMode",
                                "amount",
                                "unitPrice",
                                "quantity",
                                "currency",
                                "billingPeriod",
                                "sourceChargeDefinitionId",
                                "sourcePricebookEntryId",
                                "sourcePricingRuleId",
                                "activatedByRuleIds",
                                "reasonCode",
                                "approvalStatus",
                                "priceDetails"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "chargeCode": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "chargeType": {
                                  "type": "string",
                                  "enum": [
                                    "ONE_TIME",
                                    "RECURRING"
                                  ]
                                },
                                "pricingRole": {
                                  "type": "string",
                                  "enum": [
                                    "CHARGE",
                                    "DISCOUNT",
                                    "SURCHARGE"
                                  ]
                                },
                                "chargeSource": {
                                  "type": "string",
                                  "enum": [
                                    "BASE_PRICE",
                                    "CATALOGUE_DISCOUNT",
                                    "CATALOGUE_WAIVER",
                                    "CATALOGUE_SURCHARGE",
                                    "DISCRETIONARY_DISCOUNT",
                                    "MANUAL_CHARGE",
                                    "EXTERNAL_PRICE"
                                  ]
                                },
                                "discountType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "AMOUNT",
                                        "PERCENT",
                                        "WAIVE"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "parentChargeId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "ratingMode": {
                                  "type": "string",
                                  "enum": [
                                    "CART",
                                    "METERED"
                                  ]
                                },
                                "amount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unitPrice": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "quantity": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "billingPeriod": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceChargeDefinitionId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricebookEntryId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricingRuleId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activatedByRuleIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "reasonCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvalStatus": {
                                  "type": "string"
                                },
                                "priceDetails": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            }
                          },
                          "priceSnapshot": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "externalPrices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "chargeCode",
                                "amount",
                                "listAmount",
                                "externalRef"
                              ],
                              "properties": {
                                "chargeCode": {
                                  "type": "string"
                                },
                                "amount": {
                                  "type": "number"
                                },
                                "listAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                          },
                          "status": {
                            "type": "string",
                            "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_VALIDATED",
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Replace the selected add-ons beneath one Quote product"
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/restore": {
      "post": {
        "operationId": "restoreCartItem",
        "summary": "Restore a quote item",
        "tags": [
          "Quote workspace"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Restore one removed Quote item"
      }
    },
    "/api/v1/carts/{cartId}/price": {
      "post": {
        "operationId": "priceCart",
        "summary": "Price a quote",
        "tags": [
          "Commercial close"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "reviewedBasis": {
                    "type": "object",
                    "properties": {
                      "discountAuthorityDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "commercialDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "approvalRequestId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "approvalDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "commercialDigest"
                    ],
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "cart",
                    "totals",
                    "pricingIssues",
                    "benchmark",
                    "ruleEvaluation"
                  ],
                  "properties": {
                    "cart": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "cartNumber",
                        "name",
                        "cartType",
                        "status",
                        "accountId",
                        "primaryContactId",
                        "assignedSellerId",
                        "assignedAt",
                        "assignedBy",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "agreementId",
                        "agreementCode",
                        "agreementName",
                        "discretionaryDiscountsAllowed",
                        "sourceCartId",
                        "sourceOrderId",
                        "sourceSubscriptionId",
                        "orderStatus",
                        "orderedItemCount",
                        "changeCode",
                        "attributes",
                        "validationStatus",
                        "validationIssues",
                        "ruleResults",
                        "pricedAt",
                        "expiresAt",
                        "acceptedAt",
                        "version",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartNumber": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cartType": {
                          "type": "string",
                          "enum": [
                            "NEW_SALE",
                            "SUBSCRIPTION_CHANGE",
                            "ORDER_AMENDMENT"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "DRAFT",
                            "PRICED",
                            "PENDING_APPROVAL",
                            "APPROVED",
                            "ACCEPTED",
                            "ORDERED",
                            "CANCELLED",
                            "EXPIRED"
                          ]
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "primaryContactId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedSellerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementName": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "discretionaryDiscountsAllowed": {
                          "type": "boolean"
                        },
                        "sourceCartId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceOrderId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceSubscriptionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderStatus": {
                          "type": "string",
                          "enum": [
                            "NOT_ORDERED",
                            "PARTIALLY_ORDERED",
                            "ORDERED"
                          ],
                          "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                        },
                        "orderedItemCount": {
                          "type": "integer",
                          "description": "Number of top-level items already ordered."
                        },
                        "changeCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "attributes": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "validationStatus": {
                          "type": "string",
                          "enum": [
                            "VALID",
                            "HAS_WARNINGS",
                            "HAS_ERRORS"
                          ]
                        },
                        "validationIssues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "severity",
                              "message",
                              "scope",
                              "source",
                              "details"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "INFO"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "CART_ITEM",
                                  "ADDON_GROUP",
                                  "COMPONENT"
                                ]
                              },
                              "cartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "source": {
                                "type": "string"
                              },
                              "details": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        },
                        "ruleResults": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "pricedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "acceptedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "version": {
                          "type": "integer"
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency",
                        "oneTimeTotal",
                        "recurringTotalsByPeriod",
                        "meteredTariffCount",
                        "list",
                        "adjusted",
                        "sales"
                      ],
                      "properties": {
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oneTimeTotal": {
                          "type": "number"
                        },
                        "recurringTotalsByPeriod": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "billingPeriod",
                              "listAmount",
                              "adjustmentAmount",
                              "salesAmount"
                            ],
                            "properties": {
                              "billingPeriod": {
                                "type": "string"
                              },
                              "listAmount": {
                                "type": "number"
                              },
                              "adjustmentAmount": {
                                "type": "number"
                              },
                              "salesAmount": {
                                "type": "number"
                              }
                            }
                          }
                        },
                        "meteredTariffCount": {
                          "type": "integer"
                        },
                        "list": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "adjusted": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "sales": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    },
                    "pricingIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "benchmark": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "durationMs",
                        "itemCount",
                        "chargeCount"
                      ],
                      "properties": {
                        "durationMs": {
                          "type": "number"
                        },
                        "itemCount": {
                          "type": "integer"
                        },
                        "chargeCount": {
                          "type": "integer"
                        }
                      }
                    },
                    "ruleEvaluation": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "cartId",
                        "phase",
                        "valid",
                        "errors",
                        "warnings",
                        "recommendations",
                        "approvalRequirements",
                        "results",
                        "publishRunId",
                        "evaluatedAt",
                        "durationMs",
                        "evaluatedRuleCount",
                        "evaluatedSubjectCount"
                      ],
                      "properties": {
                        "cartId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "phase": {
                          "type": "string",
                          "enum": [
                            "CANDIDATE",
                            "IMMEDIATE",
                            "AFTER_PRICING",
                            "PRE_ACCEPT"
                          ]
                        },
                        "valid": {
                          "type": "boolean"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "severity",
                              "message",
                              "scope",
                              "source",
                              "details"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "INFO"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "CART_ITEM",
                                  "ADDON_GROUP",
                                  "COMPONENT"
                                ]
                              },
                              "cartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "source": {
                                "type": "string"
                              },
                              "details": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "severity",
                              "message",
                              "scope",
                              "source",
                              "details"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "INFO"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "CART_ITEM",
                                  "ADDON_GROUP",
                                  "COMPONENT"
                                ]
                              },
                              "cartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "source": {
                                "type": "string"
                              },
                              "details": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        },
                        "recommendations": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "ruleCode",
                              "category",
                              "outcome",
                              "reference"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "ruleCode": {
                                "type": "string"
                              },
                              "category": {
                                "type": "string",
                                "enum": [
                                  "ELIGIBILITY",
                                  "COMPATIBILITY",
                                  "VALIDATION",
                                  "RECOMMENDATION",
                                  "APPROVAL",
                                  "PRICING"
                                ]
                              },
                              "outcome": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "code",
                                  "message"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "ERROR",
                                      "WARNING",
                                      "RECOMMEND_PRODUCT",
                                      "REQUIRE_APPROVAL",
                                      "ACTIVATE_CHARGE",
                                      "SELECT_PRICE"
                                    ]
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "message": {
                                    "type": "string"
                                  },
                                  "targetChargeDefinitionId": {
                                    "type": "string"
                                  },
                                  "targetChargeDefinitionCode": {
                                    "type": "string"
                                  },
                                  "priceCode": {
                                    "type": "string"
                                  },
                                  "targetProductCodes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "remediation": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "type"
                                    ],
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "NONE",
                                          "ADD_PRODUCT",
                                          "REMOVE_PRODUCT",
                                          "CHANGE_ATTRIBUTE"
                                        ]
                                      },
                                      "productCode": {
                                        "type": "string"
                                      },
                                      "attributeCode": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "reference": {
                                "type": "object",
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "decisionRowCode": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "approvalRequirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "ruleCode",
                              "category",
                              "outcome",
                              "reference"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "ruleCode": {
                                "type": "string"
                              },
                              "category": {
                                "type": "string",
                                "enum": [
                                  "ELIGIBILITY",
                                  "COMPATIBILITY",
                                  "VALIDATION",
                                  "RECOMMENDATION",
                                  "APPROVAL",
                                  "PRICING"
                                ]
                              },
                              "outcome": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "code",
                                  "message"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "ERROR",
                                      "WARNING",
                                      "RECOMMEND_PRODUCT",
                                      "REQUIRE_APPROVAL",
                                      "ACTIVATE_CHARGE",
                                      "SELECT_PRICE"
                                    ]
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "message": {
                                    "type": "string"
                                  },
                                  "targetChargeDefinitionId": {
                                    "type": "string"
                                  },
                                  "targetChargeDefinitionCode": {
                                    "type": "string"
                                  },
                                  "priceCode": {
                                    "type": "string"
                                  },
                                  "targetProductCodes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "remediation": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "type"
                                    ],
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "NONE",
                                          "ADD_PRODUCT",
                                          "REMOVE_PRODUCT",
                                          "CHANGE_ATTRIBUTE"
                                        ]
                                      },
                                      "productCode": {
                                        "type": "string"
                                      },
                                      "attributeCode": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "reference": {
                                "type": "object",
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "decisionRowCode": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "results": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "key",
                              "ruleCode",
                              "category",
                              "outcome",
                              "reference"
                            ],
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "ruleCode": {
                                "type": "string"
                              },
                              "category": {
                                "type": "string",
                                "enum": [
                                  "ELIGIBILITY",
                                  "COMPATIBILITY",
                                  "VALIDATION",
                                  "RECOMMENDATION",
                                  "APPROVAL",
                                  "PRICING"
                                ]
                              },
                              "outcome": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "type",
                                  "code",
                                  "message"
                                ],
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "ERROR",
                                      "WARNING",
                                      "RECOMMEND_PRODUCT",
                                      "REQUIRE_APPROVAL",
                                      "ACTIVATE_CHARGE",
                                      "SELECT_PRICE"
                                    ]
                                  },
                                  "code": {
                                    "type": "string"
                                  },
                                  "message": {
                                    "type": "string"
                                  },
                                  "targetChargeDefinitionId": {
                                    "type": "string"
                                  },
                                  "targetChargeDefinitionCode": {
                                    "type": "string"
                                  },
                                  "priceCode": {
                                    "type": "string"
                                  },
                                  "targetProductCodes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "remediation": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "type"
                                    ],
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "NONE",
                                          "ADD_PRODUCT",
                                          "REMOVE_PRODUCT",
                                          "CHANGE_ATTRIBUTE"
                                        ]
                                      },
                                      "productCode": {
                                        "type": "string"
                                      },
                                      "attributeCode": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              },
                              "reference": {
                                "type": "object",
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "decisionRowCode": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "publishRunId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "evaluatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "durationMs": {
                          "type": "number"
                        },
                        "evaluatedRuleCount": {
                          "type": "integer"
                        },
                        "evaluatedSubjectCount": {
                          "type": "integer"
                        },
                        "version": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Price a configured quote."
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/external-prices/{chargeCode}": {
      "put": {
        "operationId": "setCartItemExternalPrice",
        "summary": "Set an external price",
        "tags": [
          "Quote workspace"
        ],
        "description": "Stores the amount a customer pricing engine supplied for one EXTERNAL charge. Other prices on the item are untouched. The Quote returns to DRAFT until it is priced again.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "number"
                  },
                  "listAmount": {
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "externalRef": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "amount"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$"
            },
            "in": "path",
            "name": "chargeCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
            },
            "in": "header",
            "name": "idempotency-key",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "operationId": "removeCartItemExternalPrice",
        "summary": "Remove an external price",
        "tags": [
          "Quote workspace"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "commandId",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "in": "query",
            "name": "expectedVersion",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$"
            },
            "in": "path",
            "name": "chargeCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
            },
            "in": "header",
            "name": "idempotency-key",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Remove one external price from a Quote item"
      }
    },
    "/api/v1/carts/{cartId}/items/{cartItemId}/external-prices": {
      "delete": {
        "operationId": "clearCartItemExternalPrices",
        "summary": "Clear external prices",
        "tags": [
          "Quote workspace"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "commandId",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "in": "query",
            "name": "expectedVersion",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartItemId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
            },
            "in": "header",
            "name": "idempotency-key",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "parentCartItemId",
                    "sourceCartItemId",
                    "sourceServiceId",
                    "sourceDeliverableItemId",
                    "sourceComponentType",
                    "sourceComponentId",
                    "componentRoleCode",
                    "itemType",
                    "itemId",
                    "itemCode",
                    "itemName",
                    "productVariantId",
                    "productVariantCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "orderProductType",
                    "cataloguePublishRunId",
                    "catalogueViewId",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "attributes",
                    "facts",
                    "charges",
                    "priceSnapshot",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCartItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceDeliverableItemId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentType": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceComponentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "componentRoleCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string",
                      "enum": [
                        "PRODUCT_OFFERING",
                        "PACKAGE",
                        "SOLUTION"
                      ]
                    },
                    "itemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "itemCode": {
                      "type": "string"
                    },
                    "itemName": {
                      "type": "string"
                    },
                    "productVariantId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productVariantCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productDefinitionCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderProductType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "SUBSCRIPTION",
                            "DELIVERABLE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cataloguePublishRunId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "catalogueViewId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "action": {
                      "type": "string",
                      "enum": [
                        "ADD",
                        "NO_CHANGE",
                        "MODIFY",
                        "REMOVE"
                      ]
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string",
                      "enum": [
                        "MULTIPLIER",
                        "UNIT"
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "facts": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "charges": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "chargeCode",
                          "name",
                          "chargeType",
                          "pricingRole",
                          "chargeSource",
                          "discountType",
                          "parentChargeId",
                          "ratingMode",
                          "amount",
                          "unitPrice",
                          "quantity",
                          "currency",
                          "billingPeriod",
                          "sourceChargeDefinitionId",
                          "sourcePricebookEntryId",
                          "sourcePricingRuleId",
                          "activatedByRuleIds",
                          "reasonCode",
                          "approvalStatus",
                          "priceDetails"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "chargeCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "chargeType": {
                            "type": "string",
                            "enum": [
                              "ONE_TIME",
                              "RECURRING"
                            ]
                          },
                          "pricingRole": {
                            "type": "string",
                            "enum": [
                              "CHARGE",
                              "DISCOUNT",
                              "SURCHARGE"
                            ]
                          },
                          "chargeSource": {
                            "type": "string",
                            "enum": [
                              "BASE_PRICE",
                              "CATALOGUE_DISCOUNT",
                              "CATALOGUE_WAIVER",
                              "CATALOGUE_SURCHARGE",
                              "DISCRETIONARY_DISCOUNT",
                              "MANUAL_CHARGE",
                              "EXTERNAL_PRICE"
                            ]
                          },
                          "discountType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "AMOUNT",
                                  "PERCENT",
                                  "WAIVE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentChargeId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "ratingMode": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "METERED"
                            ]
                          },
                          "amount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "unitPrice": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "quantity": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "type": "string"
                          },
                          "billingPeriod": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceChargeDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricebookEntryId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourcePricingRuleId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedByRuleIds": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid"
                            }
                          },
                          "reasonCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "approvalStatus": {
                            "type": "string"
                          },
                          "priceDetails": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "priceSnapshot": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "externalPrices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "chargeCode",
                          "amount",
                          "listAmount",
                          "externalRef"
                        ],
                        "properties": {
                          "chargeCode": {
                            "type": "string"
                          },
                          "amount": {
                            "type": "number"
                          },
                          "listAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "orderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                    },
                    "status": {
                      "type": "string",
                      "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Remove every external price from a Quote item"
      }
    },
    "/api/v1/carts/{cartId}/external-prices/bulk-upsert": {
      "post": {
        "operationId": "bulkUpsertCartExternalPrices",
        "summary": "Set external prices in bulk",
        "tags": [
          "Quote workspace"
        ],
        "description": "Each entry names a logical Quote item and EXTERNAL charge code. Prices not listed are untouched. Up to 1,000 entries.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "prices": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "cartItemId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "chargeCode": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$"
                        },
                        "amount": {
                          "type": "number"
                        },
                        "listAmount": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "externalRef": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "cartItemId",
                        "chargeCode",
                        "amount"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "prices"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
            },
            "in": "header",
            "name": "idempotency-key",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "cartVersion",
                    "items"
                  ],
                  "properties": {
                    "cartVersion": {
                      "type": "integer"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartId",
                          "parentCartItemId",
                          "sourceCartItemId",
                          "sourceServiceId",
                          "sourceDeliverableItemId",
                          "sourceComponentType",
                          "sourceComponentId",
                          "componentRoleCode",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "itemName",
                          "productVariantId",
                          "productVariantCode",
                          "productDefinitionId",
                          "productDefinitionCode",
                          "orderProductType",
                          "cataloguePublishRunId",
                          "catalogueViewId",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "attributes",
                          "facts",
                          "charges",
                          "priceSnapshot",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceDeliverableItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "componentRoleCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "productVariantId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productVariantCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "orderProductType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "SUBSCRIPTION",
                                  "DELIVERABLE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cataloguePublishRunId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ADD",
                              "NO_CHANGE",
                              "MODIFY",
                              "REMOVE"
                            ]
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string",
                            "enum": [
                              "MULTIPLIER",
                              "UNIT"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "charges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "chargeCode",
                                "name",
                                "chargeType",
                                "pricingRole",
                                "chargeSource",
                                "discountType",
                                "parentChargeId",
                                "ratingMode",
                                "amount",
                                "unitPrice",
                                "quantity",
                                "currency",
                                "billingPeriod",
                                "sourceChargeDefinitionId",
                                "sourcePricebookEntryId",
                                "sourcePricingRuleId",
                                "activatedByRuleIds",
                                "reasonCode",
                                "approvalStatus",
                                "priceDetails"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "chargeCode": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "chargeType": {
                                  "type": "string",
                                  "enum": [
                                    "ONE_TIME",
                                    "RECURRING"
                                  ]
                                },
                                "pricingRole": {
                                  "type": "string",
                                  "enum": [
                                    "CHARGE",
                                    "DISCOUNT",
                                    "SURCHARGE"
                                  ]
                                },
                                "chargeSource": {
                                  "type": "string",
                                  "enum": [
                                    "BASE_PRICE",
                                    "CATALOGUE_DISCOUNT",
                                    "CATALOGUE_WAIVER",
                                    "CATALOGUE_SURCHARGE",
                                    "DISCRETIONARY_DISCOUNT",
                                    "MANUAL_CHARGE",
                                    "EXTERNAL_PRICE"
                                  ]
                                },
                                "discountType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "AMOUNT",
                                        "PERCENT",
                                        "WAIVE"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "parentChargeId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "ratingMode": {
                                  "type": "string",
                                  "enum": [
                                    "CART",
                                    "METERED"
                                  ]
                                },
                                "amount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unitPrice": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "quantity": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "billingPeriod": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceChargeDefinitionId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricebookEntryId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricingRuleId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activatedByRuleIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "reasonCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvalStatus": {
                                  "type": "string"
                                },
                                "priceDetails": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            }
                          },
                          "priceSnapshot": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "externalPrices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "chargeCode",
                                "amount",
                                "listAmount",
                                "externalRef"
                              ],
                              "properties": {
                                "chargeCode": {
                                  "type": "string"
                                },
                                "amount": {
                                  "type": "number"
                                },
                                "listAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                          },
                          "status": {
                            "type": "string",
                            "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/v1/carts/{cartId}/external-prices/bulk-remove": {
      "post": {
        "operationId": "bulkRemoveCartExternalPrices",
        "summary": "Remove external prices in bulk",
        "tags": [
          "Quote workspace"
        ],
        "description": "An entry with a chargeCode removes that price; an entry without one clears the item. Up to 1,000 entries.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "prices": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "cartItemId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "chargeCode": {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$"
                        }
                      },
                      "required": [
                        "cartItemId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "prices"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
            },
            "in": "header",
            "name": "idempotency-key",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "cartVersion",
                    "items"
                  ],
                  "properties": {
                    "cartVersion": {
                      "type": "integer"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartId",
                          "parentCartItemId",
                          "sourceCartItemId",
                          "sourceServiceId",
                          "sourceDeliverableItemId",
                          "sourceComponentType",
                          "sourceComponentId",
                          "componentRoleCode",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "itemName",
                          "productVariantId",
                          "productVariantCode",
                          "productDefinitionId",
                          "productDefinitionCode",
                          "orderProductType",
                          "cataloguePublishRunId",
                          "catalogueViewId",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "attributes",
                          "facts",
                          "charges",
                          "priceSnapshot",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceDeliverableItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "componentRoleCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "productVariantId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productVariantCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "orderProductType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "SUBSCRIPTION",
                                  "DELIVERABLE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cataloguePublishRunId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ADD",
                              "NO_CHANGE",
                              "MODIFY",
                              "REMOVE"
                            ]
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string",
                            "enum": [
                              "MULTIPLIER",
                              "UNIT"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "charges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "chargeCode",
                                "name",
                                "chargeType",
                                "pricingRole",
                                "chargeSource",
                                "discountType",
                                "parentChargeId",
                                "ratingMode",
                                "amount",
                                "unitPrice",
                                "quantity",
                                "currency",
                                "billingPeriod",
                                "sourceChargeDefinitionId",
                                "sourcePricebookEntryId",
                                "sourcePricingRuleId",
                                "activatedByRuleIds",
                                "reasonCode",
                                "approvalStatus",
                                "priceDetails"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "chargeCode": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "chargeType": {
                                  "type": "string",
                                  "enum": [
                                    "ONE_TIME",
                                    "RECURRING"
                                  ]
                                },
                                "pricingRole": {
                                  "type": "string",
                                  "enum": [
                                    "CHARGE",
                                    "DISCOUNT",
                                    "SURCHARGE"
                                  ]
                                },
                                "chargeSource": {
                                  "type": "string",
                                  "enum": [
                                    "BASE_PRICE",
                                    "CATALOGUE_DISCOUNT",
                                    "CATALOGUE_WAIVER",
                                    "CATALOGUE_SURCHARGE",
                                    "DISCRETIONARY_DISCOUNT",
                                    "MANUAL_CHARGE",
                                    "EXTERNAL_PRICE"
                                  ]
                                },
                                "discountType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "AMOUNT",
                                        "PERCENT",
                                        "WAIVE"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "parentChargeId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "ratingMode": {
                                  "type": "string",
                                  "enum": [
                                    "CART",
                                    "METERED"
                                  ]
                                },
                                "amount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unitPrice": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "quantity": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "billingPeriod": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceChargeDefinitionId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricebookEntryId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricingRuleId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activatedByRuleIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "reasonCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvalStatus": {
                                  "type": "string"
                                },
                                "priceDetails": {
                                  "type": "object",
                                  "additionalProperties": true
                                }
                              }
                            }
                          },
                          "priceSnapshot": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "externalPrices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "chargeCode",
                                "amount",
                                "listAmount",
                                "externalRef"
                              ],
                              "properties": {
                                "chargeCode": {
                                  "type": "string"
                                },
                                "amount": {
                                  "type": "number"
                                },
                                "listAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                          },
                          "status": {
                            "type": "string",
                            "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/v1/carts/{cartId}/charges/discretionary-discounts": {
      "post": {
        "operationId": "addCartDiscretionaryDiscount",
        "summary": "Apply a discount",
        "tags": [
          "Commercial close"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "reviewedBasis": {
                    "type": "object",
                    "properties": {
                      "discountAuthorityDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "commercialDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "approvalRequestId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "approvalDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "commercialDigest"
                    ],
                    "additionalProperties": false
                  },
                  "cartItemId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "targetChargeId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "targetChargeCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "discountType": {
                    "type": "string",
                    "enum": [
                      "AMOUNT",
                      "PERCENT"
                    ]
                  },
                  "amount": {
                    "anyOf": [
                      {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "percentValue": {
                    "anyOf": [
                      {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reasonCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "comment": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "cartItemId",
                  "discountType",
                  "reasonCode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "cartItemId",
                    "parentChargeId",
                    "sourceChargeId",
                    "chargeCode",
                    "name",
                    "chargeType",
                    "pricingRole",
                    "chargeSource",
                    "discountType",
                    "listAmount",
                    "amount",
                    "unitPrice",
                    "quantity",
                    "currency",
                    "billingPeriod",
                    "ratingMode",
                    "sourceChargeDefinitionId",
                    "sourcePricebookEntryId",
                    "sourcePricingRuleId",
                    "activatedByRuleIds",
                    "rateCardId",
                    "reasonCode",
                    "approvalStatus",
                    "createdBy",
                    "comment",
                    "priceDetails",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartItemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "parentChargeId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceChargeId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "chargeCode": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "chargeType": {
                      "type": "string",
                      "enum": [
                        "ONE_TIME",
                        "RECURRING"
                      ]
                    },
                    "pricingRole": {
                      "type": "string",
                      "enum": [
                        "CHARGE",
                        "DISCOUNT",
                        "SURCHARGE"
                      ]
                    },
                    "chargeSource": {
                      "type": "string",
                      "enum": [
                        "BASE_PRICE",
                        "CATALOGUE_DISCOUNT",
                        "CATALOGUE_WAIVER",
                        "CATALOGUE_SURCHARGE",
                        "DISCRETIONARY_DISCOUNT",
                        "MANUAL_CHARGE",
                        "EXTERNAL_PRICE"
                      ]
                    },
                    "discountType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "AMOUNT",
                            "PERCENT",
                            "WAIVE"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "listAmount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "amount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "unitPrice": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "quantity": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "type": "string"
                    },
                    "billingPeriod": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ratingMode": {
                      "type": "string",
                      "enum": [
                        "CART",
                        "METERED"
                      ]
                    },
                    "sourceChargeDefinitionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourcePricebookEntryId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourcePricingRuleId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedByRuleIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    },
                    "rateCardId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reasonCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "externalRef": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "approvalStatus": {
                      "type": "string"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "comment": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priceDetails": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use",
            "cart.discount.apply"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Apply a discretionary discount to an eligible Quote charge"
      }
    },
    "/api/v1/carts/{cartId}/charges/{chargeId}": {
      "delete": {
        "operationId": "deleteCartManualCharge",
        "summary": "Remove a manual charge",
        "tags": [
          "Commercial close"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "commandId",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            },
            "in": "query",
            "name": "expectedVersion",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "maxLength": 2000
            },
            "in": "query",
            "name": "reviewedBasis",
            "required": false,
            "description": "JSON-encoded reviewed execution basis."
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "chargeId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use",
            "cart.discount.apply"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Remove a discretionary or manual Quote charge"
      }
    },
    "/api/v1/carts/{cartId}/order": {
      "post": {
        "operationId": "createOrderFromCart",
        "summary": "Place an order",
        "tags": [
          "Commercial close"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "reviewedBasis": {
                    "type": "object",
                    "properties": {
                      "discountAuthorityDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "commercialDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "approvalRequestId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "approvalDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "commercialDigest"
                    ],
                    "additionalProperties": false
                  },
                  "expectedSourceDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "cartItemIds": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "customerReference": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "customerAcceptedAt": {},
                  "note": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "expectedVersion"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$"
            },
            "in": "header",
            "name": "idempotency-key",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "order",
                    "subscriptions",
                    "services",
                    "deliverableItems"
                  ],
                  "properties": {
                    "execution": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "commandId",
                        "cartVersion"
                      ],
                      "properties": {
                        "commandId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartVersion": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    },
                    "order": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "orderNumber",
                        "revisionNumber",
                        "sourceCartId",
                        "sourceSubscriptionId",
                        "idempotencyKey",
                        "accountId",
                        "primaryContactId",
                        "orderType",
                        "status",
                        "subStatus",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "totals",
                        "externalRef",
                        "metadata",
                        "pointOfNoReturnAt",
                        "customerReference",
                        "customerAcceptedAt",
                        "note",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "orderNumber": {
                          "type": "string"
                        },
                        "revisionNumber": {
                          "type": "integer"
                        },
                        "sourceCartId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceSubscriptionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "idempotencyKey": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "primaryContactId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderType": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "subStatus": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "totals": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "currency",
                            "oneTimeTotal",
                            "recurringTotalsByPeriod",
                            "meteredTariffCount",
                            "list",
                            "adjusted",
                            "sales"
                          ],
                          "properties": {
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oneTimeTotal": {
                              "type": "number"
                            },
                            "recurringTotalsByPeriod": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "billingPeriod",
                                  "listAmount",
                                  "adjustmentAmount",
                                  "salesAmount"
                                ],
                                "properties": {
                                  "billingPeriod": {
                                    "type": "string"
                                  },
                                  "listAmount": {
                                    "type": "number"
                                  },
                                  "adjustmentAmount": {
                                    "type": "number"
                                  },
                                  "salesAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            },
                            "meteredTariffCount": {
                              "type": "integer"
                            },
                            "list": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "adjusted": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "sales": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        },
                        "externalRef": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "pointOfNoReturnAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "customerReference": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "customerAcceptedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "note": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "subscriptions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "subscriptionNumber",
                          "orderId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "accountId",
                          "subscriptionType",
                          "status",
                          "subStatus",
                          "contextCode",
                          "name",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subscriptionNumber": {
                            "type": "string"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subscriptionType": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contextCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "serviceNumber",
                          "subscriptionId",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "parentServiceId",
                          "replacesServiceId",
                          "replacedByServiceId",
                          "itemType",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "serviceNumber": {
                            "type": "string"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacesServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacedByServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string"
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "deliverableItems": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "deliverableNumber",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "relatedServiceId",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "deliverableNumber": {
                            "type": "string"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "relatedServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nonCommercialChange": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "changeCode",
                        "sourceSubscriptionId",
                        "affectedServiceIds"
                      ],
                      "properties": {
                        "changeCode": {
                          "type": "string"
                        },
                        "sourceSubscriptionId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "affectedServiceIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid"
                          }
                        }
                      }
                    },
                    "amendment": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "benchmark": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "durationMs",
                        "cartItemCount",
                        "unitCount",
                        "subscriptionCount",
                        "serviceCount",
                        "deliverableItemCount"
                      ],
                      "properties": {
                        "durationMs": {
                          "type": "number"
                        },
                        "cartItemCount": {
                          "type": "integer"
                        },
                        "unitCount": {
                          "type": "integer"
                        },
                        "subscriptionCount": {
                          "type": "integer"
                        },
                        "serviceCount": {
                          "type": "integer"
                        },
                        "deliverableItemCount": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "cart.accept"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Create one Order from a validated and current Quote"
      }
    },
    "/api/v1/approval-requests/{approvalRequestId}/approve": {
      "post": {
        "operationId": "approveApprovalRequest",
        "summary": "Approve a request",
        "tags": [
          "Approvals"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "reviewedBasis": {
                    "type": "object",
                    "properties": {
                      "discountAuthorityDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "commercialDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "approvalRequestId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "approvalDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "commercialDigest"
                    ],
                    "additionalProperties": false
                  },
                  "comment": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "approvalRequestId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "status",
                    "requester",
                    "requestedAt",
                    "requestNote",
                    "decision",
                    "submittedQuote",
                    "availableActions",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "PENDING",
                        "APPROVED",
                        "REJECTED",
                        "WITHDRAWN",
                        "CANCELLED"
                      ]
                    },
                    "requester": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "name",
                        "email"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "email"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "requestedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "requestNote": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decision": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "actor",
                            "at",
                            "comment"
                          ],
                          "properties": {
                            "actor": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "name",
                                "email"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "email"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            "at": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "comment": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedQuote": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "schemaVersion",
                        "cartVersion",
                        "quote",
                        "account",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "itemCount",
                        "totals",
                        "requirements"
                      ],
                      "properties": {
                        "schemaVersion": {
                          "type": "integer",
                          "enum": [
                            1
                          ]
                        },
                        "cartVersion": {
                          "type": "integer"
                        },
                        "quote": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "number",
                            "name",
                            "type",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "number": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "NEW_SALE",
                                "SUBSCRIPTION_CHANGE",
                                "ORDER_AMENDMENT"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "DRAFT",
                                "PRICED",
                                "PENDING_APPROVAL",
                                "APPROVED",
                                "ACCEPTED",
                                "ORDERED",
                                "CANCELLED",
                                "EXPIRED"
                              ]
                            }
                          }
                        },
                        "account": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "number",
                            "name"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "number": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "itemCount": {
                          "type": "integer"
                        },
                        "totals": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "currency",
                            "oneTimeTotal",
                            "recurringTotalsByPeriod",
                            "meteredTariffCount",
                            "list",
                            "adjusted",
                            "sales"
                          ],
                          "properties": {
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oneTimeTotal": {
                              "type": "number"
                            },
                            "recurringTotalsByPeriod": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "billingPeriod",
                                  "listAmount",
                                  "adjustmentAmount",
                                  "salesAmount"
                                ],
                                "properties": {
                                  "billingPeriod": {
                                    "type": "string"
                                  },
                                  "listAmount": {
                                    "type": "number"
                                  },
                                  "adjustmentAmount": {
                                    "type": "number"
                                  },
                                  "salesAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            },
                            "meteredTariffCount": {
                              "type": "integer"
                            },
                            "list": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "adjusted": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "sales": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        },
                        "requirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "code",
                              "message",
                              "item",
                              "charge",
                              "targetCharge",
                              "discountType",
                              "requestedAmount",
                              "requestedPercent",
                              "effectiveAmount",
                              "effectivePercent",
                              "reasonCode",
                              "comment",
                              "authorityLimits",
                              "ruleCode",
                              "resultKey"
                            ],
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "DISCOUNT_LIMIT",
                                  "BUSINESS_RULE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "item": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "charge": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type",
                                      "currency",
                                      "billingPeriod",
                                      "amount"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targetCharge": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type",
                                      "currency",
                                      "billingPeriod",
                                      "amount"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "discountType": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requestedAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requestedPercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectiveAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectivePercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "reasonCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "comment": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "authorityLimits": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "code",
                                    "name",
                                    "maxAmount",
                                    "maxPercent",
                                    "currency"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maxPercent": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "currency": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              "ruleCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "resultKey": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "availableActions": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "canApprove",
                        "canReject"
                      ],
                      "properties": {
                        "canApprove": {
                          "type": "boolean"
                        },
                        "canReject": {
                          "type": "boolean"
                        }
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "execution": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "commandId",
                        "cartVersion"
                      ],
                      "properties": {
                        "commandId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartVersion": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "approval.review"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Approve a pending commercial approval request"
      }
    },
    "/api/v1/approval-requests/{approvalRequestId}/reject": {
      "post": {
        "operationId": "rejectApprovalRequest",
        "summary": "Reject a request",
        "tags": [
          "Approvals"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 9007199254740991
                  },
                  "reviewedBasis": {
                    "type": "object",
                    "properties": {
                      "discountAuthorityDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "commercialDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "approvalRequestId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "approvalDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "commercialDigest"
                    ],
                    "additionalProperties": false
                  },
                  "comment": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "approvalRequestId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "status",
                    "requester",
                    "requestedAt",
                    "requestNote",
                    "decision",
                    "submittedQuote",
                    "availableActions",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "PENDING",
                        "APPROVED",
                        "REJECTED",
                        "WITHDRAWN",
                        "CANCELLED"
                      ]
                    },
                    "requester": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "name",
                        "email"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "email"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "requestedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "requestNote": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decision": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "actor",
                            "at",
                            "comment"
                          ],
                          "properties": {
                            "actor": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "name",
                                "email"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "email"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            "at": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "comment": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedQuote": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "schemaVersion",
                        "cartVersion",
                        "quote",
                        "account",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "itemCount",
                        "totals",
                        "requirements"
                      ],
                      "properties": {
                        "schemaVersion": {
                          "type": "integer",
                          "enum": [
                            1
                          ]
                        },
                        "cartVersion": {
                          "type": "integer"
                        },
                        "quote": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "number",
                            "name",
                            "type",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "number": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "NEW_SALE",
                                "SUBSCRIPTION_CHANGE",
                                "ORDER_AMENDMENT"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "DRAFT",
                                "PRICED",
                                "PENDING_APPROVAL",
                                "APPROVED",
                                "ACCEPTED",
                                "ORDERED",
                                "CANCELLED",
                                "EXPIRED"
                              ]
                            }
                          }
                        },
                        "account": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "number",
                            "name"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "number": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "itemCount": {
                          "type": "integer"
                        },
                        "totals": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "currency",
                            "oneTimeTotal",
                            "recurringTotalsByPeriod",
                            "meteredTariffCount",
                            "list",
                            "adjusted",
                            "sales"
                          ],
                          "properties": {
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oneTimeTotal": {
                              "type": "number"
                            },
                            "recurringTotalsByPeriod": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "billingPeriod",
                                  "listAmount",
                                  "adjustmentAmount",
                                  "salesAmount"
                                ],
                                "properties": {
                                  "billingPeriod": {
                                    "type": "string"
                                  },
                                  "listAmount": {
                                    "type": "number"
                                  },
                                  "adjustmentAmount": {
                                    "type": "number"
                                  },
                                  "salesAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            },
                            "meteredTariffCount": {
                              "type": "integer"
                            },
                            "list": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "adjusted": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "sales": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        },
                        "requirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "code",
                              "message",
                              "item",
                              "charge",
                              "targetCharge",
                              "discountType",
                              "requestedAmount",
                              "requestedPercent",
                              "effectiveAmount",
                              "effectivePercent",
                              "reasonCode",
                              "comment",
                              "authorityLimits",
                              "ruleCode",
                              "resultKey"
                            ],
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "DISCOUNT_LIMIT",
                                  "BUSINESS_RULE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "item": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "charge": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type",
                                      "currency",
                                      "billingPeriod",
                                      "amount"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targetCharge": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type",
                                      "currency",
                                      "billingPeriod",
                                      "amount"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "discountType": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requestedAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requestedPercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectiveAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectivePercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "reasonCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "comment": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "authorityLimits": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "code",
                                    "name",
                                    "maxAmount",
                                    "maxPercent",
                                    "currency"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maxPercent": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "currency": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              "ruleCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "resultKey": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "availableActions": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "canApprove",
                        "canReject"
                      ],
                      "properties": {
                        "canApprove": {
                          "type": "boolean"
                        },
                        "canReject": {
                          "type": "boolean"
                        }
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "execution": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "commandId",
                        "cartVersion"
                      ],
                      "properties": {
                        "commandId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartVersion": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "approval.review"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Reject a pending commercial approval request"
      }
    },
    "/api/v1/approval-requests": {
      "get": {
        "operationId": "listApprovalRequests",
        "summary": "Search approval requests",
        "tags": [
          "Approvals"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "PENDING",
                "APPROVED",
                "REJECTED",
                "WITHDRAWN",
                "CANCELLED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "minItems": 1,
              "maxItems": 5,
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "PENDING",
                  "APPROVED",
                  "REJECTED",
                  "WITHDRAWN",
                  "CANCELLED"
                ]
              }
            },
            "in": "query",
            "name": "statuses",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "requestedFrom",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "requestedTo",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "decidedFrom",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "decidedTo",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "me"
              ]
            },
            "in": "query",
            "name": "requestedBy",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "cartId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "default": "OLDEST_FIRST",
              "type": "string",
              "enum": [
                "OLDEST_FIRST",
                "NEWEST_FIRST"
              ]
            },
            "in": "query",
            "name": "sort",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartId",
                          "status",
                          "quote",
                          "account",
                          "requester",
                          "requestedAt",
                          "requestNote",
                          "decidedAt",
                          "requirementCount",
                          "discountRequirementCount",
                          "ruleRequirementCount",
                          "itemCount",
                          "totals",
                          "authorityBreach"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "PENDING",
                              "APPROVED",
                              "REJECTED",
                              "WITHDRAWN",
                              "CANCELLED"
                            ]
                          },
                          "quote": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "number",
                              "name",
                              "type",
                              "status"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "number": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "NEW_SALE",
                                  "SUBSCRIPTION_CHANGE",
                                  "ORDER_AMENDMENT"
                                ]
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "DRAFT",
                                  "PRICED",
                                  "PENDING_APPROVAL",
                                  "APPROVED",
                                  "ACCEPTED",
                                  "ORDERED",
                                  "CANCELLED",
                                  "EXPIRED"
                                ]
                              }
                            }
                          },
                          "account": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "number",
                              "name"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "number": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          },
                          "requester": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "name",
                              "email"
                            ],
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "name": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "email": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "email"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          },
                          "requestedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "requestNote": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "decidedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "requirementCount": {
                            "type": "integer"
                          },
                          "discountRequirementCount": {
                            "type": "integer"
                          },
                          "ruleRequirementCount": {
                            "type": "integer"
                          },
                          "itemCount": {
                            "type": "integer"
                          },
                          "totals": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "currency",
                              "oneTimeTotal",
                              "recurringTotalsByPeriod",
                              "meteredTariffCount",
                              "list",
                              "adjusted",
                              "sales"
                            ],
                            "properties": {
                              "currency": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "oneTimeTotal": {
                                "type": "number"
                              },
                              "recurringTotalsByPeriod": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "billingPeriod",
                                    "listAmount",
                                    "adjustmentAmount",
                                    "salesAmount"
                                  ],
                                  "properties": {
                                    "billingPeriod": {
                                      "type": "string"
                                    },
                                    "listAmount": {
                                      "type": "number"
                                    },
                                    "adjustmentAmount": {
                                      "type": "number"
                                    },
                                    "salesAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              },
                              "meteredTariffCount": {
                                "type": "integer"
                              },
                              "list": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "recurringAmount",
                                  "oneTimeAmount",
                                  "totalAmount"
                                ],
                                "properties": {
                                  "recurringAmount": {
                                    "type": "number"
                                  },
                                  "oneTimeAmount": {
                                    "type": "number"
                                  },
                                  "totalAmount": {
                                    "type": "number"
                                  }
                                }
                              },
                              "adjusted": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "recurringAmount",
                                  "oneTimeAmount",
                                  "totalAmount"
                                ],
                                "properties": {
                                  "recurringAmount": {
                                    "type": "number"
                                  },
                                  "oneTimeAmount": {
                                    "type": "number"
                                  },
                                  "totalAmount": {
                                    "type": "number"
                                  }
                                }
                              },
                              "sales": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "recurringAmount",
                                  "oneTimeAmount",
                                  "totalAmount"
                                ],
                                "properties": {
                                  "recurringAmount": {
                                    "type": "number"
                                  },
                                  "oneTimeAmount": {
                                    "type": "number"
                                  },
                                  "totalAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            }
                          },
                          "authorityBreach": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "basis",
                                  "requested",
                                  "allowed",
                                  "exceededBy",
                                  "currency"
                                ],
                                "properties": {
                                  "basis": {
                                    "type": "string",
                                    "enum": [
                                      "PERCENT",
                                      "AMOUNT"
                                    ]
                                  },
                                  "requested": {
                                    "type": "number"
                                  },
                                  "allowed": {
                                    "type": "number"
                                  },
                                  "exceededBy": {
                                    "type": "number"
                                  },
                                  "currency": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Search the commercial approval queue"
      }
    },
    "/api/v1/approval-requests/{approvalRequestId}": {
      "get": {
        "operationId": "getApprovalRequest",
        "summary": "Get an approval request",
        "tags": [
          "Approvals"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "approvalRequestId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartId",
                    "status",
                    "requester",
                    "requestedAt",
                    "requestNote",
                    "decision",
                    "submittedQuote",
                    "availableActions",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "PENDING",
                        "APPROVED",
                        "REJECTED",
                        "WITHDRAWN",
                        "CANCELLED"
                      ]
                    },
                    "requester": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "name",
                        "email"
                      ],
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "email": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "email"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "requestedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "requestNote": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "decision": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "actor",
                            "at",
                            "comment"
                          ],
                          "properties": {
                            "actor": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "name",
                                "email"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "email": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "email"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            "at": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "comment": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "submittedQuote": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "schemaVersion",
                        "cartVersion",
                        "quote",
                        "account",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "itemCount",
                        "totals",
                        "requirements"
                      ],
                      "properties": {
                        "schemaVersion": {
                          "type": "integer",
                          "enum": [
                            1
                          ]
                        },
                        "cartVersion": {
                          "type": "integer"
                        },
                        "quote": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "number",
                            "name",
                            "type",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "number": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "NEW_SALE",
                                "SUBSCRIPTION_CHANGE",
                                "ORDER_AMENDMENT"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "DRAFT",
                                "PRICED",
                                "PENDING_APPROVAL",
                                "APPROVED",
                                "ACCEPTED",
                                "ORDERED",
                                "CANCELLED",
                                "EXPIRED"
                              ]
                            }
                          }
                        },
                        "account": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "number",
                            "name"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "number": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "type": "string"
                            }
                          }
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "itemCount": {
                          "type": "integer"
                        },
                        "totals": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "currency",
                            "oneTimeTotal",
                            "recurringTotalsByPeriod",
                            "meteredTariffCount",
                            "list",
                            "adjusted",
                            "sales"
                          ],
                          "properties": {
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oneTimeTotal": {
                              "type": "number"
                            },
                            "recurringTotalsByPeriod": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "billingPeriod",
                                  "listAmount",
                                  "adjustmentAmount",
                                  "salesAmount"
                                ],
                                "properties": {
                                  "billingPeriod": {
                                    "type": "string"
                                  },
                                  "listAmount": {
                                    "type": "number"
                                  },
                                  "adjustmentAmount": {
                                    "type": "number"
                                  },
                                  "salesAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            },
                            "meteredTariffCount": {
                              "type": "integer"
                            },
                            "list": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "adjusted": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "sales": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        },
                        "requirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "code",
                              "message",
                              "item",
                              "charge",
                              "targetCharge",
                              "discountType",
                              "requestedAmount",
                              "requestedPercent",
                              "effectiveAmount",
                              "effectivePercent",
                              "reasonCode",
                              "comment",
                              "authorityLimits",
                              "ruleCode",
                              "resultKey"
                            ],
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "DISCOUNT_LIMIT",
                                  "BUSINESS_RULE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "item": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "charge": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type",
                                      "currency",
                                      "billingPeriod",
                                      "amount"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "targetCharge": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type",
                                      "currency",
                                      "billingPeriod",
                                      "amount"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "discountType": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requestedAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "requestedPercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectiveAmount": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "effectivePercent": {
                                "anyOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "reasonCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "comment": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "authorityLimits": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "code",
                                    "name",
                                    "maxAmount",
                                    "maxPercent",
                                    "currency"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "maxAmount": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "maxPercent": {
                                      "anyOf": [
                                        {
                                          "type": "number"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "currency": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  }
                                }
                              },
                              "ruleCode": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "resultKey": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          }
                        }
                      }
                    },
                    "availableActions": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "canApprove",
                        "canReject"
                      ],
                      "properties": {
                        "canApprove": {
                          "type": "boolean"
                        },
                        "canReject": {
                          "type": "boolean"
                        }
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a submitted commercial approval request"
      }
    },
    "/api/v1/carts/{cartId}/assign": {
      "post": {
        "operationId": "assignCart",
        "summary": "Assign a quote",
        "tags": [
          "Quotes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "assignedSellerId",
                  "expectedVersion"
                ],
                "properties": {
                  "assignedSellerId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartNumber",
                    "name",
                    "cartType",
                    "status",
                    "accountId",
                    "primaryContactId",
                    "assignedSellerId",
                    "assignedAt",
                    "assignedBy",
                    "catalogueCode",
                    "catalogueViewCode",
                    "pricebookCode",
                    "currency",
                    "agreementId",
                    "agreementCode",
                    "agreementName",
                    "discretionaryDiscountsAllowed",
                    "sourceCartId",
                    "sourceOrderId",
                    "sourceSubscriptionId",
                    "orderStatus",
                    "orderedItemCount",
                    "changeCode",
                    "attributes",
                    "validationStatus",
                    "validationIssues",
                    "ruleResults",
                    "pricedAt",
                    "expiresAt",
                    "acceptedAt",
                    "version",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartNumber": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cartType": {
                      "type": "string",
                      "enum": [
                        "NEW_SALE",
                        "SUBSCRIPTION_CHANGE",
                        "ORDER_AMENDMENT"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PRICED",
                        "PENDING_APPROVAL",
                        "APPROVED",
                        "ACCEPTED",
                        "ORDERED",
                        "CANCELLED",
                        "EXPIRED"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "primaryContactId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedSellerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "discretionaryDiscountsAllowed": {
                      "type": "boolean"
                    },
                    "sourceCartId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceOrderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceSubscriptionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_ORDERED",
                        "PARTIALLY_ORDERED",
                        "ORDERED"
                      ],
                      "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                    },
                    "orderedItemCount": {
                      "type": "integer",
                      "description": "Number of top-level items already ordered."
                    },
                    "changeCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "ruleResults": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "acceptedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "type": "integer"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "cart.assign"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Assign a Quote to an eligible seller"
      }
    },
    "/api/v1/carts/{cartId}/unassign": {
      "post": {
        "operationId": "unassignCart",
        "summary": "Unassign a quote",
        "tags": [
          "Quotes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "expectedVersion"
                ],
                "properties": {
                  "expectedVersion": {
                    "type": "integer",
                    "minimum": 1
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "cartId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "cartNumber",
                    "name",
                    "cartType",
                    "status",
                    "accountId",
                    "primaryContactId",
                    "assignedSellerId",
                    "assignedAt",
                    "assignedBy",
                    "catalogueCode",
                    "catalogueViewCode",
                    "pricebookCode",
                    "currency",
                    "agreementId",
                    "agreementCode",
                    "agreementName",
                    "discretionaryDiscountsAllowed",
                    "sourceCartId",
                    "sourceOrderId",
                    "sourceSubscriptionId",
                    "orderStatus",
                    "orderedItemCount",
                    "changeCode",
                    "attributes",
                    "validationStatus",
                    "validationIssues",
                    "ruleResults",
                    "pricedAt",
                    "expiresAt",
                    "acceptedAt",
                    "version",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "cartNumber": {
                      "type": "string"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "cartType": {
                      "type": "string",
                      "enum": [
                        "NEW_SALE",
                        "SUBSCRIPTION_CHANGE",
                        "ORDER_AMENDMENT"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "PRICED",
                        "PENDING_APPROVAL",
                        "APPROVED",
                        "ACCEPTED",
                        "ORDERED",
                        "CANCELLED",
                        "EXPIRED"
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "primaryContactId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedSellerId": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "assignedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "agreementName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "discretionaryDiscountsAllowed": {
                      "type": "boolean"
                    },
                    "sourceCartId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceOrderId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceSubscriptionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_ORDERED",
                        "PARTIALLY_ORDERED",
                        "ORDERED"
                      ],
                      "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                    },
                    "orderedItemCount": {
                      "type": "integer",
                      "description": "Number of top-level items already ordered."
                    },
                    "changeCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "validationStatus": {
                      "type": "string",
                      "enum": [
                        "VALID",
                        "HAS_WARNINGS",
                        "HAS_ERRORS"
                      ]
                    },
                    "validationIssues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "severity",
                          "message",
                          "scope",
                          "source",
                          "details"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING",
                              "INFO"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "scope": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CART_ITEM",
                              "ADDON_GROUP",
                              "COMPONENT"
                            ]
                          },
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "source": {
                            "type": "string"
                          },
                          "details": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "ruleResults": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pricedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "expiresAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "acceptedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "version": {
                      "type": "integer"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "cart.assign"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Clear the current Quote seller assignment"
      }
    },
    "/api/v1/operate/accounts": {
      "get": {
        "operationId": "listOperateAccounts",
        "summary": "Find customers",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "q",
            "required": false
          },
          {
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "accountNumber",
                          "name",
                          "status"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountNumber": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Find customer display references for Operate filters"
      }
    },
    "/api/v1/orders/{orderId}/effective-view": {
      "get": {
        "operationId": "getOrderEffectiveView",
        "summary": "Get an order workspace",
        "tags": [
          "Commercial close"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "orderId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "order",
                    "subscriptions",
                    "services",
                    "deliverableItems",
                    "account",
                    "sourceCart",
                    "orderAmendment",
                    "subscriptionChange",
                    "summary"
                  ],
                  "properties": {
                    "execution": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "commandId",
                        "cartVersion"
                      ],
                      "properties": {
                        "commandId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartVersion": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    },
                    "order": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "orderNumber",
                        "revisionNumber",
                        "sourceCartId",
                        "sourceSubscriptionId",
                        "idempotencyKey",
                        "accountId",
                        "primaryContactId",
                        "orderType",
                        "status",
                        "subStatus",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "totals",
                        "externalRef",
                        "metadata",
                        "pointOfNoReturnAt",
                        "customerReference",
                        "customerAcceptedAt",
                        "note",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "orderNumber": {
                          "type": "string"
                        },
                        "revisionNumber": {
                          "type": "integer"
                        },
                        "sourceCartId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceSubscriptionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "idempotencyKey": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "primaryContactId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderType": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "subStatus": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "totals": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "currency",
                            "oneTimeTotal",
                            "recurringTotalsByPeriod",
                            "meteredTariffCount",
                            "list",
                            "adjusted",
                            "sales"
                          ],
                          "properties": {
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oneTimeTotal": {
                              "type": "number"
                            },
                            "recurringTotalsByPeriod": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "billingPeriod",
                                  "listAmount",
                                  "adjustmentAmount",
                                  "salesAmount"
                                ],
                                "properties": {
                                  "billingPeriod": {
                                    "type": "string"
                                  },
                                  "listAmount": {
                                    "type": "number"
                                  },
                                  "adjustmentAmount": {
                                    "type": "number"
                                  },
                                  "salesAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            },
                            "meteredTariffCount": {
                              "type": "integer"
                            },
                            "list": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "adjusted": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "sales": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        },
                        "externalRef": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "pointOfNoReturnAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "customerReference": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "customerAcceptedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "note": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "subscriptions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "subscriptionNumber",
                          "orderId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "accountId",
                          "subscriptionType",
                          "status",
                          "subStatus",
                          "contextCode",
                          "name",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subscriptionNumber": {
                            "type": "string"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subscriptionType": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contextCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "serviceNumber",
                          "subscriptionId",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "parentServiceId",
                          "replacesServiceId",
                          "replacedByServiceId",
                          "itemType",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "serviceNumber": {
                            "type": "string"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacesServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacedByServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string"
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "deliverableItems": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "deliverableNumber",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "relatedServiceId",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "deliverableNumber": {
                            "type": "string"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "relatedServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nonCommercialChange": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "changeCode",
                        "sourceSubscriptionId",
                        "affectedServiceIds"
                      ],
                      "properties": {
                        "changeCode": {
                          "type": "string"
                        },
                        "sourceSubscriptionId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "affectedServiceIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid"
                          }
                        }
                      }
                    },
                    "amendment": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "benchmark": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "durationMs",
                        "cartItemCount",
                        "unitCount",
                        "subscriptionCount",
                        "serviceCount",
                        "deliverableItemCount"
                      ],
                      "properties": {
                        "durationMs": {
                          "type": "number"
                        },
                        "cartItemCount": {
                          "type": "integer"
                        },
                        "unitCount": {
                          "type": "integer"
                        },
                        "subscriptionCount": {
                          "type": "integer"
                        },
                        "serviceCount": {
                          "type": "integer"
                        },
                        "deliverableItemCount": {
                          "type": "integer"
                        }
                      }
                    },
                    "account": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "accountNumber",
                            "name",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "accountNumber": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceCart": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "cartNumber",
                            "name",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "cartNumber": {
                              "type": "string"
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderAmendment": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "state",
                        "blockedReason",
                        "openCart"
                      ],
                      "properties": {
                        "state": {
                          "type": "string",
                          "enum": [
                            "AVAILABLE",
                            "OPEN",
                            "BLOCKED"
                          ]
                        },
                        "blockedReason": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "POINT_OF_NO_RETURN",
                                "STATUS_NOT_ALLOWED",
                                "UNSUPPORTED_ORDER_TYPE"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "openCart": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "cartNumber",
                                "name",
                                "status",
                                "assignedSellerId"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartNumber": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "status": {
                                  "type": "string"
                                },
                                "assignedSellerId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "subscriptionChange": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "sourceSubscriptionId",
                            "sourceCartId",
                            "resultingSourceCartId",
                            "resultingSourceCartItemId",
                            "removalServiceIds",
                            "addedServiceIds",
                            "successorServiceIds",
                            "affectedServiceIds",
                            "resultingServiceIds",
                            "summary",
                            "itemChanges",
                            "affectedServices",
                            "resultingServices"
                          ],
                          "properties": {
                            "sourceSubscriptionId": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "sourceCartId": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "resultingSourceCartId": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "resultingSourceCartItemId": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "removalServiceIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            "addedServiceIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            "successorServiceIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            "affectedServiceIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            "resultingServiceIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "format": "uuid"
                              }
                            },
                            "summary": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "added",
                                "modified",
                                "removed",
                                "unchanged",
                                "subscriptionsAdded",
                                "deliverablesAdded"
                              ],
                              "properties": {
                                "added": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "modified": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "removed": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "unchanged": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "subscriptionsAdded": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "deliverablesAdded": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              }
                            },
                            "itemChanges": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "cartItemId",
                                  "action",
                                  "itemCode",
                                  "before",
                                  "after"
                                ],
                                "properties": {
                                  "cartItemId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "action": {
                                    "type": "string"
                                  },
                                  "itemCode": {
                                    "type": "string"
                                  },
                                  "before": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "productCode",
                                          "name",
                                          "quantity",
                                          "quantityStrategy",
                                          "attributes"
                                        ],
                                        "properties": {
                                          "productCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "quantity": {
                                            "type": "number"
                                          },
                                          "quantityStrategy": {
                                            "type": "string"
                                          },
                                          "attributes": {
                                            "type": "object",
                                            "additionalProperties": true
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "after": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "productCode",
                                          "name",
                                          "quantity",
                                          "quantityStrategy",
                                          "attributes"
                                        ],
                                        "properties": {
                                          "productCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "quantity": {
                                            "type": "number"
                                          },
                                          "quantityStrategy": {
                                            "type": "string"
                                          },
                                          "attributes": {
                                            "type": "object",
                                            "additionalProperties": true
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                }
                              }
                            },
                            "affectedServices": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "serviceNumber",
                                  "subscriptionId",
                                  "orderId",
                                  "accountId",
                                  "sourceCartId",
                                  "sourceCartItemId",
                                  "sourceCartItemUnitId",
                                  "parentServiceId",
                                  "replacesServiceId",
                                  "replacedByServiceId",
                                  "itemType",
                                  "productCode",
                                  "name",
                                  "action",
                                  "quantity",
                                  "quantityStrategy",
                                  "commonAttributes",
                                  "unitAttributes",
                                  "status",
                                  "subStatus",
                                  "externalRef",
                                  "metadata",
                                  "createdBy",
                                  "updatedBy",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "serviceNumber": {
                                    "type": "string"
                                  },
                                  "subscriptionId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "orderId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "accountId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "sourceCartId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "sourceCartItemId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "sourceCartItemUnitId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "parentServiceId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "replacesServiceId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "replacedByServiceId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "itemType": {
                                    "type": "string"
                                  },
                                  "productCode": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "action": {
                                    "type": "string"
                                  },
                                  "quantity": {
                                    "type": "integer"
                                  },
                                  "quantityStrategy": {
                                    "type": "string"
                                  },
                                  "commonAttributes": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "unitAttributes": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "instanceLabel": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "naming": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "instanceNoun",
                                      "instanceLabelAttributes",
                                      "unitNoun",
                                      "unitLabelAttributes"
                                    ],
                                    "properties": {
                                      "instanceNoun": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "singular",
                                              "plural"
                                            ],
                                            "properties": {
                                              "singular": {
                                                "type": "string"
                                              },
                                              "plural": {
                                                "type": "string"
                                              }
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "instanceLabelAttributes": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "unitNoun": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "singular",
                                              "plural"
                                            ],
                                            "properties": {
                                              "singular": {
                                                "type": "string"
                                              },
                                              "plural": {
                                                "type": "string"
                                              }
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unitLabelAttributes": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  },
                                  "status": {
                                    "type": "string"
                                  },
                                  "subStatus": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "externalRef": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "metadata": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdBy": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "updatedBy": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  }
                                }
                              }
                            },
                            "resultingServices": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "serviceNumber",
                                  "subscriptionId",
                                  "orderId",
                                  "accountId",
                                  "sourceCartId",
                                  "sourceCartItemId",
                                  "sourceCartItemUnitId",
                                  "parentServiceId",
                                  "replacesServiceId",
                                  "replacedByServiceId",
                                  "itemType",
                                  "productCode",
                                  "name",
                                  "action",
                                  "quantity",
                                  "quantityStrategy",
                                  "commonAttributes",
                                  "unitAttributes",
                                  "status",
                                  "subStatus",
                                  "externalRef",
                                  "metadata",
                                  "createdBy",
                                  "updatedBy",
                                  "createdAt",
                                  "updatedAt"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "serviceNumber": {
                                    "type": "string"
                                  },
                                  "subscriptionId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "orderId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "accountId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "sourceCartId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "sourceCartItemId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "sourceCartItemUnitId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "parentServiceId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "replacesServiceId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "replacedByServiceId": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "itemType": {
                                    "type": "string"
                                  },
                                  "productCode": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "action": {
                                    "type": "string"
                                  },
                                  "quantity": {
                                    "type": "integer"
                                  },
                                  "quantityStrategy": {
                                    "type": "string"
                                  },
                                  "commonAttributes": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "unitAttributes": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "instanceLabel": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "naming": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "instanceNoun",
                                      "instanceLabelAttributes",
                                      "unitNoun",
                                      "unitLabelAttributes"
                                    ],
                                    "properties": {
                                      "instanceNoun": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "singular",
                                              "plural"
                                            ],
                                            "properties": {
                                              "singular": {
                                                "type": "string"
                                              },
                                              "plural": {
                                                "type": "string"
                                              }
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "instanceLabelAttributes": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      },
                                      "unitNoun": {
                                        "anyOf": [
                                          {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "singular",
                                              "plural"
                                            ],
                                            "properties": {
                                              "singular": {
                                                "type": "string"
                                              },
                                              "plural": {
                                                "type": "string"
                                              }
                                            }
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unitLabelAttributes": {
                                        "type": "array",
                                        "items": {
                                          "type": "string"
                                        }
                                      }
                                    }
                                  },
                                  "status": {
                                    "type": "string"
                                  },
                                  "subStatus": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "externalRef": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "metadata": {
                                    "type": "object",
                                    "additionalProperties": true
                                  },
                                  "createdBy": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "updatedBy": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "createdAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  "updatedAt": {
                                    "type": "string",
                                    "format": "date-time"
                                  }
                                }
                              }
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "summary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "subscriptionCount",
                        "serviceCount",
                        "deliverableItemCount",
                        "serviceStatusCounts",
                        "deliverableStatusCounts",
                        "pointOfNoReturnReached"
                      ],
                      "properties": {
                        "subscriptionCount": {
                          "type": "integer"
                        },
                        "serviceCount": {
                          "type": "integer"
                        },
                        "deliverableItemCount": {
                          "type": "integer"
                        },
                        "serviceStatusCounts": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "integer"
                          }
                        },
                        "deliverableStatusCounts": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "integer"
                          }
                        },
                        "pointOfNoReturnReached": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get an Order with its subscriptions, services and deliverables"
      }
    },
    "/api/v1/subscriptions/{subscriptionId}/effective-view": {
      "get": {
        "operationId": "getSubscriptionEffectiveView",
        "summary": "Get a subscription workspace",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "technical-update"
              ]
            },
            "in": "query",
            "name": "include",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "subscriptionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "subscription",
                    "account",
                    "order",
                    "services",
                    "serviceGroups",
                    "commercialChange",
                    "summary"
                  ],
                  "properties": {
                    "subscription": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "subscriptionNumber",
                        "orderId",
                        "sourceCartId",
                        "sourceCartItemId",
                        "accountId",
                        "subscriptionType",
                        "status",
                        "subStatus",
                        "contextCode",
                        "name",
                        "externalRef",
                        "metadata",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "subscriptionNumber": {
                          "type": "string"
                        },
                        "orderId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "sourceCartId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "sourceCartItemId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "subscriptionType": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "subStatus": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "contextCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "type": "string"
                        },
                        "instanceLabel": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "naming": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "instanceNoun",
                            "instanceLabelAttributes",
                            "unitNoun",
                            "unitLabelAttributes"
                          ],
                          "properties": {
                            "instanceNoun": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "singular",
                                    "plural"
                                  ],
                                  "properties": {
                                    "singular": {
                                      "type": "string"
                                    },
                                    "plural": {
                                      "type": "string"
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "instanceLabelAttributes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "unitNoun": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "singular",
                                    "plural"
                                  ],
                                  "properties": {
                                    "singular": {
                                      "type": "string"
                                    },
                                    "plural": {
                                      "type": "string"
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "unitLabelAttributes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "externalRef": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "account": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "accountNumber",
                            "name",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "accountNumber": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "order": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "orderNumber",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "orderNumber": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "serviceNumber",
                          "subscriptionId",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "parentServiceId",
                          "replacesServiceId",
                          "replacedByServiceId",
                          "itemType",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "serviceNumber": {
                            "type": "string"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacesServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacedByServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string"
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "serviceGroups": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "current",
                        "pending",
                        "historical"
                      ],
                      "properties": {
                        "current": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "serviceNumber",
                              "subscriptionId",
                              "orderId",
                              "accountId",
                              "sourceCartId",
                              "sourceCartItemId",
                              "sourceCartItemUnitId",
                              "parentServiceId",
                              "replacesServiceId",
                              "replacedByServiceId",
                              "itemType",
                              "productCode",
                              "name",
                              "action",
                              "quantity",
                              "quantityStrategy",
                              "commonAttributes",
                              "unitAttributes",
                              "status",
                              "subStatus",
                              "externalRef",
                              "metadata",
                              "createdBy",
                              "updatedBy",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "serviceNumber": {
                                "type": "string"
                              },
                              "subscriptionId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "orderId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "accountId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceCartId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceCartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceCartItemUnitId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "parentServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "replacesServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "replacedByServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "itemType": {
                                "type": "string"
                              },
                              "productCode": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "action": {
                                "type": "string"
                              },
                              "quantity": {
                                "type": "integer"
                              },
                              "quantityStrategy": {
                                "type": "string"
                              },
                              "commonAttributes": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "unitAttributes": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "instanceLabel": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "naming": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "instanceNoun",
                                  "instanceLabelAttributes",
                                  "unitNoun",
                                  "unitLabelAttributes"
                                ],
                                "properties": {
                                  "instanceNoun": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "singular",
                                          "plural"
                                        ],
                                        "properties": {
                                          "singular": {
                                            "type": "string"
                                          },
                                          "plural": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "instanceLabelAttributes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "unitNoun": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "singular",
                                          "plural"
                                        ],
                                        "properties": {
                                          "singular": {
                                            "type": "string"
                                          },
                                          "plural": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "unitLabelAttributes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "status": {
                                "type": "string"
                              },
                              "subStatus": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "externalRef": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "metadata": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "createdBy": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "updatedBy": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        },
                        "pending": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "serviceNumber",
                              "subscriptionId",
                              "orderId",
                              "accountId",
                              "sourceCartId",
                              "sourceCartItemId",
                              "sourceCartItemUnitId",
                              "parentServiceId",
                              "replacesServiceId",
                              "replacedByServiceId",
                              "itemType",
                              "productCode",
                              "name",
                              "action",
                              "quantity",
                              "quantityStrategy",
                              "commonAttributes",
                              "unitAttributes",
                              "status",
                              "subStatus",
                              "externalRef",
                              "metadata",
                              "createdBy",
                              "updatedBy",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "serviceNumber": {
                                "type": "string"
                              },
                              "subscriptionId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "orderId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "accountId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceCartId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceCartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceCartItemUnitId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "parentServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "replacesServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "replacedByServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "itemType": {
                                "type": "string"
                              },
                              "productCode": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "action": {
                                "type": "string"
                              },
                              "quantity": {
                                "type": "integer"
                              },
                              "quantityStrategy": {
                                "type": "string"
                              },
                              "commonAttributes": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "unitAttributes": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "instanceLabel": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "naming": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "instanceNoun",
                                  "instanceLabelAttributes",
                                  "unitNoun",
                                  "unitLabelAttributes"
                                ],
                                "properties": {
                                  "instanceNoun": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "singular",
                                          "plural"
                                        ],
                                        "properties": {
                                          "singular": {
                                            "type": "string"
                                          },
                                          "plural": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "instanceLabelAttributes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "unitNoun": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "singular",
                                          "plural"
                                        ],
                                        "properties": {
                                          "singular": {
                                            "type": "string"
                                          },
                                          "plural": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "unitLabelAttributes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "status": {
                                "type": "string"
                              },
                              "subStatus": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "externalRef": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "metadata": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "createdBy": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "updatedBy": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        },
                        "historical": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "serviceNumber",
                              "subscriptionId",
                              "orderId",
                              "accountId",
                              "sourceCartId",
                              "sourceCartItemId",
                              "sourceCartItemUnitId",
                              "parentServiceId",
                              "replacesServiceId",
                              "replacedByServiceId",
                              "itemType",
                              "productCode",
                              "name",
                              "action",
                              "quantity",
                              "quantityStrategy",
                              "commonAttributes",
                              "unitAttributes",
                              "status",
                              "subStatus",
                              "externalRef",
                              "metadata",
                              "createdBy",
                              "updatedBy",
                              "createdAt",
                              "updatedAt"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "serviceNumber": {
                                "type": "string"
                              },
                              "subscriptionId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "orderId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "accountId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceCartId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceCartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceCartItemUnitId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "parentServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "replacesServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "replacedByServiceId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "itemType": {
                                "type": "string"
                              },
                              "productCode": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "action": {
                                "type": "string"
                              },
                              "quantity": {
                                "type": "integer"
                              },
                              "quantityStrategy": {
                                "type": "string"
                              },
                              "commonAttributes": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "unitAttributes": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "instanceLabel": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "naming": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "instanceNoun",
                                  "instanceLabelAttributes",
                                  "unitNoun",
                                  "unitLabelAttributes"
                                ],
                                "properties": {
                                  "instanceNoun": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "singular",
                                          "plural"
                                        ],
                                        "properties": {
                                          "singular": {
                                            "type": "string"
                                          },
                                          "plural": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "instanceLabelAttributes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "unitNoun": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "singular",
                                          "plural"
                                        ],
                                        "properties": {
                                          "singular": {
                                            "type": "string"
                                          },
                                          "plural": {
                                            "type": "string"
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "unitLabelAttributes": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  }
                                }
                              },
                              "status": {
                                "type": "string"
                              },
                              "subStatus": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "externalRef": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "metadata": {
                                "type": "object",
                                "additionalProperties": true
                              },
                              "createdBy": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "updatedBy": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "updatedAt": {
                                "type": "string",
                                "format": "date-time"
                              }
                            }
                          }
                        }
                      }
                    },
                    "commercialChange": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "state",
                        "blockedReason",
                        "blockedServices",
                        "allowedStatuses",
                        "openCart",
                        "openOrder",
                        "sourceContext"
                      ],
                      "properties": {
                        "state": {
                          "type": "string",
                          "enum": [
                            "AVAILABLE",
                            "CART_OPEN",
                            "ORDER_OPEN",
                            "BLOCKED"
                          ]
                        },
                        "blockedReason": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "SOURCE_CONTEXT_NOT_FOUND",
                                "NO_CURRENT_SERVICES",
                                "SERVICE_STATUS_NOT_ALLOWED"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "blockedServices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "serviceNumber",
                              "name",
                              "status"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "serviceNumber": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "instanceLabel": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "allowedStatuses": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "openCart": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "cartNumber",
                                "name",
                                "status",
                                "assignedSellerId"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartNumber": {
                                  "type": "string"
                                },
                                "name": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "status": {
                                  "type": "string"
                                },
                                "assignedSellerId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "openOrder": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "orderNumber",
                                "status"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "orderNumber": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceContext": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "catalogueCode",
                                "catalogueViewCode",
                                "pricebookCode",
                                "currency",
                                "primaryContactId"
                              ],
                              "properties": {
                                "catalogueCode": {
                                  "type": "string"
                                },
                                "catalogueViewCode": {
                                  "type": "string"
                                },
                                "pricebookCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "primaryContactId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "technicalUpdate": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "canStart",
                        "blockers",
                        "allowedStatuses",
                        "groups"
                      ],
                      "properties": {
                        "canStart": {
                          "type": "boolean"
                        },
                        "blockers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "message"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "orderId": {
                                "type": "string",
                                "format": "uuid"
                              }
                            }
                          }
                        },
                        "allowedStatuses": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "groups": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "productCode",
                              "name",
                              "itemType",
                              "quantityStrategy",
                              "parentGroupId",
                              "commonFieldGroups",
                              "unitFieldGroups",
                              "services"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "productCode": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "itemType": {
                                "type": "string"
                              },
                              "quantityStrategy": {
                                "type": "string"
                              },
                              "parentGroupId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "commonFieldGroups": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "code",
                                    "name",
                                    "description",
                                    "displayOrder",
                                    "fields"
                                  ],
                                  "properties": {
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "displayOrder": {
                                      "type": "number"
                                    },
                                    "fields": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "code",
                                          "name",
                                          "description",
                                          "dataType",
                                          "unit",
                                          "allowedValues",
                                          "validation",
                                          "attributeCategory",
                                          "valueLevel",
                                          "required",
                                          "editable",
                                          "visible",
                                          "commercial",
                                          "defaultValue",
                                          "usageFlags",
                                          "displayOrder",
                                          "groupCode",
                                          "groupRepeatable"
                                        ],
                                        "properties": {
                                          "code": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "description": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "dataType": {
                                            "type": "string"
                                          },
                                          "unit": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "allowedValues": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": true
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "validation": {
                                            "type": "object",
                                            "additionalProperties": true
                                          },
                                          "attributeCategory": {
                                            "type": "string"
                                          },
                                          "valueLevel": {
                                            "type": "string"
                                          },
                                          "required": {
                                            "type": "boolean"
                                          },
                                          "editable": {
                                            "type": "boolean"
                                          },
                                          "visible": {
                                            "type": "boolean"
                                          },
                                          "commercial": {
                                            "type": "boolean"
                                          },
                                          "defaultValue": {},
                                          "usageFlags": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "displayOrder": {
                                            "type": "number"
                                          },
                                          "groupCode": {
                                            "type": "string"
                                          },
                                          "groupRepeatable": {
                                            "type": "boolean"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "unitFieldGroups": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "code",
                                    "name",
                                    "description",
                                    "displayOrder",
                                    "fields"
                                  ],
                                  "properties": {
                                    "code": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "description": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "displayOrder": {
                                      "type": "number"
                                    },
                                    "fields": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "code",
                                          "name",
                                          "description",
                                          "dataType",
                                          "unit",
                                          "allowedValues",
                                          "validation",
                                          "attributeCategory",
                                          "valueLevel",
                                          "required",
                                          "editable",
                                          "visible",
                                          "commercial",
                                          "defaultValue",
                                          "usageFlags",
                                          "displayOrder",
                                          "groupCode",
                                          "groupRepeatable"
                                        ],
                                        "properties": {
                                          "code": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "description": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "dataType": {
                                            "type": "string"
                                          },
                                          "unit": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "allowedValues": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": true
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "validation": {
                                            "type": "object",
                                            "additionalProperties": true
                                          },
                                          "attributeCategory": {
                                            "type": "string"
                                          },
                                          "valueLevel": {
                                            "type": "string"
                                          },
                                          "required": {
                                            "type": "boolean"
                                          },
                                          "editable": {
                                            "type": "boolean"
                                          },
                                          "visible": {
                                            "type": "boolean"
                                          },
                                          "commercial": {
                                            "type": "boolean"
                                          },
                                          "defaultValue": {},
                                          "usageFlags": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "displayOrder": {
                                            "type": "number"
                                          },
                                          "groupCode": {
                                            "type": "string"
                                          },
                                          "groupRepeatable": {
                                            "type": "boolean"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "services": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "serviceNumber",
                                    "name",
                                    "productCode",
                                    "itemType",
                                    "status",
                                    "externalRef",
                                    "sourceCartItemId",
                                    "sourceCartItemUnitId",
                                    "parentServiceId",
                                    "commonAttributes",
                                    "unitAttributes",
                                    "canUpdate",
                                    "blockers"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "serviceNumber": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "instanceLabel": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "productCode": {
                                      "type": "string"
                                    },
                                    "itemType": {
                                      "type": "string"
                                    },
                                    "status": {
                                      "type": "string"
                                    },
                                    "externalRef": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "sourceCartItemId": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "sourceCartItemUnitId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "parentServiceId": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "format": "uuid"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "commonAttributes": {
                                      "type": "object",
                                      "additionalProperties": true
                                    },
                                    "unitAttributes": {
                                      "type": "object",
                                      "additionalProperties": true
                                    },
                                    "canUpdate": {
                                      "type": "boolean"
                                    },
                                    "blockers": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "code",
                                          "message"
                                        ],
                                        "properties": {
                                          "code": {
                                            "type": "string"
                                          },
                                          "message": {
                                            "type": "string"
                                          },
                                          "orderId": {
                                            "type": "string",
                                            "format": "uuid"
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "summary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "serviceCount",
                        "serviceStatusCounts"
                      ],
                      "properties": {
                        "serviceCount": {
                          "type": "integer"
                        },
                        "serviceStatusCounts": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get current, pending and historical Services for a Subscription"
      }
    },
    "/api/v1/orders": {
      "get": {
        "operationId": "listOrders",
        "summary": "List orders",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "in": "query",
            "name": "q",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            },
            "in": "query",
            "name": "orderNumber",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceCartId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceSubscriptionId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "CREATED",
                "IN_PROGRESS",
                "PARTIALLY_COMPLETED",
                "COMPLETED",
                "FAILED",
                "CANCELLED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "subStatus",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "query",
            "name": "externalRef",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "query",
            "name": "customerReference",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "NEW_SALE",
                "SUBSCRIPTION_CHANGE",
                "NON_COMMERCIAL_CHANGE"
              ]
            },
            "in": "query",
            "name": "orderType",
            "required": false
          },
          {
            "schema": {
              "type": "boolean"
            },
            "in": "query",
            "name": "pointOfNoReturn",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "createdFrom",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "createdTo",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "updatedFrom",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "updatedTo",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "createdAt:asc",
                "createdAt:desc",
                "updatedAt:asc",
                "updatedAt:desc",
                "status:asc",
                "status:desc",
                "orderNumber:asc",
                "orderNumber:desc"
              ]
            },
            "in": "query",
            "name": "sort",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "orderNumber",
                          "revisionNumber",
                          "sourceCartId",
                          "sourceSubscriptionId",
                          "idempotencyKey",
                          "accountId",
                          "primaryContactId",
                          "orderType",
                          "status",
                          "subStatus",
                          "catalogueCode",
                          "catalogueViewCode",
                          "pricebookCode",
                          "currency",
                          "totals",
                          "externalRef",
                          "metadata",
                          "pointOfNoReturnAt",
                          "customerReference",
                          "customerAcceptedAt",
                          "note",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "account"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderNumber": {
                            "type": "string"
                          },
                          "revisionNumber": {
                            "type": "integer"
                          },
                          "sourceCartId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceSubscriptionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "idempotencyKey": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "primaryContactId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "orderType": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "catalogueCode": {
                            "type": "string"
                          },
                          "catalogueViewCode": {
                            "type": "string"
                          },
                          "pricebookCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "totals": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "currency",
                              "oneTimeTotal",
                              "recurringTotalsByPeriod",
                              "meteredTariffCount",
                              "list",
                              "adjusted",
                              "sales"
                            ],
                            "properties": {
                              "currency": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "oneTimeTotal": {
                                "type": "number"
                              },
                              "recurringTotalsByPeriod": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "billingPeriod",
                                    "listAmount",
                                    "adjustmentAmount",
                                    "salesAmount"
                                  ],
                                  "properties": {
                                    "billingPeriod": {
                                      "type": "string"
                                    },
                                    "listAmount": {
                                      "type": "number"
                                    },
                                    "adjustmentAmount": {
                                      "type": "number"
                                    },
                                    "salesAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              },
                              "meteredTariffCount": {
                                "type": "integer"
                              },
                              "list": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "recurringAmount",
                                  "oneTimeAmount",
                                  "totalAmount"
                                ],
                                "properties": {
                                  "recurringAmount": {
                                    "type": "number"
                                  },
                                  "oneTimeAmount": {
                                    "type": "number"
                                  },
                                  "totalAmount": {
                                    "type": "number"
                                  }
                                }
                              },
                              "adjusted": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "recurringAmount",
                                  "oneTimeAmount",
                                  "totalAmount"
                                ],
                                "properties": {
                                  "recurringAmount": {
                                    "type": "number"
                                  },
                                  "oneTimeAmount": {
                                    "type": "number"
                                  },
                                  "totalAmount": {
                                    "type": "number"
                                  }
                                }
                              },
                              "sales": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "recurringAmount",
                                  "oneTimeAmount",
                                  "totalAmount"
                                ],
                                "properties": {
                                  "recurringAmount": {
                                    "type": "number"
                                  },
                                  "oneTimeAmount": {
                                    "type": "number"
                                  },
                                  "totalAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            }
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "pointOfNoReturnAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "customerReference": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "customerAcceptedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "note": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "account": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "accountNumber",
                                  "name",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "accountNumber": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Orders with stable cursor pagination"
      }
    },
    "/api/v1/orders/{orderId}": {
      "get": {
        "operationId": "getOrder",
        "summary": "Get an order",
        "tags": [
          "Commercial close"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "orderId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "order",
                    "subscriptions",
                    "services",
                    "deliverableItems"
                  ],
                  "properties": {
                    "execution": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "commandId",
                        "cartVersion"
                      ],
                      "properties": {
                        "commandId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartVersion": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    },
                    "order": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "orderNumber",
                        "revisionNumber",
                        "sourceCartId",
                        "sourceSubscriptionId",
                        "idempotencyKey",
                        "accountId",
                        "primaryContactId",
                        "orderType",
                        "status",
                        "subStatus",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "totals",
                        "externalRef",
                        "metadata",
                        "pointOfNoReturnAt",
                        "customerReference",
                        "customerAcceptedAt",
                        "note",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "orderNumber": {
                          "type": "string"
                        },
                        "revisionNumber": {
                          "type": "integer"
                        },
                        "sourceCartId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceSubscriptionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "idempotencyKey": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "primaryContactId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderType": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "subStatus": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "totals": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "currency",
                            "oneTimeTotal",
                            "recurringTotalsByPeriod",
                            "meteredTariffCount",
                            "list",
                            "adjusted",
                            "sales"
                          ],
                          "properties": {
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oneTimeTotal": {
                              "type": "number"
                            },
                            "recurringTotalsByPeriod": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "billingPeriod",
                                  "listAmount",
                                  "adjustmentAmount",
                                  "salesAmount"
                                ],
                                "properties": {
                                  "billingPeriod": {
                                    "type": "string"
                                  },
                                  "listAmount": {
                                    "type": "number"
                                  },
                                  "adjustmentAmount": {
                                    "type": "number"
                                  },
                                  "salesAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            },
                            "meteredTariffCount": {
                              "type": "integer"
                            },
                            "list": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "adjusted": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "sales": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        },
                        "externalRef": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "pointOfNoReturnAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "customerReference": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "customerAcceptedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "note": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "subscriptions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "subscriptionNumber",
                          "orderId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "accountId",
                          "subscriptionType",
                          "status",
                          "subStatus",
                          "contextCode",
                          "name",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subscriptionNumber": {
                            "type": "string"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subscriptionType": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contextCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "serviceNumber",
                          "subscriptionId",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "parentServiceId",
                          "replacesServiceId",
                          "replacedByServiceId",
                          "itemType",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "serviceNumber": {
                            "type": "string"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacesServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacedByServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string"
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "deliverableItems": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "deliverableNumber",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "relatedServiceId",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "deliverableNumber": {
                            "type": "string"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "relatedServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nonCommercialChange": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "changeCode",
                        "sourceSubscriptionId",
                        "affectedServiceIds"
                      ],
                      "properties": {
                        "changeCode": {
                          "type": "string"
                        },
                        "sourceSubscriptionId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "affectedServiceIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid"
                          }
                        }
                      }
                    },
                    "amendment": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "benchmark": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "durationMs",
                        "cartItemCount",
                        "unitCount",
                        "subscriptionCount",
                        "serviceCount",
                        "deliverableItemCount"
                      ],
                      "properties": {
                        "durationMs": {
                          "type": "number"
                        },
                        "cartItemCount": {
                          "type": "integer"
                        },
                        "unitCount": {
                          "type": "integer"
                        },
                        "subscriptionCount": {
                          "type": "integer"
                        },
                        "serviceCount": {
                          "type": "integer"
                        },
                        "deliverableItemCount": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get an Order with its decomposed subscriptions, services and deliverables"
      },
      "patch": {
        "operationId": "patchOrderLifecycle",
        "summary": "Update an order",
        "tags": [
          "Operate"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "CREATED",
                      "IN_PROGRESS",
                      "PARTIALLY_COMPLETED",
                      "COMPLETED",
                      "FAILED",
                      "CANCELLED"
                    ]
                  },
                  "subStatus": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "externalRef": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "pointOfNoReturnAt": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "changeSource": {
                    "type": "string",
                    "enum": [
                      "USER",
                      "EXTENSION"
                    ]
                  },
                  "note": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "correlationId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "orderId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "orderNumber",
                    "revisionNumber",
                    "sourceCartId",
                    "sourceSubscriptionId",
                    "idempotencyKey",
                    "accountId",
                    "primaryContactId",
                    "orderType",
                    "status",
                    "subStatus",
                    "catalogueCode",
                    "catalogueViewCode",
                    "pricebookCode",
                    "currency",
                    "totals",
                    "externalRef",
                    "metadata",
                    "pointOfNoReturnAt",
                    "customerReference",
                    "customerAcceptedAt",
                    "note",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "orderNumber": {
                      "type": "string"
                    },
                    "revisionNumber": {
                      "type": "integer"
                    },
                    "sourceCartId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceSubscriptionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "idempotencyKey": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "primaryContactId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "orderType": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "subStatus": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "catalogueViewCode": {
                      "type": "string"
                    },
                    "pricebookCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency",
                        "oneTimeTotal",
                        "recurringTotalsByPeriod",
                        "meteredTariffCount",
                        "list",
                        "adjusted",
                        "sales"
                      ],
                      "properties": {
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oneTimeTotal": {
                          "type": "number"
                        },
                        "recurringTotalsByPeriod": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "billingPeriod",
                              "listAmount",
                              "adjustmentAmount",
                              "salesAmount"
                            ],
                            "properties": {
                              "billingPeriod": {
                                "type": "string"
                              },
                              "listAmount": {
                                "type": "number"
                              },
                              "adjustmentAmount": {
                                "type": "number"
                              },
                              "salesAmount": {
                                "type": "number"
                              }
                            }
                          }
                        },
                        "meteredTariffCount": {
                          "type": "integer"
                        },
                        "list": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "adjusted": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "sales": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    },
                    "externalRef": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "pointOfNoReturnAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "customerReference": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "customerAcceptedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "note": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update approved Order lifecycle fields"
      }
    },
    "/api/v1/orders/{orderId}/changes": {
      "get": {
        "operationId": "listOrderChanges",
        "summary": "List order changes",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "orderId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "orderId",
                    "currentRevisionNumber",
                    "items"
                  ],
                  "properties": {
                    "orderId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "currentRevisionNumber": {
                      "type": "integer"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "cartId",
                          "cartNumber",
                          "name",
                          "changeCode",
                          "sourceCartId",
                          "revisionNumber",
                          "appliedAt",
                          "appliedBy",
                          "summary",
                          "itemChanges",
                          "totals"
                        ],
                        "properties": {
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartNumber": {
                            "type": "string"
                          },
                          "name": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changeCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "revisionNumber": {
                            "type": "integer"
                          },
                          "appliedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "appliedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "summary": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "addedItems",
                              "modifiedItems",
                              "removedItems",
                              "addedSubscriptions",
                              "modifiedSubscriptions",
                              "cancelledSubscriptions",
                              "addedServices",
                              "modifiedServices",
                              "cancelledServices",
                              "addedDeliverables",
                              "modifiedDeliverables",
                              "cancelledDeliverables",
                              "addedUnits",
                              "modifiedUnits",
                              "removedUnits"
                            ],
                            "properties": {
                              "addedItems": {
                                "type": "integer"
                              },
                              "modifiedItems": {
                                "type": "integer"
                              },
                              "removedItems": {
                                "type": "integer"
                              },
                              "addedSubscriptions": {
                                "type": "integer"
                              },
                              "modifiedSubscriptions": {
                                "type": "integer"
                              },
                              "cancelledSubscriptions": {
                                "type": "integer"
                              },
                              "addedServices": {
                                "type": "integer"
                              },
                              "modifiedServices": {
                                "type": "integer"
                              },
                              "cancelledServices": {
                                "type": "integer"
                              },
                              "addedDeliverables": {
                                "type": "integer"
                              },
                              "modifiedDeliverables": {
                                "type": "integer"
                              },
                              "cancelledDeliverables": {
                                "type": "integer"
                              },
                              "addedUnits": {
                                "type": "integer"
                              },
                              "modifiedUnits": {
                                "type": "integer"
                              },
                              "removedUnits": {
                                "type": "integer"
                              }
                            }
                          },
                          "itemChanges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "cartItemId",
                                "action",
                                "itemCode",
                                "before",
                                "after"
                              ],
                              "properties": {
                                "cartItemId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "action": {
                                  "type": "string"
                                },
                                "itemCode": {
                                  "type": "string"
                                },
                                "before": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "productCode",
                                        "name",
                                        "quantity",
                                        "quantityStrategy",
                                        "attributes"
                                      ],
                                      "properties": {
                                        "productCode": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "quantity": {
                                          "type": "number"
                                        },
                                        "quantityStrategy": {
                                          "type": "string"
                                        },
                                        "attributes": {
                                          "type": "object",
                                          "additionalProperties": true
                                        }
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "after": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "productCode",
                                        "name",
                                        "quantity",
                                        "quantityStrategy",
                                        "attributes"
                                      ],
                                      "properties": {
                                        "productCode": {
                                          "type": "string"
                                        },
                                        "name": {
                                          "type": "string"
                                        },
                                        "quantity": {
                                          "type": "number"
                                        },
                                        "quantityStrategy": {
                                          "type": "string"
                                        },
                                        "attributes": {
                                          "type": "object",
                                          "additionalProperties": true
                                        }
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "totals": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "before",
                              "after",
                              "delta"
                            ],
                            "properties": {
                              "before": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "currency",
                                  "oneTimeTotal",
                                  "recurringTotalsByPeriod",
                                  "meteredTariffCount",
                                  "list",
                                  "adjusted",
                                  "sales"
                                ],
                                "properties": {
                                  "currency": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "oneTimeTotal": {
                                    "type": "number"
                                  },
                                  "recurringTotalsByPeriod": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "billingPeriod",
                                        "listAmount",
                                        "adjustmentAmount",
                                        "salesAmount"
                                      ],
                                      "properties": {
                                        "billingPeriod": {
                                          "type": "string"
                                        },
                                        "listAmount": {
                                          "type": "number"
                                        },
                                        "adjustmentAmount": {
                                          "type": "number"
                                        },
                                        "salesAmount": {
                                          "type": "number"
                                        }
                                      }
                                    }
                                  },
                                  "meteredTariffCount": {
                                    "type": "integer"
                                  },
                                  "list": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "recurringAmount",
                                      "oneTimeAmount",
                                      "totalAmount"
                                    ],
                                    "properties": {
                                      "recurringAmount": {
                                        "type": "number"
                                      },
                                      "oneTimeAmount": {
                                        "type": "number"
                                      },
                                      "totalAmount": {
                                        "type": "number"
                                      }
                                    }
                                  },
                                  "adjusted": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "recurringAmount",
                                      "oneTimeAmount",
                                      "totalAmount"
                                    ],
                                    "properties": {
                                      "recurringAmount": {
                                        "type": "number"
                                      },
                                      "oneTimeAmount": {
                                        "type": "number"
                                      },
                                      "totalAmount": {
                                        "type": "number"
                                      }
                                    }
                                  },
                                  "sales": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "recurringAmount",
                                      "oneTimeAmount",
                                      "totalAmount"
                                    ],
                                    "properties": {
                                      "recurringAmount": {
                                        "type": "number"
                                      },
                                      "oneTimeAmount": {
                                        "type": "number"
                                      },
                                      "totalAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                }
                              },
                              "after": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "currency",
                                  "oneTimeTotal",
                                  "recurringTotalsByPeriod",
                                  "meteredTariffCount",
                                  "list",
                                  "adjusted",
                                  "sales"
                                ],
                                "properties": {
                                  "currency": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "oneTimeTotal": {
                                    "type": "number"
                                  },
                                  "recurringTotalsByPeriod": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "billingPeriod",
                                        "listAmount",
                                        "adjustmentAmount",
                                        "salesAmount"
                                      ],
                                      "properties": {
                                        "billingPeriod": {
                                          "type": "string"
                                        },
                                        "listAmount": {
                                          "type": "number"
                                        },
                                        "adjustmentAmount": {
                                          "type": "number"
                                        },
                                        "salesAmount": {
                                          "type": "number"
                                        }
                                      }
                                    }
                                  },
                                  "meteredTariffCount": {
                                    "type": "integer"
                                  },
                                  "list": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "recurringAmount",
                                      "oneTimeAmount",
                                      "totalAmount"
                                    ],
                                    "properties": {
                                      "recurringAmount": {
                                        "type": "number"
                                      },
                                      "oneTimeAmount": {
                                        "type": "number"
                                      },
                                      "totalAmount": {
                                        "type": "number"
                                      }
                                    }
                                  },
                                  "adjusted": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "recurringAmount",
                                      "oneTimeAmount",
                                      "totalAmount"
                                    ],
                                    "properties": {
                                      "recurringAmount": {
                                        "type": "number"
                                      },
                                      "oneTimeAmount": {
                                        "type": "number"
                                      },
                                      "totalAmount": {
                                        "type": "number"
                                      }
                                    }
                                  },
                                  "sales": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "recurringAmount",
                                      "oneTimeAmount",
                                      "totalAmount"
                                    ],
                                    "properties": {
                                      "recurringAmount": {
                                        "type": "number"
                                      },
                                      "oneTimeAmount": {
                                        "type": "number"
                                      },
                                      "totalAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                }
                              },
                              "delta": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "currency",
                                  "oneTimeTotal",
                                  "recurringTotalsByPeriod",
                                  "meteredTariffCount",
                                  "list",
                                  "adjusted",
                                  "sales"
                                ],
                                "properties": {
                                  "currency": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "oneTimeTotal": {
                                    "type": "number"
                                  },
                                  "recurringTotalsByPeriod": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "billingPeriod",
                                        "listAmount",
                                        "adjustmentAmount",
                                        "salesAmount"
                                      ],
                                      "properties": {
                                        "billingPeriod": {
                                          "type": "string"
                                        },
                                        "listAmount": {
                                          "type": "number"
                                        },
                                        "adjustmentAmount": {
                                          "type": "number"
                                        },
                                        "salesAmount": {
                                          "type": "number"
                                        }
                                      }
                                    }
                                  },
                                  "meteredTariffCount": {
                                    "type": "integer"
                                  },
                                  "list": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "recurringAmount",
                                      "oneTimeAmount",
                                      "totalAmount"
                                    ],
                                    "properties": {
                                      "recurringAmount": {
                                        "type": "number"
                                      },
                                      "oneTimeAmount": {
                                        "type": "number"
                                      },
                                      "totalAmount": {
                                        "type": "number"
                                      }
                                    }
                                  },
                                  "adjusted": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "recurringAmount",
                                      "oneTimeAmount",
                                      "totalAmount"
                                    ],
                                    "properties": {
                                      "recurringAmount": {
                                        "type": "number"
                                      },
                                      "oneTimeAmount": {
                                        "type": "number"
                                      },
                                      "totalAmount": {
                                        "type": "number"
                                      }
                                    }
                                  },
                                  "sales": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "recurringAmount",
                                      "oneTimeAmount",
                                      "totalAmount"
                                    ],
                                    "properties": {
                                      "recurringAmount": {
                                        "type": "number"
                                      },
                                      "oneTimeAmount": {
                                        "type": "number"
                                      },
                                      "totalAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List applied Order changes"
      }
    },
    "/api/v1/subscriptions": {
      "get": {
        "operationId": "listSubscriptions",
        "summary": "List subscriptions",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "in": "query",
            "name": "q",
            "required": false
          },
          {
            "schema": {
              "minItems": 1,
              "maxItems": 5,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 200,
                "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}=\\s*\\S.*$"
              }
            },
            "in": "query",
            "name": "attribute",
            "required": false,
            "description": "Exact match on searchable attribute values as code=value (at most 5; every entry must match, case-insensitive). Codes that are not searchable match nothing."
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            },
            "in": "query",
            "name": "subscriptionNumber",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PENDING_ACTIVATION",
                "PARTIALLY_ACTIVE",
                "ACTIVE",
                "SUSPENDED",
                "TERMINATED",
                "CANCELLED",
                "FAILED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "subStatus",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "externalRef",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PRODUCT",
                "PACKAGE",
                "SOLUTION"
              ]
            },
            "in": "query",
            "name": "subscriptionType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "orderId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceCartId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceCartItemId",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "createdFrom",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "createdTo",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "updatedFrom",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "updatedTo",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "createdAt:asc",
                "createdAt:desc",
                "updatedAt:asc",
                "updatedAt:desc",
                "status:asc",
                "status:desc",
                "subscriptionNumber:asc",
                "subscriptionNumber:desc",
                "name:asc",
                "name:desc"
              ]
            },
            "in": "query",
            "name": "sort",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "subscriptionNumber",
                          "orderId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "accountId",
                          "subscriptionType",
                          "status",
                          "subStatus",
                          "contextCode",
                          "name",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "account",
                          "order"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subscriptionNumber": {
                            "type": "string"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subscriptionType": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contextCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "account": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "accountNumber",
                                  "name",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "accountNumber": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "order": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "orderNumber",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "orderNumber": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Subscriptions with stable cursor pagination"
      }
    },
    "/api/v1/subscriptions/{subscriptionId}": {
      "get": {
        "operationId": "getSubscription",
        "summary": "Get a subscription",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "subscriptionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "subscriptionNumber",
                    "orderId",
                    "sourceCartId",
                    "sourceCartItemId",
                    "accountId",
                    "subscriptionType",
                    "status",
                    "subStatus",
                    "contextCode",
                    "name",
                    "externalRef",
                    "metadata",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "services"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "subscriptionNumber": {
                      "type": "string"
                    },
                    "orderId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartItemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "subscriptionType": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "subStatus": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "contextCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "externalRef": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "serviceNumber",
                          "subscriptionId",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "parentServiceId",
                          "replacesServiceId",
                          "replacedByServiceId",
                          "itemType",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "serviceNumber": {
                            "type": "string"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacesServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacedByServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string"
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a Subscription and its Services"
      },
      "patch": {
        "operationId": "patchSubscriptionLifecycle",
        "summary": "Update a subscription",
        "tags": [
          "Operate"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "PENDING_ACTIVATION",
                      "PARTIALLY_ACTIVE",
                      "ACTIVE",
                      "SUSPENDED",
                      "TERMINATED",
                      "CANCELLED",
                      "FAILED"
                    ]
                  },
                  "subStatus": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "externalRef": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "changeSource": {
                    "type": "string",
                    "enum": [
                      "USER",
                      "EXTENSION"
                    ]
                  },
                  "note": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "correlationId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "subscriptionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "subscriptionNumber",
                    "orderId",
                    "sourceCartId",
                    "sourceCartItemId",
                    "accountId",
                    "subscriptionType",
                    "status",
                    "subStatus",
                    "contextCode",
                    "name",
                    "externalRef",
                    "metadata",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "subscriptionNumber": {
                      "type": "string"
                    },
                    "orderId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartItemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "subscriptionType": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "subStatus": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "contextCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "externalRef": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update approved Subscription lifecycle fields"
      }
    },
    "/api/v1/services": {
      "get": {
        "operationId": "listServices",
        "summary": "List services",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "in": "query",
            "name": "q",
            "required": false
          },
          {
            "schema": {
              "minItems": 1,
              "maxItems": 5,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 200,
                "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}=\\s*\\S.*$"
              }
            },
            "in": "query",
            "name": "attribute",
            "required": false,
            "description": "Exact match on searchable attribute values as code=value (at most 5; every entry must match, case-insensitive). Codes that are not searchable match nothing."
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            },
            "in": "query",
            "name": "serviceNumber",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "subscriptionId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "orderId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceCartItemId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceCartItemUnitId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "parentServiceId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "productCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PENDING_ACTIVATION",
                "ACTIVE",
                "SUSPENDED",
                "TERMINATED",
                "CANCELLED",
                "FAILED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "subStatus",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "externalRef",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "createdFrom",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "createdTo",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "updatedFrom",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "updatedTo",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "createdAt:asc",
                "createdAt:desc",
                "updatedAt:asc",
                "updatedAt:desc",
                "status:asc",
                "status:desc",
                "serviceNumber:asc",
                "serviceNumber:desc",
                "name:asc",
                "name:desc"
              ]
            },
            "in": "query",
            "name": "sort",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "serviceNumber",
                          "subscriptionId",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "parentServiceId",
                          "replacesServiceId",
                          "replacedByServiceId",
                          "itemType",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "account",
                          "order",
                          "subscription"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "serviceNumber": {
                            "type": "string"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacesServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacedByServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string"
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "account": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "accountNumber",
                                  "name",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "accountNumber": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "order": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "orderNumber",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "orderNumber": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "subscription": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "subscriptionNumber",
                                  "name",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "subscriptionNumber": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "instanceLabel": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Services with stable cursor pagination"
      }
    },
    "/api/v1/services/{serviceId}": {
      "get": {
        "operationId": "getService",
        "summary": "Get a service",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "serviceId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "serviceNumber",
                    "subscriptionId",
                    "orderId",
                    "accountId",
                    "sourceCartId",
                    "sourceCartItemId",
                    "sourceCartItemUnitId",
                    "parentServiceId",
                    "replacesServiceId",
                    "replacedByServiceId",
                    "itemType",
                    "productCode",
                    "name",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "commonAttributes",
                    "unitAttributes",
                    "status",
                    "subStatus",
                    "externalRef",
                    "metadata",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "account",
                    "order",
                    "subscription",
                    "parentService",
                    "replacesService",
                    "replacedByService"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "serviceNumber": {
                      "type": "string"
                    },
                    "subscriptionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "orderId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartItemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartItemUnitId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "parentServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "replacesServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "replacedByServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string"
                    },
                    "productCode": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "action": {
                      "type": "string"
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string"
                    },
                    "commonAttributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "unitAttributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "status": {
                      "type": "string"
                    },
                    "subStatus": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "externalRef": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "account": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "accountNumber",
                            "name",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "accountNumber": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "order": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "orderNumber",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "orderNumber": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "subscription": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "subscriptionNumber",
                            "name",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "subscriptionNumber": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "instanceLabel": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "parentService": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "serviceNumber",
                            "name",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "serviceNumber": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "instanceLabel": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "replacesService": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "serviceNumber",
                            "name",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "serviceNumber": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "instanceLabel": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "replacedByService": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "serviceNumber",
                            "name",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "serviceNumber": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "instanceLabel": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a Service"
      },
      "patch": {
        "operationId": "patchServiceLifecycle",
        "summary": "Update a service",
        "tags": [
          "Operate"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "PENDING_ACTIVATION",
                      "ACTIVE",
                      "SUSPENDED",
                      "TERMINATED",
                      "CANCELLED",
                      "FAILED"
                    ]
                  },
                  "subStatus": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "externalRef": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "changeSource": {
                    "type": "string",
                    "enum": [
                      "USER",
                      "EXTENSION"
                    ]
                  },
                  "note": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "correlationId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "serviceId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "serviceNumber",
                    "subscriptionId",
                    "orderId",
                    "accountId",
                    "sourceCartId",
                    "sourceCartItemId",
                    "sourceCartItemUnitId",
                    "parentServiceId",
                    "replacesServiceId",
                    "replacedByServiceId",
                    "itemType",
                    "productCode",
                    "name",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "commonAttributes",
                    "unitAttributes",
                    "status",
                    "subStatus",
                    "externalRef",
                    "metadata",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "serviceNumber": {
                      "type": "string"
                    },
                    "subscriptionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "orderId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartItemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartItemUnitId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "parentServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "replacesServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "replacedByServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "itemType": {
                      "type": "string"
                    },
                    "productCode": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "action": {
                      "type": "string"
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string"
                    },
                    "commonAttributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "unitAttributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "instanceLabel": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "naming": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "instanceNoun",
                        "instanceLabelAttributes",
                        "unitNoun",
                        "unitLabelAttributes"
                      ],
                      "properties": {
                        "instanceNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "instanceLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "unitNoun": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "singular",
                                "plural"
                              ],
                              "properties": {
                                "singular": {
                                  "type": "string"
                                },
                                "plural": {
                                  "type": "string"
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "unitLabelAttributes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "status": {
                      "type": "string"
                    },
                    "subStatus": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "externalRef": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update approved Service lifecycle fields"
      }
    },
    "/api/v1/deliverables": {
      "get": {
        "operationId": "listDeliverables",
        "summary": "List deliverables",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            },
            "in": "query",
            "name": "q",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 40
            },
            "in": "query",
            "name": "deliverableNumber",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "orderId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "accountId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceCartItemId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "sourceCartItemUnitId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "query",
            "name": "relatedServiceId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "productCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "PENDING",
                "IN_PROGRESS",
                "COMPLETED",
                "FAILED",
                "CANCELLED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "subStatus",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "externalRef",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "createdFrom",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "createdTo",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "updatedFrom",
            "required": false
          },
          {
            "schema": {},
            "in": "query",
            "name": "updatedTo",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "createdAt:asc",
                "createdAt:desc",
                "updatedAt:asc",
                "updatedAt:desc",
                "status:asc",
                "status:desc",
                "deliverableNumber:asc",
                "deliverableNumber:desc",
                "name:asc",
                "name:desc"
              ]
            },
            "in": "query",
            "name": "sort",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "deliverableNumber",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "relatedServiceId",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "account",
                          "order",
                          "relatedService"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "deliverableNumber": {
                            "type": "string"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "relatedServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "account": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "accountNumber",
                                  "name",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "accountNumber": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "order": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "orderNumber",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "orderNumber": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "relatedService": {
                            "anyOf": [
                              {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "id",
                                  "serviceNumber",
                                  "name",
                                  "status"
                                ],
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "serviceNumber": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "instanceLabel": {
                                    "anyOf": [
                                      {
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "status": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Deliverables with stable cursor pagination"
      }
    },
    "/api/v1/deliverables/{deliverableItemId}": {
      "get": {
        "operationId": "getDeliverable",
        "summary": "Get a deliverable",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "deliverableItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "deliverableNumber",
                    "orderId",
                    "accountId",
                    "sourceCartId",
                    "sourceCartItemId",
                    "sourceCartItemUnitId",
                    "relatedServiceId",
                    "productCode",
                    "name",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "commonAttributes",
                    "unitAttributes",
                    "status",
                    "subStatus",
                    "externalRef",
                    "metadata",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "account",
                    "order",
                    "relatedService"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "deliverableNumber": {
                      "type": "string"
                    },
                    "orderId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartItemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartItemUnitId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "relatedServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productCode": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "action": {
                      "type": "string"
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string"
                    },
                    "commonAttributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "unitAttributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string"
                    },
                    "subStatus": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "externalRef": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "account": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "accountNumber",
                            "name",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "accountNumber": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "order": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "orderNumber",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "orderNumber": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "relatedService": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "id",
                            "serviceNumber",
                            "name",
                            "status"
                          ],
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid"
                            },
                            "serviceNumber": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "instanceLabel": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string"
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a Deliverable"
      },
      "patch": {
        "operationId": "patchDeliverableLifecycle",
        "summary": "Update a deliverable",
        "tags": [
          "Operate"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string",
                    "enum": [
                      "PENDING",
                      "IN_PROGRESS",
                      "COMPLETED",
                      "FAILED",
                      "CANCELLED"
                    ]
                  },
                  "subStatus": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "externalRef": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "changeSource": {
                    "type": "string",
                    "enum": [
                      "USER",
                      "EXTENSION"
                    ]
                  },
                  "note": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "correlationId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "deliverableItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "deliverableNumber",
                    "orderId",
                    "accountId",
                    "sourceCartId",
                    "sourceCartItemId",
                    "sourceCartItemUnitId",
                    "relatedServiceId",
                    "productCode",
                    "name",
                    "action",
                    "quantity",
                    "quantityStrategy",
                    "commonAttributes",
                    "unitAttributes",
                    "status",
                    "subStatus",
                    "externalRef",
                    "metadata",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "deliverableNumber": {
                      "type": "string"
                    },
                    "orderId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartItemId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "sourceCartItemUnitId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "relatedServiceId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "productCode": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "action": {
                      "type": "string"
                    },
                    "quantity": {
                      "type": "integer"
                    },
                    "quantityStrategy": {
                      "type": "string"
                    },
                    "commonAttributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "unitAttributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "status": {
                      "type": "string"
                    },
                    "subStatus": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "externalRef": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "metadata": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update approved Deliverable lifecycle fields"
      }
    },
    "/api/v1/orders/{orderId}/activity": {
      "get": {
        "operationId": "listOrderActivity",
        "summary": "List order activity",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "boolean"
            },
            "in": "query",
            "name": "includeChildren",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "orderId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "entityType",
                          "entityId",
                          "orderId",
                          "subscriptionId",
                          "changeSource",
                          "changedFields",
                          "metadata",
                          "note",
                          "actorId",
                          "correlationId",
                          "createdAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "entityType": {
                            "type": "string"
                          },
                          "entityId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "subscriptionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changeSource": {
                            "type": "string"
                          },
                          "changedFields": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "note": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "actorId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "correlationId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "audit.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Order activity with stable cursor pagination"
      }
    },
    "/api/v1/subscriptions/{subscriptionId}/activity": {
      "get": {
        "operationId": "listSubscriptionActivity",
        "summary": "List subscription activity",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "boolean"
            },
            "in": "query",
            "name": "includeServices",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "subscriptionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "entityType",
                          "entityId",
                          "orderId",
                          "subscriptionId",
                          "changeSource",
                          "changedFields",
                          "metadata",
                          "note",
                          "actorId",
                          "correlationId",
                          "createdAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "entityType": {
                            "type": "string"
                          },
                          "entityId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "subscriptionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changeSource": {
                            "type": "string"
                          },
                          "changedFields": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "note": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "actorId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "correlationId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "audit.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Subscription activity with stable cursor pagination"
      }
    },
    "/api/v1/services/{serviceId}/activity": {
      "get": {
        "operationId": "listServiceActivity",
        "summary": "List service activity",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "serviceId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "entityType",
                          "entityId",
                          "orderId",
                          "subscriptionId",
                          "changeSource",
                          "changedFields",
                          "metadata",
                          "note",
                          "actorId",
                          "correlationId",
                          "createdAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "entityType": {
                            "type": "string"
                          },
                          "entityId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "subscriptionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changeSource": {
                            "type": "string"
                          },
                          "changedFields": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "note": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "actorId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "correlationId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "audit.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Service activity with stable cursor pagination"
      }
    },
    "/api/v1/deliverables/{deliverableItemId}/activity": {
      "get": {
        "operationId": "listDeliverableActivity",
        "summary": "List deliverable activity",
        "tags": [
          "Operate"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "deliverableItemId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "entityType",
                          "entityId",
                          "orderId",
                          "subscriptionId",
                          "changeSource",
                          "changedFields",
                          "metadata",
                          "note",
                          "actorId",
                          "correlationId",
                          "createdAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "entityType": {
                            "type": "string"
                          },
                          "entityId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "subscriptionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "changeSource": {
                            "type": "string"
                          },
                          "changedFields": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "note": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "actorId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "correlationId": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "audit.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List Deliverable activity with stable cursor pagination"
      }
    },
    "/api/v1/services/{serviceId}/non-commercial-attributes": {
      "patch": {
        "operationId": "updateServiceNonCommercialAttributes",
        "summary": "Update service details",
        "tags": [
          "Service details updates"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commonAttributes": {
                    "type": "object",
                    "properties": {
                      "set": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                        },
                        "additionalProperties": {}
                      },
                      "clear": {
                        "maxItems": 250,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "unitAttributes": {
                    "type": "object",
                    "properties": {
                      "set": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                        },
                        "additionalProperties": {}
                      },
                      "clear": {
                        "maxItems": 250,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "note": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "serviceId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "header",
            "name": "idempotency-key",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "subscriptionId",
                    "changedServiceIds",
                    "services",
                    "warnings"
                  ],
                  "properties": {
                    "subscriptionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "changedServiceIds": {
                      "type": "array",
                      "description": "Services whose values changed, including UNIT group members reached through a shared value. Empty when the request changed nothing.",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    },
                    "services": {
                      "type": "array",
                      "description": "Every targeted Service as it reads after the update.",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "serviceNumber",
                          "subscriptionId",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "parentServiceId",
                          "replacesServiceId",
                          "replacedByServiceId",
                          "itemType",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "serviceNumber": {
                            "type": "string"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacesServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacedByServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string"
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "description": "Rule warnings the change caused. A change that causes a new rule error is refused with non_commercial_rule_violation.",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "ruleCode",
                          "code",
                          "severity",
                          "message",
                          "cartItemId",
                          "resultKey"
                        ],
                        "properties": {
                          "ruleCode": {
                            "type": "string"
                          },
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "cartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "resultKey": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update service details on a service without creating an order."
      }
    },
    "/api/v1/subscriptions/{subscriptionId}/non-commercial-attributes/bulk-update": {
      "post": {
        "operationId": "bulkUpdateServiceNonCommercialAttributes",
        "summary": "Update service details in bulk",
        "tags": [
          "Service details updates"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "note": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "serviceChanges": {
                    "minItems": 1,
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "serviceIds": {
                          "minItems": 1,
                          "maxItems": 10000,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        },
                        "commonAttributes": {
                          "type": "object",
                          "properties": {
                            "set": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string",
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                              },
                              "additionalProperties": {}
                            },
                            "clear": {
                              "maxItems": 250,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "unitAttributes": {
                          "type": "object",
                          "properties": {
                            "set": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string",
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                              },
                              "additionalProperties": {}
                            },
                            "clear": {
                              "maxItems": 250,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "serviceIds"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "serviceChanges"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "subscriptionId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "header",
            "name": "idempotency-key",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "subscriptionId",
                    "changedServiceIds",
                    "services",
                    "warnings"
                  ],
                  "properties": {
                    "subscriptionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "changedServiceIds": {
                      "type": "array",
                      "description": "Services whose values changed, including UNIT group members reached through a shared value. Empty when the request changed nothing.",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    },
                    "services": {
                      "type": "array",
                      "description": "Every targeted Service as it reads after the update.",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "serviceNumber",
                          "subscriptionId",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "parentServiceId",
                          "replacesServiceId",
                          "replacedByServiceId",
                          "itemType",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "serviceNumber": {
                            "type": "string"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacesServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacedByServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string"
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "warnings": {
                      "type": "array",
                      "description": "Rule warnings the change caused. A change that causes a new rule error is refused with non_commercial_rule_violation.",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "ruleCode",
                          "code",
                          "severity",
                          "message",
                          "cartItemId",
                          "resultKey"
                        ],
                        "properties": {
                          "ruleCode": {
                            "type": "string"
                          },
                          "code": {
                            "type": "string"
                          },
                          "severity": {
                            "type": "string",
                            "enum": [
                              "ERROR",
                              "WARNING"
                            ]
                          },
                          "message": {
                            "type": "string"
                          },
                          "cartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "resultKey": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "operate.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update service details on many services of a subscription without creating an order."
      }
    },
    "/api/v1/subscriptions/{subscriptionId}/changes": {
      "post": {
        "operationId": "createSubscriptionChange",
        "summary": "Change a subscription",
        "tags": [
          "Subscription changes"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "commandId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedSourceDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "catalogueViewCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "changeCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "pricebookCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "primaryContactId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributes": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "catalogueViewCode",
                  "changeCode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "subscriptionId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true,
                  "required": [
                    "cart",
                    "totals",
                    "totalsAreCurrent",
                    "approvalSummary",
                    "availableActions",
                    "items",
                    "change"
                  ],
                  "properties": {
                    "cart": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "cartNumber",
                        "name",
                        "cartType",
                        "status",
                        "accountId",
                        "primaryContactId",
                        "assignedSellerId",
                        "assignedAt",
                        "assignedBy",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "agreementId",
                        "agreementCode",
                        "agreementName",
                        "discretionaryDiscountsAllowed",
                        "sourceCartId",
                        "sourceOrderId",
                        "sourceSubscriptionId",
                        "orderStatus",
                        "orderedItemCount",
                        "changeCode",
                        "attributes",
                        "validationStatus",
                        "validationIssues",
                        "ruleResults",
                        "pricedAt",
                        "expiresAt",
                        "acceptedAt",
                        "version",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartNumber": {
                          "type": "string"
                        },
                        "name": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cartType": {
                          "type": "string",
                          "enum": [
                            "NEW_SALE",
                            "SUBSCRIPTION_CHANGE",
                            "ORDER_AMENDMENT"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "DRAFT",
                            "PRICED",
                            "PENDING_APPROVAL",
                            "APPROVED",
                            "ACCEPTED",
                            "ORDERED",
                            "CANCELLED",
                            "EXPIRED"
                          ]
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "primaryContactId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedSellerId": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "assignedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "agreementName": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "discretionaryDiscountsAllowed": {
                          "type": "boolean"
                        },
                        "sourceCartId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceOrderId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceSubscriptionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderStatus": {
                          "type": "string",
                          "enum": [
                            "NOT_ORDERED",
                            "PARTIALLY_ORDERED",
                            "ORDERED"
                          ],
                          "description": "Ordering progress, independent of the commercial status. PARTIALLY_ORDERED when some top-level items are ordered and others are still open."
                        },
                        "orderedItemCount": {
                          "type": "integer",
                          "description": "Number of top-level items already ordered."
                        },
                        "changeCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "attributes": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "validationStatus": {
                          "type": "string",
                          "enum": [
                            "VALID",
                            "HAS_WARNINGS",
                            "HAS_ERRORS"
                          ]
                        },
                        "validationIssues": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "code",
                              "severity",
                              "message",
                              "scope",
                              "source",
                              "details"
                            ],
                            "properties": {
                              "code": {
                                "type": "string"
                              },
                              "severity": {
                                "type": "string",
                                "enum": [
                                  "ERROR",
                                  "WARNING",
                                  "INFO"
                                ]
                              },
                              "message": {
                                "type": "string"
                              },
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "CART",
                                  "CART_ITEM",
                                  "ADDON_GROUP",
                                  "COMPONENT"
                                ]
                              },
                              "cartItemId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "source": {
                                "type": "string"
                              },
                              "details": {
                                "type": "object",
                                "additionalProperties": true
                              }
                            }
                          }
                        },
                        "ruleResults": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "pricedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "expiresAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "acceptedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "version": {
                          "type": "integer"
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "totals": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "currency",
                        "oneTimeTotal",
                        "recurringTotalsByPeriod",
                        "meteredTariffCount",
                        "list",
                        "adjusted",
                        "sales"
                      ],
                      "properties": {
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "oneTimeTotal": {
                          "type": "number"
                        },
                        "recurringTotalsByPeriod": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "billingPeriod",
                              "listAmount",
                              "adjustmentAmount",
                              "salesAmount"
                            ],
                            "properties": {
                              "billingPeriod": {
                                "type": "string"
                              },
                              "listAmount": {
                                "type": "number"
                              },
                              "adjustmentAmount": {
                                "type": "number"
                              },
                              "salesAmount": {
                                "type": "number"
                              }
                            }
                          }
                        },
                        "meteredTariffCount": {
                          "type": "integer"
                        },
                        "list": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "adjusted": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        },
                        "sales": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "recurringAmount",
                            "oneTimeAmount",
                            "totalAmount"
                          ],
                          "properties": {
                            "recurringAmount": {
                              "type": "number"
                            },
                            "oneTimeAmount": {
                              "type": "number"
                            },
                            "totalAmount": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    },
                    "totalsAreCurrent": {
                      "type": "boolean"
                    },
                    "approvalSummary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "status",
                        "requiresApproval",
                        "pendingChargeCount",
                        "pendingChargeIds",
                        "requirementCount",
                        "requirements",
                        "approvalRequestId",
                        "latestRequest"
                      ],
                      "properties": {
                        "status": {
                          "type": "string",
                          "enum": [
                            "NOT_REQUIRED",
                            "NOT_SUBMITTED",
                            "SUBMITTED",
                            "APPROVED"
                          ]
                        },
                        "requiresApproval": {
                          "type": "boolean"
                        },
                        "pendingChargeCount": {
                          "type": "integer"
                        },
                        "pendingChargeIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid"
                          }
                        },
                        "requirementCount": {
                          "type": "integer"
                        },
                        "requirements": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "source",
                              "code",
                              "message"
                            ],
                            "properties": {
                              "source": {
                                "type": "string",
                                "enum": [
                                  "DISCOUNT_LIMIT",
                                  "BUSINESS_RULE"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "message": {
                                "type": "string"
                              },
                              "chargeId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "ruleCode": {
                                "type": "string"
                              },
                              "cartItemId": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "resultKey": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "approvalRequestId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "latestRequest": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "status",
                                "requesterId",
                                "requestedAt",
                                "requestNote",
                                "decidedBy",
                                "decidedAt",
                                "decisionComment"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "PENDING",
                                    "APPROVED",
                                    "REJECTED",
                                    "WITHDRAWN",
                                    "CANCELLED"
                                  ]
                                },
                                "requesterId": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "requestedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "requestNote": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "decidedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "decidedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "date-time"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "decisionComment": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "availableActions": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "canEdit",
                        "canPrice",
                        "canSubmitForApproval",
                        "canWithdrawApproval",
                        "canSubmitOrder",
                        "canApplyAmendment",
                        "canCreateChangeOrder",
                        "canReopen"
                      ],
                      "properties": {
                        "canEdit": {
                          "type": "boolean"
                        },
                        "canPrice": {
                          "type": "boolean"
                        },
                        "canSubmitForApproval": {
                          "type": "boolean"
                        },
                        "canWithdrawApproval": {
                          "type": "boolean"
                        },
                        "canSubmitOrder": {
                          "type": "boolean"
                        },
                        "canApplyAmendment": {
                          "type": "boolean"
                        },
                        "canCreateChangeOrder": {
                          "type": "boolean"
                        },
                        "canReopen": {
                          "type": "boolean",
                          "description": "An approved new-sale Quote can be reopened for editing."
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "cartId",
                          "parentCartItemId",
                          "sourceCartItemId",
                          "sourceServiceId",
                          "sourceDeliverableItemId",
                          "sourceComponentType",
                          "sourceComponentId",
                          "componentRoleCode",
                          "itemType",
                          "itemId",
                          "itemCode",
                          "itemName",
                          "productVariantId",
                          "productVariantCode",
                          "productDefinitionId",
                          "productDefinitionCode",
                          "orderProductType",
                          "cataloguePublishRunId",
                          "catalogueViewId",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "attributes",
                          "facts",
                          "charges",
                          "priceSnapshot",
                          "status",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "children"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "parentCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceCartItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceDeliverableItemId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentType": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceComponentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "componentRoleCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string",
                            "enum": [
                              "PRODUCT_OFFERING",
                              "PACKAGE",
                              "SOLUTION"
                            ]
                          },
                          "itemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "itemCode": {
                            "type": "string"
                          },
                          "itemName": {
                            "type": "string"
                          },
                          "productVariantId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productVariantCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productDefinitionCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "orderProductType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "SUBSCRIPTION",
                                  "DELIVERABLE"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cataloguePublishRunId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "catalogueViewId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ADD",
                              "NO_CHANGE",
                              "MODIFY",
                              "REMOVE"
                            ]
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string",
                            "enum": [
                              "MULTIPLIER",
                              "UNIT"
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "facts": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "charges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "cartId",
                                "cartItemId",
                                "parentChargeId",
                                "sourceChargeId",
                                "chargeCode",
                                "name",
                                "chargeType",
                                "pricingRole",
                                "chargeSource",
                                "discountType",
                                "listAmount",
                                "amount",
                                "unitPrice",
                                "quantity",
                                "currency",
                                "billingPeriod",
                                "ratingMode",
                                "sourceChargeDefinitionId",
                                "sourcePricebookEntryId",
                                "sourcePricingRuleId",
                                "activatedByRuleIds",
                                "rateCardId",
                                "reasonCode",
                                "approvalStatus",
                                "createdBy",
                                "comment",
                                "priceDetails",
                                "status",
                                "createdAt",
                                "updatedAt"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartItemId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "parentChargeId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceChargeId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "chargeCode": {
                                  "type": "string"
                                },
                                "name": {
                                  "type": "string"
                                },
                                "chargeType": {
                                  "type": "string",
                                  "enum": [
                                    "ONE_TIME",
                                    "RECURRING"
                                  ]
                                },
                                "pricingRole": {
                                  "type": "string",
                                  "enum": [
                                    "CHARGE",
                                    "DISCOUNT",
                                    "SURCHARGE"
                                  ]
                                },
                                "chargeSource": {
                                  "type": "string",
                                  "enum": [
                                    "BASE_PRICE",
                                    "CATALOGUE_DISCOUNT",
                                    "CATALOGUE_WAIVER",
                                    "CATALOGUE_SURCHARGE",
                                    "DISCRETIONARY_DISCOUNT",
                                    "MANUAL_CHARGE",
                                    "EXTERNAL_PRICE"
                                  ]
                                },
                                "discountType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "AMOUNT",
                                        "PERCENT",
                                        "WAIVE"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "listAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "unitPrice": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "quantity": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "billingPeriod": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "ratingMode": {
                                  "type": "string",
                                  "enum": [
                                    "CART",
                                    "METERED"
                                  ]
                                },
                                "sourceChargeDefinitionId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricebookEntryId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourcePricingRuleId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "activatedByRuleIds": {
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "format": "uuid"
                                  }
                                },
                                "rateCardId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "reasonCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvalStatus": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "comment": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "priceDetails": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "status": {
                                  "type": "string"
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                }
                              }
                            }
                          },
                          "priceSnapshot": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "externalPrices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "chargeCode",
                                "amount",
                                "listAmount",
                                "externalRef"
                              ],
                              "properties": {
                                "chargeCode": {
                                  "type": "string"
                                },
                                "amount": {
                                  "type": "number"
                                },
                                "listAmount": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "externalRef": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "orderId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                          },
                          "status": {
                            "type": "string",
                            "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "journey": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "steps"
                            ],
                            "properties": {
                              "steps": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "componentId",
                                    "componentCode",
                                    "name",
                                    "displayOrder",
                                    "visible",
                                    "status",
                                    "questionAttributeCodes",
                                    "selectedCartItemIds"
                                  ],
                                  "properties": {
                                    "componentId": {
                                      "type": "string"
                                    },
                                    "componentCode": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": [
                                        "null",
                                        "string"
                                      ]
                                    },
                                    "displayOrder": {
                                      "type": "number"
                                    },
                                    "visible": {
                                      "type": "boolean"
                                    },
                                    "status": {
                                      "type": [
                                        "null",
                                        "string"
                                      ],
                                      "enum": [
                                        "COMPLETE",
                                        "NEEDS_ATTENTION",
                                        "NOT_STARTED",
                                        "OPTIONAL",
                                        null
                                      ]
                                    },
                                    "questionAttributeCodes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "selectedCartItemIds": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "children": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "id",
                                "cartId",
                                "parentCartItemId",
                                "sourceCartItemId",
                                "sourceServiceId",
                                "sourceDeliverableItemId",
                                "sourceComponentType",
                                "sourceComponentId",
                                "componentRoleCode",
                                "itemType",
                                "itemId",
                                "itemCode",
                                "itemName",
                                "productVariantId",
                                "productVariantCode",
                                "productDefinitionId",
                                "productDefinitionCode",
                                "orderProductType",
                                "cataloguePublishRunId",
                                "catalogueViewId",
                                "action",
                                "quantity",
                                "quantityStrategy",
                                "attributes",
                                "facts",
                                "charges",
                                "priceSnapshot",
                                "status",
                                "createdBy",
                                "updatedBy",
                                "createdAt",
                                "updatedAt",
                                "children"
                              ],
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "cartId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "parentCartItemId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceCartItemId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceServiceId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceDeliverableItemId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceComponentType": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "sourceComponentId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "componentRoleCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "itemType": {
                                  "type": "string",
                                  "enum": [
                                    "PRODUCT_OFFERING",
                                    "PACKAGE",
                                    "SOLUTION"
                                  ]
                                },
                                "itemId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "itemCode": {
                                  "type": "string"
                                },
                                "itemName": {
                                  "type": "string"
                                },
                                "productVariantId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productVariantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productDefinitionId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "productDefinitionCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "orderProductType": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "SUBSCRIPTION",
                                        "DELIVERABLE"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "cataloguePublishRunId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "catalogueViewId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "ADD",
                                    "NO_CHANGE",
                                    "MODIFY",
                                    "REMOVE"
                                  ]
                                },
                                "quantity": {
                                  "type": "integer"
                                },
                                "quantityStrategy": {
                                  "type": "string",
                                  "enum": [
                                    "MULTIPLIER",
                                    "UNIT"
                                  ]
                                },
                                "attributes": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "facts": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "charges": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "cartId",
                                      "cartItemId",
                                      "parentChargeId",
                                      "sourceChargeId",
                                      "chargeCode",
                                      "name",
                                      "chargeType",
                                      "pricingRole",
                                      "chargeSource",
                                      "discountType",
                                      "listAmount",
                                      "amount",
                                      "unitPrice",
                                      "quantity",
                                      "currency",
                                      "billingPeriod",
                                      "ratingMode",
                                      "sourceChargeDefinitionId",
                                      "sourcePricebookEntryId",
                                      "sourcePricingRuleId",
                                      "activatedByRuleIds",
                                      "rateCardId",
                                      "reasonCode",
                                      "approvalStatus",
                                      "createdBy",
                                      "comment",
                                      "priceDetails",
                                      "status",
                                      "createdAt",
                                      "updatedAt"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "cartId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "cartItemId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "parentChargeId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceChargeId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "chargeCode": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "chargeType": {
                                        "type": "string",
                                        "enum": [
                                          "ONE_TIME",
                                          "RECURRING"
                                        ]
                                      },
                                      "pricingRole": {
                                        "type": "string",
                                        "enum": [
                                          "CHARGE",
                                          "DISCOUNT",
                                          "SURCHARGE"
                                        ]
                                      },
                                      "chargeSource": {
                                        "type": "string",
                                        "enum": [
                                          "BASE_PRICE",
                                          "CATALOGUE_DISCOUNT",
                                          "CATALOGUE_WAIVER",
                                          "CATALOGUE_SURCHARGE",
                                          "DISCRETIONARY_DISCOUNT",
                                          "MANUAL_CHARGE",
                                          "EXTERNAL_PRICE"
                                        ]
                                      },
                                      "discountType": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "AMOUNT",
                                              "PERCENT",
                                              "WAIVE"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "listAmount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "amount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "unitPrice": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "quantity": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "currency": {
                                        "type": "string"
                                      },
                                      "billingPeriod": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "ratingMode": {
                                        "type": "string",
                                        "enum": [
                                          "CART",
                                          "METERED"
                                        ]
                                      },
                                      "sourceChargeDefinitionId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourcePricebookEntryId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourcePricingRuleId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "activatedByRuleIds": {
                                        "type": "array",
                                        "items": {
                                          "type": "string",
                                          "format": "uuid"
                                        }
                                      },
                                      "rateCardId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "reasonCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "externalRef": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "approvalStatus": {
                                        "type": "string"
                                      },
                                      "createdBy": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "comment": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "priceDetails": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "status": {
                                        "type": "string"
                                      },
                                      "createdAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      "updatedAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      }
                                    }
                                  }
                                },
                                "priceSnapshot": {
                                  "type": "object",
                                  "additionalProperties": true
                                },
                                "externalPrices": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "chargeCode",
                                      "amount",
                                      "listAmount",
                                      "externalRef"
                                    ],
                                    "properties": {
                                      "chargeCode": {
                                        "type": "string"
                                      },
                                      "amount": {
                                        "type": "number"
                                      },
                                      "listAmount": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "externalRef": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      }
                                    }
                                  }
                                },
                                "instanceLabel": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "naming": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "instanceNoun",
                                    "instanceLabelAttributes",
                                    "unitNoun",
                                    "unitLabelAttributes"
                                  ],
                                  "properties": {
                                    "instanceNoun": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "singular",
                                            "plural"
                                          ],
                                          "properties": {
                                            "singular": {
                                              "type": "string"
                                            },
                                            "plural": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "instanceLabelAttributes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "unitNoun": {
                                      "anyOf": [
                                        {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "singular",
                                            "plural"
                                          ],
                                          "properties": {
                                            "singular": {
                                              "type": "string"
                                            },
                                            "plural": {
                                              "type": "string"
                                            }
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "unitLabelAttributes": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                },
                                "orderId": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ],
                                  "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                },
                                "status": {
                                  "type": "string",
                                  "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                },
                                "createdBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "createdAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "updatedAt": {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                "journey": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "steps"
                                  ],
                                  "properties": {
                                    "steps": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "componentId",
                                          "componentCode",
                                          "name",
                                          "displayOrder",
                                          "visible",
                                          "status",
                                          "questionAttributeCodes",
                                          "selectedCartItemIds"
                                        ],
                                        "properties": {
                                          "componentId": {
                                            "type": "string"
                                          },
                                          "componentCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": [
                                              "null",
                                              "string"
                                            ]
                                          },
                                          "displayOrder": {
                                            "type": "number"
                                          },
                                          "visible": {
                                            "type": "boolean"
                                          },
                                          "status": {
                                            "type": [
                                              "null",
                                              "string"
                                            ],
                                            "enum": [
                                              "COMPLETE",
                                              "NEEDS_ATTENTION",
                                              "NOT_STARTED",
                                              "OPTIONAL",
                                              null
                                            ]
                                          },
                                          "questionAttributeCodes": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "selectedCartItemIds": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                },
                                "children": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "cartId",
                                      "parentCartItemId",
                                      "sourceCartItemId",
                                      "sourceServiceId",
                                      "sourceDeliverableItemId",
                                      "sourceComponentType",
                                      "sourceComponentId",
                                      "componentRoleCode",
                                      "itemType",
                                      "itemId",
                                      "itemCode",
                                      "itemName",
                                      "productVariantId",
                                      "productVariantCode",
                                      "productDefinitionId",
                                      "productDefinitionCode",
                                      "orderProductType",
                                      "cataloguePublishRunId",
                                      "catalogueViewId",
                                      "action",
                                      "quantity",
                                      "quantityStrategy",
                                      "attributes",
                                      "facts",
                                      "charges",
                                      "priceSnapshot",
                                      "status",
                                      "createdBy",
                                      "updatedBy",
                                      "createdAt",
                                      "updatedAt",
                                      "children"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "cartId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "parentCartItemId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceCartItemId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceServiceId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceDeliverableItemId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceComponentType": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "sourceComponentId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "componentRoleCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "itemType": {
                                        "type": "string",
                                        "enum": [
                                          "PRODUCT_OFFERING",
                                          "PACKAGE",
                                          "SOLUTION"
                                        ]
                                      },
                                      "itemId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "itemCode": {
                                        "type": "string"
                                      },
                                      "itemName": {
                                        "type": "string"
                                      },
                                      "productVariantId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "productVariantCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "productDefinitionId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "productDefinitionCode": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "orderProductType": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "enum": [
                                              "SUBSCRIPTION",
                                              "DELIVERABLE"
                                            ]
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "cataloguePublishRunId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "catalogueViewId": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "action": {
                                        "type": "string",
                                        "enum": [
                                          "ADD",
                                          "NO_CHANGE",
                                          "MODIFY",
                                          "REMOVE"
                                        ]
                                      },
                                      "quantity": {
                                        "type": "integer"
                                      },
                                      "quantityStrategy": {
                                        "type": "string",
                                        "enum": [
                                          "MULTIPLIER",
                                          "UNIT"
                                        ]
                                      },
                                      "attributes": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "facts": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "charges": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "id",
                                            "cartId",
                                            "cartItemId",
                                            "parentChargeId",
                                            "sourceChargeId",
                                            "chargeCode",
                                            "name",
                                            "chargeType",
                                            "pricingRole",
                                            "chargeSource",
                                            "discountType",
                                            "listAmount",
                                            "amount",
                                            "unitPrice",
                                            "quantity",
                                            "currency",
                                            "billingPeriod",
                                            "ratingMode",
                                            "sourceChargeDefinitionId",
                                            "sourcePricebookEntryId",
                                            "sourcePricingRuleId",
                                            "activatedByRuleIds",
                                            "rateCardId",
                                            "reasonCode",
                                            "approvalStatus",
                                            "createdBy",
                                            "comment",
                                            "priceDetails",
                                            "status",
                                            "createdAt",
                                            "updatedAt"
                                          ],
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "cartId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "cartItemId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "parentChargeId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceChargeId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "chargeCode": {
                                              "type": "string"
                                            },
                                            "name": {
                                              "type": "string"
                                            },
                                            "chargeType": {
                                              "type": "string",
                                              "enum": [
                                                "ONE_TIME",
                                                "RECURRING"
                                              ]
                                            },
                                            "pricingRole": {
                                              "type": "string",
                                              "enum": [
                                                "CHARGE",
                                                "DISCOUNT",
                                                "SURCHARGE"
                                              ]
                                            },
                                            "chargeSource": {
                                              "type": "string",
                                              "enum": [
                                                "BASE_PRICE",
                                                "CATALOGUE_DISCOUNT",
                                                "CATALOGUE_WAIVER",
                                                "CATALOGUE_SURCHARGE",
                                                "DISCRETIONARY_DISCOUNT",
                                                "MANUAL_CHARGE",
                                                "EXTERNAL_PRICE"
                                              ]
                                            },
                                            "discountType": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "AMOUNT",
                                                    "PERCENT",
                                                    "WAIVE"
                                                  ]
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "listAmount": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "amount": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "unitPrice": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "quantity": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "currency": {
                                              "type": "string"
                                            },
                                            "billingPeriod": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "ratingMode": {
                                              "type": "string",
                                              "enum": [
                                                "CART",
                                                "METERED"
                                              ]
                                            },
                                            "sourceChargeDefinitionId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourcePricebookEntryId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourcePricingRuleId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "activatedByRuleIds": {
                                              "type": "array",
                                              "items": {
                                                "type": "string",
                                                "format": "uuid"
                                              }
                                            },
                                            "rateCardId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "reasonCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "externalRef": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "approvalStatus": {
                                              "type": "string"
                                            },
                                            "createdBy": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "comment": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "priceDetails": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "status": {
                                              "type": "string"
                                            },
                                            "createdAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            },
                                            "updatedAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            }
                                          }
                                        }
                                      },
                                      "priceSnapshot": {
                                        "type": "object",
                                        "additionalProperties": true
                                      },
                                      "externalPrices": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "chargeCode",
                                            "amount",
                                            "listAmount",
                                            "externalRef"
                                          ],
                                          "properties": {
                                            "chargeCode": {
                                              "type": "string"
                                            },
                                            "amount": {
                                              "type": "number"
                                            },
                                            "listAmount": {
                                              "anyOf": [
                                                {
                                                  "type": "number"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "externalRef": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          }
                                        }
                                      },
                                      "instanceLabel": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "naming": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "instanceNoun",
                                          "instanceLabelAttributes",
                                          "unitNoun",
                                          "unitLabelAttributes"
                                        ],
                                        "properties": {
                                          "instanceNoun": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "singular",
                                                  "plural"
                                                ],
                                                "properties": {
                                                  "singular": {
                                                    "type": "string"
                                                  },
                                                  "plural": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "instanceLabelAttributes": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          },
                                          "unitNoun": {
                                            "anyOf": [
                                              {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "singular",
                                                  "plural"
                                                ],
                                                "properties": {
                                                  "singular": {
                                                    "type": "string"
                                                  },
                                                  "plural": {
                                                    "type": "string"
                                                  }
                                                }
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "unitLabelAttributes": {
                                            "type": "array",
                                            "items": {
                                              "type": "string"
                                            }
                                          }
                                        }
                                      },
                                      "orderId": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ],
                                        "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                      },
                                      "status": {
                                        "type": "string",
                                        "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                      },
                                      "createdBy": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "updatedBy": {
                                        "anyOf": [
                                          {
                                            "type": "string"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "createdAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      "updatedAt": {
                                        "type": "string",
                                        "format": "date-time"
                                      },
                                      "journey": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "steps"
                                        ],
                                        "properties": {
                                          "steps": {
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "componentId",
                                                "componentCode",
                                                "name",
                                                "displayOrder",
                                                "visible",
                                                "status",
                                                "questionAttributeCodes",
                                                "selectedCartItemIds"
                                              ],
                                              "properties": {
                                                "componentId": {
                                                  "type": "string"
                                                },
                                                "componentCode": {
                                                  "type": "string"
                                                },
                                                "name": {
                                                  "type": [
                                                    "null",
                                                    "string"
                                                  ]
                                                },
                                                "displayOrder": {
                                                  "type": "number"
                                                },
                                                "visible": {
                                                  "type": "boolean"
                                                },
                                                "status": {
                                                  "type": [
                                                    "null",
                                                    "string"
                                                  ],
                                                  "enum": [
                                                    "COMPLETE",
                                                    "NEEDS_ATTENTION",
                                                    "NOT_STARTED",
                                                    "OPTIONAL",
                                                    null
                                                  ]
                                                },
                                                "questionAttributeCodes": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                },
                                                "selectedCartItemIds": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      },
                                      "children": {
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "additionalProperties": false,
                                          "required": [
                                            "id",
                                            "cartId",
                                            "parentCartItemId",
                                            "sourceCartItemId",
                                            "sourceServiceId",
                                            "sourceDeliverableItemId",
                                            "sourceComponentType",
                                            "sourceComponentId",
                                            "componentRoleCode",
                                            "itemType",
                                            "itemId",
                                            "itemCode",
                                            "itemName",
                                            "productVariantId",
                                            "productVariantCode",
                                            "productDefinitionId",
                                            "productDefinitionCode",
                                            "orderProductType",
                                            "cataloguePublishRunId",
                                            "catalogueViewId",
                                            "action",
                                            "quantity",
                                            "quantityStrategy",
                                            "attributes",
                                            "facts",
                                            "charges",
                                            "priceSnapshot",
                                            "status",
                                            "createdBy",
                                            "updatedBy",
                                            "createdAt",
                                            "updatedAt",
                                            "children"
                                          ],
                                          "properties": {
                                            "id": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "cartId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "parentCartItemId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceCartItemId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceServiceId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceDeliverableItemId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceComponentType": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "sourceComponentId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "componentRoleCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "itemType": {
                                              "type": "string",
                                              "enum": [
                                                "PRODUCT_OFFERING",
                                                "PACKAGE",
                                                "SOLUTION"
                                              ]
                                            },
                                            "itemId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "itemCode": {
                                              "type": "string"
                                            },
                                            "itemName": {
                                              "type": "string"
                                            },
                                            "productVariantId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "productVariantCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "productDefinitionId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "productDefinitionCode": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "orderProductType": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "enum": [
                                                    "SUBSCRIPTION",
                                                    "DELIVERABLE"
                                                  ]
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "cataloguePublishRunId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "catalogueViewId": {
                                              "type": "string",
                                              "format": "uuid"
                                            },
                                            "action": {
                                              "type": "string",
                                              "enum": [
                                                "ADD",
                                                "NO_CHANGE",
                                                "MODIFY",
                                                "REMOVE"
                                              ]
                                            },
                                            "quantity": {
                                              "type": "integer"
                                            },
                                            "quantityStrategy": {
                                              "type": "string",
                                              "enum": [
                                                "MULTIPLIER",
                                                "UNIT"
                                              ]
                                            },
                                            "attributes": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "facts": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "charges": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "id",
                                                  "cartId",
                                                  "cartItemId",
                                                  "parentChargeId",
                                                  "sourceChargeId",
                                                  "chargeCode",
                                                  "name",
                                                  "chargeType",
                                                  "pricingRole",
                                                  "chargeSource",
                                                  "discountType",
                                                  "listAmount",
                                                  "amount",
                                                  "unitPrice",
                                                  "quantity",
                                                  "currency",
                                                  "billingPeriod",
                                                  "ratingMode",
                                                  "sourceChargeDefinitionId",
                                                  "sourcePricebookEntryId",
                                                  "sourcePricingRuleId",
                                                  "activatedByRuleIds",
                                                  "rateCardId",
                                                  "reasonCode",
                                                  "approvalStatus",
                                                  "createdBy",
                                                  "comment",
                                                  "priceDetails",
                                                  "status",
                                                  "createdAt",
                                                  "updatedAt"
                                                ],
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "cartId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "cartItemId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "parentChargeId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceChargeId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "chargeCode": {
                                                    "type": "string"
                                                  },
                                                  "name": {
                                                    "type": "string"
                                                  },
                                                  "chargeType": {
                                                    "type": "string",
                                                    "enum": [
                                                      "ONE_TIME",
                                                      "RECURRING"
                                                    ]
                                                  },
                                                  "pricingRole": {
                                                    "type": "string",
                                                    "enum": [
                                                      "CHARGE",
                                                      "DISCOUNT",
                                                      "SURCHARGE"
                                                    ]
                                                  },
                                                  "chargeSource": {
                                                    "type": "string",
                                                    "enum": [
                                                      "BASE_PRICE",
                                                      "CATALOGUE_DISCOUNT",
                                                      "CATALOGUE_WAIVER",
                                                      "CATALOGUE_SURCHARGE",
                                                      "DISCRETIONARY_DISCOUNT",
                                                      "MANUAL_CHARGE",
                                                      "EXTERNAL_PRICE"
                                                    ]
                                                  },
                                                  "discountType": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "enum": [
                                                          "AMOUNT",
                                                          "PERCENT",
                                                          "WAIVE"
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "listAmount": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "amount": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "unitPrice": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "quantity": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "currency": {
                                                    "type": "string"
                                                  },
                                                  "billingPeriod": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "ratingMode": {
                                                    "type": "string",
                                                    "enum": [
                                                      "CART",
                                                      "METERED"
                                                    ]
                                                  },
                                                  "sourceChargeDefinitionId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourcePricebookEntryId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourcePricingRuleId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "activatedByRuleIds": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "string",
                                                      "format": "uuid"
                                                    }
                                                  },
                                                  "rateCardId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "reasonCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "externalRef": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "approvalStatus": {
                                                    "type": "string"
                                                  },
                                                  "createdBy": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "comment": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "priceDetails": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "status": {
                                                    "type": "string"
                                                  },
                                                  "createdAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  },
                                                  "updatedAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  }
                                                }
                                              }
                                            },
                                            "priceSnapshot": {
                                              "type": "object",
                                              "additionalProperties": true
                                            },
                                            "externalPrices": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "chargeCode",
                                                  "amount",
                                                  "listAmount",
                                                  "externalRef"
                                                ],
                                                "properties": {
                                                  "chargeCode": {
                                                    "type": "string"
                                                  },
                                                  "amount": {
                                                    "type": "number"
                                                  },
                                                  "listAmount": {
                                                    "anyOf": [
                                                      {
                                                        "type": "number"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "externalRef": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  }
                                                }
                                              }
                                            },
                                            "instanceLabel": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "naming": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "instanceNoun",
                                                "instanceLabelAttributes",
                                                "unitNoun",
                                                "unitLabelAttributes"
                                              ],
                                              "properties": {
                                                "instanceNoun": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "singular",
                                                        "plural"
                                                      ],
                                                      "properties": {
                                                        "singular": {
                                                          "type": "string"
                                                        },
                                                        "plural": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "instanceLabelAttributes": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                },
                                                "unitNoun": {
                                                  "anyOf": [
                                                    {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "singular",
                                                        "plural"
                                                      ],
                                                      "properties": {
                                                        "singular": {
                                                          "type": "string"
                                                        },
                                                        "plural": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "unitLabelAttributes": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "string"
                                                  }
                                                }
                                              }
                                            },
                                            "orderId": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "format": "uuid"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ],
                                              "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                            },
                                            "status": {
                                              "type": "string",
                                              "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                            },
                                            "createdBy": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "updatedBy": {
                                              "anyOf": [
                                                {
                                                  "type": "string"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "createdAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            },
                                            "updatedAt": {
                                              "type": "string",
                                              "format": "date-time"
                                            },
                                            "journey": {
                                              "type": "object",
                                              "additionalProperties": false,
                                              "required": [
                                                "steps"
                                              ],
                                              "properties": {
                                                "steps": {
                                                  "type": "array",
                                                  "items": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "componentId",
                                                      "componentCode",
                                                      "name",
                                                      "displayOrder",
                                                      "visible",
                                                      "status",
                                                      "questionAttributeCodes",
                                                      "selectedCartItemIds"
                                                    ],
                                                    "properties": {
                                                      "componentId": {
                                                        "type": "string"
                                                      },
                                                      "componentCode": {
                                                        "type": "string"
                                                      },
                                                      "name": {
                                                        "type": [
                                                          "null",
                                                          "string"
                                                        ]
                                                      },
                                                      "displayOrder": {
                                                        "type": "number"
                                                      },
                                                      "visible": {
                                                        "type": "boolean"
                                                      },
                                                      "status": {
                                                        "type": [
                                                          "null",
                                                          "string"
                                                        ],
                                                        "enum": [
                                                          "COMPLETE",
                                                          "NEEDS_ATTENTION",
                                                          "NOT_STARTED",
                                                          "OPTIONAL",
                                                          null
                                                        ]
                                                      },
                                                      "questionAttributeCodes": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      },
                                                      "selectedCartItemIds": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            },
                                            "children": {
                                              "type": "array",
                                              "items": {
                                                "type": "object",
                                                "additionalProperties": false,
                                                "required": [
                                                  "id",
                                                  "cartId",
                                                  "parentCartItemId",
                                                  "sourceCartItemId",
                                                  "sourceServiceId",
                                                  "sourceDeliverableItemId",
                                                  "sourceComponentType",
                                                  "sourceComponentId",
                                                  "componentRoleCode",
                                                  "itemType",
                                                  "itemId",
                                                  "itemCode",
                                                  "itemName",
                                                  "productVariantId",
                                                  "productVariantCode",
                                                  "productDefinitionId",
                                                  "productDefinitionCode",
                                                  "orderProductType",
                                                  "cataloguePublishRunId",
                                                  "catalogueViewId",
                                                  "action",
                                                  "quantity",
                                                  "quantityStrategy",
                                                  "attributes",
                                                  "facts",
                                                  "charges",
                                                  "priceSnapshot",
                                                  "status",
                                                  "createdBy",
                                                  "updatedBy",
                                                  "createdAt",
                                                  "updatedAt",
                                                  "children"
                                                ],
                                                "properties": {
                                                  "id": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "cartId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "parentCartItemId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceCartItemId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceServiceId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceDeliverableItemId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceComponentType": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "sourceComponentId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "componentRoleCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "itemType": {
                                                    "type": "string",
                                                    "enum": [
                                                      "PRODUCT_OFFERING",
                                                      "PACKAGE",
                                                      "SOLUTION"
                                                    ]
                                                  },
                                                  "itemId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "itemCode": {
                                                    "type": "string"
                                                  },
                                                  "itemName": {
                                                    "type": "string"
                                                  },
                                                  "productVariantId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "productVariantCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "productDefinitionId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "productDefinitionCode": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "orderProductType": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "enum": [
                                                          "SUBSCRIPTION",
                                                          "DELIVERABLE"
                                                        ]
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "cataloguePublishRunId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "catalogueViewId": {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  "action": {
                                                    "type": "string",
                                                    "enum": [
                                                      "ADD",
                                                      "NO_CHANGE",
                                                      "MODIFY",
                                                      "REMOVE"
                                                    ]
                                                  },
                                                  "quantity": {
                                                    "type": "integer"
                                                  },
                                                  "quantityStrategy": {
                                                    "type": "string",
                                                    "enum": [
                                                      "MULTIPLIER",
                                                      "UNIT"
                                                    ]
                                                  },
                                                  "attributes": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "facts": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "charges": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "id",
                                                        "cartId",
                                                        "cartItemId",
                                                        "parentChargeId",
                                                        "sourceChargeId",
                                                        "chargeCode",
                                                        "name",
                                                        "chargeType",
                                                        "pricingRole",
                                                        "chargeSource",
                                                        "discountType",
                                                        "listAmount",
                                                        "amount",
                                                        "unitPrice",
                                                        "quantity",
                                                        "currency",
                                                        "billingPeriod",
                                                        "ratingMode",
                                                        "sourceChargeDefinitionId",
                                                        "sourcePricebookEntryId",
                                                        "sourcePricingRuleId",
                                                        "activatedByRuleIds",
                                                        "rateCardId",
                                                        "reasonCode",
                                                        "approvalStatus",
                                                        "createdBy",
                                                        "comment",
                                                        "priceDetails",
                                                        "status",
                                                        "createdAt",
                                                        "updatedAt"
                                                      ],
                                                      "properties": {
                                                        "id": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "cartId": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "cartItemId": {
                                                          "type": "string",
                                                          "format": "uuid"
                                                        },
                                                        "parentChargeId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sourceChargeId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "chargeCode": {
                                                          "type": "string"
                                                        },
                                                        "name": {
                                                          "type": "string"
                                                        },
                                                        "chargeType": {
                                                          "type": "string",
                                                          "enum": [
                                                            "ONE_TIME",
                                                            "RECURRING"
                                                          ]
                                                        },
                                                        "pricingRole": {
                                                          "type": "string",
                                                          "enum": [
                                                            "CHARGE",
                                                            "DISCOUNT",
                                                            "SURCHARGE"
                                                          ]
                                                        },
                                                        "chargeSource": {
                                                          "type": "string",
                                                          "enum": [
                                                            "BASE_PRICE",
                                                            "CATALOGUE_DISCOUNT",
                                                            "CATALOGUE_WAIVER",
                                                            "CATALOGUE_SURCHARGE",
                                                            "DISCRETIONARY_DISCOUNT",
                                                            "MANUAL_CHARGE",
                                                            "EXTERNAL_PRICE"
                                                          ]
                                                        },
                                                        "discountType": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "enum": [
                                                                "AMOUNT",
                                                                "PERCENT",
                                                                "WAIVE"
                                                              ]
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "listAmount": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "amount": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "unitPrice": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "quantity": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "currency": {
                                                          "type": "string"
                                                        },
                                                        "billingPeriod": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "ratingMode": {
                                                          "type": "string",
                                                          "enum": [
                                                            "CART",
                                                            "METERED"
                                                          ]
                                                        },
                                                        "sourceChargeDefinitionId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sourcePricebookEntryId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "sourcePricingRuleId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "activatedByRuleIds": {
                                                          "type": "array",
                                                          "items": {
                                                            "type": "string",
                                                            "format": "uuid"
                                                          }
                                                        },
                                                        "rateCardId": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string",
                                                              "format": "uuid"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "reasonCode": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "externalRef": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "approvalStatus": {
                                                          "type": "string"
                                                        },
                                                        "createdBy": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "comment": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "priceDetails": {
                                                          "type": "object",
                                                          "additionalProperties": true
                                                        },
                                                        "status": {
                                                          "type": "string"
                                                        },
                                                        "createdAt": {
                                                          "type": "string",
                                                          "format": "date-time"
                                                        },
                                                        "updatedAt": {
                                                          "type": "string",
                                                          "format": "date-time"
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "priceSnapshot": {
                                                    "type": "object",
                                                    "additionalProperties": true
                                                  },
                                                  "externalPrices": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "object",
                                                      "additionalProperties": false,
                                                      "required": [
                                                        "chargeCode",
                                                        "amount",
                                                        "listAmount",
                                                        "externalRef"
                                                      ],
                                                      "properties": {
                                                        "chargeCode": {
                                                          "type": "string"
                                                        },
                                                        "amount": {
                                                          "type": "number"
                                                        },
                                                        "listAmount": {
                                                          "anyOf": [
                                                            {
                                                              "type": "number"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        },
                                                        "externalRef": {
                                                          "anyOf": [
                                                            {
                                                              "type": "string"
                                                            },
                                                            {
                                                              "type": "null"
                                                            }
                                                          ]
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "instanceLabel": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "naming": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "instanceNoun",
                                                      "instanceLabelAttributes",
                                                      "unitNoun",
                                                      "unitLabelAttributes"
                                                    ],
                                                    "properties": {
                                                      "instanceNoun": {
                                                        "anyOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "singular",
                                                              "plural"
                                                            ],
                                                            "properties": {
                                                              "singular": {
                                                                "type": "string"
                                                              },
                                                              "plural": {
                                                                "type": "string"
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "instanceLabelAttributes": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      },
                                                      "unitNoun": {
                                                        "anyOf": [
                                                          {
                                                            "type": "object",
                                                            "additionalProperties": false,
                                                            "required": [
                                                              "singular",
                                                              "plural"
                                                            ],
                                                            "properties": {
                                                              "singular": {
                                                                "type": "string"
                                                              },
                                                              "plural": {
                                                                "type": "string"
                                                              }
                                                            }
                                                          },
                                                          {
                                                            "type": "null"
                                                          }
                                                        ]
                                                      },
                                                      "unitLabelAttributes": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "string"
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "orderId": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string",
                                                        "format": "uuid"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ],
                                                    "description": "Order this top-level item was ordered in. Ordered items are read-only in the Quote; their components and add-ons are ordered with them."
                                                  },
                                                  "status": {
                                                    "type": "string",
                                                    "description": "ACTIVE, REMOVED, or WITHDRAWN when the open items of a partially ordered Quote were closed."
                                                  },
                                                  "createdBy": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "updatedBy": {
                                                    "anyOf": [
                                                      {
                                                        "type": "string"
                                                      },
                                                      {
                                                        "type": "null"
                                                      }
                                                    ]
                                                  },
                                                  "createdAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  },
                                                  "updatedAt": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                  },
                                                  "journey": {
                                                    "type": "object",
                                                    "additionalProperties": false,
                                                    "required": [
                                                      "steps"
                                                    ],
                                                    "properties": {
                                                      "steps": {
                                                        "type": "array",
                                                        "items": {
                                                          "type": "object",
                                                          "additionalProperties": false,
                                                          "required": [
                                                            "componentId",
                                                            "componentCode",
                                                            "name",
                                                            "displayOrder",
                                                            "visible",
                                                            "status",
                                                            "questionAttributeCodes",
                                                            "selectedCartItemIds"
                                                          ],
                                                          "properties": {
                                                            "componentId": {
                                                              "type": "string"
                                                            },
                                                            "componentCode": {
                                                              "type": "string"
                                                            },
                                                            "name": {
                                                              "type": [
                                                                "null",
                                                                "string"
                                                              ]
                                                            },
                                                            "displayOrder": {
                                                              "type": "number"
                                                            },
                                                            "visible": {
                                                              "type": "boolean"
                                                            },
                                                            "status": {
                                                              "type": [
                                                                "null",
                                                                "string"
                                                              ],
                                                              "enum": [
                                                                "COMPLETE",
                                                                "NEEDS_ATTENTION",
                                                                "NOT_STARTED",
                                                                "OPTIONAL",
                                                                null
                                                              ]
                                                            },
                                                            "questionAttributeCodes": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "string"
                                                              }
                                                            },
                                                            "selectedCartItemIds": {
                                                              "type": "array",
                                                              "items": {
                                                                "type": "string"
                                                              }
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "children": {
                                                    "type": "array",
                                                    "items": {
                                                      "type": "object",
                                                      "additionalProperties": true
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "change": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "kind",
                            "sourceOrder",
                            "sourceSubscription",
                            "baseline",
                            "proposed",
                            "delta",
                            "summary",
                            "itemChanges",
                            "serviceOutcomes"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "ORDER_AMENDMENT",
                                "SUBSCRIPTION_CHANGE"
                              ]
                            },
                            "sourceOrder": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "orderNumber",
                                    "revisionNumber"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "orderNumber": {
                                      "type": "string"
                                    },
                                    "revisionNumber": {
                                      "type": "integer",
                                      "minimum": 1
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "sourceSubscription": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "id",
                                    "subscriptionNumber",
                                    "name",
                                    "status"
                                  ],
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "format": "uuid"
                                    },
                                    "subscriptionNumber": {
                                      "type": "string"
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "status": {
                                      "type": "string"
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "baseline": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "currency",
                                "oneTimeTotal",
                                "recurringTotalsByPeriod",
                                "meteredTariffCount",
                                "list",
                                "adjusted",
                                "sales"
                              ],
                              "properties": {
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oneTimeTotal": {
                                  "type": "number"
                                },
                                "recurringTotalsByPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "billingPeriod",
                                      "listAmount",
                                      "adjustmentAmount",
                                      "salesAmount"
                                    ],
                                    "properties": {
                                      "billingPeriod": {
                                        "type": "string"
                                      },
                                      "listAmount": {
                                        "type": "number"
                                      },
                                      "adjustmentAmount": {
                                        "type": "number"
                                      },
                                      "salesAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                },
                                "meteredTariffCount": {
                                  "type": "integer"
                                },
                                "list": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "adjusted": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "sales": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              }
                            },
                            "proposed": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "currency",
                                "oneTimeTotal",
                                "recurringTotalsByPeriod",
                                "meteredTariffCount",
                                "list",
                                "adjusted",
                                "sales"
                              ],
                              "properties": {
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oneTimeTotal": {
                                  "type": "number"
                                },
                                "recurringTotalsByPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "billingPeriod",
                                      "listAmount",
                                      "adjustmentAmount",
                                      "salesAmount"
                                    ],
                                    "properties": {
                                      "billingPeriod": {
                                        "type": "string"
                                      },
                                      "listAmount": {
                                        "type": "number"
                                      },
                                      "adjustmentAmount": {
                                        "type": "number"
                                      },
                                      "salesAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                },
                                "meteredTariffCount": {
                                  "type": "integer"
                                },
                                "list": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "adjusted": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "sales": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              }
                            },
                            "delta": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "currency",
                                "oneTimeTotal",
                                "recurringTotalsByPeriod",
                                "meteredTariffCount",
                                "list",
                                "adjusted",
                                "sales"
                              ],
                              "properties": {
                                "currency": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "oneTimeTotal": {
                                  "type": "number"
                                },
                                "recurringTotalsByPeriod": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "billingPeriod",
                                      "listAmount",
                                      "adjustmentAmount",
                                      "salesAmount"
                                    ],
                                    "properties": {
                                      "billingPeriod": {
                                        "type": "string"
                                      },
                                      "listAmount": {
                                        "type": "number"
                                      },
                                      "adjustmentAmount": {
                                        "type": "number"
                                      },
                                      "salesAmount": {
                                        "type": "number"
                                      }
                                    }
                                  }
                                },
                                "meteredTariffCount": {
                                  "type": "integer"
                                },
                                "list": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "adjusted": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "sales": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "recurringAmount",
                                    "oneTimeAmount",
                                    "totalAmount"
                                  ],
                                  "properties": {
                                    "recurringAmount": {
                                      "type": "number"
                                    },
                                    "oneTimeAmount": {
                                      "type": "number"
                                    },
                                    "totalAmount": {
                                      "type": "number"
                                    }
                                  }
                                }
                              }
                            },
                            "summary": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "addedItems",
                                "modifiedItems",
                                "removedItems",
                                "addedUnits",
                                "modifiedUnits",
                                "removedUnits"
                              ],
                              "properties": {
                                "addedItems": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "modifiedItems": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "removedItems": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "addedUnits": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "modifiedUnits": {
                                  "type": "integer",
                                  "minimum": 0
                                },
                                "removedUnits": {
                                  "type": "integer",
                                  "minimum": 0
                                }
                              }
                            },
                            "itemChanges": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "cartItemId",
                                  "action",
                                  "before",
                                  "after"
                                ],
                                "properties": {
                                  "cartItemId": {
                                    "type": "string",
                                    "format": "uuid"
                                  },
                                  "action": {
                                    "type": "string",
                                    "enum": [
                                      "ADD",
                                      "MODIFY",
                                      "REMOVE"
                                    ]
                                  },
                                  "before": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "itemType",
                                          "itemCode",
                                          "itemName",
                                          "productVariantCode",
                                          "quantity",
                                          "quantityStrategy",
                                          "attributes"
                                        ],
                                        "properties": {
                                          "itemType": {
                                            "type": "string"
                                          },
                                          "itemCode": {
                                            "type": "string"
                                          },
                                          "itemName": {
                                            "type": "string"
                                          },
                                          "productVariantCode": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "quantityStrategy": {
                                            "type": "string",
                                            "enum": [
                                              "MULTIPLIER",
                                              "UNIT"
                                            ]
                                          },
                                          "attributes": {
                                            "type": "object",
                                            "additionalProperties": true
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "after": {
                                    "anyOf": [
                                      {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "itemType",
                                          "itemCode",
                                          "itemName",
                                          "productVariantCode",
                                          "quantity",
                                          "quantityStrategy",
                                          "attributes"
                                        ],
                                        "properties": {
                                          "itemType": {
                                            "type": "string"
                                          },
                                          "itemCode": {
                                            "type": "string"
                                          },
                                          "itemName": {
                                            "type": "string"
                                          },
                                          "productVariantCode": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "quantityStrategy": {
                                            "type": "string",
                                            "enum": [
                                              "MULTIPLIER",
                                              "UNIT"
                                            ]
                                          },
                                          "attributes": {
                                            "type": "object",
                                            "additionalProperties": true
                                          }
                                        }
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                }
                              }
                            },
                            "serviceOutcomes": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "summary",
                                    "additions",
                                    "replacements",
                                    "removals",
                                    "previewLimit",
                                    "truncated"
                                  ],
                                  "properties": {
                                    "summary": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "added",
                                        "modified",
                                        "removed",
                                        "unchanged",
                                        "subscriptionsAdded",
                                        "deliverablesAdded"
                                      ],
                                      "properties": {
                                        "added": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "modified": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "removed": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "unchanged": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "subscriptionsAdded": {
                                          "type": "integer",
                                          "minimum": 0
                                        },
                                        "deliverablesAdded": {
                                          "type": "integer",
                                          "minimum": 0
                                        }
                                      }
                                    },
                                    "additions": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "serviceId",
                                          "serviceNumber",
                                          "cartItemId",
                                          "unitNumber",
                                          "productCode",
                                          "name",
                                          "quantity",
                                          "status"
                                        ],
                                        "properties": {
                                          "serviceId": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "serviceNumber": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "cartItemId": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "unitNumber": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "productCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "status": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    "replacements": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "current",
                                          "proposed"
                                        ],
                                        "properties": {
                                          "current": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "serviceId",
                                              "serviceNumber",
                                              "cartItemId",
                                              "unitNumber",
                                              "productCode",
                                              "name",
                                              "quantity",
                                              "status"
                                            ],
                                            "properties": {
                                              "serviceId": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "serviceNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "cartItemId": {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              "unitNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer",
                                                    "minimum": 1
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "productCode": {
                                                "type": "string"
                                              },
                                              "name": {
                                                "type": "string"
                                              },
                                              "quantity": {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              "status": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            }
                                          },
                                          "proposed": {
                                            "type": "object",
                                            "additionalProperties": false,
                                            "required": [
                                              "serviceId",
                                              "serviceNumber",
                                              "cartItemId",
                                              "unitNumber",
                                              "productCode",
                                              "name",
                                              "quantity",
                                              "status"
                                            ],
                                            "properties": {
                                              "serviceId": {
                                                "anyOf": [
                                                  {
                                                    "type": "string",
                                                    "format": "uuid"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "serviceNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "cartItemId": {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              "unitNumber": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer",
                                                    "minimum": 1
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "productCode": {
                                                "type": "string"
                                              },
                                              "name": {
                                                "type": "string"
                                              },
                                              "quantity": {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              "status": {
                                                "anyOf": [
                                                  {
                                                    "type": "string"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "removals": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "serviceId",
                                          "serviceNumber",
                                          "cartItemId",
                                          "unitNumber",
                                          "productCode",
                                          "name",
                                          "quantity",
                                          "status"
                                        ],
                                        "properties": {
                                          "serviceId": {
                                            "anyOf": [
                                              {
                                                "type": "string",
                                                "format": "uuid"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "serviceNumber": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "cartItemId": {
                                            "type": "string",
                                            "format": "uuid"
                                          },
                                          "unitNumber": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 1
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "productCode": {
                                            "type": "string"
                                          },
                                          "name": {
                                            "type": "string"
                                          },
                                          "quantity": {
                                            "type": "integer",
                                            "minimum": 1
                                          },
                                          "status": {
                                            "anyOf": [
                                              {
                                                "type": "string"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          }
                                        }
                                      }
                                    },
                                    "previewLimit": {
                                      "type": "integer",
                                      "minimum": 1
                                    },
                                    "truncated": {
                                      "type": "boolean"
                                    }
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use",
            "subscription.change"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Create an editable commercial change for an eligible Subscription"
      }
    },
    "/api/v1/subscription-changes/bulk": {
      "post": {
        "operationId": "bulkCreateSubscriptionChanges",
        "summary": "Change several subscriptions",
        "tags": [
          "Subscription changes"
        ],
        "description": "For each subscription a change quote is created, the change applied and the quote priced; nothing is submitted or ordered. Each subscription's change source digest must match the reviewed one. A subscription that cannot be changed is reported and the others continue.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "accountId",
                  "subscriptionIds",
                  "catalogueViewCode",
                  "changeCode",
                  "edit",
                  "commandId",
                  "expectedSourceDigests",
                  "reviewedBasis"
                ],
                "additionalProperties": false,
                "properties": {
                  "accountId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "subscriptionIds": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 20,
                    "items": {
                      "type": "string",
                      "format": "uuid"
                    }
                  },
                  "catalogueViewCode": {
                    "type": "string"
                  },
                  "changeCode": {
                    "type": "string"
                  },
                  "edit": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "productCode": {
                        "type": "string"
                      },
                      "set": {
                        "type": "object",
                        "additionalProperties": true
                      },
                      "clear": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "variantCode": {
                        "type": "string"
                      },
                      "quantity": {
                        "type": "integer",
                        "minimum": 1
                      }
                    }
                  },
                  "commandId": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "expectedSourceDigests": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "reviewedBasis": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "accountId",
                    "outcomes"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "accountId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "outcomes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "subscriptionId",
                          "status",
                          "cartId",
                          "cartNumber",
                          "recurringDelta",
                          "error"
                        ],
                        "additionalProperties": false,
                        "properties": {
                          "subscriptionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "PREPARED",
                              "FAILED"
                            ]
                          },
                          "cartId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cartNumber": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "recurringDelta": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "error": {
                            "anyOf": [
                              {
                                "type": "object",
                                "required": [
                                  "code",
                                  "message"
                                ],
                                "properties": {
                                  "code": {
                                    "type": "string"
                                  },
                                  "message": {
                                    "type": "string"
                                  }
                                }
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "sales.use",
            "subscription.change"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ]
      }
    },
    "/api/v1/subscriptions/{subscriptionId}/non-commercial-orders": {
      "post": {
        "operationId": "createNonCommercialOrder",
        "summary": "Order a service details change",
        "tags": [
          "Service details updates"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "changeCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "customerReference": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "note": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "metadata": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "serviceChanges": {
                    "minItems": 1,
                    "maxItems": 20000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "serviceIds": {
                          "minItems": 1,
                          "maxItems": 10000,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          }
                        },
                        "commonAttributes": {
                          "type": "object",
                          "properties": {
                            "set": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string",
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                              },
                              "additionalProperties": {}
                            },
                            "clear": {
                              "maxItems": 250,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "unitAttributes": {
                          "type": "object",
                          "properties": {
                            "set": {
                              "type": "object",
                              "propertyNames": {
                                "type": "string",
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                              },
                              "additionalProperties": {}
                            },
                            "clear": {
                              "maxItems": 250,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$"
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "serviceIds"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "changeCode",
                  "serviceChanges"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "subscriptionId",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "header",
            "name": "idempotency-key",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "order",
                    "subscriptions",
                    "services",
                    "deliverableItems"
                  ],
                  "properties": {
                    "execution": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "commandId",
                        "cartVersion"
                      ],
                      "properties": {
                        "commandId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "cartVersion": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    },
                    "order": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "orderNumber",
                        "revisionNumber",
                        "sourceCartId",
                        "sourceSubscriptionId",
                        "idempotencyKey",
                        "accountId",
                        "primaryContactId",
                        "orderType",
                        "status",
                        "subStatus",
                        "catalogueCode",
                        "catalogueViewCode",
                        "pricebookCode",
                        "currency",
                        "totals",
                        "externalRef",
                        "metadata",
                        "pointOfNoReturnAt",
                        "customerReference",
                        "customerAcceptedAt",
                        "note",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "orderNumber": {
                          "type": "string"
                        },
                        "revisionNumber": {
                          "type": "integer"
                        },
                        "sourceCartId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceSubscriptionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "idempotencyKey": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "primaryContactId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderType": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        },
                        "subStatus": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "catalogueCode": {
                          "type": "string"
                        },
                        "catalogueViewCode": {
                          "type": "string"
                        },
                        "pricebookCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "currency": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "totals": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "currency",
                            "oneTimeTotal",
                            "recurringTotalsByPeriod",
                            "meteredTariffCount",
                            "list",
                            "adjusted",
                            "sales"
                          ],
                          "properties": {
                            "currency": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "oneTimeTotal": {
                              "type": "number"
                            },
                            "recurringTotalsByPeriod": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "billingPeriod",
                                  "listAmount",
                                  "adjustmentAmount",
                                  "salesAmount"
                                ],
                                "properties": {
                                  "billingPeriod": {
                                    "type": "string"
                                  },
                                  "listAmount": {
                                    "type": "number"
                                  },
                                  "adjustmentAmount": {
                                    "type": "number"
                                  },
                                  "salesAmount": {
                                    "type": "number"
                                  }
                                }
                              }
                            },
                            "meteredTariffCount": {
                              "type": "integer"
                            },
                            "list": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "adjusted": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            },
                            "sales": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "recurringAmount",
                                "oneTimeAmount",
                                "totalAmount"
                              ],
                              "properties": {
                                "recurringAmount": {
                                  "type": "number"
                                },
                                "oneTimeAmount": {
                                  "type": "number"
                                },
                                "totalAmount": {
                                  "type": "number"
                                }
                              }
                            }
                          }
                        },
                        "externalRef": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "metadata": {
                          "type": "object",
                          "additionalProperties": true
                        },
                        "pointOfNoReturnAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "customerReference": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "customerAcceptedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "note": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    },
                    "subscriptions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "subscriptionNumber",
                          "orderId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "accountId",
                          "subscriptionType",
                          "status",
                          "subStatus",
                          "contextCode",
                          "name",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subscriptionNumber": {
                            "type": "string"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "subscriptionType": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contextCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "serviceNumber",
                          "subscriptionId",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "parentServiceId",
                          "replacesServiceId",
                          "replacedByServiceId",
                          "itemType",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "serviceNumber": {
                            "type": "string"
                          },
                          "subscriptionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "parentServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacesServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "replacedByServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "itemType": {
                            "type": "string"
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "instanceLabel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "naming": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "instanceNoun",
                              "instanceLabelAttributes",
                              "unitNoun",
                              "unitLabelAttributes"
                            ],
                            "properties": {
                              "instanceNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "instanceLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              },
                              "unitNoun": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "singular",
                                      "plural"
                                    ],
                                    "properties": {
                                      "singular": {
                                        "type": "string"
                                      },
                                      "plural": {
                                        "type": "string"
                                      }
                                    }
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "unitLabelAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "deliverableItems": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "deliverableNumber",
                          "orderId",
                          "accountId",
                          "sourceCartId",
                          "sourceCartItemId",
                          "sourceCartItemUnitId",
                          "relatedServiceId",
                          "productCode",
                          "name",
                          "action",
                          "quantity",
                          "quantityStrategy",
                          "commonAttributes",
                          "unitAttributes",
                          "status",
                          "subStatus",
                          "externalRef",
                          "metadata",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "deliverableNumber": {
                            "type": "string"
                          },
                          "orderId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "accountId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "sourceCartItemUnitId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "relatedServiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "uuid"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "productCode": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "action": {
                            "type": "string"
                          },
                          "quantity": {
                            "type": "integer"
                          },
                          "quantityStrategy": {
                            "type": "string"
                          },
                          "commonAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "unitAttributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "status": {
                            "type": "string"
                          },
                          "subStatus": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalRef": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "metadata": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nonCommercialChange": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "changeCode",
                        "sourceSubscriptionId",
                        "affectedServiceIds"
                      ],
                      "properties": {
                        "changeCode": {
                          "type": "string"
                        },
                        "sourceSubscriptionId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "affectedServiceIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "format": "uuid"
                          }
                        }
                      }
                    },
                    "amendment": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "benchmark": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "durationMs",
                        "cartItemCount",
                        "unitCount",
                        "subscriptionCount",
                        "serviceCount",
                        "deliverableItemCount"
                      ],
                      "properties": {
                        "durationMs": {
                          "type": "number"
                        },
                        "cartItemCount": {
                          "type": "integer"
                        },
                        "unitCount": {
                          "type": "integer"
                        },
                        "subscriptionCount": {
                          "type": "integer"
                        },
                        "serviceCount": {
                          "type": "integer"
                        },
                        "deliverableItemCount": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "504": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "subscription.change"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update technical service details and record the change as a zero-value order."
      }
    },
    "/api/v1/discount-limits": {
      "get": {
        "operationId": "listDiscountLimits",
        "summary": "List discount limits",
        "tags": [
          "Sales authority"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "roleCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "INACTIVE"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ANY_CHARGE",
                "CHARGE_TYPE",
                "CHARGE_CODE"
              ]
            },
            "in": "query",
            "name": "scopeType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "ONE_TIME",
                "RECURRING"
              ]
            },
            "in": "query",
            "name": "chargeType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "chargeCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "BLOCK",
                "REQUIRES_APPROVAL"
              ]
            },
            "in": "query",
            "name": "actionWhenExceeded",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "CURRENT",
                "FUTURE",
                "EXPIRED"
              ]
            },
            "in": "query",
            "name": "effectiveState",
            "required": false
          },
          {
            "schema": {
              "anyOf": [
                {},
                {
                  "type": "null"
                }
              ]
            },
            "in": "query",
            "name": "effectiveAt",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "code",
                          "name",
                          "roleCode",
                          "scopeType",
                          "chargeType",
                          "chargeCode",
                          "maxPercent",
                          "maxAmount",
                          "currency",
                          "actionWhenExceeded",
                          "status",
                          "effectiveFrom",
                          "effectiveTo",
                          "attributes",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "roleCode": {
                            "type": "string"
                          },
                          "scopeType": {
                            "type": "string",
                            "enum": [
                              "ANY_CHARGE",
                              "CHARGE_TYPE",
                              "CHARGE_CODE"
                            ]
                          },
                          "chargeType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "ONE_TIME",
                                  "RECURRING"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "chargeCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxPercent": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "actionWhenExceeded": {
                            "type": "string",
                            "enum": [
                              "BLOCK",
                              "REQUIRES_APPROVAL"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "INACTIVE"
                            ]
                          },
                          "effectiveFrom": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List sales discount limits"
      },
      "post": {
        "operationId": "createDiscountLimit",
        "summary": "Create a discount limit",
        "tags": [
          "Sales authority"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "roleCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "scopeType": {
                    "type": "string",
                    "enum": [
                      "ANY_CHARGE",
                      "CHARGE_TYPE",
                      "CHARGE_CODE"
                    ]
                  },
                  "chargeType": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "ONE_TIME",
                          "RECURRING"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "chargeCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxPercent": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxAmount": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 3,
                        "pattern": "^[A-Z]{3}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "actionWhenExceeded": {
                    "default": "BLOCK",
                    "type": "string",
                    "enum": [
                      "BLOCK",
                      "REQUIRES_APPROVAL"
                    ]
                  },
                  "status": {
                    "default": "ACTIVE",
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "INACTIVE"
                    ]
                  },
                  "effectiveFrom": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effectiveTo": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributes": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "required": [
                  "code",
                  "name",
                  "roleCode",
                  "scopeType"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "roleCode",
                    "scopeType",
                    "chargeType",
                    "chargeCode",
                    "maxPercent",
                    "maxAmount",
                    "currency",
                    "actionWhenExceeded",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "roleCode": {
                      "type": "string"
                    },
                    "scopeType": {
                      "type": "string",
                      "enum": [
                        "ANY_CHARGE",
                        "CHARGE_TYPE",
                        "CHARGE_CODE"
                      ]
                    },
                    "chargeType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "ONE_TIME",
                            "RECURRING"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "chargeCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxPercent": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxAmount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "actionWhenExceeded": {
                      "type": "string",
                      "enum": [
                        "BLOCK",
                        "REQUIRES_APPROVAL"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "effectiveFrom": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "description": "Create a sales discount limit"
      }
    },
    "/api/v1/discount-limits/{discountLimitId}": {
      "get": {
        "operationId": "getDiscountLimit",
        "summary": "Get a discount limit",
        "tags": [
          "Sales authority"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "discountLimitId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "roleCode",
                    "scopeType",
                    "chargeType",
                    "chargeCode",
                    "maxPercent",
                    "maxAmount",
                    "currency",
                    "actionWhenExceeded",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "roleCode": {
                      "type": "string"
                    },
                    "scopeType": {
                      "type": "string",
                      "enum": [
                        "ANY_CHARGE",
                        "CHARGE_TYPE",
                        "CHARGE_CODE"
                      ]
                    },
                    "chargeType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "ONE_TIME",
                            "RECURRING"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "chargeCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxPercent": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxAmount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "actionWhenExceeded": {
                      "type": "string",
                      "enum": [
                        "BLOCK",
                        "REQUIRES_APPROVAL"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "effectiveFrom": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a sales discount limit"
      },
      "patch": {
        "operationId": "updateDiscountLimit",
        "summary": "Update a discount limit",
        "tags": [
          "Sales authority"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "roleCode": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "scopeType": {
                    "type": "string",
                    "enum": [
                      "ANY_CHARGE",
                      "CHARGE_TYPE",
                      "CHARGE_CODE"
                    ]
                  },
                  "chargeType": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "ONE_TIME",
                          "RECURRING"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "chargeCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxPercent": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maxAmount": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 3,
                        "pattern": "^[A-Z]{3}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "actionWhenExceeded": {
                    "type": "string",
                    "enum": [
                      "BLOCK",
                      "REQUIRES_APPROVAL"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "INACTIVE"
                    ]
                  },
                  "effectiveFrom": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "effectiveTo": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "attributes": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "discountLimitId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "roleCode",
                    "scopeType",
                    "chargeType",
                    "chargeCode",
                    "maxPercent",
                    "maxAmount",
                    "currency",
                    "actionWhenExceeded",
                    "status",
                    "effectiveFrom",
                    "effectiveTo",
                    "attributes",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "roleCode": {
                      "type": "string"
                    },
                    "scopeType": {
                      "type": "string",
                      "enum": [
                        "ANY_CHARGE",
                        "CHARGE_TYPE",
                        "CHARGE_CODE"
                      ]
                    },
                    "chargeType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "ONE_TIME",
                            "RECURRING"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "chargeCode": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxPercent": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maxAmount": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currency": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "actionWhenExceeded": {
                      "type": "string",
                      "enum": [
                        "BLOCK",
                        "REQUIRES_APPROVAL"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "INACTIVE"
                      ]
                    },
                    "effectiveFrom": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "effectiveTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attributes": {
                      "type": "object",
                      "additionalProperties": true
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update a sales discount limit"
      },
      "delete": {
        "operationId": "deleteDiscountLimit",
        "summary": "Delete a discount limit",
        "tags": [
          "Sales authority"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "discountLimitId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Delete a sales discount limit"
      }
    },
    "/api/v1/discount-limit-evaluations": {
      "post": {
        "operationId": "evaluateDiscountLimit",
        "summary": "Check discount authority",
        "tags": [
          "Sales authority"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "roleCodes": {
                    "minItems": 1,
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                    }
                  },
                  "effectiveAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "targetCharge": {
                    "type": "object",
                    "properties": {
                      "chargeCode": {
                        "type": "string",
                        "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                      },
                      "chargeType": {
                        "type": "string",
                        "enum": [
                          "ONE_TIME",
                          "RECURRING"
                        ]
                      },
                      "currency": {
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 3,
                        "pattern": "^[A-Z]{3}$"
                      },
                      "amount": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "required": [
                      "chargeCode",
                      "chargeType",
                      "currency",
                      "amount"
                    ],
                    "additionalProperties": false
                  },
                  "discount": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "AMOUNT",
                          "PERCENT"
                        ]
                      },
                      "amount": {
                        "anyOf": [
                          {
                            "type": "number",
                            "exclusiveMinimum": 0
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "percentValue": {
                        "anyOf": [
                          {
                            "type": "number",
                            "exclusiveMinimum": 0,
                            "maximum": 100
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "roleCodes",
                  "targetCharge",
                  "discount"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "action",
                    "approvalStatus",
                    "decision",
                    "actorRoleCodes",
                    "matchedDiscountLimitIds",
                    "allowedDiscountLimitIds",
                    "discountAmount",
                    "discountPercent",
                    "targetChargeCode",
                    "targetChargeType",
                    "targetCurrency",
                    "effectiveAt",
                    "matchedAuthorities"
                  ],
                  "properties": {
                    "action": {
                      "type": "string",
                      "enum": [
                        "ALLOW",
                        "REQUIRES_APPROVAL",
                        "BLOCK"
                      ]
                    },
                    "approvalStatus": {
                      "type": "string",
                      "enum": [
                        "NOT_REQUIRED",
                        "PENDING_APPROVAL"
                      ]
                    },
                    "decision": {
                      "type": "string",
                      "enum": [
                        "WITHIN_LIMIT",
                        "EXCEEDS_LIMIT_REQUIRES_APPROVAL",
                        "EXCEEDS_LIMIT_BLOCKED",
                        "NO_AUTHORITY"
                      ]
                    },
                    "actorRoleCodes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "matchedDiscountLimitIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    },
                    "allowedDiscountLimitIds": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    },
                    "discountAmount": {
                      "type": "number"
                    },
                    "discountPercent": {
                      "anyOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "targetChargeCode": {
                      "type": "string"
                    },
                    "targetChargeType": {
                      "type": "string",
                      "enum": [
                        "ONE_TIME",
                        "RECURRING"
                      ]
                    },
                    "targetCurrency": {
                      "type": "string"
                    },
                    "effectiveAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "matchedAuthorities": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "code",
                          "name",
                          "roleCode",
                          "scopeType",
                          "chargeType",
                          "chargeCode",
                          "maxPercent",
                          "maxAmount",
                          "currency",
                          "actionWhenExceeded",
                          "status",
                          "effectiveFrom",
                          "effectiveTo",
                          "attributes",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "roleCode": {
                            "type": "string"
                          },
                          "scopeType": {
                            "type": "string",
                            "enum": [
                              "ANY_CHARGE",
                              "CHARGE_TYPE",
                              "CHARGE_CODE"
                            ]
                          },
                          "chargeType": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "ONE_TIME",
                                  "RECURRING"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "chargeCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxPercent": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "maxAmount": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "currency": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "actionWhenExceeded": {
                            "type": "string",
                            "enum": [
                              "BLOCK",
                              "REQUIRES_APPROVAL"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "INACTIVE"
                            ]
                          },
                          "effectiveFrom": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "effectiveTo": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attributes": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "pricing.read"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "description": "Evaluate sales discount authority without changing a Quote"
      }
    },
    "/api/v1/external-data-mappings": {
      "post": {
        "operationId": "createExternalDataMapping",
        "summary": "Create a data mapping",
        "tags": [
          "Product data mappings"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64,
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 5000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "catalogueCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64,
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "productDefinitionCode": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64,
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "template": {
                    "default": "{}",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  }
                },
                "required": [
                  "code",
                  "name",
                  "catalogueCode",
                  "productDefinitionCode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "version",
                    "name",
                    "description",
                    "catalogueCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "template",
                    "sourceModelVersion",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "activatedBy",
                    "activatedAt",
                    "retiredBy",
                    "retiredAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionCode": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    },
                    "sourceModelVersion": {
                      "type": "string",
                      "enum": [
                        "edm-product/1"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "description": "Create a product data mapping draft"
      },
      "get": {
        "operationId": "listExternalDataMappings",
        "summary": "List data mappings",
        "tags": [
          "Product data mappings"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "catalogueCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "query",
            "name": "productDefinitionCode",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "DRAFT",
                "ACTIVE",
                "RETIRED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 100000
            },
            "in": "query",
            "name": "page",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "pageSize",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "page",
                    "pageSize",
                    "total",
                    "totalPages"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "name",
                          "description",
                          "catalogueCode",
                          "productDefinitionId",
                          "productDefinitionCode",
                          "sourceModelVersion",
                          "status",
                          "hasDraft",
                          "activeVersion",
                          "draftVersion",
                          "latestVersion",
                          "versionCount",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "catalogueCode": {
                            "type": "string"
                          },
                          "productDefinitionId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "productDefinitionCode": {
                            "type": "string"
                          },
                          "sourceModelVersion": {
                            "type": "string",
                            "enum": [
                              "edm-product/1"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "DRAFT",
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "hasDraft": {
                            "type": "boolean"
                          },
                          "activeVersion": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "draftVersion": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "latestVersion": {
                            "type": "integer"
                          },
                          "versionCount": {
                            "type": "integer"
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    },
                    "page": {
                      "type": "integer"
                    },
                    "pageSize": {
                      "type": "integer"
                    },
                    "total": {
                      "type": "integer"
                    },
                    "totalPages": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List product data mappings."
      }
    },
    "/api/v1/external-data-mappings/{code}": {
      "get": {
        "operationId": "getExternalDataMapping",
        "summary": "Get a data mapping",
        "tags": [
          "Product data mappings"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "code",
                    "name",
                    "description",
                    "catalogueCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "sourceModelVersion",
                    "status",
                    "hasDraft",
                    "activeVersion",
                    "draftVersion",
                    "latestVersion",
                    "versionCount",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "versions"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionCode": {
                      "type": "string"
                    },
                    "sourceModelVersion": {
                      "type": "string",
                      "enum": [
                        "edm-product/1"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "hasDraft": {
                      "type": "boolean"
                    },
                    "activeVersion": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "draftVersion": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "latestVersion": {
                      "type": "integer"
                    },
                    "versionCount": {
                      "type": "integer"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "versions": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "version",
                          "name",
                          "description",
                          "status",
                          "sourceModelVersion",
                          "createdBy",
                          "updatedBy",
                          "activatedBy",
                          "activatedAt",
                          "retiredBy",
                          "retiredAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "version": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "DRAFT",
                              "ACTIVE",
                              "RETIRED"
                            ]
                          },
                          "sourceModelVersion": {
                            "type": "string",
                            "enum": [
                              "edm-product/1"
                            ]
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "activatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "activatedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "retiredBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "retiredAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a product data mapping and its version history"
      }
    },
    "/api/v1/external-data-mappings/{code}/compatible-cart-items": {
      "get": {
        "operationId": "listExternalDataMappingCompatibleCartItems",
        "summary": "List items for preview",
        "tags": [
          "Product data mappings"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "cartId",
                          "cartNumber",
                          "cartName",
                          "cartType",
                          "cartStatus",
                          "cartVersion",
                          "validationStatus",
                          "account",
                          "matchingItems"
                        ],
                        "properties": {
                          "cartId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "cartNumber": {
                            "type": "string"
                          },
                          "cartName": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "cartType": {
                            "type": "string",
                            "enum": [
                              "NEW_SALE",
                              "ORDER_AMENDMENT",
                              "SUBSCRIPTION_CHANGE"
                            ]
                          },
                          "cartStatus": {
                            "type": "string"
                          },
                          "cartVersion": {
                            "type": "integer"
                          },
                          "validationStatus": {
                            "type": "string",
                            "enum": [
                              "VALID",
                              "HAS_WARNINGS",
                              "HAS_ERRORS"
                            ]
                          },
                          "account": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "number",
                              "name"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "number": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "name": {
                                "type": "string"
                              }
                            }
                          },
                          "matchingItems": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "cartItemId",
                                "itemCode",
                                "itemName",
                                "variantCode",
                                "quantity",
                                "quantityStrategy",
                                "action",
                                "hierarchyPath"
                              ],
                              "properties": {
                                "cartItemId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "itemCode": {
                                  "type": "string"
                                },
                                "itemName": {
                                  "type": "string"
                                },
                                "variantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "quantity": {
                                  "type": "number"
                                },
                                "quantityStrategy": {
                                  "type": "string",
                                  "enum": [
                                    "MULTIPLIER",
                                    "UNIT"
                                  ]
                                },
                                "action": {
                                  "type": "string",
                                  "enum": [
                                    "ADD",
                                    "NO_CHANGE",
                                    "MODIFY",
                                    "REMOVE"
                                  ]
                                },
                                "hierarchyPath": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "id",
                                      "code",
                                      "name",
                                      "type"
                                    ],
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "format": "uuid"
                                      },
                                      "code": {
                                        "type": "string"
                                      },
                                      "name": {
                                        "type": "string"
                                      },
                                      "type": {
                                        "type": "string"
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List quote items a mapping version can be previewed against."
      }
    },
    "/api/v1/external-data-mappings/{code}/versions": {
      "post": {
        "operationId": "createExternalDataMappingVersion",
        "summary": "Create a mapping version",
        "tags": [
          "Product data mappings"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "fromVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "version",
                    "name",
                    "description",
                    "catalogueCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "template",
                    "sourceModelVersion",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "activatedBy",
                    "activatedAt",
                    "retiredBy",
                    "retiredAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionCode": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    },
                    "sourceModelVersion": {
                      "type": "string",
                      "enum": [
                        "edm-product/1"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Create the next mapping draft version"
      }
    },
    "/api/v1/external-data-mappings/{code}/versions/{version}": {
      "get": {
        "operationId": "getExternalDataMappingVersion",
        "summary": "Get a mapping version",
        "tags": [
          "Product data mappings"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "in": "path",
            "name": "version",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "version",
                    "name",
                    "description",
                    "catalogueCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "template",
                    "sourceModelVersion",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "activatedBy",
                    "activatedAt",
                    "retiredBy",
                    "retiredAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionCode": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    },
                    "sourceModelVersion": {
                      "type": "string",
                      "enum": [
                        "edm-product/1"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a product data mapping version"
      },
      "patch": {
        "operationId": "updateExternalDataMappingVersion",
        "summary": "Update a mapping version",
        "tags": [
          "Product data mappings"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 5000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "template": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "in": "path",
            "name": "version",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "version",
                    "name",
                    "description",
                    "catalogueCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "template",
                    "sourceModelVersion",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "activatedBy",
                    "activatedAt",
                    "retiredBy",
                    "retiredAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionCode": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    },
                    "sourceModelVersion": {
                      "type": "string",
                      "enum": [
                        "edm-product/1"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update a draft mapping version"
      },
      "delete": {
        "operationId": "deleteExternalDataMappingVersion",
        "summary": "Delete a mapping version",
        "tags": [
          "Product data mappings"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "in": "path",
            "name": "version",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Delete a draft mapping version"
      }
    },
    "/api/v1/external-data-mappings/{code}/versions/{version}/source-fields": {
      "get": {
        "operationId": "getExternalDataMappingSourceFields",
        "summary": "List mapping source fields",
        "tags": [
          "Product data mappings"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "in": "path",
            "name": "version",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "code",
                    "version",
                    "sourceModelVersion",
                    "productDefinition",
                    "fields"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "sourceModelVersion": {
                      "type": "string",
                      "enum": [
                        "edm-product/1"
                      ]
                    },
                    "productDefinition": {
                      "type": "object",
                      "additionalProperties": true,
                      "required": [
                        "id",
                        "code",
                        "name",
                        "quantityStrategy",
                        "orderProductType",
                        "facts"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "quantityStrategy": {
                          "type": "string"
                        },
                        "orderProductType": {
                          "type": "string"
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    },
                    "fields": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "path",
                          "expression",
                          "label",
                          "description",
                          "dataType",
                          "section",
                          "source",
                          "code",
                          "attributeCategory",
                          "valueLevel",
                          "groupCode",
                          "repeatable",
                          "required",
                          "availableOn"
                        ],
                        "properties": {
                          "path": {
                            "type": "string"
                          },
                          "expression": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dataType": {
                            "type": "string"
                          },
                          "section": {
                            "type": "string",
                            "enum": [
                              "CART",
                              "CUSTOMER",
                              "ITEM",
                              "PRODUCT",
                              "CONFIGURATION",
                              "COMMERCIAL",
                              "HIERARCHY",
                              "CHANGE"
                            ]
                          },
                          "source": {
                            "type": "string",
                            "enum": [
                              "PLATFORM",
                              "ATTRIBUTE"
                            ]
                          },
                          "code": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attributeCategory": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "valueLevel": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "groupCode": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "repeatable": {
                            "type": "boolean"
                          },
                          "required": {
                            "type": "boolean"
                          },
                          "availableOn": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "catalogueViewId",
                                "productCode",
                                "variantCode",
                                "bundleComponentCode"
                              ],
                              "properties": {
                                "catalogueViewId": {
                                  "type": "string",
                                  "format": "uuid"
                                },
                                "productCode": {
                                  "type": "string"
                                },
                                "variantCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "bundleComponentCode": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get source fields for a mapping version"
      }
    },
    "/api/v1/external-data-mappings/{code}/versions/{version}/validate": {
      "post": {
        "operationId": "validateExternalDataMappingVersion",
        "summary": "Validate a mapping version",
        "tags": [
          "Product data mappings"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "template": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "in": "path",
            "name": "version",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "code",
                    "version",
                    "valid",
                    "issues",
                    "productDefinition",
                    "sourceModelVersion",
                    "templateSource"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "valid": {
                      "type": "boolean"
                    },
                    "issues": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "required": [
                          "code",
                          "message"
                        ],
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          },
                          "position": {
                            "type": "integer"
                          },
                          "token": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "productDefinition": {
                      "type": "object",
                      "additionalProperties": true,
                      "required": [
                        "id",
                        "code",
                        "name",
                        "quantityStrategy",
                        "orderProductType",
                        "facts"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "quantityStrategy": {
                          "type": "string"
                        },
                        "orderProductType": {
                          "type": "string"
                        },
                        "facts": {
                          "type": "object",
                          "additionalProperties": true
                        }
                      }
                    },
                    "sourceModelVersion": {
                      "type": "string",
                      "enum": [
                        "edm-product/1"
                      ]
                    },
                    "templateSource": {
                      "type": "string",
                      "enum": [
                        "SAVED",
                        "REQUEST"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Validate saved or supplied mapping text"
      }
    },
    "/api/v1/external-data-mappings/{code}/versions/{version}/preview": {
      "post": {
        "operationId": "previewExternalDataMappingVersion",
        "summary": "Preview a mapping version",
        "tags": [
          "Product data mappings"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cartId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "cartItemId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedCartVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "includeSource": {
                    "default": false,
                    "type": "boolean"
                  },
                  "template": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 65536
                  }
                },
                "required": [
                  "cartId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "in": "path",
            "name": "version",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "mapping",
                    "cart",
                    "results"
                  ],
                  "properties": {
                    "mapping": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "code",
                        "version",
                        "status",
                        "sourceModelVersion",
                        "templateSource"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "version": {
                          "type": "integer"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "DRAFT",
                            "ACTIVE",
                            "RETIRED"
                          ]
                        },
                        "sourceModelVersion": {
                          "type": "string",
                          "enum": [
                            "edm-product/1"
                          ]
                        },
                        "templateSource": {
                          "type": "string",
                          "enum": [
                            "SAVED",
                            "REQUEST"
                          ]
                        }
                      }
                    },
                    "cart": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "number",
                        "version",
                        "validationStatus",
                        "canGenerate"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "number": {
                          "type": "string"
                        },
                        "version": {
                          "type": "integer"
                        },
                        "validationStatus": {
                          "type": "string",
                          "enum": [
                            "VALID",
                            "HAS_WARNINGS",
                            "HAS_ERRORS"
                          ]
                        },
                        "canGenerate": {
                          "type": "boolean"
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "cartItemId",
                          "action",
                          "output",
                          "durationMs",
                          "outputBytes"
                        ],
                        "properties": {
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ADD",
                              "NO_CHANGE",
                              "MODIFY",
                              "REMOVE"
                            ]
                          },
                          "output": {},
                          "source": {},
                          "durationMs": {
                            "type": "number"
                          },
                          "outputBytes": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Preview a mapping version against a quote."
      }
    },
    "/api/v1/external-data-mappings/{code}/versions/{version}/activate": {
      "post": {
        "operationId": "activateExternalDataMappingVersion",
        "summary": "Activate a mapping version",
        "tags": [
          "Product data mappings"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "in": "path",
            "name": "version",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "version",
                    "name",
                    "description",
                    "catalogueCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "template",
                    "sourceModelVersion",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "activatedBy",
                    "activatedAt",
                    "retiredBy",
                    "retiredAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionCode": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    },
                    "sourceModelVersion": {
                      "type": "string",
                      "enum": [
                        "edm-product/1"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Activate a validated mapping draft"
      }
    },
    "/api/v1/external-data-mappings/{code}/versions/{version}/retire": {
      "post": {
        "operationId": "retireExternalDataMappingVersion",
        "summary": "Retire a mapping version",
        "tags": [
          "Product data mappings"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "schema": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "in": "path",
            "name": "version",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "version",
                    "name",
                    "description",
                    "catalogueCode",
                    "productDefinitionId",
                    "productDefinitionCode",
                    "template",
                    "sourceModelVersion",
                    "status",
                    "createdBy",
                    "updatedBy",
                    "activatedBy",
                    "activatedAt",
                    "retiredBy",
                    "retiredAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "version": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "catalogueCode": {
                      "type": "string"
                    },
                    "productDefinitionId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "productDefinitionCode": {
                      "type": "string"
                    },
                    "template": {
                      "type": "string"
                    },
                    "sourceModelVersion": {
                      "type": "string",
                      "enum": [
                        "edm-product/1"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "DRAFT",
                        "ACTIVE",
                        "RETIRED"
                      ]
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "activatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "activatedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "retiredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Retire an active mapping version"
      }
    },
    "/api/v1/external-data-mappings/{code}/generate": {
      "post": {
        "operationId": "generateExternalDataMapping",
        "summary": "Generate mapped payloads",
        "tags": [
          "Product data mappings"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "cartId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "cartItemId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "expectedCartVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "cartId"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "mapping",
                    "cart",
                    "results"
                  ],
                  "properties": {
                    "mapping": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "code",
                        "version",
                        "status",
                        "sourceModelVersion",
                        "templateSource"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "version": {
                          "type": "integer"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "DRAFT",
                            "ACTIVE",
                            "RETIRED"
                          ]
                        },
                        "sourceModelVersion": {
                          "type": "string",
                          "enum": [
                            "edm-product/1"
                          ]
                        },
                        "templateSource": {
                          "type": "string",
                          "enum": [
                            "SAVED",
                            "REQUEST"
                          ]
                        }
                      }
                    },
                    "cart": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "number",
                        "version",
                        "validationStatus",
                        "canGenerate"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "number": {
                          "type": "string"
                        },
                        "version": {
                          "type": "integer"
                        },
                        "validationStatus": {
                          "type": "string",
                          "enum": [
                            "VALID",
                            "HAS_WARNINGS",
                            "HAS_ERRORS"
                          ]
                        },
                        "canGenerate": {
                          "type": "boolean"
                        }
                      }
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "cartItemId",
                          "action",
                          "output",
                          "durationMs",
                          "outputBytes"
                        ],
                        "properties": {
                          "cartItemId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "action": {
                            "type": "string",
                            "enum": [
                              "ADD",
                              "NO_CHANGE",
                              "MODIFY",
                              "REMOVE"
                            ]
                          },
                          "output": {},
                          "source": {},
                          "durationMs": {
                            "type": "number"
                          },
                          "outputBytes": {
                            "type": "integer"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "413": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "422": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "502": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "503": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Generate payloads with the active mapping version"
      }
    },
    "/api/v1/settings": {
      "get": {
        "operationId": "listTenantSettings",
        "summary": "List business settings",
        "tags": [
          "Tenant settings"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "category",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "slug",
                          "name",
                          "description",
                          "category",
                          "valueType",
                          "value",
                          "defaultValue",
                          "allowedValues",
                          "isSystem",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string"
                          },
                          "valueType": {
                            "type": "string",
                            "enum": [
                              "STRING",
                              "BOOLEAN",
                              "NUMBER",
                              "STRING_LIST",
                              "JSON"
                            ]
                          },
                          "value": {},
                          "defaultValue": {},
                          "allowedValues": {
                            "anyOf": [
                              {},
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isSystem": {
                            "type": "boolean"
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.settings.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List tenant business settings"
      },
      "patch": {
        "operationId": "updateTenantSettings",
        "summary": "Update business settings",
        "tags": [
          "Tenant settings"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "updates": {
                    "minItems": 1,
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "slug": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "pattern": "^[a-z0-9_]+$"
                        },
                        "value": {},
                        "expectedUpdatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                        }
                      },
                      "required": [
                        "slug",
                        "value",
                        "expectedUpdatedAt"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "updates"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "slug",
                          "name",
                          "description",
                          "category",
                          "valueType",
                          "value",
                          "defaultValue",
                          "allowedValues",
                          "isSystem",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string"
                          },
                          "valueType": {
                            "type": "string",
                            "enum": [
                              "STRING",
                              "BOOLEAN",
                              "NUMBER",
                              "STRING_LIST",
                              "JSON"
                            ]
                          },
                          "value": {},
                          "defaultValue": {},
                          "allowedValues": {
                            "anyOf": [
                              {},
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isSystem": {
                            "type": "boolean"
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.settings.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "description": "Update several business settings in one request."
      }
    },
    "/api/v1/settings/{slug}": {
      "get": {
        "operationId": "getTenantSetting",
        "summary": "Get a business setting",
        "tags": [
          "Tenant settings"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[a-z0-9_]+$"
            },
            "in": "path",
            "name": "slug",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "slug",
                    "name",
                    "description",
                    "category",
                    "valueType",
                    "value",
                    "defaultValue",
                    "allowedValues",
                    "isSystem",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "category": {
                      "type": "string"
                    },
                    "valueType": {
                      "type": "string",
                      "enum": [
                        "STRING",
                        "BOOLEAN",
                        "NUMBER",
                        "STRING_LIST",
                        "JSON"
                      ]
                    },
                    "value": {},
                    "defaultValue": {},
                    "allowedValues": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isSystem": {
                      "type": "boolean"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.settings.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a tenant business setting"
      },
      "patch": {
        "operationId": "updateTenantSetting",
        "summary": "Update a business setting",
        "tags": [
          "Tenant settings"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "value": {}
                },
                "required": [
                  "value"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^[a-z0-9_]+$"
            },
            "in": "path",
            "name": "slug",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "slug",
                    "name",
                    "description",
                    "category",
                    "valueType",
                    "value",
                    "defaultValue",
                    "allowedValues",
                    "isSystem",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "slug": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "type": "string"
                    },
                    "category": {
                      "type": "string"
                    },
                    "valueType": {
                      "type": "string",
                      "enum": [
                        "STRING",
                        "BOOLEAN",
                        "NUMBER",
                        "STRING_LIST",
                        "JSON"
                      ]
                    },
                    "value": {},
                    "defaultValue": {},
                    "allowedValues": {
                      "anyOf": [
                        {},
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isSystem": {
                      "type": "boolean"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.settings.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update a tenant business setting"
      }
    },
    "/api/v1/platform/tenant-roles": {
      "get": {
        "operationId": "listTenantRoles",
        "summary": "List tenant roles",
        "tags": [
          "Tenant access"
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "code",
                          "name",
                          "description",
                          "permissions",
                          "permissionDescriptions"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "enum": [
                              "tenant_admin",
                              "catalogue_manager",
                              "pricing_manager",
                              "sales_agent",
                              "sales_manager",
                              "operations_user",
                              "fde",
                              "auditor"
                            ]
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "permissions": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "permissionDescriptions": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "code",
                                "description"
                              ],
                              "properties": {
                                "code": {
                                  "type": "string"
                                },
                                "description": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.users.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "description": "List fixed tenant roles"
      }
    },
    "/api/v1/platform/tenants/{tenantCode}/members": {
      "get": {
        "operationId": "listTenantMembers",
        "summary": "List tenant members",
        "tags": [
          "Tenant access"
        ],
        "parameters": [
          {
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "tenant_admin",
                "catalogue_manager",
                "pricing_manager",
                "sales_agent",
                "sales_manager",
                "operations_user",
                "fde",
                "auditor"
              ]
            },
            "in": "query",
            "name": "role",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            },
            "in": "query",
            "name": "enabled",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 48,
              "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
            },
            "in": "path",
            "name": "tenantCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "userId",
                          "email",
                          "firstName",
                          "lastName",
                          "enabled",
                          "roles"
                        ],
                        "properties": {
                          "userId": {
                            "type": "string"
                          },
                          "email": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "email"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "firstName": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastName": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "roles": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "tenant_admin",
                                "catalogue_manager",
                                "pricing_manager",
                                "sales_agent",
                                "sales_manager",
                                "operations_user",
                                "fde",
                                "auditor"
                              ]
                            }
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.users.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "operationId": "createTenantMember",
        "summary": "Invite a tenant member",
        "tags": [
          "Tenant access"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "maxLength": 320,
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  "firstName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "lastName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "roles": {
                    "minItems": 1,
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "tenant_admin",
                        "catalogue_manager",
                        "pricing_manager",
                        "sales_agent",
                        "sales_manager",
                        "operations_user",
                        "fde",
                        "auditor"
                      ]
                    }
                  }
                },
                "required": [
                  "email",
                  "roles"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 48,
              "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
            },
            "in": "path",
            "name": "tenantCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "userId",
                    "email",
                    "firstName",
                    "lastName",
                    "enabled",
                    "roles"
                  ],
                  "properties": {
                    "userId": {
                      "type": "string"
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "email"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "firstName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "tenant_admin",
                          "catalogue_manager",
                          "pricing_manager",
                          "sales_agent",
                          "sales_manager",
                          "operations_user",
                          "fde",
                          "auditor"
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.users.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/api/v1/platform/tenants/{tenantCode}/members/{userId}": {
      "get": {
        "operationId": "getTenantMember",
        "summary": "Get a tenant member",
        "tags": [
          "Tenant access"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 48,
              "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
            },
            "in": "path",
            "name": "tenantCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "path",
            "name": "userId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "userId",
                    "email",
                    "firstName",
                    "lastName",
                    "enabled",
                    "roles"
                  ],
                  "properties": {
                    "userId": {
                      "type": "string"
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "email"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "firstName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "tenant_admin",
                          "catalogue_manager",
                          "pricing_manager",
                          "sales_agent",
                          "sales_manager",
                          "operations_user",
                          "fde",
                          "auditor"
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.users.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "operationId": "removeTenantMember",
        "summary": "Remove a tenant member",
        "tags": [
          "Tenant access"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 48,
              "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
            },
            "in": "path",
            "name": "tenantCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "path",
            "name": "userId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "204": {
            "description": "Default Response"
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.users.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Remove a member from the tenant"
      }
    },
    "/api/v1/platform/tenants/{tenantCode}/members/{userId}/roles": {
      "put": {
        "operationId": "replaceTenantMemberRoles",
        "summary": "Replace member roles",
        "tags": [
          "Tenant access"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "roles": {
                    "minItems": 1,
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "tenant_admin",
                        "catalogue_manager",
                        "pricing_manager",
                        "sales_agent",
                        "sales_manager",
                        "operations_user",
                        "fde",
                        "auditor"
                      ]
                    }
                  }
                },
                "required": [
                  "roles"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 48,
              "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
            },
            "in": "path",
            "name": "tenantCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "path",
            "name": "userId",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "userId",
                    "email",
                    "firstName",
                    "lastName",
                    "enabled",
                    "roles"
                  ],
                  "properties": {
                    "userId": {
                      "type": "string"
                    },
                    "email": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "email"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "firstName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "roles": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "tenant_admin",
                          "catalogue_manager",
                          "pricing_manager",
                          "sales_agent",
                          "sales_manager",
                          "operations_user",
                          "fde",
                          "auditor"
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.users.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Replace a tenant member's roles"
      }
    },
    "/api/v1/platform/tenants/{tenantCode}/sales-assignees": {
      "get": {
        "operationId": "listSalesAssignees",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "tenantCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response"
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "cart.assign"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List sales assignees",
        "tags": [
          "Sales directory"
        ],
        "description": "List tenant sales assignees"
      }
    },
    "/api/v1/platform/tenants/{tenantCode}/sales-assignees/resolve": {
      "post": {
        "operationId": "resolveSalesAssignees",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "tenantCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response"
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "cart.assign"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Resolve sales assignees",
        "tags": [
          "Sales directory"
        ],
        "description": "Resolve tenant sales assignees by user id"
      }
    },
    "/api/v1/webhook-event-types": {
      "get": {
        "operationId": "listWebhookEventTypes",
        "summary": "List event types",
        "tags": [
          "Webhooks"
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "type",
                          "version",
                          "subjectType",
                          "category",
                          "displayName",
                          "filterableFields",
                          "description"
                        ],
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "version": {
                            "type": "integer"
                          },
                          "subjectType": {
                            "type": "string"
                          },
                          "category": {
                            "type": "string"
                          },
                          "displayName": {
                            "type": "string"
                          },
                          "filterableFields": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "description": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "description": "List externally subscribable domain events"
      }
    },
    "/api/v1/webhooks": {
      "get": {
        "operationId": "listWebhooks",
        "summary": "List webhooks",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "ACTIVE",
                "DISABLED"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "catalogue.published",
                "customer_agreement.status_changed",
                "cart.created",
                "cart.status_changed",
                "cart.assignment_changed",
                "approval.requested",
                "approval.status_changed",
                "order.created",
                "order.changed",
                "subscription.changed",
                "service.changed",
                "deliverable.changed",
                "webhook.delivery_dead_lettered",
                "webhook.test"
              ]
            },
            "in": "query",
            "name": "eventType",
            "required": false
          },
          {
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "code",
                          "name",
                          "description",
                          "url",
                          "status",
                          "eventTypes",
                          "filters",
                          "secretVersion",
                          "createdBy",
                          "updatedBy",
                          "createdAt",
                          "updatedAt",
                          "health"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "DISABLED"
                            ]
                          },
                          "eventTypes": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "filters": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "changedFields": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                }
                              }
                            }
                          },
                          "secretVersion": {
                            "type": "integer"
                          },
                          "createdBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedBy": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "health": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "latestStatus",
                              "latestDeliveryAt",
                              "pendingCount",
                              "retryScheduledCount",
                              "deadLetterCount",
                              "deliveredCount"
                            ],
                            "properties": {
                              "latestStatus": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "latestDeliveryAt": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "format": "date-time"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "pendingCount": {
                                "type": "integer"
                              },
                              "retryScheduledCount": {
                                "type": "integer"
                              },
                              "deadLetterCount": {
                                "type": "integer"
                              },
                              "deliveredCount": {
                                "type": "integer"
                              }
                            }
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List tenant webhook endpoints"
      },
      "post": {
        "operationId": "createWebhook",
        "summary": "Create a webhook",
        "tags": [
          "Webhooks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64,
                    "pattern": "^[a-z][a-z0-9_-]*$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "description": {
                    "default": null,
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 5000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "url": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "eventTypes": {
                    "minItems": 1,
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "catalogue.published",
                        "customer_agreement.status_changed",
                        "cart.created",
                        "cart.status_changed",
                        "cart.assignment_changed",
                        "approval.requested",
                        "approval.status_changed",
                        "order.created",
                        "order.changed",
                        "subscription.changed",
                        "service.changed",
                        "deliverable.changed",
                        "webhook.delivery_dead_lettered",
                        "webhook.test"
                      ]
                    }
                  },
                  "filters": {
                    "type": "object",
                    "properties": {
                      "changedFields": {
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "required": [
                  "code",
                  "name",
                  "url",
                  "eventTypes"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "code",
                        "name",
                        "description",
                        "url",
                        "status",
                        "eventTypes",
                        "filters",
                        "secretVersion",
                        "createdBy",
                        "updatedBy",
                        "createdAt",
                        "updatedAt",
                        "health"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "ACTIVE",
                            "DISABLED"
                          ]
                        },
                        "eventTypes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "filters": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "changedFields": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "secretVersion": {
                          "type": "integer"
                        },
                        "createdBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedBy": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "health": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "latestStatus",
                            "latestDeliveryAt",
                            "pendingCount",
                            "retryScheduledCount",
                            "deadLetterCount",
                            "deliveredCount"
                          ],
                          "properties": {
                            "latestStatus": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "latestDeliveryAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "format": "date-time"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "pendingCount": {
                              "type": "integer"
                            },
                            "retryScheduledCount": {
                              "type": "integer"
                            },
                            "deadLetterCount": {
                              "type": "integer"
                            },
                            "deliveredCount": {
                              "type": "integer"
                            }
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "required": [
                        "signingSecret"
                      ],
                      "properties": {
                        "signingSecret": {
                          "type": "string"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "description": "Create a webhook endpoint"
      }
    },
    "/api/v1/webhooks/{code}": {
      "get": {
        "operationId": "getWebhook",
        "summary": "Get a webhook",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "url",
                    "status",
                    "eventTypes",
                    "filters",
                    "secretVersion",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "health"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "DISABLED"
                      ]
                    },
                    "eventTypes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "changedFields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "secretVersion": {
                      "type": "integer"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "health": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "latestStatus",
                        "latestDeliveryAt",
                        "pendingCount",
                        "retryScheduledCount",
                        "deadLetterCount",
                        "deliveredCount"
                      ],
                      "properties": {
                        "latestStatus": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "latestDeliveryAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "pendingCount": {
                          "type": "integer"
                        },
                        "retryScheduledCount": {
                          "type": "integer"
                        },
                        "deadLetterCount": {
                          "type": "integer"
                        },
                        "deliveredCount": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a webhook endpoint"
      },
      "patch": {
        "operationId": "patchWebhook",
        "summary": "Update a webhook",
        "tags": [
          "Webhooks"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 5000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "url": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "DISABLED"
                    ]
                  },
                  "eventTypes": {
                    "minItems": 1,
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "catalogue.published",
                        "customer_agreement.status_changed",
                        "cart.created",
                        "cart.status_changed",
                        "cart.assignment_changed",
                        "approval.requested",
                        "approval.status_changed",
                        "order.created",
                        "order.changed",
                        "subscription.changed",
                        "service.changed",
                        "deliverable.changed",
                        "webhook.delivery_dead_lettered",
                        "webhook.test"
                      ]
                    }
                  },
                  "filters": {
                    "type": "object",
                    "properties": {
                      "changedFields": {
                        "maxItems": 50,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "url",
                    "status",
                    "eventTypes",
                    "filters",
                    "secretVersion",
                    "createdBy",
                    "updatedBy",
                    "createdAt",
                    "updatedAt",
                    "health"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "DISABLED"
                      ]
                    },
                    "eventTypes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "filters": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "changedFields": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "secretVersion": {
                      "type": "integer"
                    },
                    "createdBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "updatedBy": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "health": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "latestStatus",
                        "latestDeliveryAt",
                        "pendingCount",
                        "retryScheduledCount",
                        "deadLetterCount",
                        "deliveredCount"
                      ],
                      "properties": {
                        "latestStatus": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "latestDeliveryAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "pendingCount": {
                          "type": "integer"
                        },
                        "retryScheduledCount": {
                          "type": "integer"
                        },
                        "deadLetterCount": {
                          "type": "integer"
                        },
                        "deliveredCount": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update a webhook endpoint"
      }
    },
    "/api/v1/webhooks/{code}/rotate-secret": {
      "post": {
        "operationId": "rotateWebhookSecret",
        "summary": "Rotate a webhook secret",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "code",
                    "secretVersion",
                    "signingSecret"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "secretVersion": {
                      "type": "integer"
                    },
                    "signingSecret": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Rotate a webhook signing secret"
      }
    },
    "/api/v1/webhooks/{code}/test": {
      "post": {
        "operationId": "testWebhook",
        "summary": "Send a test delivery",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "202": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "accepted",
                    "deliveryId",
                    "eventId"
                  ],
                  "properties": {
                    "accepted": {
                      "type": "boolean"
                    },
                    "deliveryId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "eventId": {
                      "type": "string",
                      "format": "uuid"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Queue a diagnostic webhook delivery"
      }
    },
    "/api/v1/webhooks/{code}/deliveries": {
      "get": {
        "operationId": "listWebhookDeliveries",
        "summary": "List webhook deliveries",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "PENDING",
                "PROCESSING",
                "RETRY_SCHEDULED",
                "DELIVERED",
                "DEAD_LETTER"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "catalogue.published",
                "customer_agreement.status_changed",
                "cart.created",
                "cart.status_changed",
                "cart.assignment_changed",
                "approval.requested",
                "approval.status_changed",
                "order.created",
                "order.changed",
                "subscription.changed",
                "service.changed",
                "deliverable.changed",
                "webhook.delivery_dead_lettered",
                "webhook.test"
              ]
            },
            "in": "query",
            "name": "eventType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[a-z][a-z0-9_-]*$"
            },
            "in": "query",
            "name": "endpointCode",
            "required": false
          },
          {
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "subjectType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "query",
            "name": "subjectId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "query",
            "name": "correlationId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "occurredFrom",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "occurredTo",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64
            },
            "in": "path",
            "name": "code",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor",
                    "summary"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "webhookCode",
                          "eventId",
                          "eventType",
                          "eventVersion",
                          "subject",
                          "endpoint",
                          "event",
                          "status",
                          "attemptCount",
                          "nextAttemptAt",
                          "lastHttpStatus",
                          "lastError",
                          "attemptHistory",
                          "deliveredAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "webhookCode": {
                            "type": "string"
                          },
                          "eventId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "eventType": {
                            "type": "string"
                          },
                          "eventVersion": {
                            "type": "integer"
                          },
                          "subject": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "id",
                              "reference"
                            ],
                            "properties": {
                              "type": {
                                "type": "string"
                              },
                              "id": {
                                "type": "string"
                              },
                              "reference": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          },
                          "endpoint": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "code",
                              "name",
                              "status"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              }
                            }
                          },
                          "event": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "sourceEventId",
                              "type",
                              "version",
                              "occurredAt",
                              "correlationId"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceEventId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "type": {
                                "type": "string"
                              },
                              "version": {
                                "type": "integer"
                              },
                              "occurredAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "correlationId": {
                                "type": "string"
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "attemptCount": {
                            "type": "integer"
                          },
                          "nextAttemptAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "lastHttpStatus": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastError": {
                            "anyOf": [
                              {
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attemptHistory": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "deliveredAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "payload": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "summary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "total",
                        "pending",
                        "processing",
                        "retryScheduled",
                        "delivered",
                        "deadLetter"
                      ],
                      "properties": {
                        "total": {
                          "type": "integer"
                        },
                        "pending": {
                          "type": "integer"
                        },
                        "processing": {
                          "type": "integer"
                        },
                        "retryScheduled": {
                          "type": "integer"
                        },
                        "delivered": {
                          "type": "integer"
                        },
                        "deadLetter": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List deliveries for a webhook endpoint"
      }
    },
    "/api/v1/webhook-deliveries": {
      "get": {
        "operationId": "listAllWebhookDeliveries",
        "summary": "Search deliveries",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "enum": [
                "PENDING",
                "PROCESSING",
                "RETRY_SCHEDULED",
                "DELIVERED",
                "DEAD_LETTER"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "enum": [
                "catalogue.published",
                "customer_agreement.status_changed",
                "cart.created",
                "cart.status_changed",
                "cart.assignment_changed",
                "approval.requested",
                "approval.status_changed",
                "order.created",
                "order.changed",
                "subscription.changed",
                "service.changed",
                "deliverable.changed",
                "webhook.delivery_dead_lettered",
                "webhook.test"
              ]
            },
            "in": "query",
            "name": "eventType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 64,
              "pattern": "^[a-z][a-z0-9_-]*$"
            },
            "in": "query",
            "name": "endpointCode",
            "required": false
          },
          {
            "schema": {
              "default": "",
              "type": "string",
              "maxLength": 200
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "in": "query",
            "name": "subjectType",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "query",
            "name": "subjectId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "in": "query",
            "name": "correlationId",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "occurredFrom",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            "in": "query",
            "name": "occurredTo",
            "required": false
          },
          {
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "in": "query",
            "name": "limit",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            },
            "in": "query",
            "name": "cursor",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items",
                    "nextCursor",
                    "summary"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "webhookCode",
                          "eventId",
                          "eventType",
                          "eventVersion",
                          "subject",
                          "endpoint",
                          "event",
                          "status",
                          "attemptCount",
                          "nextAttemptAt",
                          "lastHttpStatus",
                          "lastError",
                          "attemptHistory",
                          "deliveredAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "webhookCode": {
                            "type": "string"
                          },
                          "eventId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "eventType": {
                            "type": "string"
                          },
                          "eventVersion": {
                            "type": "integer"
                          },
                          "subject": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "type",
                              "id",
                              "reference"
                            ],
                            "properties": {
                              "type": {
                                "type": "string"
                              },
                              "id": {
                                "type": "string"
                              },
                              "reference": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            }
                          },
                          "endpoint": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "code",
                              "name",
                              "status"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "code": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "status": {
                                "type": "string"
                              }
                            }
                          },
                          "event": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "id",
                              "sourceEventId",
                              "type",
                              "version",
                              "occurredAt",
                              "correlationId"
                            ],
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "sourceEventId": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "type": {
                                "type": "string"
                              },
                              "version": {
                                "type": "integer"
                              },
                              "occurredAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "correlationId": {
                                "type": "string"
                              }
                            }
                          },
                          "status": {
                            "type": "string"
                          },
                          "attemptCount": {
                            "type": "integer"
                          },
                          "nextAttemptAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "lastHttpStatus": {
                            "anyOf": [
                              {
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastError": {
                            "anyOf": [
                              {
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "attemptHistory": {
                            "type": "array",
                            "items": {
                              "type": "object"
                            }
                          },
                          "deliveredAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "format": "date-time"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "payload": {
                            "type": "object",
                            "additionalProperties": true
                          }
                        }
                      }
                    },
                    "nextCursor": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "summary": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "total",
                        "pending",
                        "processing",
                        "retryScheduled",
                        "delivered",
                        "deadLetter"
                      ],
                      "properties": {
                        "total": {
                          "type": "integer"
                        },
                        "pending": {
                          "type": "integer"
                        },
                        "processing": {
                          "type": "integer"
                        },
                        "retryScheduled": {
                          "type": "integer"
                        },
                        "delivered": {
                          "type": "integer"
                        },
                        "deadLetter": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Search tenant webhook deliveries"
      }
    },
    "/api/v1/webhook-deliveries/{id}": {
      "get": {
        "operationId": "getWebhookDelivery",
        "summary": "Get a delivery",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "id",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "webhookCode",
                    "eventId",
                    "eventType",
                    "eventVersion",
                    "subject",
                    "endpoint",
                    "event",
                    "status",
                    "attemptCount",
                    "nextAttemptAt",
                    "lastHttpStatus",
                    "lastError",
                    "attemptHistory",
                    "deliveredAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "webhookCode": {
                      "type": "string"
                    },
                    "eventId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "eventType": {
                      "type": "string"
                    },
                    "eventVersion": {
                      "type": "integer"
                    },
                    "subject": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "id",
                        "reference"
                      ],
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "reference": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "endpoint": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "code",
                        "name",
                        "status"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        }
                      }
                    },
                    "event": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "sourceEventId",
                        "type",
                        "version",
                        "occurredAt",
                        "correlationId"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "sourceEventId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "type": {
                          "type": "string"
                        },
                        "version": {
                          "type": "integer"
                        },
                        "occurredAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "correlationId": {
                          "type": "string"
                        }
                      }
                    },
                    "status": {
                      "type": "string"
                    },
                    "attemptCount": {
                      "type": "integer"
                    },
                    "nextAttemptAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "lastHttpStatus": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastError": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attemptHistory": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "deliveredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "payload": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a webhook delivery"
      }
    },
    "/api/v1/webhook-deliveries/{id}/retry": {
      "post": {
        "operationId": "retryWebhookDelivery",
        "summary": "Retry a delivery",
        "tags": [
          "Webhooks"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "in": "path",
            "name": "id",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "202": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "webhookCode",
                    "eventId",
                    "eventType",
                    "eventVersion",
                    "subject",
                    "endpoint",
                    "event",
                    "status",
                    "attemptCount",
                    "nextAttemptAt",
                    "lastHttpStatus",
                    "lastError",
                    "attemptHistory",
                    "deliveredAt",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "webhookCode": {
                      "type": "string"
                    },
                    "eventId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "eventType": {
                      "type": "string"
                    },
                    "eventVersion": {
                      "type": "integer"
                    },
                    "subject": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "type",
                        "id",
                        "reference"
                      ],
                      "properties": {
                        "type": {
                          "type": "string"
                        },
                        "id": {
                          "type": "string"
                        },
                        "reference": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      }
                    },
                    "endpoint": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "code",
                        "name",
                        "status"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string"
                        }
                      }
                    },
                    "event": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "id",
                        "sourceEventId",
                        "type",
                        "version",
                        "occurredAt",
                        "correlationId"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "sourceEventId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "type": {
                          "type": "string"
                        },
                        "version": {
                          "type": "integer"
                        },
                        "occurredAt": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "correlationId": {
                          "type": "string"
                        }
                      }
                    },
                    "status": {
                      "type": "string"
                    },
                    "attemptCount": {
                      "type": "integer"
                    },
                    "nextAttemptAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "lastHttpStatus": {
                      "anyOf": [
                        {
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastError": {
                      "anyOf": [
                        {
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "attemptHistory": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "deliveredAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "payload": {
                      "type": "object",
                      "additionalProperties": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "implementation.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Retry a webhook delivery"
      }
    },
    "/api/v1/reference-lists": {
      "get": {
        "operationId": "listReferenceLists",
        "summary": "List reference lists",
        "tags": [
          "Reference data"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "code",
                          "name",
                          "description",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": []
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List tenant reference lists"
      },
      "post": {
        "operationId": "createReferenceList",
        "summary": "Create a reference list",
        "tags": [
          "Reference data"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "code",
                  "name"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.settings.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "description": "Create a tenant reference list"
      }
    },
    "/api/v1/reference-lists/{listCode}": {
      "get": {
        "operationId": "getReferenceList",
        "summary": "Get a reference list",
        "tags": [
          "Reference data"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "listCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": []
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a tenant reference list"
      },
      "patch": {
        "operationId": "updateReferenceList",
        "summary": "Update a reference list",
        "tags": [
          "Reference data"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "description": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "listCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "code",
                    "name",
                    "description",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "code": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.settings.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update a tenant reference list"
      }
    },
    "/api/v1/reference-lists/{listCode}/values": {
      "get": {
        "operationId": "listReferenceValues",
        "summary": "List reference values",
        "tags": [
          "Reference data"
        ],
        "parameters": [
          {
            "schema": {
              "default": "ALL",
              "type": "string",
              "enum": [
                "ACTIVE",
                "ARCHIVED",
                "ALL"
              ]
            },
            "in": "query",
            "name": "status",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "in": "query",
            "name": "search",
            "required": false
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "listCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "items"
                  ],
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "id",
                          "referenceListId",
                          "label",
                          "value",
                          "status",
                          "createdAt",
                          "updatedAt"
                        ],
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "referenceListId": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "label": {
                            "type": "string"
                          },
                          "value": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "ACTIVE",
                              "ARCHIVED"
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "updatedAt": {
                            "type": "string",
                            "format": "date-time"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": []
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "List values in a tenant reference list"
      },
      "post": {
        "operationId": "createReferenceValue",
        "summary": "Create a reference value",
        "tags": [
          "Reference data"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "value": {
                    "type": "string",
                    "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
                  }
                },
                "required": [
                  "label",
                  "value"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "listCode",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "201": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "referenceListId",
                    "label",
                    "value",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "referenceListId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "ARCHIVED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.settings.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Create a tenant reference value"
      }
    },
    "/api/v1/reference-lists/{listCode}/values/{value}": {
      "get": {
        "operationId": "getReferenceValue",
        "summary": "Get a reference value",
        "tags": [
          "Reference data"
        ],
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "listCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "value",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "referenceListId",
                    "label",
                    "value",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "referenceListId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "ARCHIVED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": []
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Get a tenant reference value"
      },
      "patch": {
        "operationId": "updateReferenceValue",
        "summary": "Update a reference value",
        "tags": [
          "Reference data"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "ACTIVE",
                      "ARCHIVED"
                    ]
                  }
                },
                "additionalProperties": false
              }
            }
          }
        },
        "parameters": [
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "listCode",
            "required": true
          },
          {
            "schema": {
              "type": "string",
              "pattern": "^[A-Z][A-Z0-9_]{1,63}$"
            },
            "in": "path",
            "name": "value",
            "required": true
          },
          {
            "$ref": "#/components/parameters/ActiveTenant"
          }
        ],
        "responses": {
          "200": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "referenceListId",
                    "label",
                    "value",
                    "status",
                    "createdAt",
                    "updatedAt"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "referenceListId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ACTIVE",
                        "ARCHIVED"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "401": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "403": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "404": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "409": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          },
          "500": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "error",
                    "message"
                  ],
                  "properties": {
                    "error": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "details": {}
                  }
                }
              }
            }
          }
        },
        "x-nambikk-access": {
          "permissions": [
            "tenant.settings.manage"
          ]
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "description": "Update a tenant reference value"
      }
    }
  },
  "components": {
    "schemas": {
      "def-0": {
        "anyOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "kind",
              "conditions"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "ALL"
                ]
              },
              "conditions": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "$ref": "#/components/schemas/def-0"
                }
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "kind",
              "conditions"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "ANY"
                ]
              },
              "conditions": {
                "type": "array",
                "minItems": 1,
                "maxItems": 100,
                "items": {
                  "$ref": "#/components/schemas/def-0"
                }
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "kind",
              "condition"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "NOT"
                ]
              },
              "condition": {
                "$ref": "#/components/schemas/def-0"
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "kind",
              "operator",
              "left"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "COMPARE"
                ]
              },
              "operator": {
                "type": "string"
              },
              "left": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "kind",
                      "path",
                      "valueType"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "FIELD"
                        ]
                      },
                      "path": {
                        "type": "string"
                      },
                      "valueType": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "CODE",
                          "NUMBER",
                          "MONEY",
                          "BOOLEAN",
                          "DATE",
                          "DATE_TIME",
                          "LIST",
                          "COLLECTION"
                        ]
                      },
                      "elementType": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "CODE",
                          "NUMBER",
                          "MONEY",
                          "BOOLEAN",
                          "DATE",
                          "DATE_TIME"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "kind",
                      "valueType",
                      "value"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "LITERAL"
                        ]
                      },
                      "valueType": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "CODE",
                          "NUMBER",
                          "MONEY",
                          "BOOLEAN",
                          "DATE",
                          "DATE_TIME",
                          "LIST"
                        ]
                      },
                      "elementType": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "CODE",
                          "NUMBER",
                          "MONEY",
                          "BOOLEAN",
                          "DATE",
                          "DATE_TIME"
                        ]
                      },
                      "value": {}
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "kind",
                      "function",
                      "collection",
                      "valueType"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "AGGREGATE"
                        ]
                      },
                      "function": {
                        "type": "string",
                        "enum": [
                          "COUNT",
                          "DISTINCT_COUNT",
                          "SUM",
                          "MIN",
                          "MAX"
                        ]
                      },
                      "collection": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "kind",
                          "path",
                          "valueType"
                        ],
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "FIELD"
                            ]
                          },
                          "path": {
                            "type": "string"
                          },
                          "valueType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "CODE",
                              "NUMBER",
                              "MONEY",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME",
                              "LIST",
                              "COLLECTION"
                            ]
                          },
                          "elementType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "CODE",
                              "NUMBER",
                              "MONEY",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME"
                            ]
                          }
                        }
                      },
                      "value": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "kind",
                          "path",
                          "valueType"
                        ],
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "FIELD"
                            ]
                          },
                          "path": {
                            "type": "string"
                          },
                          "valueType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "CODE",
                              "NUMBER",
                              "MONEY",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME",
                              "LIST",
                              "COLLECTION"
                            ]
                          },
                          "elementType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "CODE",
                              "NUMBER",
                              "MONEY",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME"
                            ]
                          }
                        }
                      },
                      "where": {
                        "$ref": "#/components/schemas/def-0"
                      },
                      "valueType": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "CODE",
                          "NUMBER",
                          "MONEY",
                          "BOOLEAN",
                          "DATE",
                          "DATE_TIME"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "kind",
                      "function",
                      "valueType",
                      "values"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "CALC"
                        ]
                      },
                      "function": {
                        "type": "string",
                        "enum": [
                          "SUM"
                        ]
                      },
                      "valueType": {
                        "type": "string",
                        "enum": [
                          "NUMBER"
                        ]
                      },
                      "values": {
                        "type": "array",
                        "minItems": 2,
                        "maxItems": 10,
                        "description": "NUMBER values to add. A missing value makes the total missing.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "kind",
                                "path",
                                "valueType"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "FIELD"
                                  ]
                                },
                                "path": {
                                  "type": "string"
                                },
                                "valueType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME",
                                    "LIST",
                                    "COLLECTION"
                                  ]
                                },
                                "elementType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME"
                                  ]
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "kind",
                                "valueType",
                                "value"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "LITERAL"
                                  ]
                                },
                                "valueType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME",
                                    "LIST"
                                  ]
                                },
                                "elementType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME"
                                  ]
                                },
                                "value": {}
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "kind",
                                "function",
                                "collection",
                                "valueType"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "AGGREGATE"
                                  ]
                                },
                                "function": {
                                  "type": "string",
                                  "enum": [
                                    "COUNT",
                                    "DISTINCT_COUNT",
                                    "SUM",
                                    "MIN",
                                    "MAX"
                                  ]
                                },
                                "collection": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "kind",
                                    "path",
                                    "valueType"
                                  ],
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "FIELD"
                                      ]
                                    },
                                    "path": {
                                      "type": "string"
                                    },
                                    "valueType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME",
                                        "LIST",
                                        "COLLECTION"
                                      ]
                                    },
                                    "elementType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME"
                                      ]
                                    }
                                  }
                                },
                                "value": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "kind",
                                    "path",
                                    "valueType"
                                  ],
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "FIELD"
                                      ]
                                    },
                                    "path": {
                                      "type": "string"
                                    },
                                    "valueType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME",
                                        "LIST",
                                        "COLLECTION"
                                      ]
                                    },
                                    "elementType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME"
                                      ]
                                    }
                                  }
                                },
                                "where": {
                                  "$ref": "#/components/schemas/def-0"
                                },
                                "valueType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME"
                                  ]
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "kind",
                      "function",
                      "valueType",
                      "value",
                      "factor"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "CALC"
                        ]
                      },
                      "function": {
                        "type": "string",
                        "enum": [
                          "MULTIPLY"
                        ]
                      },
                      "valueType": {
                        "type": "string",
                        "enum": [
                          "NUMBER"
                        ]
                      },
                      "value": {
                        "anyOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "kind",
                              "path",
                              "valueType"
                            ],
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "FIELD"
                                ]
                              },
                              "path": {
                                "type": "string"
                              },
                              "valueType": {
                                "type": "string",
                                "enum": [
                                  "TEXT",
                                  "CODE",
                                  "NUMBER",
                                  "MONEY",
                                  "BOOLEAN",
                                  "DATE",
                                  "DATE_TIME",
                                  "LIST",
                                  "COLLECTION"
                                ]
                              },
                              "elementType": {
                                "type": "string",
                                "enum": [
                                  "TEXT",
                                  "CODE",
                                  "NUMBER",
                                  "MONEY",
                                  "BOOLEAN",
                                  "DATE",
                                  "DATE_TIME"
                                ]
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "kind",
                              "function",
                              "collection",
                              "valueType"
                            ],
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "AGGREGATE"
                                ]
                              },
                              "function": {
                                "type": "string",
                                "enum": [
                                  "COUNT",
                                  "DISTINCT_COUNT",
                                  "SUM",
                                  "MIN",
                                  "MAX"
                                ]
                              },
                              "collection": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "kind",
                                  "path",
                                  "valueType"
                                ],
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "FIELD"
                                    ]
                                  },
                                  "path": {
                                    "type": "string"
                                  },
                                  "valueType": {
                                    "type": "string",
                                    "enum": [
                                      "TEXT",
                                      "CODE",
                                      "NUMBER",
                                      "MONEY",
                                      "BOOLEAN",
                                      "DATE",
                                      "DATE_TIME",
                                      "LIST",
                                      "COLLECTION"
                                    ]
                                  },
                                  "elementType": {
                                    "type": "string",
                                    "enum": [
                                      "TEXT",
                                      "CODE",
                                      "NUMBER",
                                      "MONEY",
                                      "BOOLEAN",
                                      "DATE",
                                      "DATE_TIME"
                                    ]
                                  }
                                }
                              },
                              "value": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "kind",
                                  "path",
                                  "valueType"
                                ],
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "FIELD"
                                    ]
                                  },
                                  "path": {
                                    "type": "string"
                                  },
                                  "valueType": {
                                    "type": "string",
                                    "enum": [
                                      "TEXT",
                                      "CODE",
                                      "NUMBER",
                                      "MONEY",
                                      "BOOLEAN",
                                      "DATE",
                                      "DATE_TIME",
                                      "LIST",
                                      "COLLECTION"
                                    ]
                                  },
                                  "elementType": {
                                    "type": "string",
                                    "enum": [
                                      "TEXT",
                                      "CODE",
                                      "NUMBER",
                                      "MONEY",
                                      "BOOLEAN",
                                      "DATE",
                                      "DATE_TIME"
                                    ]
                                  }
                                }
                              },
                              "where": {
                                "$ref": "#/components/schemas/def-0"
                              },
                              "valueType": {
                                "type": "string",
                                "enum": [
                                  "TEXT",
                                  "CODE",
                                  "NUMBER",
                                  "MONEY",
                                  "BOOLEAN",
                                  "DATE",
                                  "DATE_TIME"
                                ]
                              }
                            }
                          }
                        ]
                      },
                      "factor": {
                        "type": "number",
                        "description": "Fixed multiplier. Must be greater than zero."
                      }
                    }
                  }
                ]
              },
              "right": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "kind",
                      "path",
                      "valueType"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "FIELD"
                        ]
                      },
                      "path": {
                        "type": "string"
                      },
                      "valueType": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "CODE",
                          "NUMBER",
                          "MONEY",
                          "BOOLEAN",
                          "DATE",
                          "DATE_TIME",
                          "LIST",
                          "COLLECTION"
                        ]
                      },
                      "elementType": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "CODE",
                          "NUMBER",
                          "MONEY",
                          "BOOLEAN",
                          "DATE",
                          "DATE_TIME"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "kind",
                      "valueType",
                      "value"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "LITERAL"
                        ]
                      },
                      "valueType": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "CODE",
                          "NUMBER",
                          "MONEY",
                          "BOOLEAN",
                          "DATE",
                          "DATE_TIME",
                          "LIST"
                        ]
                      },
                      "elementType": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "CODE",
                          "NUMBER",
                          "MONEY",
                          "BOOLEAN",
                          "DATE",
                          "DATE_TIME"
                        ]
                      },
                      "value": {}
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "kind",
                      "function",
                      "collection",
                      "valueType"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "AGGREGATE"
                        ]
                      },
                      "function": {
                        "type": "string",
                        "enum": [
                          "COUNT",
                          "DISTINCT_COUNT",
                          "SUM",
                          "MIN",
                          "MAX"
                        ]
                      },
                      "collection": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "kind",
                          "path",
                          "valueType"
                        ],
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "FIELD"
                            ]
                          },
                          "path": {
                            "type": "string"
                          },
                          "valueType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "CODE",
                              "NUMBER",
                              "MONEY",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME",
                              "LIST",
                              "COLLECTION"
                            ]
                          },
                          "elementType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "CODE",
                              "NUMBER",
                              "MONEY",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME"
                            ]
                          }
                        }
                      },
                      "value": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "kind",
                          "path",
                          "valueType"
                        ],
                        "properties": {
                          "kind": {
                            "type": "string",
                            "enum": [
                              "FIELD"
                            ]
                          },
                          "path": {
                            "type": "string"
                          },
                          "valueType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "CODE",
                              "NUMBER",
                              "MONEY",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME",
                              "LIST",
                              "COLLECTION"
                            ]
                          },
                          "elementType": {
                            "type": "string",
                            "enum": [
                              "TEXT",
                              "CODE",
                              "NUMBER",
                              "MONEY",
                              "BOOLEAN",
                              "DATE",
                              "DATE_TIME"
                            ]
                          }
                        }
                      },
                      "where": {
                        "$ref": "#/components/schemas/def-0"
                      },
                      "valueType": {
                        "type": "string",
                        "enum": [
                          "TEXT",
                          "CODE",
                          "NUMBER",
                          "MONEY",
                          "BOOLEAN",
                          "DATE",
                          "DATE_TIME"
                        ]
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "kind",
                      "function",
                      "valueType",
                      "values"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "CALC"
                        ]
                      },
                      "function": {
                        "type": "string",
                        "enum": [
                          "SUM"
                        ]
                      },
                      "valueType": {
                        "type": "string",
                        "enum": [
                          "NUMBER"
                        ]
                      },
                      "values": {
                        "type": "array",
                        "minItems": 2,
                        "maxItems": 10,
                        "description": "NUMBER values to add. A missing value makes the total missing.",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "kind",
                                "path",
                                "valueType"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "FIELD"
                                  ]
                                },
                                "path": {
                                  "type": "string"
                                },
                                "valueType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME",
                                    "LIST",
                                    "COLLECTION"
                                  ]
                                },
                                "elementType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME"
                                  ]
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "kind",
                                "valueType",
                                "value"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "LITERAL"
                                  ]
                                },
                                "valueType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME",
                                    "LIST"
                                  ]
                                },
                                "elementType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME"
                                  ]
                                },
                                "value": {}
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "kind",
                                "function",
                                "collection",
                                "valueType"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "AGGREGATE"
                                  ]
                                },
                                "function": {
                                  "type": "string",
                                  "enum": [
                                    "COUNT",
                                    "DISTINCT_COUNT",
                                    "SUM",
                                    "MIN",
                                    "MAX"
                                  ]
                                },
                                "collection": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "kind",
                                    "path",
                                    "valueType"
                                  ],
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "FIELD"
                                      ]
                                    },
                                    "path": {
                                      "type": "string"
                                    },
                                    "valueType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME",
                                        "LIST",
                                        "COLLECTION"
                                      ]
                                    },
                                    "elementType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME"
                                      ]
                                    }
                                  }
                                },
                                "value": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "kind",
                                    "path",
                                    "valueType"
                                  ],
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "FIELD"
                                      ]
                                    },
                                    "path": {
                                      "type": "string"
                                    },
                                    "valueType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME",
                                        "LIST",
                                        "COLLECTION"
                                      ]
                                    },
                                    "elementType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME"
                                      ]
                                    }
                                  }
                                },
                                "where": {
                                  "$ref": "#/components/schemas/def-0"
                                },
                                "valueType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME"
                                  ]
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "kind",
                      "function",
                      "valueType",
                      "value",
                      "factor"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "CALC"
                        ]
                      },
                      "function": {
                        "type": "string",
                        "enum": [
                          "MULTIPLY"
                        ]
                      },
                      "valueType": {
                        "type": "string",
                        "enum": [
                          "NUMBER"
                        ]
                      },
                      "value": {
                        "anyOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "kind",
                              "path",
                              "valueType"
                            ],
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "FIELD"
                                ]
                              },
                              "path": {
                                "type": "string"
                              },
                              "valueType": {
                                "type": "string",
                                "enum": [
                                  "TEXT",
                                  "CODE",
                                  "NUMBER",
                                  "MONEY",
                                  "BOOLEAN",
                                  "DATE",
                                  "DATE_TIME",
                                  "LIST",
                                  "COLLECTION"
                                ]
                              },
                              "elementType": {
                                "type": "string",
                                "enum": [
                                  "TEXT",
                                  "CODE",
                                  "NUMBER",
                                  "MONEY",
                                  "BOOLEAN",
                                  "DATE",
                                  "DATE_TIME"
                                ]
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "kind",
                              "function",
                              "collection",
                              "valueType"
                            ],
                            "properties": {
                              "kind": {
                                "type": "string",
                                "enum": [
                                  "AGGREGATE"
                                ]
                              },
                              "function": {
                                "type": "string",
                                "enum": [
                                  "COUNT",
                                  "DISTINCT_COUNT",
                                  "SUM",
                                  "MIN",
                                  "MAX"
                                ]
                              },
                              "collection": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "kind",
                                  "path",
                                  "valueType"
                                ],
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "FIELD"
                                    ]
                                  },
                                  "path": {
                                    "type": "string"
                                  },
                                  "valueType": {
                                    "type": "string",
                                    "enum": [
                                      "TEXT",
                                      "CODE",
                                      "NUMBER",
                                      "MONEY",
                                      "BOOLEAN",
                                      "DATE",
                                      "DATE_TIME",
                                      "LIST",
                                      "COLLECTION"
                                    ]
                                  },
                                  "elementType": {
                                    "type": "string",
                                    "enum": [
                                      "TEXT",
                                      "CODE",
                                      "NUMBER",
                                      "MONEY",
                                      "BOOLEAN",
                                      "DATE",
                                      "DATE_TIME"
                                    ]
                                  }
                                }
                              },
                              "value": {
                                "type": "object",
                                "additionalProperties": false,
                                "required": [
                                  "kind",
                                  "path",
                                  "valueType"
                                ],
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "FIELD"
                                    ]
                                  },
                                  "path": {
                                    "type": "string"
                                  },
                                  "valueType": {
                                    "type": "string",
                                    "enum": [
                                      "TEXT",
                                      "CODE",
                                      "NUMBER",
                                      "MONEY",
                                      "BOOLEAN",
                                      "DATE",
                                      "DATE_TIME",
                                      "LIST",
                                      "COLLECTION"
                                    ]
                                  },
                                  "elementType": {
                                    "type": "string",
                                    "enum": [
                                      "TEXT",
                                      "CODE",
                                      "NUMBER",
                                      "MONEY",
                                      "BOOLEAN",
                                      "DATE",
                                      "DATE_TIME"
                                    ]
                                  }
                                }
                              },
                              "where": {
                                "$ref": "#/components/schemas/def-0"
                              },
                              "valueType": {
                                "type": "string",
                                "enum": [
                                  "TEXT",
                                  "CODE",
                                  "NUMBER",
                                  "MONEY",
                                  "BOOLEAN",
                                  "DATE",
                                  "DATE_TIME"
                                ]
                              }
                            }
                          }
                        ]
                      },
                      "factor": {
                        "type": "number",
                        "description": "Fixed multiplier. Must be greater than zero."
                      }
                    }
                  }
                ]
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "kind",
              "operator",
              "collection",
              "condition"
            ],
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "QUANTIFIER"
                ]
              },
              "operator": {
                "type": "string",
                "enum": [
                  "ANY",
                  "ALL",
                  "NONE"
                ]
              },
              "collection": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "kind",
                  "path",
                  "valueType"
                ],
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "FIELD"
                    ]
                  },
                  "path": {
                    "type": "string"
                  },
                  "valueType": {
                    "type": "string",
                    "enum": [
                      "TEXT",
                      "CODE",
                      "NUMBER",
                      "MONEY",
                      "BOOLEAN",
                      "DATE",
                      "DATE_TIME",
                      "LIST",
                      "COLLECTION"
                    ]
                  },
                  "elementType": {
                    "type": "string",
                    "enum": [
                      "TEXT",
                      "CODE",
                      "NUMBER",
                      "MONEY",
                      "BOOLEAN",
                      "DATE",
                      "DATE_TIME"
                    ]
                  }
                }
              },
              "condition": {
                "$ref": "#/components/schemas/def-0"
              }
            }
          }
        ],
        "title": "BusinessRuleCondition"
      },
      "def-1": {
        "anyOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "form",
              "condition",
              "outcome"
            ],
            "properties": {
              "form": {
                "type": "string",
                "enum": [
                  "EXPRESSION"
                ]
              },
              "condition": {
                "$ref": "#/components/schemas/def-0"
              },
              "outcome": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "ERROR",
                      "WARNING",
                      "RECOMMEND_PRODUCT",
                      "REQUIRE_APPROVAL",
                      "ACTIVATE_CHARGE",
                      "SELECT_PRICE"
                    ]
                  },
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[A-Z][A-Z0-9_]*$"
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "targetProductCodes": {
                    "minItems": 1,
                    "maxItems": 50,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[A-Z][A-Z0-9_]*$"
                    }
                  },
                  "targetChargeDefinitionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "targetChargeDefinitionCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[A-Z][A-Z0-9_]*$"
                  },
                  "priceCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[A-Z][A-Z0-9_]*$"
                  },
                  "remediation": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "NONE",
                          "ADD_PRODUCT",
                          "REMOVE_PRODUCT",
                          "CHANGE_ATTRIBUTE"
                        ]
                      },
                      "productCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[A-Z][A-Z0-9_]*$"
                      },
                      "attributeCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64,
                        "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "type",
                  "code",
                  "message"
                ],
                "additionalProperties": false
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "form",
              "hitPolicy",
              "inputs",
              "rows"
            ],
            "properties": {
              "form": {
                "type": "string",
                "enum": [
                  "DECISION_TABLE"
                ]
              },
              "hitPolicy": {
                "type": "string",
                "enum": [
                  "FIRST_MATCH",
                  "ALL_MATCHES"
                ]
              },
              "inputs": {
                "type": "array",
                "minItems": 1,
                "maxItems": 25,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "code",
                    "value"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "pattern": "^[A-Z][A-Z0-9_]*$",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "kind",
                            "path",
                            "valueType"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "FIELD"
                              ]
                            },
                            "path": {
                              "type": "string"
                            },
                            "valueType": {
                              "type": "string",
                              "enum": [
                                "TEXT",
                                "CODE",
                                "NUMBER",
                                "MONEY",
                                "BOOLEAN",
                                "DATE",
                                "DATE_TIME",
                                "LIST",
                                "COLLECTION"
                              ]
                            },
                            "elementType": {
                              "type": "string",
                              "enum": [
                                "TEXT",
                                "CODE",
                                "NUMBER",
                                "MONEY",
                                "BOOLEAN",
                                "DATE",
                                "DATE_TIME"
                              ]
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "kind",
                            "valueType",
                            "value"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "LITERAL"
                              ]
                            },
                            "valueType": {
                              "type": "string",
                              "enum": [
                                "TEXT",
                                "CODE",
                                "NUMBER",
                                "MONEY",
                                "BOOLEAN",
                                "DATE",
                                "DATE_TIME",
                                "LIST"
                              ]
                            },
                            "elementType": {
                              "type": "string",
                              "enum": [
                                "TEXT",
                                "CODE",
                                "NUMBER",
                                "MONEY",
                                "BOOLEAN",
                                "DATE",
                                "DATE_TIME"
                              ]
                            },
                            "value": {}
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "kind",
                            "function",
                            "collection",
                            "valueType"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "AGGREGATE"
                              ]
                            },
                            "function": {
                              "type": "string",
                              "enum": [
                                "COUNT",
                                "DISTINCT_COUNT",
                                "SUM",
                                "MIN",
                                "MAX"
                              ]
                            },
                            "collection": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "kind",
                                "path",
                                "valueType"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "FIELD"
                                  ]
                                },
                                "path": {
                                  "type": "string"
                                },
                                "valueType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME",
                                    "LIST",
                                    "COLLECTION"
                                  ]
                                },
                                "elementType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME"
                                  ]
                                }
                              }
                            },
                            "value": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "kind",
                                "path",
                                "valueType"
                              ],
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "FIELD"
                                  ]
                                },
                                "path": {
                                  "type": "string"
                                },
                                "valueType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME",
                                    "LIST",
                                    "COLLECTION"
                                  ]
                                },
                                "elementType": {
                                  "type": "string",
                                  "enum": [
                                    "TEXT",
                                    "CODE",
                                    "NUMBER",
                                    "MONEY",
                                    "BOOLEAN",
                                    "DATE",
                                    "DATE_TIME"
                                  ]
                                }
                              }
                            },
                            "where": {
                              "$ref": "#/components/schemas/def-0"
                            },
                            "valueType": {
                              "type": "string",
                              "enum": [
                                "TEXT",
                                "CODE",
                                "NUMBER",
                                "MONEY",
                                "BOOLEAN",
                                "DATE",
                                "DATE_TIME"
                              ]
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "kind",
                            "function",
                            "valueType",
                            "values"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "CALC"
                              ]
                            },
                            "function": {
                              "type": "string",
                              "enum": [
                                "SUM"
                              ]
                            },
                            "valueType": {
                              "type": "string",
                              "enum": [
                                "NUMBER"
                              ]
                            },
                            "values": {
                              "type": "array",
                              "minItems": 2,
                              "maxItems": 10,
                              "description": "NUMBER values to add. A missing value makes the total missing.",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "kind",
                                      "path",
                                      "valueType"
                                    ],
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "FIELD"
                                        ]
                                      },
                                      "path": {
                                        "type": "string"
                                      },
                                      "valueType": {
                                        "type": "string",
                                        "enum": [
                                          "TEXT",
                                          "CODE",
                                          "NUMBER",
                                          "MONEY",
                                          "BOOLEAN",
                                          "DATE",
                                          "DATE_TIME",
                                          "LIST",
                                          "COLLECTION"
                                        ]
                                      },
                                      "elementType": {
                                        "type": "string",
                                        "enum": [
                                          "TEXT",
                                          "CODE",
                                          "NUMBER",
                                          "MONEY",
                                          "BOOLEAN",
                                          "DATE",
                                          "DATE_TIME"
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "kind",
                                      "valueType",
                                      "value"
                                    ],
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "LITERAL"
                                        ]
                                      },
                                      "valueType": {
                                        "type": "string",
                                        "enum": [
                                          "TEXT",
                                          "CODE",
                                          "NUMBER",
                                          "MONEY",
                                          "BOOLEAN",
                                          "DATE",
                                          "DATE_TIME",
                                          "LIST"
                                        ]
                                      },
                                      "elementType": {
                                        "type": "string",
                                        "enum": [
                                          "TEXT",
                                          "CODE",
                                          "NUMBER",
                                          "MONEY",
                                          "BOOLEAN",
                                          "DATE",
                                          "DATE_TIME"
                                        ]
                                      },
                                      "value": {}
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "additionalProperties": false,
                                    "required": [
                                      "kind",
                                      "function",
                                      "collection",
                                      "valueType"
                                    ],
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "AGGREGATE"
                                        ]
                                      },
                                      "function": {
                                        "type": "string",
                                        "enum": [
                                          "COUNT",
                                          "DISTINCT_COUNT",
                                          "SUM",
                                          "MIN",
                                          "MAX"
                                        ]
                                      },
                                      "collection": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "kind",
                                          "path",
                                          "valueType"
                                        ],
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "enum": [
                                              "FIELD"
                                            ]
                                          },
                                          "path": {
                                            "type": "string"
                                          },
                                          "valueType": {
                                            "type": "string",
                                            "enum": [
                                              "TEXT",
                                              "CODE",
                                              "NUMBER",
                                              "MONEY",
                                              "BOOLEAN",
                                              "DATE",
                                              "DATE_TIME",
                                              "LIST",
                                              "COLLECTION"
                                            ]
                                          },
                                          "elementType": {
                                            "type": "string",
                                            "enum": [
                                              "TEXT",
                                              "CODE",
                                              "NUMBER",
                                              "MONEY",
                                              "BOOLEAN",
                                              "DATE",
                                              "DATE_TIME"
                                            ]
                                          }
                                        }
                                      },
                                      "value": {
                                        "type": "object",
                                        "additionalProperties": false,
                                        "required": [
                                          "kind",
                                          "path",
                                          "valueType"
                                        ],
                                        "properties": {
                                          "kind": {
                                            "type": "string",
                                            "enum": [
                                              "FIELD"
                                            ]
                                          },
                                          "path": {
                                            "type": "string"
                                          },
                                          "valueType": {
                                            "type": "string",
                                            "enum": [
                                              "TEXT",
                                              "CODE",
                                              "NUMBER",
                                              "MONEY",
                                              "BOOLEAN",
                                              "DATE",
                                              "DATE_TIME",
                                              "LIST",
                                              "COLLECTION"
                                            ]
                                          },
                                          "elementType": {
                                            "type": "string",
                                            "enum": [
                                              "TEXT",
                                              "CODE",
                                              "NUMBER",
                                              "MONEY",
                                              "BOOLEAN",
                                              "DATE",
                                              "DATE_TIME"
                                            ]
                                          }
                                        }
                                      },
                                      "where": {
                                        "$ref": "#/components/schemas/def-0"
                                      },
                                      "valueType": {
                                        "type": "string",
                                        "enum": [
                                          "TEXT",
                                          "CODE",
                                          "NUMBER",
                                          "MONEY",
                                          "BOOLEAN",
                                          "DATE",
                                          "DATE_TIME"
                                        ]
                                      }
                                    }
                                  }
                                ]
                              }
                            }
                          }
                        },
                        {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "kind",
                            "function",
                            "valueType",
                            "value",
                            "factor"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "CALC"
                              ]
                            },
                            "function": {
                              "type": "string",
                              "enum": [
                                "MULTIPLY"
                              ]
                            },
                            "valueType": {
                              "type": "string",
                              "enum": [
                                "NUMBER"
                              ]
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "kind",
                                    "path",
                                    "valueType"
                                  ],
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "FIELD"
                                      ]
                                    },
                                    "path": {
                                      "type": "string"
                                    },
                                    "valueType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME",
                                        "LIST",
                                        "COLLECTION"
                                      ]
                                    },
                                    "elementType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME"
                                      ]
                                    }
                                  }
                                },
                                {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "kind",
                                    "function",
                                    "collection",
                                    "valueType"
                                  ],
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "enum": [
                                        "AGGREGATE"
                                      ]
                                    },
                                    "function": {
                                      "type": "string",
                                      "enum": [
                                        "COUNT",
                                        "DISTINCT_COUNT",
                                        "SUM",
                                        "MIN",
                                        "MAX"
                                      ]
                                    },
                                    "collection": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "kind",
                                        "path",
                                        "valueType"
                                      ],
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "FIELD"
                                          ]
                                        },
                                        "path": {
                                          "type": "string"
                                        },
                                        "valueType": {
                                          "type": "string",
                                          "enum": [
                                            "TEXT",
                                            "CODE",
                                            "NUMBER",
                                            "MONEY",
                                            "BOOLEAN",
                                            "DATE",
                                            "DATE_TIME",
                                            "LIST",
                                            "COLLECTION"
                                          ]
                                        },
                                        "elementType": {
                                          "type": "string",
                                          "enum": [
                                            "TEXT",
                                            "CODE",
                                            "NUMBER",
                                            "MONEY",
                                            "BOOLEAN",
                                            "DATE",
                                            "DATE_TIME"
                                          ]
                                        }
                                      }
                                    },
                                    "value": {
                                      "type": "object",
                                      "additionalProperties": false,
                                      "required": [
                                        "kind",
                                        "path",
                                        "valueType"
                                      ],
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "FIELD"
                                          ]
                                        },
                                        "path": {
                                          "type": "string"
                                        },
                                        "valueType": {
                                          "type": "string",
                                          "enum": [
                                            "TEXT",
                                            "CODE",
                                            "NUMBER",
                                            "MONEY",
                                            "BOOLEAN",
                                            "DATE",
                                            "DATE_TIME",
                                            "LIST",
                                            "COLLECTION"
                                          ]
                                        },
                                        "elementType": {
                                          "type": "string",
                                          "enum": [
                                            "TEXT",
                                            "CODE",
                                            "NUMBER",
                                            "MONEY",
                                            "BOOLEAN",
                                            "DATE",
                                            "DATE_TIME"
                                          ]
                                        }
                                      }
                                    },
                                    "where": {
                                      "$ref": "#/components/schemas/def-0"
                                    },
                                    "valueType": {
                                      "type": "string",
                                      "enum": [
                                        "TEXT",
                                        "CODE",
                                        "NUMBER",
                                        "MONEY",
                                        "BOOLEAN",
                                        "DATE",
                                        "DATE_TIME"
                                      ]
                                    }
                                  }
                                }
                              ]
                            },
                            "factor": {
                              "type": "number",
                              "description": "Fixed multiplier. Must be greater than zero."
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              },
              "rows": {
                "type": "array",
                "minItems": 1,
                "maxItems": 2000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "code",
                    "cells",
                    "outcome"
                  ],
                  "properties": {
                    "code": {
                      "type": "string",
                      "pattern": "^[A-Z][A-Z0-9_]*$",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "cells": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "operator"
                        ],
                        "properties": {
                          "operator": {
                            "type": "string"
                          },
                          "value": {}
                        }
                      }
                    },
                    "outcome": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "ERROR",
                            "WARNING",
                            "RECOMMEND_PRODUCT",
                            "REQUIRE_APPROVAL",
                            "ACTIVATE_CHARGE",
                            "SELECT_PRICE"
                          ]
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[A-Z][A-Z0-9_]*$"
                        },
                        "message": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500
                        },
                        "targetProductCodes": {
                          "minItems": 1,
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 64,
                            "pattern": "^[A-Z][A-Z0-9_]*$"
                          }
                        },
                        "targetChargeDefinitionId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "targetChargeDefinitionCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[A-Z][A-Z0-9_]*$"
                        },
                        "priceCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[A-Z][A-Z0-9_]*$"
                        },
                        "remediation": {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "NONE",
                                "ADD_PRODUCT",
                                "REMOVE_PRODUCT",
                                "CHANGE_ATTRIBUTE"
                              ]
                            },
                            "productCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Z][A-Z0-9_]*$"
                            },
                            "attributeCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64,
                              "pattern": "^[A-Za-z][A-Za-z0-9_]*$"
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "type",
                        "code",
                        "message"
                      ],
                      "additionalProperties": false
                    }
                  }
                }
              }
            }
          }
        ],
        "title": "BusinessRuleDefinition"
      }
    },
    "parameters": {
      "ActiveTenant": {
        "name": "X-Active-Tenant",
        "in": "header",
        "required": false,
        "description": "Selected tenant code for an authenticated user with more than one active tenant membership.",
        "schema": {
          "type": "string",
          "pattern": "^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$"
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}
