{
  "openapi": "3.0.1",
  "info": {
    "title": "Appeasement Configurations",
    "version": "9.1.20.0",
    "description": "Provides order appeasement configuration data.",
    "x-introduced": "9.1.12.0"
  },
  "servers": [
    {
      "url": "https://{hostname}:{port}/rest/admin/v2",
      "variables": {
        "port": {
          "default": "443",
          "enum": [
            "443",
            "8000"
          ]
        },
        "hostname": {
          "default": "localhost",
          "enum": [
            "localhost",
            "test.hcl.com"
          ]
        }
      }
    }
  ],
  "paths": {
    "/appeasement-configurations": {
      "get": {
        "tags": [
          "Appeasement Configurations"
        ],
        "description": "Get appeasement configurations",
        "operationId": "getAppeasementConfiguration",
        "parameters": [
          {
            "name": "storeId",
            "in": "query",
            "required": true,
            "description": "The store ID.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Appeasement configuration",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppeasementConfiguration"
                },
                "example": {
                  "orderLevelLimit": 0.2,
                  "shippingLevelLimit": 1.0,
                  "itemLevelLimit": 0.3
                }
              }
            }
          },
          "400": {
            "description": "There was a client error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          },
          "500": {
            "description": "There was a server error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseContainer"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "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."
      },
      "ErrorResponseContainer": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "description": "The request identifier."
          },
          "errors": {
            "type": "array",
            "description": "The errors.",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "The error message model."
      },
      "AppeasementConfiguration": {
        "type": "object",
        "properties": {
          "orderLevelLimit": {
            "type": "number",
            "format": "double",
            "description": "order level limit for appeasement, e.g 0.3 for 30%"
          },
          "shippingLevelLimit": {
            "type": "number",
            "format": "double",
            "description": "shipping level limit for appeasement, e.g 1 for 100%"
          },
          "itemLevelLimit": {
            "type": "number",
            "format": "double",
            "description": "item level limit for appeasement, e.g 0.3 for 30%"
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Appeasement Configurations",
      "description": "Provide RESTful services to fetch appeasement configuration data."
    }
  ]
}
