WeFact API versie 2.4.3



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:
$parameters = [
    "CreditInvoiceCode" => "CF0002"
];

$api->sendRequest('creditinvoice', 'show', $parameters);

Voorbeeld uitvoer:
Array
(
    [controller] => creditinvoice
    [action] => show
    [status] => success
    [date] => 2020-05-15T14:13:15+02:00
    [creditinvoice] => Array
        (
            [Identifier] => 1
            [CreditInvoiceCode] => CF0002
            [InvoiceCode] => INV123456
            [Creditor] => 1
            [CreditorCode] => CD50000
            [Status] => 1
            [AuthorisationStatus] => 
            [Date] => 2020-04-05
            [Term] => 14
            [AmountExcl] => 300.00
            [AmountIncl] => 363.00
            [AmountPaid] => 0.00
            [Authorisation] => no
            [PayDate] => 
            [PaymentMethod] => 
            [Currency] => EUR
            [Comment] => initial test comment
            [InvoiceLines] => Array
                (
                    [0] => Array
                        (
                            [Identifier] => 1
                            [Number] => 1
                            [Description] => Test line
                            [PriceExcl] => 100
                            [TaxCode] => I21
                            [TaxPercentage] => 21
                            [StartDate] => 
                            [EndDate] => 
                            [CostCategory] => 0
                        )

                    [1] => Array
                        (
                            [Identifier] => 2
                            [Number] => 1
                            [Description] => Another Test line
                            [PriceExcl] => 200
                            [TaxCode] => I21
                            [TaxPercentage] => 21
                            [StartDate] => 
                            [EndDate] => 
                            [CostCategory] => 0
                        )

                )

            [Created] => 2020-05-15 14:13:15
            [Modified] => 2020-05-15 14:13:15
            [Translations] => Array
                (
                    [Status] => Nog niet betaald
                    [PaymentMethod] => 
                )

        )

)