GET /v2/lodgings/{id}/stays/{arrival}-{departure}/extras

Returns all selectable extras (housework, ) for specified stay informations.

Resource information

Authentication No
Response Formats xml, json
HTTP Method GET
Response Object field last change and list Extras
API Version v2

Resource parameters

URI Parameter Type Description
id long Lodging database unique identifier (used as REST identifier)
arrival String Stay arrival (format: "YYYYMMDD")
departure String Stay departure (format: "YYYYMMDD")

Example Request

https://api.poplidays.com/v2/lodgings/886/stays/20131201-20131212/extras

Example Response

json

{
    "lastChange":"2014-05-20+02:00",
    "extras":[
   {
      "code": "END_OF_STAY_CLEANING",
      "label": "Ménage fin de séjour",
      "optionType": "MANDATORY_ON_BOOKING",
      "type": "CHECK",
      "mandatory": true,
      "parameters": {},
      "prices": [ { "value": 60 } ]
   },
   {
      "code": "CLEANING_DURING_THE_STAY",
      "label": "Ménage en cours de séjour",
      "optionType": "OPTIONAL_ON_SITE",
      "type": "CHECK",
      "mandatory": false,
      "parameters": {},
      "prices": [ { "value": 60 } ]
   },
   {
      "code": "INSURANCE_EXTRA",
      "label": "Assurance annulation",
      "detailUrl": "http://www.poplidays.com/filesystem/static/telechargement/fr_cg_assur.pdf",
      "optionType": "OPTIONAL_ON_BOOKING",
      "type": "LIST",
      "mandatory": false,
      "parameters": {
         "INSURANCE": "Assurance annulation Pop'Assur",
         "INSURANCE_OPTIONAL": "Assurance annulation Pop'Assur+"
      },
      "prices": [
         {
            "selectedCodes": [
               "INSURANCE",
               "END_OF_STAY_CLEANING",
               "CONCIERGE",
               "FEE"
            ],
            "value": 25.58
         },
         {
            "selectedCodes": [
               "INSURANCE_OPTIONAL",
               "END_OF_STAY_CLEANING",
               "CONCIERGE",
               "FEE"
            ],
            "value": 33
         },
         {
            "selectedCodes": [
               "CLEANING_DURING_THE_STAY",
               "INSURANCE",
               "END_OF_STAY_CLEANING",
               "CONCIERGE",
               "FEE"
            ],
            "value": 27.67
         },
         {
            "selectedCodes": [
               "CLEANING_DURING_THE_STAY",
               "INSURANCE_OPTIONAL",
               "END_OF_STAY_CLEANING",
               "CONCIERGE",
               "FEE"
            ],
            "value": 35.7
         }
      ]
   },
   {
      "code": "FEE",
      "label": "Frais de dossier",
      "optionType":, "MANDATORY_ON_BOOKING",
      "type": "CHECK",
      "mandatory": true,
      "parameters": {},
      "prices": [ { "value": 20 } ]
   },
   {
      "code": "CONCIERGE",
      "label": "Conciergerie POP'Services (offert)",
      "optionType": "INCLUDED",
      "type": "CHECK",
      "mandatory": true,
      "parameters": {},
      "prices": [ { "value": 0 } ]
   }]
}

xml

<?xml version="1.0" encoding="UTF-8"?>
<extras>
   <lastChange>2014-05-20+02:00</lastChange>
   <extra>
      <code>END_OF_STAY_CLEANING</code>
      <label>Mnage fin de sjour</label>
      <optionType>MANDATORY_ON_BOOKING</optionType>
      <type>CHECK</type>
      <mandatory>true</mandatory>
      <parameters />
      <prices>
         <price>
            <value>60.0</value>
         </price>
      </prices>
   </extra>
   <extra>
      <code>CLEANING_DURING_THE_STAY</code>
      <label>Mnage en cours de sjour</label>
      <optionType>OPTIONAL_ON_SITE</optionType>
      <type>CHECK</type>
      <mandatory>false</mandatory>
      <parameters />
      <prices>
         <price>
            <value>60.0</value>
         </price>
      </prices>
   </extra>
   <extra>
      <code>INSURANCE_EXTRA</code>
      <label>Assurance annulation</label>
      <detailUrl>http://www.poplidays.com/filesystem/static/telechargement/fr_cg_assur.pdf</detailUrl>
      <optionType>OPTIONAL_ON_BOOKING</optionType>
      <type>LIST</type>
      <mandatory>false</mandatory>
      <parameters>
         <entry>
            <key>INSURANCE</key>
            <value>Assurance annulation Pop'Assur</value>
         </entry>
         <entry>
            <key>INSURANCE_OPTIONAL</key>
            <value>Assurance annulation Pop'Assur+</value>
         </entry>
      </parameters>
      <prices>
         <price>
            <selectedCodes>
               <code>INSURANCE</code>
               <code>END_OF_STAY_CLEANING</code>
               <code>CONCIERGE</code>
               <code>FEE</code>
            </selectedCodes>
            <value>25.58</value>
         </price>
         <price>
            <selectedCodes>
               <code>INSURANCE_OPTIONAL</code>
               <code>END_OF_STAY_CLEANING</code>
               <code>CONCIERGE</code>
               <code>FEE</code>
            </selectedCodes>
            <value>33.0</value>
         </price>
         <price>
            <selectedCodes>
               <code>CLEANING_DURING_THE_STAY</code>
               <code>INSURANCE</code>
               <code>END_OF_STAY_CLEANING</code>
               <code>CONCIERGE</code>
               <code>FEE</code>
            </selectedCodes>
            <value>27.67</value>
         </price>
      </prices>
   </extra>
   <extra>
      <code>FEE</code>
      <label>Frais de dossier</label>
      <optionType>MANDATORY_ON_BOOKING</optionType>
      <type>CHECK</type>
      <mandatory>true</mandatory>
      <parameters />
      <prices>
         <price>
            <value>25.0</value>
         </price>
      </prices>
   </extra>
   <extra>
      <code>CONCIERGE</code>
      <label>Conciergerie POP'Services (offert)</label>
      <optionType>INCLUDED</optionType>
      <type>CHECK</type>
      <mandatory>true</mandatory>
      <parameters />
      <prices>
         <price>
            <value>0.0</value>
         </price>
      </prices>
   </extra>
</extras>