{
  "openapi": "3.0.1",
  "info": {
    "title": "Extended Site Management",
    "version": "9.1.20.0",
    "description": "Create and administer the extended site resources.",
    "x-introduced": "9.1.0.0"
  },
  "servers": [
    {
      "url": "https://{hostname}:{port}/rest/admin/v2",
      "variables": {
        "port": {
          "default": "443",
          "enum": [
            "443",
            "8000"
          ]
        },
        "hostname": {
          "default": "localhost",
          "enum": [
            "localhost",
            "test.hcl.com"
          ]
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Extended Sites",
      "description": "provides RESTful services to manage extended site resources."
    }
  ],
  "paths": {
    "/extended-sites": {
      "get": {
        "tags": [
          "Extended Sites"
        ],
        "summary": "Get a collection extended sites.",
        "description": "Get a collection of extended sites.",
        "operationId": "getExtendedSites",
        "parameters": [
          {
            "name": "storeId",
            "in": "query",
            "description": "The unique numeric ID of the hub store that owns the extended sites.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "The position within the resulting dataset where the query begins returning item records. If the offset is \"5\", the records that returned begin with the sixth record that matches the query parameters. If the offset is \"0\", the records that are returned begin with the first record that matches the query parameters.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of records to return.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "description": "The comma-separated set of properties that control the order of the listed items. Properties can be prefixed by either (-) to sort in descending order, or (+) to sort in ascending order. By default, properties are sorted in ascending order. For example, sort=name will order the items based on the name value in ascending order.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchString",
            "in": "query",
            "description": "Limits search results to only include extended sites with a name that matches the value of this parameter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Limits search results to only include extended sites with the specified status. Possible values are \n * open\n * closed\n * suspended\n * deploying\n * deployFailed",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The request completed successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedSiteCollection"
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The request could not be understood by the server due to malformed syntax.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated. The user session is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "403": {
            "description": "The user is not authorized to perform the specified request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. For details, see the server log files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Extended Sites"
        ],
        "summary": "Create an extended site.",
        "description": "Create an extended site.",
        "operationId": "createExtendedSite",
        "requestBody": {
          "description": "Request body.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendedSite.request"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The requested resource has been created.",
            "headers": {
              "Location": {
                "description": "Link to the newly created resource.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {},
            "links": {
              "GetExtendedSitesByExtendedSitesId": {
                "operationRef": "#/paths/~1extended-sites~1{id}/get",
                "parameters": {
                  "id": "$request.body#/id"
                },
                "description": "The `id` value used in the request body can be used as the `id` parameter in `GET /extended-sites/{id}`.\n"
              },
              "DeleteExtendedSitesByExtendedSitesId": {
                "operationRef": "#/paths/~1extended-sites~1{id}/delete",
                "parameters": {
                  "id": "$request.body#/id"
                },
                "description": "The `id` value used in the request body can be used as the `id` parameter in `DELETE /extended-sites/{id}`.\n"
              }
            }
          },
          "400": {
            "description": "Bad request. The request could not be understood by the server due to malformed syntax.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated. The user session is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "403": {
            "description": "The user is not authorized to perform the specified request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. For details, see the server log files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    },
    "/extended-sites/{id}": {
      "get": {
        "tags": [
          "Extended Sites"
        ],
        "summary": "Get an extended site by its ID.",
        "description": "Get an extended site by its ID.",
        "operationId": "getExtendedSiteById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique numeric ID for identifying the extended site.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The requested completed successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedSite"
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The request could not be understood by the server due to malformed syntax.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated. The user session is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "403": {
            "description": "The user is not authorized to perform the specified request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. For details, see the server log files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Extended Sites"
        ],
        "summary": "Delete an extended site.",
        "description": "Delete an extended site.",
        "operationId": "deleteExtendedSite",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique numeric ID of the extended site.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The requested resource has been deleted.",
            "content": {}
          },
          "400": {
            "description": "Bad request. The request could not be understood by the server due to malformed syntax.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated. The user session is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "403": {
            "description": "The user is not authorized to perform the specified request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. For details, see the server log files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          }
        }
      }
    },
    "/extended-sites/{id}/export": {
      "get": {
        "tags": [
          "Extended Sites"
        ],
        "summary": "Exports an extended site.",
        "description": "Export an extended site.",
        "operationId": "exportExtendedSite",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique numeric ID for identifying the extended site.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The extended site was exported successfully.",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ExtendedSiteExport"
                }
              }
            }
          },
          "400": {
            "description": "Bad request. The request could not be understood by the server due to malformed syntax.",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated. The user session is not valid.",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "403": {
            "description": "The user is not authorized to perform the specified request.",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. For details, see the server log files.",
            "content": {
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          }
        }
      }
    },
    "/extended-sites/import": {
      "post": {
        "tags": [
          "Extended Sites"
        ],
        "summary": "Import an extended site.",
        "description": "Import an extended site.",
        "operationId": "importExtendedSite",
        "parameters": [
          {
            "name": "storeId",
            "in": "query",
            "description": "The unique numeric ID of the hub store that owns the extended sites.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "description": "Extended site XML.",
          "content": {
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/ExtendedSiteImport"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The requested resource has been created.",
            "headers": {
              "Location": {
                "description": "Link to the newly created resource.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {}
          },
          "400": {
            "description": "Bad request. The request could not be understood by the server due to malformed syntax.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "401": {
            "description": "Not authenticated. The user session is not valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "403": {
            "description": "The user is not authorized to perform the specified request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error. For details, see the server log files.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name": "body"
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponseContainer": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          },
          "requestId": {
            "type": "string",
            "description": "The request identifier."
          }
        },
        "description": "The error message model."
      },
      "Error": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string",
            "description": "The error message code."
          },
          "errorMessage": {
            "type": "string",
            "description": "The error message."
          },
          "errorKey": {
            "type": "string",
            "description": "The error message key."
          },
          "errorParameters": {
            "type": "array",
            "description": "The arguments used to construct the error message.",
            "items": {
              "type": "object",
              "properties": {}
            }
          },
          "errorLevel": {
            "type": "string",
            "description": "The error level."
          },
          "errorHref": {
            "type": "string",
            "description": "The error hypertext reference."
          }
        },
        "description": "The error message item model."
      },
      "ExtendedSite": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": "string"
          },
          "storeUrl": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "storeId": {
            "type": "integer"
          },
          "createDate": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "identifier",
          "storeUrl",
          "name",
          "description",
          "id",
          "storeId",
          "createDate",
          "status"
        ]
      },
      "ExtendedSiteImport": {
        "type": "object",
        "properties": {
          "schemaLocation": {
            "type": "string"
          },
          "HostingContract": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string"
              },
              "contractUsage": {
                "type": "string"
              },
              "creditAllowed": {
                "type": "string"
              },
              "Participant": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "ParticipantMember": {
                      "type": "object",
                      "properties": {
                        "OrganizationRef": {
                          "type": "object",
                          "properties": {
                            "distinguishName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "distinguishName"
                          ]
                        }
                      },
                      "required": [
                        "OrganizationRef"
                      ]
                    }
                  },
                  "required": [
                    "role",
                    "ParticipantMember"
                  ]
                }
              },
              "ContractUniqueKey": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "majorVersionNumber": {
                    "type": "string"
                  },
                  "minorVersionNumber": {
                    "type": "string"
                  },
                  "origin": {
                    "type": "string"
                  },
                  "ContractOwner": {
                    "type": "object",
                    "properties": {
                      "OrganizationRef": {
                        "type": "object",
                        "properties": {
                          "distinguishName": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "distinguishName"
                        ]
                      }
                    },
                    "required": [
                      "OrganizationRef"
                    ]
                  }
                },
                "required": [
                  "name",
                  "majorVersionNumber",
                  "minorVersionNumber",
                  "origin",
                  "ContractOwner"
                ]
              },
              "ContractDescription": {
                "type": "object",
                "properties": {
                  "locale": {
                    "type": "string"
                  },
                  "shortDescription": {
                    "type": "string"
                  }
                },
                "required": [
                  "locale",
                  "shortDescription"
                ]
              }
            },
            "required": [
              "state",
              "contractUsage",
              "creditAllowed",
              "Participant",
              "ContractUniqueKey",
              "ContractDescription"
            ]
          },
          "Organization": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "OrganizationUniqueKey": {
                "type": "object",
                "properties": {
                  "distinguishName": {
                    "type": "string"
                  }
                },
                "required": [
                  "distinguishName"
                ]
              },
              "ParentOrganizationRef": {
                "type": "object",
                "properties": {
                  "OrganizationRef": {
                    "type": "object",
                    "properties": {
                      "distinguishName": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "distinguishName"
                    ]
                  }
                },
                "required": [
                  "OrganizationRef"
                ]
              },
              "PolicyGroupRef": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "Owner": {
                      "type": "object",
                      "properties": {
                        "OrganizationRef": {
                          "type": "object",
                          "properties": {
                            "distinguishName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "distinguishName"
                          ]
                        }
                      },
                      "required": [
                        "OrganizationRef"
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "Owner"
                  ]
                }
              }
            },
            "required": [
              "name",
              "type",
              "OrganizationUniqueKey",
              "ParentOrganizationRef",
              "PolicyGroupRef"
            ]
          },
          "Store": {
            "type": "object",
            "properties": {
              "defaultCurrency": {
                "type": "string"
              },
              "defaultLocale": {
                "type": "string"
              },
              "directory": {
                "type": "string"
              },
              "initialState": {
                "type": "string"
              },
              "remoteURL": {
                "type": "string"
              },
              "sequence": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "StoreUniqueKey": {
                "type": "object",
                "properties": {
                  "storeIdentity": {
                    "type": "string"
                  },
                  "StoreOwner": {
                    "type": "object",
                    "properties": {
                      "OrganizationRef": {
                        "type": "object",
                        "properties": {
                          "distinguishName": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "distinguishName"
                        ]
                      }
                    },
                    "required": [
                      "OrganizationRef"
                    ]
                  }
                },
                "required": [
                  "storeIdentity",
                  "StoreOwner"
                ]
              },
              "Description": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "locale": {
                    "type": "string"
                  }
                },
                "required": [
                  "description",
                  "displayName",
                  "locale"
                ]
              },
              "StoreRelationship": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "resourceType": {
                      "type": "string"
                    },
                    "sequence": {
                      "type": "string"
                    },
                    "StoreRef": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "Owner": {
                          "type": "object",
                          "properties": {
                            "OrganizationRef": {
                              "type": "object",
                              "properties": {
                                "distinguishName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "distinguishName"
                              ]
                            }
                          },
                          "required": [
                            "OrganizationRef"
                          ]
                        }
                      },
                      "required": [
                        "name",
                        "Owner"
                      ]
                    }
                  },
                  "required": [
                    "resourceType",
                    "sequence",
                    "StoreRef"
                  ]
                }
              },
              "Catalog": {
                "type": "object",
                "properties": {
                  "masterCatalog": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "Owner": {
                    "type": "object",
                    "properties": {
                      "OrganizationRef": {
                        "type": "object",
                        "properties": {
                          "distinguishName": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "distinguishName"
                        ]
                      }
                    },
                    "required": [
                      "OrganizationRef"
                    ]
                  }
                },
                "required": [
                  "masterCatalog",
                  "name",
                  "Owner"
                ]
              },
              "SupportedLanguage": {
                "type": "object",
                "properties": {
                  "locale": {
                    "type": "string"
                  }
                },
                "required": [
                  "locale"
                ]
              },
              "SupportedCurrency": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string"
                  }
                },
                "required": [
                  "currency"
                ]
              },
              "BusinessPolicy": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "properties": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "Command": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "properties": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "properties"
                        ]
                      }
                    }
                  },
                  "required": [
                    "name",
                    "properties",
                    "type",
                    "Command"
                  ]
                }
              },
              "MessageProfile": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "devicefmtId": {
                      "type": "string"
                    },
                    "highpriority": {
                      "type": "string"
                    },
                    "lowpriority": {
                      "type": "string"
                    },
                    "messageType": {
                      "type": "string"
                    },
                    "transport": {
                      "type": "string"
                    },
                    "usersview": {
                      "type": "string"
                    },
                    "Interaction": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    }
                  },
                  "required": [
                    "devicefmtId",
                    "highpriority",
                    "lowpriority",
                    "messageType",
                    "transport",
                    "usersview",
                    "Interaction"
                  ]
                }
              },
              "PaymentsInformation": {
                "type": "object",
                "properties": {
                  "Payments": {
                    "type": "object",
                    "properties": {
                      "enable": {
                        "type": "string"
                      },
                      "Owner": {
                        "type": "object",
                        "properties": {
                          "UserRef": {
                            "type": "object",
                            "properties": {
                              "distinguishName": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "distinguishName"
                            ]
                          }
                        },
                        "required": [
                          "UserRef"
                        ]
                      }
                    },
                    "required": [
                      "enable",
                      "Owner"
                    ]
                  },
                  "Cassette": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    }
                  }
                },
                "required": [
                  "Payments",
                  "Cassette"
                ]
              },
              "ShippingMode": {
                "type": "object",
                "properties": {
                  "carrier": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  },
                  "default": {
                    "type": "string"
                  }
                },
                "required": [
                  "carrier",
                  "code",
                  "default"
                ]
              }
            },
            "required": [
              "defaultCurrency",
              "defaultLocale",
              "directory",
              "initialState",
              "remoteURL",
              "sequence",
              "type",
              "StoreUniqueKey",
              "Description",
              "StoreRelationship",
              "Catalog",
              "SupportedLanguage",
              "SupportedCurrency",
              "BusinessPolicy",
              "MessageProfile",
              "PaymentsInformation",
              "ShippingMode"
            ]
          },
          "PriceList": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "precedence": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "Owner": {
                "type": "object",
                "properties": {
                  "OrganizationRef": {
                    "type": "object",
                    "properties": {
                      "distinguishName": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "distinguishName"
                    ]
                  }
                },
                "required": [
                  "OrganizationRef"
                ]
              }
            },
            "required": [
              "name",
              "precedence",
              "type",
              "Owner"
            ]
          },
          "FulfillmentCenter": {
            "type": "object",
            "properties": {
              "default": {
                "type": "string"
              },
              "inventoryopflags": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "Owner": {
                "type": "object",
                "properties": {
                  "OrganizationRef": {
                    "type": "object",
                    "properties": {
                      "distinguishName": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "distinguishName"
                    ]
                  }
                },
                "required": [
                  "OrganizationRef"
                ]
              }
            },
            "required": [
              "default",
              "inventoryopflags",
              "name",
              "Owner"
            ]
          }
        },
        "required": [
          "schemaLocation",
          "HostingContract",
          "Organization",
          "Store",
          "PriceList",
          "FulfillmentCenter"
        ]
      },
      "ExtendedSiteExport": {
        "type": "object",
        "properties": {
          "schemaLocation": {
            "type": "string"
          },
          "HostingContract": {
            "type": "object",
            "properties": {
              "state": {
                "type": "string"
              },
              "contractUsage": {
                "type": "string"
              },
              "creditAllowed": {
                "type": "string"
              },
              "Participant": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string"
                    },
                    "referenceNumber": {
                      "type": "string"
                    },
                    "ParticipantMember": {
                      "type": "object",
                      "properties": {
                        "OrganizationRef": {
                          "type": "object",
                          "properties": {
                            "distinguishName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "distinguishName"
                          ]
                        }
                      },
                      "required": [
                        "OrganizationRef"
                      ]
                    }
                  },
                  "required": [
                    "role",
                    "referenceNumber",
                    "ParticipantMember"
                  ]
                }
              },
              "ContractUniqueKey": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "majorVersionNumber": {
                    "type": "string"
                  },
                  "minorVersionNumber": {
                    "type": "string"
                  },
                  "origin": {
                    "type": "string"
                  },
                  "ContractOwner": {
                    "type": "object",
                    "properties": {
                      "OrganizationRef": {
                        "type": "object",
                        "properties": {
                          "distinguishName": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "distinguishName"
                        ]
                      }
                    },
                    "required": [
                      "OrganizationRef"
                    ]
                  }
                },
                "required": [
                  "name",
                  "majorVersionNumber",
                  "minorVersionNumber",
                  "origin",
                  "ContractOwner"
                ]
              },
              "ContractDescription": {
                "type": "object",
                "properties": {
                  "locale": {
                    "type": "string"
                  },
                  "shortDescription": {
                    "type": "string"
                  }
                },
                "required": [
                  "locale",
                  "shortDescription"
                ]
              }
            },
            "required": [
              "state",
              "contractUsage",
              "creditAllowed",
              "Participant",
              "ContractUniqueKey",
              "ContractDescription"
            ]
          },
          "Organization": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "OrganizationUniqueKey": {
                "type": "object",
                "properties": {
                  "distinguishName": {
                    "type": "string"
                  }
                },
                "required": [
                  "distinguishName"
                ]
              },
              "ParentOrganizationRef": {
                "type": "object",
                "properties": {
                  "OrganizationRef": {
                    "type": "object",
                    "properties": {
                      "distinguishName": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "distinguishName"
                    ]
                  }
                },
                "required": [
                  "OrganizationRef"
                ]
              },
              "PolicyGroupRef": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "Owner": {
                      "type": "object",
                      "properties": {
                        "OrganizationRef": {
                          "type": "object",
                          "properties": {
                            "distinguishName": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "distinguishName"
                          ]
                        }
                      },
                      "required": [
                        "OrganizationRef"
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "Owner"
                  ]
                }
              }
            },
            "required": [
              "name",
              "type",
              "OrganizationUniqueKey",
              "ParentOrganizationRef",
              "PolicyGroupRef"
            ]
          },
          "Store": {
            "type": "object",
            "properties": {
              "defaultCurrency": {
                "type": "string"
              },
              "defaultLocale": {
                "type": "string"
              },
              "directory": {
                "type": "string"
              },
              "initialState": {
                "type": "string"
              },
              "remoteURL": {
                "type": "string"
              },
              "sequence": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "StoreUniqueKey": {
                "type": "object",
                "properties": {
                  "storeIdentity": {
                    "type": "string"
                  },
                  "StoreOwner": {
                    "type": "object",
                    "properties": {
                      "OrganizationRef": {
                        "type": "object",
                        "properties": {
                          "distinguishName": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "distinguishName"
                        ]
                      }
                    },
                    "required": [
                      "OrganizationRef"
                    ]
                  }
                },
                "required": [
                  "storeIdentity",
                  "StoreOwner"
                ]
              },
              "Description": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "displayName": {
                    "type": "string"
                  },
                  "locale": {
                    "type": "string"
                  }
                },
                "required": [
                  "description",
                  "displayName",
                  "locale"
                ]
              },
              "StoreRelationship": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "resourceType": {
                      "type": "string"
                    },
                    "sequence": {
                      "type": "string"
                    },
                    "StoreRef": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "Owner": {
                          "type": "object",
                          "properties": {
                            "OrganizationRef": {
                              "type": "object",
                              "properties": {
                                "distinguishName": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "distinguishName"
                              ]
                            }
                          },
                          "required": [
                            "OrganizationRef"
                          ]
                        }
                      },
                      "required": [
                        "name",
                        "Owner"
                      ]
                    }
                  },
                  "required": [
                    "resourceType",
                    "sequence",
                    "StoreRef"
                  ]
                }
              },
              "Catalog": {
                "type": "object",
                "properties": {
                  "masterCatalog": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "Owner": {
                    "type": "object",
                    "properties": {
                      "OrganizationRef": {
                        "type": "object",
                        "properties": {
                          "distinguishName": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "distinguishName"
                        ]
                      }
                    },
                    "required": [
                      "OrganizationRef"
                    ]
                  }
                },
                "required": [
                  "masterCatalog",
                  "name",
                  "Owner"
                ]
              },
              "SupportedLanguage": {
                "type": "object",
                "properties": {
                  "locale": {
                    "type": "string"
                  }
                },
                "required": [
                  "locale"
                ]
              },
              "SupportedCurrency": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string"
                  }
                },
                "required": [
                  "currency"
                ]
              },
              "BusinessPolicy": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "properties": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    },
                    "Command": {
                      "type": "object",
                      "properties": {
                        "properties": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "properties"
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "properties",
                    "type",
                    "Command"
                  ]
                }
              },
              "MessageProfile": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "devicefmtId": {
                      "type": "string"
                    },
                    "highpriority": {
                      "type": "string"
                    },
                    "lowpriority": {
                      "type": "string"
                    },
                    "messageType": {
                      "type": "string"
                    },
                    "transport": {
                      "type": "string"
                    },
                    "usersview": {
                      "type": "string"
                    },
                    "Interaction": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "value"
                      ]
                    }
                  },
                  "required": [
                    "devicefmtId",
                    "highpriority",
                    "lowpriority",
                    "messageType",
                    "transport",
                    "usersview",
                    "Interaction"
                  ]
                }
              },
              "PaymentsInformation": {
                "type": "object",
                "properties": {
                  "Payments": {
                    "type": "object",
                    "properties": {
                      "enable": {
                        "type": "string"
                      },
                      "Owner": {
                        "type": "object",
                        "properties": {
                          "UserRef": {
                            "type": "object",
                            "properties": {
                              "distinguishName": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "distinguishName"
                            ]
                          }
                        },
                        "required": [
                          "UserRef"
                        ]
                      }
                    },
                    "required": [
                      "enable",
                      "Owner"
                    ]
                  },
                  "Cassette": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "type"
                      ]
                    }
                  }
                },
                "required": [
                  "Payments",
                  "Cassette"
                ]
              },
              "ShippingMode": {
                "type": "object",
                "properties": {
                  "carrier": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  },
                  "default": {
                    "type": "string"
                  }
                },
                "required": [
                  "carrier",
                  "code",
                  "default"
                ]
              }
            },
            "required": [
              "defaultCurrency",
              "defaultLocale",
              "directory",
              "initialState",
              "remoteURL",
              "sequence",
              "type",
              "StoreUniqueKey",
              "Description",
              "StoreRelationship",
              "Catalog",
              "SupportedLanguage",
              "SupportedCurrency",
              "BusinessPolicy",
              "MessageProfile",
              "PaymentsInformation",
              "ShippingMode"
            ]
          },
          "PriceList": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "precedence": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "Owner": {
                "type": "object",
                "properties": {
                  "OrganizationRef": {
                    "type": "object",
                    "properties": {
                      "distinguishName": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "distinguishName"
                    ]
                  }
                },
                "required": [
                  "OrganizationRef"
                ]
              }
            },
            "required": [
              "name",
              "precedence",
              "type",
              "Owner"
            ]
          },
          "FulfillmentCenter": {
            "type": "object",
            "properties": {
              "default": {
                "type": "string"
              },
              "inventoryopflags": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "Owner": {
                "type": "object",
                "properties": {
                  "OrganizationRef": {
                    "type": "object",
                    "properties": {
                      "distinguishName": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "distinguishName"
                    ]
                  }
                },
                "required": [
                  "OrganizationRef"
                ]
              }
            },
            "required": [
              "default",
              "inventoryopflags",
              "name",
              "Owner"
            ]
          }
        },
        "required": [
          "schemaLocation",
          "HostingContract",
          "Organization",
          "Store",
          "PriceList",
          "FulfillmentCenter"
        ]
      },
      "ExtendedSite.request": {
        "type": "object",
        "properties": {
          "defaultCurrency": {
            "type": "string"
          },
          "defaultLanguageId": {
            "type": "integer"
          },
          "description": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "hubStoreId": {
            "type": "integer"
          },
          "identifier": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "storefrontAssetStoreId": {
            "type": "integer"
          }
        },
        "required": [
          "defaultCurrency",
          "defaultLanguageId",
          "description",
          "email",
          "hubStoreId",
          "identifier",
          "name",
          "organizationId",
          "storefrontAssetStoreId"
        ]
      },
      "ExtendedSiteCollection": {
        "type": "object",
        "properties": {
          "offset": {
            "minimum": 0,
            "type": "integer",
            "description": "The position within the resulting dataset where the query begins returning item records. If the offset is \"5\", the records that returned begin with the sixth record that matches the query parameters. If the offset is \"0\", the records that are returned begin with the first record that matches the query parameters.",
            "format": "int32"
          },
          "count": {
            "minimum": 0,
            "type": "integer",
            "description": "The total number of item records that match the query parameters.",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExtendedSite"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ]
}
