WeFact Hosting API versie 2.7



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
Verplichte velden: Identifier of CreditInvoiceCode

Voorbeeld invoer:
<?php

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

$api = new WeFactAPI();

$creditInvoiceParams = array(
				'CreditInvoiceCode'	=> 'CF0001'
);

$response = $api->sendRequest('creditinvoice', 'show', $creditInvoiceParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => creditinvoice
    [action] => show
    [status] => success
    [date] => 2016-09-01T12:00:00+02:00
    [creditinvoice] => Array
        (
            [Identifier] => 1
            [CreditInvoiceCode] => CF0001
            [InvoiceCode] => 2013-6422
            [Creditor] => 1
            [CreditorCode] => CD0001
            [Status] => 1
            [Date] => 2013-12-04
            [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] => 2016-09-01 12:00:00
            [Modified] => 2016-09-01 12:00:00
            [Attachments] => Array
                (
                    [0] => Array
                        (
                            [Identifier] => 3
                            [Filename] => sample.pdf
                        )

                )

            [Translations] => Array
                (
                    [Status] => Nog niet betaald
                )

        )

)