HostFact API versie 3.1
Producten
Producten zijn te beheren via de controller 'product'.
show
Middels deze functie kunt u meer informatie over een product ophalen.
Voorbeeldbestand: /voorbeelden/product/product.show.php
Invoerparameters:
Veldnaam | Waarde | Omschrijving |
---|---|---|
Identifier | int | De unieke ID van een product |
ProductCode | string | Het productnummer |
Voorbeeld invoer:
<?php require_once("../hostfact_api.php"); $api = new HostFactAPI(); $productParams = array( 'ProductCode' => 'P001' ); $response = $api->sendRequest('product', 'show', $productParams); print_r_pre($response); ?>
Voorbeeld uitvoer:
Array ( [controller] => product [action] => show [status] => success [date] => 2022-11-24T12:00:00+02:00 [product] => Array ( [Identifier] => 3 [ProductCode] => P001 [ProductName] => Default [ProductKeyPhrase] => Default product [ProductDescription] => [NumberSuffix] => [PriceExcl] => 250 [PricePeriod] => [TaxPercentage] => 21 [Cost] => 0 [ProductType] => other [ProductTld] => [PackageID] => 0 [HasCustomPrice] => no [CustomPrices] => [Groups] => Array ( ) [Created] => 2022-11-24 11:00:00 [Modified] => 2022-11-24 11:00:00 [Translations] => Array ( [ProductType] => Algemeen [PricePeriod] => eenmalig ) ) )