GET api/Activities/GetActivity/{id}

Gets the Activity's details.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

GetActivityResult
NameDescriptionTypeAdditional information
SpecificPrices

Specific prices of the Activity, specific prices for customer or customer group

Collection of SpecificPriceData

None.

Currency

Currency of the Activity, should be used like default

CurrencyEnum

None.

DefaultPrice

Currency of the Activity, should be used like default

decimal number

None.

Unit

Unit of the Activity, only if Activity type is equal to time.

ActivityUnitEnum

None.

UnitLabel

Unit label of the Activity, only if Activity type is equal to general.

string

None.

Id

Id number of the Activity.

integer

None.

Name

Name of the Activity.

string

None.

Type

Type of the Activity.

ActivityTypeEnum

None.

Response Formats

application/json, text/json

Sample:
{
  "SpecificPrices": null,
  "Currency": 1,
  "DefaultPrice": 0.0,
  "Unit": 3,
  "UnitLabel": null,
  "Id": 1,
  "Name": "Default activity",
  "Type": 1
}

application/xml, text/xml

Sample:
<GetActivityResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results">
  <Id xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures">1</Id>
  <Name xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures">Default activity</Name>
  <Type xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures">Time</Type>
  <Currency>CZK</Currency>
  <DefaultPrice>0</DefaultPrice>
  <SpecificPrices xmlns:d2p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures" i:nil="true" />
  <Unit>Hour</Unit>
  <UnitLabel i:nil="true" />
</GetActivityResult>