HostFact API versie 3.1
Offertes
Offertes zijn te beheren via de controller 'pricequote'.
download
Middels deze functie kunt u de offerte in PDF downloaden. De PDF wordt als Base64 encoded string teruggegeven.
Voorbeeldbestand: /voorbeelden/pricequote/pricequote.download.php
Invoerparameters:
Veldnaam | Waarde | Omschrijving |
---|---|---|
Identifier | int | De unieke ID van een offerte |
PriceQuoteCode | string | Het offertenummer |
Voorbeeld invoer:
<?php require_once("../hostfact_api.php"); $api = new HostFactAPI(); $priceQuoteParams = array( 'PriceQuoteCode' => 'OF0001' ); $response = $api->sendRequest('pricequote', 'download', $priceQuoteParams); print_r_pre($response); ?>
Voorbeeld uitvoer:
Array ( [controller] => pricequote [action] => download [status] => success [date] => 2022-11-24T12:00:00+02:00 [pricequote] => Array ( [Filename] => Offerte_OF0001.pdf [Base64] => JVBERi0xLj...MKJSVFT0YK ) )