Logotipo Hedhog

Get Hedhog updates in your inbox

New releases, fresh recipes, and breaking changes — no spam.

commerce Submodule

catalog

Sellable catalog management across products, plans, prices, and feature assignment.

Source path: libraries/commerce/src/commerce-products.controller.ts, commerce-plans.controller.ts, commerce-prices.controller.ts, commerce-features.controller.ts

Module file: commerce.module.ts

Introduction

The Catalog submodule groups the administrative surfaces that define what can be sold: products, plans, plan versions, prices, and reusable features. Products represent the commercial objects; plans and plan versions capture recurring packaging; prices define money-facing terms; and features are assignable capabilities tied to plan versions.

This part of Commerce is mostly admin-facing and version-driven. In particular, plans expose explicit versioning and publish/archive/duplicate actions instead of editing a single mutable record in place.

HTTP Endpoints

29 endpoints

List products.

Get one product.

Params
id (int)

Create a product.

Update a product.

Params
id (int)

Delete a product.

Params
id (int)

Archive a product.

Params
id (int)

Restore an archived product.

Params
id (int)

List plans.

Get one plan.

Params
id (int)

List plan versions.

Params
id (int)

Create a plan version.

Params
id (int)

Update a plan version.

Params
id (int), versionId (int)

Publish a plan version.

Params
id (int), versionId (int)

Archive a plan version.

Params
id (int), versionId (int)

Duplicate a plan version.

Params
id (int), versionId (int)

List prices.

Get one price.

Params
id (int)

Create a price.

Update a price.

Params
id (int)

Archive a price.

Params
id (int)

Duplicate a price.

Params
id (int)

Retire a price.

Params
id (int)

List features.

Get one feature.

Params
id (int)

Create a feature.

Update a feature.

Params
id (int)

Delete a feature.

Params
id (int)

List features assigned to a plan version.

Params
id (int)

Replace the feature set of a plan version.

Params
id (int)