API · v1 · estable
CODEMETA OSDeveloper Center
ES
Abrir la consola
Entidad · wholesale_pricings

Wholesale Pricing Schema

ID del esquema
wholesale_pricing
Colección
wholesale_pricings
Permisos
  • Leerwholesale_pricing_edit
  • Crearwholesale_pricing_create
  • Modificarwholesale_pricing_edit
  • Eliminarwholesale_pricing_delete

Campos

Wholesale Pricing Schema

wholesale_pricings4 permisos

MSP resell-pricing config for wholesale customer-tenants. One default per MSP (customerTenantId=null) plus optional per-customer overrides.

customerTenantIdstringopcional

Customer tenant this pricing applies to. null = default config for all wholesale customers of the MSP.

PatrónValor por defecto: nulladmite null
defaultMarkupPercentnumberopcional

Markup applied on top of Codemeta wholesale price (e.g. 50 = +50%). Used for any module without an explicit override.

0 – 1000Valor por defecto: nulladmite null
moduleOverridesobjectopcional

Per-module explicit unit-price overrides in EUR cents. Keyed by module id (e.g. "ticketing").

Valor por defecto: {}
tierOverridesobjectopcional

Per-tier explicit unit-price overrides in EUR cents. Used when the customer-tenant subscription holds a `tier` instead of (or in addition to) `enabledModules`. Free tier is intentionally excluded.

Valor por defecto: {}
essentialintegeropcional
≥ 0
prointegeropcional
≥ 0
premiumintegeropcional
≥ 0
tierMarkupPercentnumberopcional

Markup applied on top of the Codemeta wholesale tier price (TIER_WHOLESALE_PRICING). Falls back to defaultMarkupPercent when null. Keep separate from defaultMarkupPercent so MSPs can mark up bundles differently from individual modules.

0 – 1000Valor por defecto: nulladmite null
vatRatestringopcional

VAT rate (percent string) applied to generated wholesale invoices. Set to "0" together with reverseCharge=true for cross-border EU B2B (recipient owes the VAT).

Valor por defecto: "19"
reverseChargebooleanopcional

EU B2B reverse-charge mechanism. When true, vatAmount is forced to 0 and a "Reverse Charge — recipient liable for VAT (§13b UStG / Art. 196 MwStSystRL)" notice is appended to the invoice closingText.

Valor por defecto: false
currencystringopcional

ISO 4217 currency code for invoices generated from this config (e.g. EUR, CHF, GBP). Must match the currency of the configured Stripe wholesale prices for the same MSP.

máx. 3 caracteresValor por defecto: "EUR"
paymentTermsDaysintegeropcional

Default payment terms (days) for generated wholesale invoices.

0 – 365Valor por defecto: 14
introTextstringopcional

Optional intro text written above invoice positions.

máx. 2000 caracteresValor por defecto: nulladmite null
closingTextstringopcional

Optional closing text written below invoice positions.

máx. 2000 caracteresValor por defecto: nulladmite null
notesstringopcional
máx. 2000 caracteresValor por defecto: nulladmite null

Endpoints estándar

Este recurso sigue el contrato CRUD genérico de la plataforma. Lea las convenciones sobre paginación, idempotencia, bloqueo optimista y auditoría. Los endpoints principales:

  • GET /api/v1/wholesale_pricings — Lista, paginada y filtrable
  • GET /api/v1/wholesale_pricings/<id> — Una entidad
  • POST /api/v1/wholesale_pricings — Crear
  • PATCH /api/v1/wholesale_pricings/<id> — Actualización parcial
  • DELETE /api/v1/wholesale_pricings/<id> — Eliminación lógica
  • GET /api/v1/wholesale_pricings/<id>/timeline — Auditoría y actividades

Búsqueda