For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retrieve all groups

Use the getProductGroups method to extract information about the product groups you created for your account.

Request parameters

Parameter
Type / Description

sessionID

Required (string) — Session identifier, the output of the Login method. Include sessionID into all your requests. 2Checkout throws an exception if the values are incorrect. The sessionID expires in 10 minutes.

Response parameters

Parameter
Type / Description

Array of objects

Request sample

<?php

require ('PATH_TO_AUTH');

try {
    $ProductGroups = $client->getProductGroups($sessionID);
}

catch (SoapFault $e) {
    echo "Product Groups: " . $e->getMessage();
    exit;
}

var_dump("ProductGroups", $ProductGroups);

?>

Last updated

Was this helpful?