WeFact Hosting API versie 2.7



Overige diensten

Overige diensten zijn te beheren via de controller 'service'.



show

Middels deze functie kunt u meer informatie over een overige dienst ophalen.
Voorbeeldbestand: /voorbeelden/service/service.show.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een overige dienst
Verplichte velden: Identifier

Voorbeeld invoer:
<?php

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

$api = new WeFactAPI();

$serviceParams = array(
						'Identifier'	=> '1'
);

$response = $api->sendRequest('service', 'show', $serviceParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => service
    [action] => show
    [status] => success
    [date] => 2016-09-01T12:00:00+02:00
    [service] => Array
        (
            [Identifier] => 1
            [Debtor] => 1
            [DebtorCode] => DB0001
            [Status] => active
            [Subscription] => Array
                (
                    [Number] => 1
                    [NumberSuffix] => 
                    [ProductCode] => P001
                    [Description] => Default product
                    [PriceExcl] => 250
                    [PriceIncl] => 302.5
                    [TaxPercentage] => 21
                    [DiscountPercentage] => 0
                    [Periods] => 1
                    [Periodic] => m
                    [StartPeriod] => 2016-10-14
                    [EndPeriod] => 2016-11-14
                    [NextDate] => 2016-09-30
                    [ContractPeriods] => 1
                    [ContractPeriodic] => m
                    [StartContract] => 2016-07-14
                    [EndContract] => 2016-08-14
                    [TerminationDate] => 
                    [Reminder] => 
                    [InvoiceAuthorisation] => yes
                    [AmountExcl] => 250
                    [AmountIncl] => 302.5
                )

            [Created] => 2016-09-01 12:00:00
            [Modified] => 2016-09-01 12:00:00
        )

)