Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

Information of the operation

Rw ui textbox macro
typewarning

Only accessible with permission of pms.integration.offer


Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: green; color: white; display: inline-block; padding: 5px; border-radius: 3px;

GET Single property request



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/offer



Div
style background-color: green; color: white; display: inline-block; padding: 5px; border-radius: 3px;

GET Multiproperty request



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/offer


Request


PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter
Unique identificator of the chain.
propertyIdIntegertruepath parameter
Unique identificator of the property.
offsetIntegerfalserequest parameter0Offset of the array of results.
limitIntegerfalserequest parameter10Limit of results.
sortstringfalserequest parameteridProperty of the entity to sort by.
sortModestringfalserequest parameterAscMode of sorting.
propertyIdListInteger Listfalserequest parameter
Property Id List - Only for Multiproperty Get


Example Single Property request

Code Block
languagepowershell
themeDJango
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/offer

Example Multiproperty request

Code Block
languagepowershell
themeDJango
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/offer



Response

PropertyTypeRequiredDescription
PagePagetrueDescription of the response of the success operation

Entity


Insert excerpt
Offer
Offer
nopaneltrue

Example SingleProperty response

Code Block
themeDJango
{
  "count": 17,
  "offset": 0,
  "limit": 103,
  "list": [
       {     {
			  "id": 1,16,
              "code": "TEST1EARLY5",
              "name": "Offer Test 1"5% Early"
        	},
        	{
              "id": 217,
              "code": "TEST2EARLY10",
              "name": "Offer10% Test 2Early"
    },    	},
{       "id": 3, 	{
      "code": "TEST3",       "nameid": "Offer Test 3"
18,
   },     {       "idcode": 4"EARLY15",
      "code": "OLDNR",       "name": "OLD15% Non RefundableEarly"
    },    	}
{  		  ]
}

Example Multiproperty response

Code Block
themeDJango
{
  "idcount": 517,
  "offset": 0,
  "codelimit": "OLDMIN3"3,
 
    "namelist": "OLD[
Minimum 3 nights"     },     {
  			    "id": 616,
      "code": "OLDMIN7",       "namecode": "OLDEARLY5",
Minimum 7 nights"     },     {  "name": "5% Early"
			  "idpropertyId": 7,4
       "code": "OLDMIN14" 	},
      "name": "OLD Minimum 14 nights" 	{
    },     {       "id": 817,
              "code": "OLDEB15DEARLY10",
              "name": "OLD10% Early"
Booking			 15 Days"propertyId": 4
   },     {	},
       "id": 9, 	{
      "code": "OLDEB30D",       "nameid": "OLD Early Booking 30 Days"7,
     },     {       "idcode": 10"EARLY5",
      "code": "OLDEB60D",       "name": "OLD5% Early"
Booking			 60 Days""propertyId": 3
        	}
  		  ]
}