WeFact Hosting API versie 2.7



Crediteuren

Crediteuren zijn te beheren via de controller 'creditor'.



show

Middels deze functie kunt u meer informatie over een crediteur ophalen.
Voorbeeldbestand: /voorbeelden/creditor/creditor.show.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een crediteur
op te halen via de list functie
CreditorCode string Het crediteurnummer
Verplichte velden: Identifier of CreditorCode

Voorbeeld invoer:
<?php

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

$api = new WeFactAPI();

$creditorParams = array(
				'CreditorCode'	=> 'CD0001'
);

$response = $api->sendRequest('creditor', 'show', $creditorParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => creditor
    [action] => show
    [status] => success
    [date] => 2016-09-01T12:00:00+02:00
    [creditor] => Array
        (
            [Identifier] => 1
            [CreditorCode] => CD0001
            [MyCustomerCode] => 
            [CompanyName] => Supplier 1
            [CompanyNumber] => 
            [TaxNumber] => 
            [Sex] => m
            [Initials] => Curtis
            [SurName] => Johnson
            [Address] => Adalbertstrasse 1
            [ZipCode] => 10999
            [City] => Berlin
            [Country] => DE
            [EmailAddress] => billing@supplier.de
            [PhoneNumber] => 
            [MobileNumber] => 
            [FaxNumber] => 
            [Comment] => 
            [Authorisation] => no
            [AccountNumber] => 
            [AccountBIC] => 
            [AccountName] => 
            [AccountBank] => 
            [AccountCity] => 
            [Term] => 0
            [Groups] => Array
                (
                )

            [Created] => 2016-09-01 12:00:00
            [Modified] => 2016-09-01 12:00:00
            [Translations] => Array
                (
                    [Country] => Duitsland
                )

        )

)