Operation
Information of the operation
GET
https://{environment}.ulysescloud.com/api/{version}/chain/{chainId}/property/{propertyId}/policy
Request
Property | Type | Required | Default value | Description |
---|---|---|---|---|
chainId | Integer | true | Unique identificator of the chain. | |
propertyId | Integer | true | Unique identificator of the property. | |
offset | Integer | false | 0 | Offset of the array of results. |
limit | Integer | false | 10 | Limit of results. |
sort | string | false | id | Property of the entity to sort by. |
sortMode | string | false | Asc | Mode of sorting. |
Example request
GET https://prod.ulysescloud.com/api/v1/chain/1/property/1/policy
Response
Property | Type | Required | Description |
---|---|---|---|
Page | Page | true | Description of the response of the success operation |
Entity
Field Type Required Description id int true Id of the Policy code string true Code of the Policy name string true Name of the Policy description string false nonRefundable boolean false deadLineDay integer false deadLineHour integer false policyChargeType PolicyChargeType false chargeValue bigDecimal false depositSuggestedAmount bigDecimal false depositSuggestedPercentageAmount bigDecimal false
Example response
{ "count": 6, "offset": 0, "limit": 10, "list": [ { "id": 2, "code": "NR", "name": "Non Refundable" }, { "id": 8, "code": "60D", "name": "60 Days Before Arrival" }, { "id": 14, "code": "30D", "name": "30 Days Before Arrival" }, { "id": 20, "code": "15D", "name": "15 Days Before Arrival" }, { "id": 26, "code": "48H", "name": "48 Hours Before Arrival" }, { "id": 32, "code": "24H", "name": "24 Hours Before Arrival" } ] }