ChainOffer List [GET]

Operation

Information of the operation

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


Request


PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter0Unique identificator of the chain.
offsetIntegerfalserequest parameter0Offset of the array of results.
limitIntegerfalserequest parameter10Limit of results.
sortstringfalserequest parameteridProperty of the entity to sort by.
sortModestringfalserequest parameterascMode of sorting.

Example request

GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/offer


Response

PropertyTypeRequiredDescription
PagePagetrueDescription of the response of the success operation

Entity



FieldTypeRequiredDescription
idinttrueId of the ChainOffer
codestringtrueCode of the ChainOffer
namestringtrueName of the ChainOffer
activebooleantrueStatus 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
	         }
  		  ]
}