HostFact API versie 3.1
Facturen
Facturen zijn te beheren via de controller 'invoice'.
paymentprocessreactivate
Middels deze functie kunt u het betalingstraject heractiveren. Deze functie is alleen te gebruiken bij een factuur met de substatus "PAUSED".
Voorbeeldbestand: /voorbeelden/invoice/invoice.paymentprocessreactivate.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(
'InvoiceCode' => 'F0002'
);
$response = $api->sendRequest('invoice', 'paymentprocessreactivate', $invoiceParams);
print_r_pre($response);
?>Voorbeeld uitvoer:
Array
(
[controller] => invoice
[action] => paymentprocessreactivate
[status] => success
[date] => 2022-11-24T12:00:00+02:00
[success] => Array
(
[0] => Betalingstraject voor factuur F0002 is geactiveerd
)
)