POST api/{programid}/Consumer/{consumerNo}/GetTimeZone

Gets the Consumer's Timezone

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

string

Required

consumerNo

string

Required

Body Parameters

LocationApiModel
NameDescriptionTypeAdditional information
ExternalId

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Address

string

None.

City

string

None.

State

string

None.

Zip_Code

string

None.

TimeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ExternalId": "sample string 1",
  "Latitude": 2.1,
  "Longitude": 3.1,
  "Address": "sample string 4",
  "City": "sample string 5",
  "State": "sample string 6",
  "Zip_Code": "sample string 7",
  "TimeZone": "sample string 8"
}

application/xml, text/xml

Sample:
<LocationApiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.WebApi.Models.GeoLocation">
  <Address>sample string 4</Address>
  <City>sample string 5</City>
  <ExternalId>sample string 1</ExternalId>
  <Latitude>2.1</Latitude>
  <Longitude>3.1</Longitude>
  <State>sample string 6</State>
  <TimeZone>sample string 8</TimeZone>
  <Zip_Code>sample string 7</Zip_Code>
</LocationApiModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LocationApiModel'.

Response Information

Resource Description

GeolocationAddress
NameDescriptionTypeAdditional information
Address

string

None.

City

string

None.

State

string

None.

ZipCode

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "Address": "sample string 1",
  "City": "sample string 2",
  "State": "sample string 3",
  "ZipCode": "sample string 4",
  "Latitude": 5.0,
  "Longitude": 6.0
}

application/xml, text/xml

Sample:
<GeolocationAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.WebApi.Models.GeoLocation">
  <Address>sample string 1</Address>
  <City>sample string 2</City>
  <Latitude>5</Latitude>
  <Longitude>6</Longitude>
  <State>sample string 3</State>
  <ZipCode>sample string 4</ZipCode>
</GeolocationAddress>