WeFact Hosting API versie 2.7



Overige diensten

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



list

Middels deze functie kunt u een lijst met overige diensten ophalen die voldoen aan de meegegeven parameters.
Voorbeeldbestand: /voorbeelden/service/service.list.php


Invoerparameters:
Veldnaam Waarde Omschrijving
status string Abonnement status, zie variabelen-lijst
Standaard: 'active'
offset int Standaard: 0
limit int Standaard: 1000
sort string Standaard: NextDate
order 'ASC' of 'DESC' Standaard: ASC
searchat string Welke velden doorzocht moeten worden.
Standaard: DebtorCode|ProductCode|Description
searchfor string Zoekterm
created filter_datetime Filtermogelijkheid op aanmaakdatum
modified filter_datetime Filtermogelijkheid op wijzigingsdatum

Voorbeeld invoer:
<?php

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

$api = new WeFactAPI();

$serviceParams = array(
				'searchfor'			=> ''
);

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

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => service
    [action] => list
    [status] => success
    [date] => 2016-09-01T12:00:00+02:00
    [totalresults] => 3
    [currentresults] => 3
    [offset] => 0
    [filters] => Array
        (
            [searchfor] => 
        )

    [services] => Array
        (
            [0] => Array
                (
                    [Identifier] => 1
                    [Debtor] => 1
                    [DebtorCode] => DB0001
                    [CompanyName] => Company X
                    [Initials] => John
                    [SurName] => Jackson
                    [Status] => active
                    [Subscription] => Array
                        (
                            [ProductCode] => P001
                            [Description] => Default product
                            [Number] => 1
                            [NumberSuffix] => 
                            [PriceExcl] => 250
                            [TaxPercentage] => 21
                            [DiscountPercentage] => 0
                            [Periods] => 1
                            [Periodic] => m
                            [StartPeriod] => 2016-10-14
                            [EndPeriod] => 2016-11-14
                            [NextDate] => 2016-09-30
                            [TerminationDate] => 
                            [AmountExcl] => 250
                            [AmountIncl] => 302.5
                        )

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

            [1] => Array
                (
                    [Identifier] => 6
                    [Debtor] => 1
                    [DebtorCode] => DB0001
                    [CompanyName] => Company X
                    [Initials] => John
                    [SurName] => Jackson
                    [Status] => active
                    [Subscription] => Array
                        (
                            [ProductCode] => P003
                            [Description] => Domain example.com
                            [Number] => 1
                            [NumberSuffix] => 
                            [PriceExcl] => 15
                            [TaxPercentage] => 21
                            [DiscountPercentage] => 0
                            [Periods] => 1
                            [Periodic] => j
                            [StartPeriod] => 2017-07-14
                            [EndPeriod] => 2018-07-14
                            [NextDate] => 2017-06-30
                            [TerminationDate] => 
                            [AmountExcl] => 15
                            [AmountIncl] => 18.15
                        )

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

            [2] => Array
                (
                    [Identifier] => 7
                    [Debtor] => 1
                    [DebtorCode] => DB0001
                    [CompanyName] => Company X
                    [Initials] => John
                    [SurName] => Jackson
                    [Status] => active
                    [Subscription] => Array
                        (
                            [ProductCode] => P003
                            [Description] => Domain example.com
                            [Number] => 1
                            [NumberSuffix] => 
                            [PriceExcl] => 15
                            [TaxPercentage] => 21
                            [DiscountPercentage] => 0
                            [Periods] => 1
                            [Periodic] => j
                            [StartPeriod] => 2017-07-14
                            [EndPeriod] => 2018-07-14
                            [NextDate] => 2017-06-30
                            [TerminationDate] => 
                            [AmountExcl] => 15
                            [AmountIncl] => 18.15
                        )

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

        )

)