Reference > WebSphere Commerce Payments command reference > Query commands
QUERYACCOUNTS
The QUERYACCOUNTS command returns a collection of Account objects in XML format.
Required keyword Multiple allowed? Value ETAPIVERSION N 3 (Indicates WebSphere Commerce Payments-or predecessor product-API version: v2.1.x, 2.2.x, 3.1.x, 5.5.x, and 5.6.x) OPERATION N ASCII character string "QueryAccounts."
Optional operational parameter Value DTDPATH Path to the locally-stored DTD. The value of this parameter will be used in the XML document to specify the location of the external DTD. If this parameter is not specified, the complete DTD will be returned as an internal DTD. The length of the DTDPath must be from 1 to 254 bytes.
Optional keywords Multiple allowed? Value ACCOUNTNUMBER Y The account number. Integer in ASCII characters. Must be from 1 to 999999999. CASSETTENAME Y The name of the cassette. ASCII character string with a maximum length of 64 bytes. MERCHANTNUMBER Y The merchant number. Integer in ASCII characters. Must be from 1 to 999999999.
Related concepts
WebSphere Commerce Payments command reference