Using SoftLayer API, I've ordered an Endurance Block Storage and it's there.
Now I am trying to write a PHP code that will use SoftLayer API to modify Snapshot space, but I keep getting this error:
There was an error querying the SoftLayer API: Price does not have an id.
And I am not sure what the issue is.
Below is bit of code that I am using to do this:
$clientServer = SoftLayer_XmlrpcClient::getClient('SoftLayer_Product_Order', null, userID, apiKey);
$clientServer->verifyOrder($order);
And the $order that I pass is below and the price ID I pass is correct as far as I know. So what am I missing? Or do I need to do this in different way?
{
"categoryCode" : "storage_snapshot_space",
"complexType" : "Container_Product_Order_Network_Storage_Enterprise_SnapshotSpace_Upgrade",
"packageId" : 240,
"prices" : [
{
"id" : 144295
}
],
"properties" : [
{
"name" : "orderOrigin",
"value" : "control"
}
],
"virtualGuests" : null
}
Any help will be appreciated. Thank you.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…