HostFact API versie 3.1
Debiteuren
Debiteuren zijn te beheren via de controller 'debtor'.
show
Middels deze functie kunt u meer informatie over een debiteur ophalen.
Voorbeeldbestand: /voorbeelden/debtor/debtor.show.php
Invoerparameters:
Veldnaam | Waarde | Omschrijving |
---|---|---|
Identifier | int | De unieke ID van een debiteur op te halen via de list functie |
DebtorCode | string | Het debiteurnummer |
GetPassword | 'yes' of 'no' | Geeft aan of het ongecodeerde wachtwoord mee gegeven mag worden. Standaard: 'no' |
Voorbeeld invoer:
<?php require_once("../hostfact_api.php"); $api = new HostFactAPI(); $debtorParams = array( 'Identifier' => '1' ); $response = $api->sendRequest('debtor', 'show', $debtorParams); print_r_pre($response); ?>
Voorbeeld uitvoer:
Array ( [controller] => debtor [action] => show [status] => success [date] => 2022-11-24T12:00:00+02:00 [debtor] => Array ( [Identifier] => 1 [DebtorCode] => DB0001 [CompanyName] => Company X [CompanyNumber] => 123456789 [LegalForm] => ANDERS [TaxNumber] => NL123456789B01 [Sex] => m [Initials] => John [SurName] => Jackson [Address] => Keizersgracht 100 [ZipCode] => 1015 AA [City] => Amsterdam [Country] => NL [EmailAddress] => info@company.com [PhoneNumber] => 010 - 22 33 44 [MobileNumber] => [FaxNumber] => [Website] => [Comment] => [InvoiceMethod] => 0 [InvoiceCompanyName] => [InvoiceSex] => m [InvoiceInitials] => [InvoiceSurName] => [InvoiceAddress] => [InvoiceZipCode] => [InvoiceCity] => [InvoiceCountry] => NL [InvoiceEmailAddress] => [ReminderEmailAddress] => [InvoiceAuthorisation] => no [MandateID] => [InvoiceDataForPriceQuote] => no [AccountNumber] => NL59RABO0123123123 [AccountBIC] => RABONL2U [AccountName] => Company X [AccountBank] => Rabobank [AccountCity] => Amsterdam [ActiveLogin] => yes [Username] => DB0001 [SecurePassword] => [Mailing] => yes [Taxable] => auto [PeriodicInvoiceDays] => -1 [InvoiceTemplate] => 0 [PriceQuoteTemplate] => 0 [ReminderTemplate] => 0 [SecondReminderTemplate] => -1 [SummationTemplate] => 0 [PaymentMail] => -1 [PaymentMailTemplate] => 0 [InvoiceCollect] => -1 [DefaultLanguage] => [ClientareaProfile] => 0 [Groups] => Array ( [4] => Array ( [id] => 4 [GroupName] => Hosting clients ) ) [Created] => 2022-11-24 11:00:00 [Modified] => 2022-11-24 11:00:00 [Translations] => Array ( [LegalForm] => Anders of onbekend [Country] => Nederland [InvoiceMethod] => Per e-mail [InvoiceCountry] => Nederland [Taxable] => Automatisch [DefaultLanguage] => ) ) )