Logotipo Hedhog

Get Hedhog updates in your inbox

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

commerce Submodule

operations-integrations

Dashboards, gateway administration, migrations, webhook processing, and event replay tooling.

Source path: libraries/commerce/src/commerce-dashboard.controller.ts, commerce-gateways.controller.ts, commerce-migrations.controller.ts, commerce-webhooks.controller.ts

Module file: commerce.module.ts

Introduction

The last Commerce area is the operator toolbox: dashboard analytics, gateway registration, data migrations, and webhook/event processing. This is the part of the module most tied to payment-provider integration and operational support.

Webhook events are stored and replayable, which is important for recovering from transient processing failures or reconciling gateway state with internal order/payment state.

HTTP Endpoints

20 endpoints

Return high-level commerce dashboard KPIs.

Return revenue dashboard data.

Return subscription dashboard data.

List latest orders for dashboard views.

List latest payments for dashboard views.

List problematic subscriptions.

List recent webhook events.

List configured gateways.

Create/configure a gateway.

List commerce migrations.

Get one migration.

Params
id (int)

Create a migration task.

Apply a migration.

Params
id (int)

Cancel a migration.

Params
id (int)

List stored webhook events.

Get one webhook event.

Params
id (int)

Replay a stored webhook event.

Params
id (int)

Receive Mercado Pago webhook callbacks.

Receive Stripe webhook callbacks.

Auto-configure webhook wiring.