HostFact API versie 3.1
Inkoopfacturen
Inkoopfacturen (van crediteuren) zijn te beheren via de controller 'creditinvoice'.
show
Middels deze functie kunt u meer informatie over een inkoopfactuur ophalen.
Voorbeeldbestand: /voorbeelden/creditinvoice/creditinvoice.show.php
Invoerparameters:
Veldnaam | Waarde | Omschrijving |
---|---|---|
Identifier | int | De unieke ID van een inkoopfactuur |
CreditInvoiceCode | string | Eigen interne inkoopfactuurnummer |
Voorbeeld invoer:
<?php require_once("../hostfact_api.php"); $api = new HostFactAPI(); $creditInvoiceParams = array( 'CreditInvoiceCode' => 'CF0001' ); $response = $api->sendRequest('creditinvoice', 'show', $creditInvoiceParams); print_r_pre($response); ?>
Voorbeeld uitvoer:
Array ( [controller] => creditinvoice [action] => show [status] => success [date] => 2022-11-24T12:00:00+02:00 [creditinvoice] => Array ( [Identifier] => 1 [CreditInvoiceCode] => CF0001 [InvoiceCode] => 2018-6422 [Creditor] => 1 [CreditorCode] => CD0001 [Status] => 1 [Date] => 2018-01-01 [Term] => 0 [AmountExcl] => 162.50 [AmountIncl] => 196.63 [AmountPaid] => 0.00 [Authorisation] => no [Private] => 0.00 [PrivatePercentage] => 0 [ReferenceNumber] => [PayDate] => [InvoiceLines] => Array ( [0] => Array ( [Identifier] => 1 [Number] => 1 [Description] => SLA contract #2 [PriceExcl] => 125 [TaxPercentage] => 21 ) [1] => Array ( [Identifier] => 2 [Number] => 3 [Description] => Domains .com [PriceExcl] => 12.5 [TaxPercentage] => 21 ) ) [Created] => 2022-11-24 11:00:00 [Modified] => 2022-11-24 11:00:00 [Attachments] => Array ( [0] => Array ( [Identifier] => 3 [Filename] => sample.pdf ) ) [Translations] => Array ( [Status] => Nog niet betaald ) ) )