Reference > Shop flow URLs > Member subsystem URLs > Address


AddressUpdate URL

This URL updates the address entry for a user.

This command updates the address entry for a user. If the addressId parameter is not provided, the AddressAdd command is called to add a new address. Use this command with SSL (Secure Sockets Layer) to ensure that the member's logon password and personal information are encrypted.

To do so, type the command with the HTTPS secure protocol.


URL structure

http:// host_name/path/

The fully qualified name of the WebSphere Commerce Server and the configuration path.

Diagram of the URL structure: The URL starts with the fully qualified name of the WebSphere Commerce Server and the configuration path, followed by the URL name, AddressUpdate , and the ? character. End the URL with a list of parameters in the form of name-value pairs. Separate each <a href=name-value pair with the & character. For a detailed description of the parameters and their values, see the list entitled Parameter values." />


Parameter values

langId

Sets or resets the preferred language for the duration of the session; the supported languages for a store are found in the STORELANG table.

forUser

The logon ID of the user or organization on whose behalf the command will be run; only a person with the authority to process orders can specify this parameter.

forUserId

Same as forUser, but identifying the user by the internal user ID, as found in the USERS table.

URL

Required: The URL to be called when the command completes successfully.

addressId

Required: The reference number of the address to be updated.

businessTitle

The company position of the user whose address is being updated (for example, President or Manager).

personTitle

The title of the user whose address is being updated (for example, Dr., Rev., Mr. or Ms.).

firstName

The first name of the user .

middleName

The middle name or initial of the user

organizationName

The organization that the user represents.

organizationUnitName

The name of the unit within the user's organization.

officeAddress

The organizational internal address (for example, the mail stop).

primary

Whether the given address is a primary address for a particular address type:

  • 1=primary

  • 0=not primary (the default)

addressType

The type of address; for example:

  • S=ship-to

  • B=billing

  • SB=ship-to and billing (the default)

address1

The first address line of the user's street address.

address2

The second address line of the user's street address.

address3

The third address line of the user's street address.

city

The name of the city where the user resides.

state

The name of the state, province, or equivalent where the user resides.

zipCode

The ZIP or postal code of the user's address.

country

The name of the country or region where the user resides.

bestCallingTime

Whether to call the user in the day or the evening:

  • D=daytime

  • E=evening

phone1

The user's primary phone number.

phone1Type

The type of phone used for the user's primary phone number, for example TTY for hearing impaired, PCM for pulse-coded modulation, or CEL for mobile. This is a field of 3 characters.

publishPhone1

Whether to list the user's primary phone number:

  • 1= yes

  • 0= no

phone2

The user's secondary phone number.

phone2Type

The type of phone used for the user's secondary phone number, for example TTY for hearing impaired, PCM for pulse-coded modulation, or CEL for mobile. This is a field of 3 characters.

publishPhone2

Whether to list the user's secondary phone number:

  • 1= yes

  • 0= no

fax1

The user's primary facsimile number.

fax2

The user's secondary facsimile number.

email1

The user's primary e-mail or Web address.

email2

The user's secondary e-mail or Web address.

billingCode

The buyer organization's code to identify the shipping or billing addresses and cost center.

billingCodeType

The code designating the method of code structure used for the billing code. The default value is D, assigned by buyer.

taxPayerId

A string used to identify the user for taxation, especially useful with tax software.

packageSuppression

Whether to include package inserts when the order is shipped:

  • 1=include

  • 0=do not include

addressField1 through addressField3

Customizable fields.

shippingGeoCode

A shipping code based on geographical region, especially useful with tax software.

taxGeoCode

A tax code based on geographical region, especially useful with tax software.

outAddressName

If outAddressName=s is specified (where s is any string), then s= <address_id> will be put as one of the response properties after the command is executed, where <address_id> is the ID of the address being added or updated.


Example

The following example updates an address book entry for the address with ID 128 so that it includes the first name Jeffery.

     https://myhostname/webapp/wcs/stores/servlet/AddressUpdate?
    
addressId=128&firstName=Jeffery&URL=/webapp/wcs/stores/servlet/


Behavior


Exception conditions


Related concepts

Member subsystem

Related reference

AddressAdd URL

AddressCheck URL

AddressDelete URL

Sample: Member subsystem properties files

Member subsystem URLs


+

Search Tips   |   Advanced Search