HostFact API versie 3.1



Bestelling

Bestellingen zijn te beheren via de controller 'order'.



process

Met behulp van deze functie is het mogelijk om een bestelling te behandelen/accepteren.
Voorbeeldbestand: /voorbeelden/order/order.process.php


Invoerparameters:
Veldnaam Waarde Omschrijving
Identifier int De unieke ID van een bestelling
OrderCode string Het bestelnummer
Verplichte velden: Identifier of OrderCode

Voorbeeld invoer:
<?php

require_once("../hostfact_api.php");

$api = new HostFactAPI();

$orderParams = array(
			'OrderCode' => 'B0001'
);

$response = $api->sendRequest('order', 'process', $orderParams);

print_r_pre($response);

?>

Voorbeeld uitvoer:
Array
(
    [controller] => order
    [action] => process
    [status] => success
    [date] => 2022-11-24T12:00:00+02:00
    [success] => Array
        (
            [0] => Bestelling B0001 is doorgezet
        )

)