Facturen

Facturen zijn te beheren via de controller 'invoice'.


credit

Middels deze functie kunt u bestaande facturen crediteren. De factuur krijgt de status
'Vervallen' (= 9) en er ontstaat een nieuwe creditfactuur (status '8').
Wilt u een conceptfactuur verwijderen, gebruik dan de functie 'delete'.


Invoerparameters:


Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een factuur
InvoiceCode string Het factuurnummer
Verplichte velden: Identifier of InvoiceCode

Voorbeeld invoer:


$parameters = [
    "InvoiceCode" => "F2024-0001"
];

$api->sendRequest('invoice', 'credit', $parameters);

Voorbeeld uitvoer:


Array
(
    [controller] => invoice
    [action] => credit
    [status] => success
    [date] => 2024-01-21T12:00:00+02:00
    [success] => Array
        (
            [0] => Creditfactuur F2024-0002 is aangemaakt
            [1] => Factuur F2024-0001 is gecrediteerd.
        )

    [invoice] => Array
        (
            [Identifier] => 2
            [InvoiceCode] => F2024-0002
            [Debtor] => 1
            [DebtorCode] => DB10000
            [Status] => 8
            [SubStatus] => 
            [PaymentPausedEndDate] => 
            [PaymentPausedReason] => 
            [Date] => 2024-09-25
            [Term] => 14
            [PayBefore] => 2024-10-09
            [PaymentURL] => 
            [AmountExcl] => -229.64
            [AmountTax] => -48.22
            [AmountIncl] => -277.86
            [AmountPaid] => -277.86
            [AmountOutstanding] => 0.00
            [Discount] => 0
            [VatCalcMethod] => excl
            [IgnoreDiscount] => no
            [ReferenceNumber] => 
            [CompanyName] => Jan Janssen B.V.
            [Initials] => Jan
            [SurName] => Janssen
            [Sex] => m
            [Address] => Keizersgracht 100
            [ZipCode] => 1015 AA
            [City] => Amsterdam
            [Country] => NL
            [EmailAddress] => info@example.com
            [ExtraClientContactId] => 0
            [InvoiceMethod] => 0
            [SentDate] => 
            [Sent] => 0
            [Reminders] => 0
            [ReminderDate] => 
            [Summations] => 0
            [SummationDate] => 
            [Authorisation] => no
            [PaymentMethod] => 
            [PayDate] => 
            [TransactionID] => 
            [LanguageCode] => nl_nl
            [Currency] => EUR
            [Description] => 
            [Comment] => 
            [InvoiceLines] => Array
                (
                    [0] => Array
                        (
                            [Identifier] => 4
                            [Date] => 2023-11-22
                            [Number] => 2
                            [NumberSuffix] => 
                            [ProductCode] => P0001
                            [Description] => Werkzaamheden gebaseerd op uurtarief
                            [PriceExcl] => -100
                            [DiscountPercentage] => 0
                            [DiscountPercentageType] => line
                            [TaxCode] => V21
                            [TaxPercentage] => 21
                            [PeriodicID] => 0
                            [Periods] => 1
                            [Periodic] => 
                            [StartDate] => 
                            [EndDate] => 
                            [StartPeriod] => 
                            [EndPeriod] => 
                        )

                    [1] => Array
                        (
                            [Identifier] => 5
                            [Date] => 2023-11-22
                            [Number] => 155
                            [NumberSuffix] => km
                            [ProductCode] => P0002
                            [Description] => Reiskosten à € 0,19 per km
                            [PriceExcl] => -0.19
                            [DiscountPercentage] => 0
                            [DiscountPercentageType] => line
                            [TaxCode] => V21
                            [TaxPercentage] => 21
                            [PeriodicID] => 0
                            [Periods] => 1
                            [Periodic] => 
                            [StartDate] => 
                            [EndDate] => 
                            [StartPeriod] => 
                            [EndPeriod] => 
                        )

                    [2] => Array
                        (
                            [Identifier] => 6
                            [Date] => 2023-11-22
                            [Number] => 1
                            [NumberSuffix] => 
                            [ProductCode] => P0002
                            [Description] => Reiskosten à € 0,19 per km
                            [PriceExcl] => -0.19
                            [DiscountPercentage] => 0
                            [DiscountPercentageType] => line
                            [TaxCode] => V21
                            [TaxPercentage] => 21
                            [PeriodicID] => 0
                            [Periods] => 1
                            [Periodic] => 
                            [StartDate] => 
                            [EndDate] => 
                            [StartPeriod] => 
                            [EndPeriod] => 
                        )

                    [3] => Array
                        (
                            [Identifier] => 7
                            [Date] => 2024-09-25
                            [Number] => 1
                            [NumberSuffix] => 
                            [ProductCode] => 
                            [Description] => Corresponderende factuur: F2024-0001
                            [PriceExcl] => 0
                            [DiscountPercentage] => 0
                            [DiscountPercentageType] => line
                            [TaxCode] => V21
                            [TaxPercentage] => 21
                            [PeriodicID] => 0
                            [Periods] => 1
                            [Periodic] => 
                            [StartDate] => 
                            [EndDate] => 
                            [StartPeriod] => 
                            [EndPeriod] => 
                        )

                )

            [Created] => 2024-01-21 11:00:00
            [Modified] => 2024-01-21 11:00:00
            [VatShift] => no
            [Attachments] => Array
                (
                )

            [Translations] => Array
                (
                    [Status] => Creditfactuur
                    [Country] => Nederland
                    [InvoiceMethod] => Per e‑mail
                    [PaymentMethod] => 
                    [LanguageLabel] => Nederlands
                )

        )

)

Toon API hoofdstukken Verberg API hoofdstukken

Klaar om 30 dagen
gratis te proberen?

Met WeFact maakt u sneller en zonder fouten online facturen, verwerkt u inkoopfacturen en heeft u grip op uw administratie! Test alle functionaliteiten zonder beperkingen met de gratis proefperiode.

Maak gebruik van de gratis opstartservice

  • Wij maken uw huisstijl na
  • Importeren van klanten en leveranciers
  • Importeren van producten

Maak een proefperiode aan

Bedankt voor uw aanvraag. We hebben u een e-mail gestuurd met verdere instructies.
Bezig met laden Een ogenblik geduld...

Geen betaalgegevens nodig

Accepteer onze marketingcookies om deze inhoud te bekijken.