POST api/Address/AddUpdateAddress
Request Information
URI Parameters
None
Body Parameters
Address| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None |
|
| UserName | string |
None |
|
| string |
None |
||
| FirstName | string |
None |
|
| MiddleInitial | string |
None |
|
| LastName | string |
None |
|
| StreetAddress | string |
None |
|
| OptionalAddress | string |
None |
|
| City | string |
None |
|
| StateCode | string |
None |
|
| PostalCode | string |
None |
|
| CountryCode | string |
None |
|
| PhoneNumber | string |
None |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"userName": "sample string 2",
"email": "sample string 3",
"firstName": "sample string 4",
"middleInitial": "sample string 5",
"lastName": "sample string 6",
"streetAddress": "sample string 7",
"optionalAddress": "sample string 8",
"city": "sample string 9",
"stateCode": "sample string 10",
"postalCode": "sample string 11",
"countryCode": "sample string 12",
"phoneNumber": "sample string 13"
}
application/xml, text/xml
Sample:
<Address xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Priceline.WebServices.Entities">
<City>sample string 9</City>
<CountryCode>sample string 12</CountryCode>
<Email>sample string 3</Email>
<FirstName>sample string 4</FirstName>
<Id>1</Id>
<LastName>sample string 6</LastName>
<MiddleInitial>sample string 5</MiddleInitial>
<OptionalAddress>sample string 8</OptionalAddress>
<PhoneNumber>sample string 13</PhoneNumber>
<PostalCode>sample string 11</PostalCode>
<StateCode>sample string 10</StateCode>
<StreetAddress>sample string 7</StreetAddress>
<UserName>sample string 2</UserName>
</Address>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>