Inkoopfacturen
Inkoopfacturen (van leveranciers) zijn te beheren via de controller 'creditinvoice'.
list
Middels deze functie kunt u een lijst met inkoopfacturen ophalen die voldoen aan de meegegeven parameters.
Invoerparameters:
| Veldnaam | Waarde | Omschrijving |
|---|---|---|
| Identifier | string | Factuur status, zie variabelen-lijst |
| offset | int | Standaard: 0 |
| limit | int | Standaard: 1000 |
| sort | string | Standaard: CreditInvoiceCode |
| order | 'ASC' of 'DESC' | Standaard: DESC |
| searchat | string | Welke velden doorzocht moeten worden. Standaard: CreditInvoiceCode|InvoiceCode|CompanyName|SurName|Description |
| searchfor | string | Zoekterm |
| created | filter_datetime | Filtermogelijkheid op aanmaakdatum |
| modified | filter_datetime | Filtermogelijkheid op wijzigingsdatum |
Voorbeeld invoer:
$parameters = [
];
$api->sendRequest('creditinvoice', 'list', $parameters);
Voorbeeld uitvoer:
Array
(
[controller] => creditinvoice
[action] => list
[status] => success
[date] => 2024-01-21T12:00:00+02:00
[totalresults] => 1
[currentresults] => 1
[offset] => 0
[creditinvoices] => Array
(
[0] => Array
(
[Identifier] => 1
[CreditInvoiceCode] => CF0002
[InvoiceCode] => INV123456
[Creditor] => 1
[CompanyName] => Jan Janssen B.V.
[Initials] => Jan
[SurName] => Janssen
[Date] => 2023-11-22
[AmountExcl] => 300.00
[AmountIncl] => 363.00
[AmountPaid] => 0.00
[AmountOutstanding] => 363.00
[Currency] => EUR
[Term] => 14
[Authorisation] => no
[PayDate] =>
[PayBefore] => 2023-12-06
[Status] => 1
[SubStatus] =>
[Comment] => initial test comment
[Modified] => 2024-01-21 11:00:00
)
)
)