SoftLayer Product Order::confirmOrder
From SoftLayer Development Network Wiki
confirmOrder is a member of the SoftLayer_Product_Order service.
Contents |
Overview
When an order for a demonstration CloudLayer Storage account is placed, the user who placed the order receives an email containing a confirmation code asking to confirm the order. confirmOrder() uses this confirmation code to mark a CloudLayer Storage demo account as approved. Once approved, the order will be approved by a SoftLayer representative, then the user who placed the order will receive another email stating their CloudLayer Storage demo account is ready for use.
Return Type
confirmOrder returns the SoftLayer_Billing_Order data type.
Headers
Required Headers
confirmOrder requires the following headers:
Parameters
confirmOrder takes the following parameters:
confirmationHash
The confirmation code received in the email generated when an order for a demo CloudLayer account is placed.
- Type: string
Error Handling
confirmOrder throws the following exceptions:
- SoftLayer_Exception_Public
- Throw the exception "Invalid confirmation. Your order cannot be confirmed at this time." if no order was found that matches your conformationHash.
- SoftLayer_Exception_Public
- Throw the exception "Your order (<id>) has been approved. You will recieve a final email notifying you the CloudLayer Storage account has been created." if the order matching your confirmationHash is approved.
- SoftLayer_Exception_Public
- Throw the exception "Your order (<id>) has been processed. Please check the email account provided for more details on your free demo CloudLayer Storage account." if the order matching your confirmationHash is approved and your CloudLayer storage account is available for use.
- SoftLayer_Exception_Public
- Throw the exception "Your order (<id>) was not approved. Please contact SoftLayer Sales toll free @ 1-866-398-7638 for more information." if the order matching your confirmationHash was denied or cancelled.
- SoftLayer_Exception_Public
- Throw the exception "Your order (<id>) is currently being processed. You will recieve a final email notifying you the CloudLayer Storage account has been created." if the order matching your confirmationHash is pending confirmation by a SoftLayer representative.

