February 8, 2016

Cancel an item or service
Use cancelService to cancel an item or service

In the following example we are retrieving the Billing Item of a Virtual Guest with the ID of 12345678 and passing that ID to cancelService.

import SoftLayer
from pprint import pprint as pp

client = SoftLayer.Client()
mask = "mask[id]"
billingId = client['SoftLayer_Virtual_Guest'].getBillingItem(mask=mask,id=12345678)
cancelItem = client['SoftLayer_Billing_Item'].cancelService(id = billingId['id'])


We would love to hear it
Open an issue