createCart


SoftLayer_Billing_Order_Cart::createCart

Create a new cart from the order data provided

Description

When creating a new cart, the order data is sent through SoftLayer_Product_Order::verifyOrder to make sure that the cart contains valid data. If an issue is found with the order, an exception will be thrown and you will receive the same response as if SoftLayer_Product_Order::verifyOrder were called directly. Once the order verification is complete, the cart will be created.

The response is the new 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/createCart'