SoftLayer Product Order

From SoftLayer Development Network Wiki

Jump to: navigation, search

Contents

Overview

Every server order and every additional service order goes through the methods in this class. To place an order, it is important to know which container is required for a specific order type. These order containers can be found in: SoftLayer_Container_Product_Order*

For a server order, use: SoftLayer_Container_Product_Order_Hardware_Server

These are required so the order knows how to verify itself. verifyOrder checks the type of container being sent in and does verification based on that.

Verification is a lengthy process, so you should call verifyOrder(<container>) before you call placeOrder. Doing this will ensure you get what you want, and will let you know how much you will be paying before you are actually charged.


Endpoints

SOAP WSDL Public Network: https://api.softlayer.com/soap/v3/SoftLayer_Product_Order?wsdl
Private Network: http://api.service.softlayer.com/soap/v3/SoftLayer_Product_Order?wsdl
XML-RPC Endpoint Public Network: https://api.softlayer.com/xmlrpc/v3/SoftLayer_Product_Order
Private Network: http://api.service.softlayer.com/xmlrpc/v3/SoftLayer_Product_Order
REST URL Public Network: https://api.softlayer.com/rest/v3/SoftLayer_Product_Order/
Private Network: https://api.service.softlayer.com/rest/v3/SoftLayer_Product_Order/

Methods

checkItemConflicts

Check order items for conflicts

  • returns
boolean
  • parameters
SoftLayer_Product_Item_PriceArray itemPrices



confirmOrder

Confirm an order for a demo Cloudlayer Storage account

  • returns
SoftLayer_Billing_Order
  • parameters
string confirmationHash



getObject

Retrieve a SoftLayer_Product_Order record.

  • returns
SoftLayer_Product_Order
  • parameters
None



placeOrder

Place an order

  • returns
SoftLayer_Container_Product_Order_Receipt
  • parameters
SoftLayer_Container_Product_Order orderData



placeQuote

Place a quote

  • returns
SoftLayer_Container_Product_Order
  • parameters
SoftLayer_Container_Product_Order orderData



processExternalPaymentAuthorization

process an external (paypal) payment authorization.

  • returns
SoftLayer_Billing_Order
  • parameters
string token
string payerId



requiredItems

Get list of items that are required with the item prices provided

  • returns
SoftLayer_Product_ItemArray
  • parameters
SoftLayer_Product_Item_PriceArray itemPrices



verifyOrder

Verify an order.

  • returns
SoftLayer_Container_Product_Order
  • parameters
SoftLayer_Container_Product_Order orderData
Personal tools