Promotion List [GET]

Operation

Information of the operation

GET Single property request
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/promotion
GET Multiproperty request
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/promotion

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 parameter0Limit of results.
sortstringfalserequest parameter0Property of the entity to sort by.
sortModestringfalserequest parameter0Mode of sorting.
propertyIdListInteger Listfalserequest parameter
Property Id List - Only for Multiproperty Get

Example Single Property request

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

Example Multiproperty request

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


Response

PropertyTypeRequiredDescription
PagePagetrueDescription of the response of the success operation

Entity


Field

Type

Required

Description

id

int

true

Id of the Promotion

code

string

true

Code of the Promotion

name

string

true

Name of the Promotion

releaseDay

int

true

ReleaseDay of the Offer

deadLineDay

int

true

DeadLineDay of the Offer

startDate

LocalDate

true

StartDate of the Offer

endDate

LocalDate

true

EndDate of the Offer

startSellDate

LocalDate

false

StartSellDate of the Offer

endSellDate

LocalDate

false

EndSellDate of the Offer

propertyId

int

false

Id of the property (Only for multiproperty request)

Example Single Property response

{
  "count": 2,
  "offset": 0,
  "limit": 10,
  "list": [
    {
      "id": 1,
      "code": "WEB",
      "name": "Web Promotion"
    },
    {
      "id": 2,
      "code": "SS",
      "name": "Short Stayn"
    }
  ]
}

Example Multiproperty response

{
  "count": 3,
  "offset": 0,
  "limit": 10,
  "list": [
    {
      "id": 1,
      "code": "WEB",
      "name": "Web Promotion",
	  "propertyId": 1
    },
    {
      "id": 2,
      "code": "SS",
      "name": "Short Stayn"
	  "propertyId": 1
    },
    {
      "id": 5,
      "code": "APP",
      "name": "APP Promotion",
	  "propertyId": 2
    }
  ]
}