This command creates or updates a customer's default billing and shipping addresses, shipping mode and payment information. Order profiles can be stored at store level, to provide defaults for use within a store, and at store group level, to provide defaults for use within all stores in the store group.
Command structure
- http://host_name/path/
- The fully qualified name of your WebSphere Commerce Server and the configuration path.
Parameter values
- forUser
- The logon ID of the user 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.
- 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.
- storeId
- Specifies a stores whose profile, associated with a given customer, needs to be updated or created.
- storeEntityId
- (Required) Specifies a group of stores whose store profile, associated with a given customer, needs to be updated or created.
- URL
- (Required) The URL to be called when the command completes successfully.
- addressId
- The reference number of the default shipping address for products and items ordered by this customer.
- billtoAddressId
- The reference number of the default address to bill for this customer.
- shipModeId
- The reference number of the default shipping mode to be used for products or items ordered by this customer
- pay_payment_name
- The payment_name is the name of the payment parameter used by DoPaymentCmd task command to process payment information. Note that the payment_name must be prefixed with the 'pay_' prefix. The value for pay_payment_name is the value of the payment parameter to be used by DoPaymentCmd task command to process payment information for this customer.
Example
The following example sets the default shipping and billing address of the current customer to an address with reference number 10 and the default shipping mode to a shipping mode with reference number 100. Payments will be made by ABC credit card with the number 12312345937438 which expires in December, 2003.
OrderProfileUpdate?url=/&addressId=10&billtoAddressId=10&shipModeId=100 &pay_cardBrand=ABC&&pay_cardNumber=12312345937438&pay_cardExpiryMonth=12 &pay_cardExpiryYear=2003
Behavior
Creates the default shipping and billing address, shipping mode and payment information for the current customer if this information does not exist. The command updates the above information if it already exists. The new payment information specified by this command will completely overwrite the existing default payment information.
Exception conditions
None.