POST api/{programid}/Consumer/GetAddress

Gets the consumer address

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

string

Required

Body Parameters

string

Request Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>

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 'String'.

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>