Skip to content

Product

Bakhtarian edited this page May 14, 2026 · 1 revision

Product

A product is something a Whop company sells — the sellable entity that bundles access to experiences and is priced by one or more Plans. The SDK supports full CRUD on products.

SDK access

$client->products // Matchable\Whop\Resource\ProductResource

Endpoints

create(array $data): array

HTTP POST products
Does Creates a new product.
Parameters $data — product attributes (e.g. name, description, company ID).
Returns array

list(array $query = []): array

HTTP GET products
Does Lists products.
Parameters $query — optional filters / pagination.
Returns array

get(string $id): array

HTTP GET products/{id}
Does Retrieves a single product by ID.
Parameters $id — the product ID.
Returns array

update(string $id, array $data): array

HTTP PATCH products/{id}
Does Updates a product's attributes.
Parameters $id — the product ID; $data — fields to change.
Returns array

delete(string $id): array

HTTP DELETE products/{id}
Does Deletes a product.
Parameters $id — the product ID.
Returns array

Example

$product = $client->products->create([
    'name' => 'Pro Membership',
    'description' => 'Full access to all experiences.',
]);

$client->products->update($product['id'], ['name' => 'Pro Membership (2026)']);

Reference

Official Whop documentation: https://docs.whop.com

Clone this wiki locally