I am trying to use the SoftLayer_Product_Order/<package>/verifyOrder.json
API to validate my JSON for ordering some Endurance NAS, but for many combinations.
I keep getting the error:
Order is missing the following category: Storage Space
But I seem to be providing a valid Storage Space type price.
The Combination of price objects are:
Type: 45064 (Endurance Storage)
IOPS: 45074 (LOW_INTENSITY_TIER)
Storage: 45856 (20 GB Storage Space)
Base Type: 45104 (Block Storage)
JSON:
{ "parameters" : [
{
"location" : "449494",
"packageId" : 240,
"osFormatType" : {
"id" : 12,
"keyName" : "LINUX"
},
"complexType" : "SoftLayer_Container_Product_Order_Network_Storage_Enterprise",
"quantity" : 1,
"prices" : [
{
"id" : "45064"
},
{
"id" : "45074"
},
{
"id" : "45856"
},
{
"id" : "45104"
}
]
}
]
}
REST call:
https://api.softlayer.com/rest/v3/SoftLayer_Product_Order/240/verifyOrder.json
Response:
$VAR1 = {
'error' => 'Order is missing the following category: Storage Space.',
'code' => 'SoftLayer_Exception_Order_MissingCategory'
};
Not sure what I am missing.