updateCart


SoftLayer_Billing_Order_Cart::updateCart

Update an existing cart with the modified order data

Description

Like SoftLayer_Billing_Order_Cart::createCart, the order data will be sent through SoftLayer_Product_Order::verifyOrder to make sure that the updated cart information is valid. Once it has been verified, the new order data will be saved.

This will return the cart id.


Parameters

Name Type Description
orderData SoftLayer_Container_Product_Order The order data to save as a cart

Required Headers

Optional Headers

  • None

Return Values

  • int
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_Container_Product_Order]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Billing_Order_Cart/{SoftLayer_Billing_Order_CartID}/updateCart'