January 6, 2016


Cancel item
Invoke cancelService to cancel an item by Billing ID

#!/usr/bin/perl
use lib "/path/to/softlayer-api-perl-client/";
use SoftLayer::API::SOAP;
use Data::Dumper;

my $api_username = "a";
my $api_key = "x";

#Canel service
# https://api.softlayer.com/rest/v3/SoftLayer_Billing_Item/<BILLING_ID>/cancelService
my $billing_id = $result->result->{'id'};
my $billing_client = SoftLayer::API::SOAP->new('SoftLayer_Billing_Item', $billing_id, $api_username, $api_key);
$result = $billing_client->cancelService();
print Dumper($result->result);

Feedback?

We would love to hear it
Open an issue

/perl/cancelitem/