Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Operation

Get a list of all the products of type payment in a given property.

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


Request

PropertyTypeRequiredDefault valueDescription
chainIdIntegertrue
Unique identificator of the chain.
propertyIdIntegertrue
Unique identificator of the property.
offsetIntegerfalse0Offset of the array of results.
limitIntegerfalse10Limit of results.
sortstringfalseidProperty of the entity to sort by.
sortModestringfalseAscMode of sorting.

Example request

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


Response

PropertyTypeRequiredDescription
PagePagetrueDescription of the response of the success operation

Entity

The entity returned is a Page with a list of Payment's. Description of the Accommodation entity:


FieldTypeRequiredDescription
idinttrueUnique identifier for the Payment.
namestringtrueName of the Payment.


Example response

{
  "count": 10,
  "offset": 0,
  "limit": 3,
  "list": [
    {
      "id": 1,
      "name": "Cash"
    },
    {
      "id": 2,
      "name": "MasterCard"
    },
    {
      "id": 3,
      "name": "Transfer"
    }
  ]
}
  • No labels