Groepen
Groepen zijn te beheren via de controller 'group'.
list
Middels deze functie kunt u een lijst met groepen ophalen van een specifiek type.
Invoerparameters:
| Veldnaam | Waarde | Omschrijving |
|---|---|---|
| offset | int | Standaard: 0 |
| limit | int | Standaard: 1000 |
| type | 'debtor' of 'product' | Type groep |
Voorbeeld invoer:
$parameters = [
"type" => "product"
];
$api->sendRequest('group', 'list', $parameters);
Voorbeeld uitvoer:
Array
(
[controller] => group
[action] => list
[status] => success
[date] => 2024-01-21T12:00:00+02:00
[totalresults] => 1
[currentresults] => 1
[offset] => 0
[filters] => Array
(
[type] => product
)
[groups] => Array
(
[0] => Array
(
[Identifier] => 1
[GroupName] => Consultancy
[Type] => product
[Items] => Array
(
)
)
)
)