HostFact API versie 3.1
Facturen
Facturen zijn te beheren via de controller 'invoice'.
delete
Middels deze functie kunt u een conceptfactuur verwijderen. Indien het geen conceptfactuur is kan deze functie niet gebruikt worden, zie hiervoor functie 'credit'.
Voorbeeldbestand: /voorbeelden/invoice/invoice.delete.php
Invoerparameters:
Veldnaam | Waarde | Omschrijving |
---|---|---|
Identifier | int | De unieke ID van een factuur |
InvoiceCode | string | Het factuurnummer |
Voorbeeld invoer:
<?php require_once("../hostfact_api.php"); $api = new HostFactAPI(); $invoiceParams = array( 'Identifier' => '1' ); $response = $api->sendRequest('invoice', 'delete', $invoiceParams); print_r_pre($response); ?>
Voorbeeld uitvoer:
Array ( [controller] => invoice [action] => delete [status] => success [date] => 2022-11-24T12:00:00+02:00 [success] => Array ( [0] => Factuur [concept]0001 is verwijderd ) )