---
title: Length of Stay Rates (LOS)
slug: length-of-stay-rates-los
docTags: 
createdAt: 2025-09-10T11:52:05.061Z
---

:::ApiMethodV2
```json
{
  "name": "LOS Rate",
  "method": "POST",
  "url": "https://api.bakuun.com/ratedockAPI/agent/updateratelosrq",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "F6DFMY8yp37HbzLk13k1v",
        "language": "json",
        "code": "{\n  \"password\": \"string\",\n  \"username\": \"string\",\n  \"hotelId\": \"string\",\n  \"startDateYmd\": \"YYYY-MM-DD\",\n  \"endDateYmd\": \"YYYY-MM-DD\",\n  \"rateModel\": \"Standard-LOS\",\n  \"action\": \"losPriceUpdate\",\n  \"dailyRates\": [\n    {\n      \"roomCode \": \"string\",\n      \"condCode \": \"string\",\n      \"LOS\": 2,\n      \"FPLOS\":  \"Y\",\n      \"rateType\": \"BAR/NET\",\n      \"amountBeforeTax\": \"502.19\",\n      \"amountAfterTax\": \"623.23\",\n      \"currencyCode\": \"EUR\",\n      \"taxFeeDetails\": {\n       \"Before\": {\n         \"tax\": {\n           \"taxType\": \"VAT\",\n           \"taxValue\": \"10.00\",\n           \"included\": \"0\"\n         },\n         \"fees\": {\n           \"feeType\": \"per night\",\n           \"feeValue\": \"10\",\n           \"included\": \"1\"\n         }\n       },\n       \"After\": {\n         \"tax\": {\n           \"taxType\": \"VAT\",\n           \"taxValue\": \"10.00\",\n           \"included\": \"0\"\n         },\n         \"fees\": {\n           \"feeType\": \"per night\",\n           \"feeValue\": \"10\",\n           \"included\": \"1\"\n        }\n       }\n     }\n   }\n ]\n}",
        "customLabel": ""
      },
      {
        "id": "2LEsEuK_EvxTbnkytMeR8",
        "language": "curl",
        "code": "curl --location 'https://api.bakuun.com/ratedockAPI/agent/updateratelosrq' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"username\": \"String\",\n  \"password\": \"String\",\n  \"hotelId\": \"String\",\n  \"startDateYmd\": \"String\",\n  \"endDateYmd\": \"String\",\n  \"rateModel\": \"String\",\n  \"action\": \"String\",\n  \"dailyRates\": {\n    \"roomCode \": \"\",\n    \"condCode \": \"\",\n    \"LOS\": \"\",\n    \"FPLOS\": \"\",\n    \"amountBeforeTax\": \"\",\n    \"amountAfterTax\": \"\",\n    \"currencyCode\": \"\",\n    \"rateType\": \"\",\n    \"taxFeeDetails\": {\n      \"Before\": {\n        \"tax\": {\n          \"taxType\": \"\",\n          \"taxValue\": \"\",\n          \"included\": \"\"\n        },\n        \"fees\": {\n          \"feeType\": \"\",\n          \"feeValue\": \"\",\n          \"included\": \"\"\n        }\n      },\n      \"After\": {\n        \"tax\": {\n          \"taxType\": \"\",\n          \"taxValue\": \"\",\n          \"included\": \"\"\n        },\n        \"fees\": {\n          \"feeType\": \"\",\n          \"feeValue\": \"\",\n          \"included\": \"\"\n        }\n      }\n    }\n  }\n}'",
        "customLabel": ""
      },
      {
        "id": "sbj6YbSHOCTFE5SHKipEj",
        "language": "nodejs",
        "code": "var request = require('request');\nvar options = {\n   'method': 'POST',\n   'url': 'https://api.bakuun.com/ratedockAPI/agent/updateratelosrq',\n   'headers': {\n      'Accept': 'application/json',\n      'Content-Type': 'application/json'\n   },\n   body: JSON.stringify({\n      \"username\": \"String\",\n      \"password\": \"String\",\n      \"hotelId\": \"String\",\n      \"startDateYmd\": \"String\",\n      \"endDateYmd\": \"String\",\n      \"rateModel\": \"String\",\n      \"action\": \"String\",\n      \"dailyRates\": {\n         \"roomCode \": \"\",\n         \"condCode \": \"\",\n         \"LOS\": \"\",\n         \"FPLOS\": \"\",\n         \"amountBeforeTax\": \"\",\n         \"amountAfterTax\": \"\",\n         \"currencyCode\": \"\",\n         \"rateType\": \"\",\n         \"taxFeeDetails\": {\n            \"Before\": {\n               \"tax\": {\n                  \"taxType\": \"\",\n                  \"taxValue\": \"\",\n                  \"included\": \"\"\n               },\n               \"fees\": {\n                  \"feeType\": \"\",\n                  \"feeValue\": \"\",\n                  \"included\": \"\"\n               }\n            },\n            \"After\": {\n               \"tax\": {\n                  \"taxType\": \"\",\n                  \"taxValue\": \"\",\n                  \"included\": \"\"\n               },\n               \"fees\": {\n                  \"feeType\": \"\",\n                  \"feeValue\": \"\",\n                  \"included\": \"\"\n               }\n            }\n         }\n      }\n   })\n\n};\nrequest(options, function (error, response) {\n   if (error) throw new Error(error);\n   console.log(response.body);\n});\n",
        "customLabel": ""
      },
      {
        "id": "aICNJDeVGmgxnjBdOcQt7",
        "language": "javascript",
        "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"username\": \"String\",\n   \"password\": \"String\",\n   \"hotelId\": \"String\",\n   \"startDateYmd\": \"String\",\n   \"endDateYmd\": \"String\",\n   \"rateModel\": \"String\",\n   \"action\": \"String\",\n   \"dailyRates\": {\n      \"roomCode \": \"\",\n      \"condCode \": \"\",\n      \"LOS\": \"\",\n      \"FPLOS\": \"\",\n      \"amountBeforeTax\": \"\",\n      \"amountAfterTax\": \"\",\n      \"currencyCode\": \"\",\n      \"rateType\": \"\",\n      \"taxFeeDetails\": {\n         \"Before\": {\n            \"tax\": {\n               \"taxType\": \"\",\n               \"taxValue\": \"\",\n               \"included\": \"\"\n            },\n            \"fees\": {\n               \"feeType\": \"\",\n               \"feeValue\": \"\",\n               \"included\": \"\"\n            }\n         },\n         \"After\": {\n            \"tax\": {\n               \"taxType\": \"\",\n               \"taxValue\": \"\",\n               \"included\": \"\"\n            },\n            \"fees\": {\n               \"feeType\": \"\",\n               \"feeValue\": \"\",\n               \"included\": \"\"\n            }\n         }\n      }\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.bakuun.com/ratedockAPI/agent/updateratelosrq\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));",
        "customLabel": ""
      },
      {
        "id": "rLNg7VC-D6v2XLWl7B3PO",
        "language": "python",
        "code": "import requests\nimport json\n\nurl = \"https://api.bakuun.com/ratedockAPI/agent/updateratelosrq\"\n\npayload = json.dumps({\n   \"username\": \"String\",\n   \"password\": \"String\",\n   \"hotelId\": \"String\",\n   \"startDateYmd\": \"String\",\n   \"endDateYmd\": \"String\",\n   \"rateModel\": \"String\",\n   \"action\": \"String\",\n   \"dailyRates\": {\n      \"roomCode \": \"\",\n      \"condCode \": \"\",\n      \"LOS\": \"\",\n      \"FPLOS\": \"\",\n      \"amountBeforeTax\": \"\",\n      \"amountAfterTax\": \"\",\n      \"currencyCode\": \"\",\n      \"rateType\": \"\",\n      \"taxFeeDetails\": {\n         \"Before\": {\n            \"tax\": {\n               \"taxType\": \"\",\n               \"taxValue\": \"\",\n               \"included\": \"\"\n            },\n            \"fees\": {\n               \"feeType\": \"\",\n               \"feeValue\": \"\",\n               \"included\": \"\"\n            }\n         },\n         \"After\": {\n            \"tax\": {\n               \"taxType\": \"\",\n               \"taxValue\": \"\",\n               \"included\": \"\"\n            },\n            \"fees\": {\n               \"feeType\": \"\",\n               \"feeValue\": \"\",\n               \"included\": \"\"\n            }\n         }\n      }\n   }\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n",
        "customLabel": ""
      },
      {
        "id": "qxjgvOLDgVJfLaycJrQ2w",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.bakuun.com/ratedockAPI/agent/updateratelosrq\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"username\": \"String\",\n   \"password\": \"String\",\n   \"hotelId\": \"String\",\n   \"startDateYmd\": \"String\",\n   \"endDateYmd\": \"String\",\n   \"rateModel\": \"String\",\n   \"action\": \"String\",\n   \"dailyRates\": {\n      \"roomCode \": \"\",\n      \"condCode \": \"\",\n      \"LOS\": \"\",\n      \"FPLOS\": \"\",\n      \"amountBeforeTax\": \"\",\n      \"amountAfterTax\": \"\",\n      \"currencyCode\": \"\",\n      \"rateType\": \"\",\n      \"taxFeeDetails\": {\n         \"Before\": {\n            \"tax\": {\n               \"taxType\": \"\",\n               \"taxValue\": \"\",\n               \"included\": \"\"\n            },\n            \"fees\": {\n               \"feeType\": \"\",\n               \"feeValue\": \"\",\n               \"included\": \"\"\n            }\n         },\n         \"After\": {\n            \"tax\": {\n               \"taxType\": \"\",\n               \"taxValue\": \"\",\n               \"included\": \"\"\n            },\n            \"fees\": {\n               \"feeType\": \"\",\n               \"feeValue\": \"\",\n               \"included\": \"\"\n            }\n         }\n      }\n   }\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "F6DFMY8yp37HbzLk13k1v"
  },
  "results": {
    "languages": [
      {
        "id": "Nk06oAPM-SJCHzGv2ZylY",
        "language": "200",
        "code": "{ \n\"success\": true \n}",
        "customLabel": ""
      },
      {
        "id": "zcwpkCoaI2Gcs_LMjv5yy",
        "language": "500",
        "code": "{\n    \"success\": false,\n    \"errors\": [\n        {\n            \"code\": 500,\n            \"message\": \"Internal server error\"\n        }\n    ]\n}",
        "customLabel": ""
      },
      {
        "id": "em_Kpv2oZfn8MCO7_f1SV",
        "language": "502",
        "code": "{\n    \"success\": false,\n    \"errors\": [\n        {\n            \"code\": 502,\n            \"message\": \"Bad gateway\"\n        }\n    ]\n}",
        "customLabel": ""
      },
      {
        "id": "zzzE2J6Y7YZDula_qc4OD",
        "language": "503",
        "code": "{\n    \"success\": false,\n    \"errors\": [\n        {\n            \"code\": 503,\n            \"message\": \"Service unavailable\"\n        }\n    ]\n}",
        "customLabel": ""
      },
      {
        "id": "B4wRfM8K9w0KuyctvGtOu",
        "language": "504",
        "code": "{\n    \"success\": false,\n    \"errors\": [\n        {\n            \"code\": 504,\n            \"message\": \"Endpoint request timed-out\"\n        }\n    ]\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "zcwpkCoaI2Gcs_LMjv5yy"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "username",
        "kind": "required",
        "type": "string",
        "description": "API username provided by the partner to authenticate incoming pushes from Bakuun.",
        "": "API username provided by the partner to authenticate incoming pushes from Bakuun."
      },
      {
        "name": "password",
        "kind": "required",
        "type": "string",
        "description": "API password provided by the partner to authenticate incoming requests from Bakuun.",
        "": "API password provided by the partner to authenticate incoming requests from Bakuun."
      },
      {
        "name": "hotelId",
        "kind": "required",
        "type": "string",
        "description": "Unique property identifier (shared mapping between Bakuun and the partner).",
        "": "Unique property identifier (shared mapping between Bakuun and the partner)."
      },
      {
        "name": "startDateYmd",
        "kind": "required",
        "type": "string",
        "description": "Start date of the update range, formatted as YYYY-MM-DD.",
        "": "Start date of the update range, formatted as YYYY-MM-DD."
      },
      {
        "name": "endDateYmd",
        "kind": "required",
        "type": "string",
        "description": "End date of the update range, formatted as YYYY-MM-DD.",
        "": "End date of the update range, formatted as YYYY-MM-DD."
      },
      {
        "name": "rateModel",
        "kind": "required",
        "type": "string",
        "description": "Used to identify the rate model , the allowed value would be Standard-LOS",
        "": "Used to identify the rate model , the allowed value would be Standard-LOS"
      },
      {
        "name": "action",
        "kind": "required",
        "type": "string",
        "description": "Always set as losPriceUpdate",
        "": "Always set as losPriceUpdate"
      },
      {
        "name": "dailyRates",
        "kind": "required",
        "type": "object",
        "description": "",
        "": "dailyRates",
        "children": [
          {
            "name": "roomCode ",
            "kind": "required",
            "type": "string",
            "description": "Code identifying the room code as per mapping."
          },
          {
            "name": "condCode ",
            "kind": "required",
            "type": "string",
            "description": "Code identifying the rate plan code as per mapping."
          },
          {
            "name": "LOS",
            "kind": "required",
            "type": "integer",
            "description": "Specifies the Length-of-Stay (LOS). Valid input range: 1–30 (inclusive)\n"
          },
          {
            "name": "FPLOS",
            "kind": "required",
            "type": "string",
            "description": "Condition status flag:\n\"Y\" = Yes (FPLOS applied)\n\"N\" = No (FPLOS not applied)\n"
          },
          {
            "name": "amountBeforeTax",
            "kind": "required",
            "type": "string",
            "description": "Room amount before taxes/fees. Decimal as string, e.g. \"100.00\" N/A to clear the value."
          },
          {
            "name": "amountAfterTax",
            "kind": "required",
            "type": "string",
            "description": "Room amount after taxes/fees (total sell price). Decimal as string. N/A to clear the value."
          },
          {
            "name": "currencyCode",
            "kind": "required",
            "type": "string",
            "description": "3-letter ISO currency code (e.g. EUR, USD, SGD)."
          },
          {
            "name": "rateType",
            "kind": "required",
            "type": "string",
            "description": "Used to identify the rate type , the allowed value would be BAR or NET"
          },
          {
            "name": "taxFeeDetails",
            "kind": "required",
            "type": "object",
            "description": "Detailed breakdown of taxes, fees, offers Before/After. Recommended if you want transparency/calculation consistency.",
            "children": [
              {
                "name": "Before",
                "kind": "required",
                "type": "object",
                "description": "",
                "children": [
                  {
                    "name": "tax",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "children": [
                      {
                        "name": "taxType",
                        "kind": "required",
                        "type": "string",
                        "description": "Used to identify the tax label , the available options are VAT and FEES"
                      },
                      {
                        "name": "taxValue",
                        "kind": "required",
                        "type": "string",
                        "description": "Tax value as a percentage."
                      },
                      {
                        "name": "included",
                        "kind": "required",
                        "type": "string",
                        "description": "0 = Included in amountBeforeTax  \n1= Not included (to be added on top)."
                      }
                    ]
                  },
                  {
                    "name": "fees",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "children": [
                      {
                        "name": "feeType",
                        "kind": "required",
                        "type": "string",
                        "description": "Used to identify the Fee type, the available options are \n- percentage\n- incalculable\n- per night"
                      },
                      {
                        "name": "feeValue",
                        "kind": "required",
                        "type": "string",
                        "description": "Percentage use positive value between 0.01 to 99.99 \nPer night use positive value between 0.01 to 99,999,999,999.99\nIncalculable use 0.00"
                      },
                      {
                        "name": "included",
                        "kind": "required",
                        "type": "string",
                        "description": "0 = Included in amountBeforeTax  \n1= Not included (to be added on top)."
                      }
                    ]
                  }
                ]
              },
              {
                "name": "After",
                "kind": "required",
                "type": "object",
                "description": "",
                "children": [
                  {
                    "name": "tax",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "children": [
                      {
                        "name": "taxType",
                        "kind": "required",
                        "type": "string",
                        "description": "Used to identify the tax label , the available options are VAT and FEES"
                      },
                      {
                        "name": "taxValue",
                        "kind": "required",
                        "type": "string",
                        "description": "Tax value as a percentage "
                      },
                      {
                        "name": "included",
                        "kind": "required",
                        "type": "string",
                        "description": "0 = Included in amountAfterTax  \n1= Not included (to be added on top)."
                      }
                    ]
                  },
                  {
                    "name": "fees",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "children": [
                      {
                        "name": "feeType",
                        "kind": "required",
                        "type": "string",
                        "description": "Used to identify the Fee type, the available options are \n- percentage\n- per night\n- incalculable"
                      },
                      {
                        "name": "feeValue",
                        "kind": "required",
                        "type": "string",
                        "description": "Percentage use positive value between 0.01 to 99.99 \nPer night use positive value between 0.01 to 99,999,999,999.99\nIncalculable use 0.00"
                      },
                      {
                        "name": "included",
                        "kind": "required",
                        "type": "string",
                        "description": "0 = Included in amountAfterTax  \n1= Not included (to be added on top)."
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "roomCode ",
            "kind": "required",
            "type": "string",
            "description": "Code identifying the room code as per mapping."
          },
          {
            "name": "condCode ",
            "kind": "required",
            "type": "string",
            "description": "Code identifying the rate plan code as per mapping."
          },
          {
            "name": "LOS",
            "kind": "required",
            "type": "integer",
            "description": "Specifies the Length-of-Stay (LOS). Valid input range: 1–30 (inclusive)\n"
          },
          {
            "name": "FPLOS",
            "kind": "required",
            "type": "string",
            "description": "Condition status flag:\n\"Y\" = Yes (FPLOS applied)\n\"N\" = No (FPLOS not applied)\n"
          },
          {
            "name": "amountBeforeTax",
            "kind": "required",
            "type": "string",
            "description": "Room amount before taxes/fees. Decimal as string, e.g. \"100.00\" N/A to clear the value."
          },
          {
            "name": "amountAfterTax",
            "kind": "required",
            "type": "string",
            "description": "Room amount after taxes/fees (total sell price). Decimal as string. N/A to clear the value."
          },
          {
            "name": "currencyCode",
            "kind": "required",
            "type": "string",
            "description": "3-letter ISO currency code (e.g. EUR, USD, SGD)."
          },
          {
            "name": "rateType",
            "kind": "required",
            "type": "string",
            "description": "Used to identify the rate type , the allowed value would be BAR or NET"
          },
          {
            "name": "taxFeeDetails",
            "kind": "required",
            "type": "object",
            "description": "Detailed breakdown of taxes, fees, offers Before/After. Recommended if you want transparency/calculation consistency.",
            "children": [
              {
                "name": "Before",
                "kind": "required",
                "type": "object",
                "description": "",
                "children": [
                  {
                    "name": "tax",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "children": [
                      {
                        "name": "taxType",
                        "kind": "required",
                        "type": "string",
                        "description": "Used to identify the tax label , the available options are VAT and FEES"
                      },
                      {
                        "name": "taxValue",
                        "kind": "required",
                        "type": "string",
                        "description": "Tax value as a percentage."
                      },
                      {
                        "name": "included",
                        "kind": "required",
                        "type": "string",
                        "description": "0 = Included in amountBeforeTax  \n1= Not included (to be added on top)."
                      }
                    ]
                  },
                  {
                    "name": "fees",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "children": [
                      {
                        "name": "feeType",
                        "kind": "required",
                        "type": "string",
                        "description": "Used to identify the Fee type, the available options are \n- percentage\n- incalculable\n- per night"
                      },
                      {
                        "name": "feeValue",
                        "kind": "required",
                        "type": "string",
                        "description": "Percentage use positive value between 0.01 to 99.99 \nPer night use positive value between 0.01 to 99,999,999,999.99\nIncalculable use 0.00"
                      },
                      {
                        "name": "included",
                        "kind": "required",
                        "type": "string",
                        "description": "0 = Included in amountBeforeTax  \n1= Not included (to be added on top)."
                      }
                    ]
                  }
                ]
              },
              {
                "name": "After",
                "kind": "required",
                "type": "object",
                "description": "",
                "children": [
                  {
                    "name": "tax",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "children": [
                      {
                        "name": "taxType",
                        "kind": "required",
                        "type": "string",
                        "description": "Used to identify the tax label , the available options are VAT and FEES"
                      },
                      {
                        "name": "taxValue",
                        "kind": "required",
                        "type": "string",
                        "description": "Tax value as a percentage "
                      },
                      {
                        "name": "included",
                        "kind": "required",
                        "type": "string",
                        "description": "0 = Included in amountAfterTax  \n1= Not included (to be added on top)."
                      }
                    ]
                  },
                  {
                    "name": "fees",
                    "kind": "required",
                    "type": "object",
                    "description": "",
                    "children": [
                      {
                        "name": "feeType",
                        "kind": "required",
                        "type": "string",
                        "description": "Used to identify the Fee type, the available options are \n- percentage\n- per night\n- incalculable"
                      },
                      {
                        "name": "feeValue",
                        "kind": "required",
                        "type": "string",
                        "description": "Percentage use positive value between 0.01 to 99.99 \nPer night use positive value between 0.01 to 99,999,999,999.99\nIncalculable use 0.00"
                      },
                      {
                        "name": "included",
                        "kind": "required",
                        "type": "string",
                        "description": "0 = Included in amountAfterTax  \n1= Not included (to be added on top)."
                      }
                    ]
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "response": [
    {
      "name": "success",
      "kind": "optional",
      "type": "boolean",
      "description": ""
    }
  ],
  "autoGeneratedAnchorSlug": "los-rate",
  "legacyHash": "vzhSUehopTtLCuG25WWeH"
}
```
:::

