AccountExport command (Business Edition)

This command exports a business account to an XML file.

Command structure

http://host_name/path/
The fully qualified name of your WebSphere Commerce Server and the configuration path.

Diagram of the command structure: the command starts with the fully qualified name of your WebSphere Commerce Server and the configuration path, followed by the command name, AccountExport  and the ? character. End the command with a list of parameters in the form of name value pairs. Separate each name value pair with the & character. For a detailed description of the parameters and their values, refer to the list entitled Parameter values.

Before issuing this command, you must be logged into WebSphere Commerce. You can log in to WebSphere Commerce using the Logon command. For more information in the Logon command, see the related reference below.

Parameter values

accountId
(Required) The account ID for the account you want to export, as found in the ACCOUNT database table.
fileName
(Required) The name you want the account XML file to have. If you do not specify the full path name for the XML file, the XML file will be written to theWC_installdir/xml/trading/xml directory
langId
(Required) Use this parameter to specify the language of the descriptions in the account you want exported. Descriptions in languages other than the language specified by this parameter will not be exported to the generated XML file.
xsdName
(Required) The XSD file name to use for the root element.
xmlFileEncoding
Use this parameter to specify the encoding of the generated XML file. If you do not specify this option, the generated XML file will be encoded using UTF-8 encoding. For a list of all supported international encodings that can be specified with this parameter, see the related topic below.
all
Specifies whether to include all reference numbers and timestamps when exporting the account or not. Valid values for this parameter are true and false. Use true to export all reference numbers and create or update timestamps. Use false to omit all reference numbers and create or update timestamps.

If this parameter is not specified, a value of true is assumed.

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

Example

The following example exports account ID 260369 to a UTF-8 encoded XML file in the default directory called account260369.xml:

https://myhostname/webapp/wcs/stores/servlet/AccountExport?
accountId=260369&fileName=account260369.xml&langId=-1&xsdName=Package.xsd&
URL=AccountDisplay

Behavior

This command creates an XML file from the information in the WebSphere Commerce database for the specified account number.

Exception conditions