Ascio Web Service v3

PHP 5 CancelOrder

Cancel an order

Cancels and order. Orders with the following statuses can be cancelled:

  • PendingEndUserAction
  • PendingDocumentation

For now, CancelOrder is only available for Domains. More ObjectTypes like SSL will follow in future.

The feature will be deployed on:

  • Live: Monday, 13th December 2021
  • Testing: Wednesday, 24th November 2021

CancelOrderResponse CancelOrder(SecurityHeaderDetails $securityHeader,CancelOrderRequest $request)

Response codes

ResultCodeMessageValue
401Authorization failed
405Access denied

CancelOrder Request

Property
request

CancelOrderResponse

PropertyDescription
CancelOrderResult
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

PHP 5 example

<?php
$wsdl = "https://aws.demo.ascio.com/v3/aws.wsdl";
//$wsdl = "https://aws.ascio.com/v3/aws.wsdl";
$client = new SoapClient($wsdl,[ "trace" => 1, "soap_version" => SOAP_1_1)];
$credentials = ["Account"=> "myaccount", "Password" => "mypassword"];
$headers = [];
$headers[] = new \SoapHeader("http://www.ascio.com/2013/02","SecurityHeaderDetails", $credentials, false);
$headers[] = new \SoapHeader("http://www.ascio.com/2013/02","ImpersonationHeaderDetails", ["TransactionAccount" => "mysubaccount"], false);
$client->__setSoapHeaders($headers);
//CancelOrderRequest

$request =  [
	"OrderId" => "TEST123456"
];
//CancelOrder

$cancelOrder =  [
	"request" => $request
];
try{	
    $result = $client->cancelOrder($cancelOrder);
    echo "ResultCode : ".$result->CancelOrderResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->CancelOrderResult->ResultMessage."\r\n";
    if(is_array($result->CancelOrderResult->Errors->string)) {
        echo "Errors:\r\n";
        foreach($result->CancelOrderResult->Errors->string as $key => $value) {
            echo " - " . $value."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

WSDL for AWS v3
https://aws.demo.ascio.com/v3/aws.wsdl (OTE)
https://aws.ascio.com/v3/aws.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.