This command changes a requisition list type from private to shared, or from shared to private. It also updates the billing and payment information.
Command structure
- http://host_name/path/
- The fully qualified name of your WebSphere Commerce Server and the configuration path.
Parameter values
- URL
- (Required) The URL called when the command completes successfully.
- requisitionListId
- (Required) The ID of the requisition list to be updated.
- status
- Distinguishes between a private requisition list and a shared requisition list. The default is Y for a private requisition list. Z indicates a shared requisition list.
- billtoAddressId
- The billing address identification.
- name
- The name of the requisition list.
Example
The following example updates requisition list 10099, changing the requisition list to a shared requisition list:
http://myhostname/RequisitionListUpdate?&requisitionListId=10099&status=Z &URL=RequisitionListDisplay
Behavior
Updates the information specified in the parameters. It can also update the optional payment name value pairs similar to the name value pairs in the OrderProcess command.
Exception conditions
- Throws an ECApplicationException with the message key _ERR_INVALID_INPUT if the input parameter status is not Y or Z.
- Throws an ECApplicationException with the message key
_ERR_INVALID_ORDER_REFNUM if the input parameter requisitionListId is not a
valid order ID.
Notes about payments
The RequisitionListUpdate command does not itself handle payments. But it can take the name value pairs, save them in the database to be used later by DoPaymentCmd. To handle payments, one uses the DoPaymentCmd interface class, which DoPayment task commands would implement. The parameters that are passed from RequisitionListUpdate to this command can be anything, although they would typically implement credit card information.