ChainOffer List [GET]
Operation
Information of the operation
GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/offer
Request
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | 0 | Unique identificator of the chain. |
offset | Integer | false | request parameter | 0 | Offset of the array of results. |
limit | Integer | false | request parameter | 10 | Limit of results. |
sort | string | false | request parameter | id | Property of the entity to sort by. |
sortMode | string | false | request parameter | asc | Mode of sorting. |
Example request
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/offer
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 ChainOffer code string true Code of the ChainOffer name string true Name of the ChainOffer active boolean true Status of the ChainOffer
Example response
{ "count": 5, "offset": 0, "limit": 3, "list": [ { "id": 1, "code": "APP", "name": "APP Discount", "active": true }, { "id": 2, "code": "WEB", "name": "Discount Web", "active": true }, { "id": 3, "code": "EARLY", "name": "Early Booking 14%", "active": true } ] }