Deprecated feature

REFUND

A REFUND command is used to create a Credit object and is used when the merchant wants to return monies to the cardholder. The REFUND command is legal when the specified order is in Refundable state.

If successful, a Credit object will be created in Refunded or Closed state. If unsuccessful, a Credit object will be in Declined state.

Keywords Required Value
AMOUNT Yes Must be a 32-bit positive integer in ASCII characters.
BATCHNUMBER No Optional for implicit batch. A numeric string of up to nine characters. Identifies the batch under which this payment will be processed. Must be from 1 to 999999999.
CREDITNUMBER Yes Integer in ASCII characters. Must be from 1 to 999999999. Indicates the number assigned to this credit.
DTDPATH No Path to the locally stored DTD. The value of this parameter is used in the XML document to specify the location of the external DTD. If this parameter is not specified, the complete DTD is returned as an internal DTD. The length of the DTDPath must be from 1 to 254 bytes.
ETAPIVERSION Yes "3" (Indicates WebSphere Commerce Payments-or predecessor product-API version: Version 2.1.x, 2.2.x, 3.1.x, 5.5.x, and 5.6.x)
MERCHANTNUMBER Yes Integer in ASCII characters. Must be from 1 to 999999999.
OPERATION Yes ASCII character string "Refund."
ORDERNUMBER Yes Integer in ASCII characters. Must be from 1 to 999999999.