gohighlevel-php-sdk

Products Api

$client = GoHighLevel::client($access_token,'2021-07-28')->products();

Get Product by ID


    $productId = '6578278e879ad2646715ba9c';
    $data = $client->get($productId, [
        //parameters
    ]);

Delete Product by ID


    $productId = '6578278e879ad2646715ba9c';
    $data = $client->delete($productId, [
        //parameters
    ]);

Update Product by ID


    $productId = '6578278e879ad2646715ba9c';
    $data = $client->update($productId, [
        //parameters
    ]);

Create Product


    $data = $client->create([
        //parameters
    ]);

List Products


    $data = $client->list($locationId, [
        //parameters
    ]);

Products Prices Api


    $price = $client->price();

Create Price for a Product


    $data = $price->create($productId, [
        //parameters
    ]);

List Prices for a Product


    $data = $price->list($productId, $locationId, [
        //parameters
    ]);

Get Price by ID for a Product


    $data = $price->get($productId, $priceId, [
        //parameters
    ]);

Update Price by ID for a Product


    $data = $price->update($productId, $priceId, [
        //parameters
    ]);

Delete Price by ID for a Product


    $data = $price->delete($productId, $priceId, [
        //parameters
    ]);