Versions Compared

Key

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

Operation

Information of the operation

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


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


Request

PropertyTypeRequiredType parameterDefault valueDescriptionchainIdIntegertruepath parameter0Unique identificator of the chain.propertyIdIntegertruepath parameterUnique identificator of the property.fromLocalDatetruerequest parameterdate in format "yyyy-mm-dd"toLocalDatetruerequest parameterdate in format "yyyy-mm-dd"


Example request

Code Block
languagepowershell
themeDJango
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/2/budget?from=2020-01-01&to=2020-01-31productGroup/productSubGroup



Response

Entity


Insert excerpt
ProductBudgetDailyProductGroupProductBudgetDaily
ProductGroup
nopaneltrue


Code Block
themeDJango
[
      {
    "product": {
      "id": 647,
      "        "code":  "SGLACC",
              "name":  "SingleAccommodation",
      "productType": {
        "id": 1,
        "code": "ACC",
        "name": "Accommodation",
        "nameI18n": "Accommodation"
      }
    },
    "productBudgetDailyList": [
      {
        "date": "2020-01-01",
        "price": 0.000000,
        "roomNights": 0,
        "adult": 0,
        "junior": 0,
        "child": 0,
        "infant": 0
      },
      {
        "date": "2020-01-03",
        "price": 0.000000,
        "roomNights": 0,
        "adult": 0,
        "junior": 0,
        "child": 0,
        "infant": 0
      },
      {
        "date": "2020-01-04",
        "price": 0.000000,
        "roomNights": 0,
        "adult": 0,
        "junior": 0,
        "child": 0,
        "infant": 0
      },
      {
        "date": "2020-01-02",
        "price": 0.000000,
        "roomNights": 0,
        "adult": 0,
        "junior": 0,
        "child": 0,
        "infant": 0
      },
      {
        "date": "2020-01-07",
        "price": 0.000000,
        "roomNights": 0,
        "adult": 0,
        "junior": 0,
        "child": 0,
        "infant": 0
      },
      {
        "date": "2020-01-08",
        "price": 25.000000,
        "roomNights": 0,
        "adult": 0,
        "junior": 0,
        "child": 0,
        "infant": 0
      },
      {
        "date": "2020-01-05",
        "price": 0.000000,
        "roomNights": 0,
        "adult": 0,
        "junior": 0,
        "child": 0,
        "infant": 0
      }
	...
	        "description": null,
        "nonProductive": false,
        "order": 1,
        "productSubGroupSet": [
            {
                "productGroup": null,
                "code": "ROOM",
                "name": "Room Types",
                "description": null,
                "order": 1,
                "productSet": [
                    {
                        "id": 46,
                        "code": "SGL",
                        "name": "Single",
                        "productType": {
                            "id": 1,
                            "code": "ACC",
                            "name": "Accommodation",
                            "nameI18n": "Accommodation"
                        }
                    }
               ]
            }...
        ]
    }
]