Skip to content

Settings — Catalog services (modules)

The Services tab under Settings (?section=services) lists and edits service_configurations rows exposed by the Catalog API (GET / POST / PUT / DELETE under /api/catalog/services). At most one configuration may exist per shared ServiceType enum value.

UI behaviour

  • Create: The wizard only offers enum values that do not already have a row on the Identity step. If every enum value is configured, the sidebar Create action is disabled.
  • Edit: ServiceType is immutable; its selector is hidden. The PUT body follows the update schema (no service field).
  • Price: The form uses MXN pesos; the client converts to integer cents (Math.round(pesos * 100)) before the API call, matching the backend price contract.
  • Active vs presale: The API field isEnabled drives visibility; the UI labels active modules vs presale (inactive in catalog).
  • Deactivate / reactivate: From each card’s menu, Desactivar or Reactivar sends a partial PUT with { "isEnabled": false | true } only. The row stays in the database; this is not deletion. Eliminar still calls DELETE and removes the configuration entirely.

Panel routes

  • Navigation: Settings → Services sub-tab (section=services via nuqs on the settings view).

API reference

See Service configuration management for routes, Zod validation, and structured error codes.