Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎3 - Profile Store‎ > ‎

Save Address

Will save an address to a consumer's profile.  This is useful for recording the address to be supplied for further purchases.  The GCS does not use this information for purchases and it is the responsibility of the api client to pull this information to be posted for purchasing.
 
All fields are restricted to 255 characters.

Method: PUT /api/v3/publisher/profilestore/{userKey}/address/{addressKey}
Authentication: oauth
 
Url Parameters:
userKey - The userkey for the consumer's profile
addressKey - The key to be used for identifying the address to be saved.
 
Post
Required Form Name Data Type Explanation
No
Address1 string The first address line for the consumer's address.
No
Address2
string The second address line for the consumer's address.
No City string The city component of the consumer's address.
No Country string The country for the address, recommended to use 2 characters.
No Name string The consumer defined name of the address, such as home, work, etc. 
No Phone string The phone number associated with the address.
No PostalCode string The postal code component of the consumer's address.
No State int64 The state component of the consumer's address.

Returns
base response fields


Sample Request:


Form: Address1=628%20Broadway&Address2=&City=New%20York%20City&Country=US&Name=Home&Phone=111%20222%203333%20x%204557&PostalCode=11218&State=NY

OAuth oauth_signature="2MWlWU%2btdoSAkpbbChbRJqHC3eg%3d", oauth_nonce="9005909", oauth_timestamp="1319762439", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"


Sample JSON Response:

{
    "errors":[],
    "lastPublished":"/Date(1319762442406)/",
    "success":true,
    "version":"3"
}


Sample XML Response:

<saveAddressResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-10-28T00:41:46.6073105Z</lastPublished>
    <success>true</success>
    <version>3</version>
</saveAddressResponse>
Comments