WeFact Hosting API versie 2.6



Domain

Domeinnamen zijn te beheren via de controller 'domain'.



terminate

Middels deze functie kunt u een domeinnaam opzeggen.
Voorbeeldbestand: /voorbeelden/domain/domain.terminate.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een domeinnaam
Date date De datum waarop de dienst opgezegd wordt
Reason text Reden van opzegging
Verplichte velden: Identifier

Voorbeeld invoer:
<?php

require_once("../wefact_api.php");

$api = new WeFactAPI();

$domainParams = array(
						'Identifier'		=> '1',
						//'Date'				=> '2015-01-01', // Date of termination 
);

$response = $api->sendRequest('domain', 'terminate', $domainParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => domain
    [action] => terminate
    [status] => success
    [date] => 2016-09-01T12:00:00+02:00
    [success] => Array
        (
            [0] => Dienst is opgezegd met opzegdatum 13-07-2017
        )

    [domain] => Array
        (
            [Identifier] => 1
            [Domain] => example
            [Tld] => com
            [Debtor] => 1
            [DebtorCode] => DB0001
            [HostingID] => 2
            [Status] => 1
            [RegistrationDate] => 
            [ExpirationDate] => 2017-07-13
            [Registrar] => 1
            [DNS1] => ns1.example.com
            [DNS2] => ns2.example.com
            [DNS3] => 
            [DNS1IP] => 
            [DNS2IP] => 
            [DNS3IP] => 
            [DNSTemplate] => 0
            [OwnerHandle] => 1
            [AdminHandle] => 1
            [TechHandle] => 1
            [DomainAutoRenew] => on
            [Comment] => 
            [Created] => 2016-09-01 12:00:00
            [Modified] => 2016-09-01 12:00:00
            [RegistrarInfo] => Array
                (
                    [Identifier] => 1
                    [Class] => registrarclass
                    [Name] => Example registrar
                    [Testmode] => 1
                    [DefaultDNSTemplate] => 0
                    [AdminHandle] => 0
                    [TechHandle] => 0
                )

            [Subscription] => Array
                (
                    [Number] => 1
                    [NumberSuffix] => 
                    [ProductCode] => P003
                    [Description] => Domain .com
                    [PriceExcl] => 15
                    [PriceIncl] => 18.15
                    [TaxPercentage] => 21
                    [DiscountPercentage] => 0
                    [Periods] => 1
                    [Periodic] => j
                    [StartPeriod] => 2017-07-13
                    [EndPeriod] => 2018-07-13
                    [NextDate] => 2017-06-29
                    [ContractPeriods] => 1
                    [ContractPeriodic] => j
                    [StartContract] => 2016-07-13
                    [EndContract] => 2017-07-13
                    [TerminationDate] => 2017-07-13
                    [Reminder] => 
                    [InvoiceAuthorisation] => yes
                    [AmountExcl] => 15
                    [AmountIncl] => 18.15
                )

            [Termination] => Array
                (
                    [Date] => 2017-07-13
                    [Created] => 2016-09-01 12:00:00
                    [Status] => pending
                )

            [Translations] => Array
                (
                    [RegistrarName] => Example registrar
                    [Status] => Wachten op actie
                )

        )

)