Inkoopfacturen
Inkoopfacturen (van leveranciers) zijn te beheren via de controller 'creditinvoice'.
partpayment
Deze functie zal een deelbetaling verwerken. Komt het bedrag exact overeen met het openstaande bedrag, dan zal de factuur automatisch op betaald worden gezet.
Invoerparameters:
| Veldnaam | Waarde | Omschrijving |
|---|---|---|
| Identifier | int | De unieke ID van een inkoopfactuur |
| CreditInvoiceCode | string | Eigen interne inkoopfactuurnummer |
| AmountPaid | float | Het betaalde bedrag |
| PayDate | date | Datum van de deelbetaling |
| PaymentMethod | string | Betaalmethode van de deelbetaling, zie variabelen-lijst Standaard: bankoverschrijving |
Voorbeeld invoer:
$parameters = [
"CreditInvoiceCode" => "CF0002",
"AmountPaid" => 5
];
$api->sendRequest('creditinvoice', 'partpayment', $parameters);
Voorbeeld uitvoer:
Array
(
[controller] => creditinvoice
[action] => partpayment
[status] => success
[date] => 2024-01-21T12:00:00+02:00
[success] => Array
(
[0] => Deelbetaling bij factuur INV123456 is verwerkt
)
[creditinvoice] => Array
(
[Identifier] => 1
[CreditInvoiceCode] => CF0002
[InvoiceCode] => INV123456
[Creditor] => 1
[CreditorCode] => CD50000
[Status] => 2
[SubStatus] =>
[AuthorisationStatus] =>
[Date] => 2023-11-22
[Term] => 14
[AmountExcl] => 300.00
[AmountIncl] => 363.00
[AmountPaid] => 5.00
[AmountOutstanding] => 358.00
[Authorisation] => no
[PayDate] =>
[PaymentMethod] => wire
[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] => 2024-01-21 11:00:00
[Modified] => 2024-01-21 11:00:00
[Attachments] => Array
(
)
[Translations] => Array
(
[Status] => Deels betaald
[PaymentMethod] => Bankoverschrijving
)
)
)