API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · wholesale_pricings

Wholesale Pricing Schema

ID du schéma
wholesale_pricing
Collection
wholesale_pricings
Autorisations
  • Lirewholesale_pricing_edit
  • Créerwholesale_pricing_create
  • Modifierwholesale_pricing_edit
  • Supprimerwholesale_pricing_delete

Champs

Wholesale Pricing Schema

wholesale_pricings4 autorisations

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

customerTenantIdstringfacultatif

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

MotifPar défaut : nullnullable
defaultMarkupPercentnumberfacultatif

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

0 – 1000Par défaut : nullnullable
moduleOverridesobjectfacultatif

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

Par défaut : {}
tierOverridesobjectfacultatif

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.

Par défaut : {}
essentialintegerfacultatif
≥ 0
prointegerfacultatif
≥ 0
premiumintegerfacultatif
≥ 0
tierMarkupPercentnumberfacultatif

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 – 1000Par défaut : nullnullable
vatRatestringfacultatif

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).

Par défaut : "19"
reverseChargebooleanfacultatif

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.

Par défaut : false
currencystringfacultatif

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.

max. 3 caractèresPar défaut : "EUR"
paymentTermsDaysintegerfacultatif

Default payment terms (days) for generated wholesale invoices.

0 – 365Par défaut : 14
introTextstringfacultatif

Optional intro text written above invoice positions.

max. 2000 caractèresPar défaut : nullnullable
closingTextstringfacultatif

Optional closing text written below invoice positions.

max. 2000 caractèresPar défaut : nullnullable
notesstringfacultatif
max. 2000 caractèresPar défaut : nullnullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/wholesale_pricings — Liste, paginée et filtrable
  • GET /api/v1/wholesale_pricings/<id> — Une entité
  • POST /api/v1/wholesale_pricings — Créer
  • PATCH /api/v1/wholesale_pricings/<id> — Mise à jour partielle
  • DELETE /api/v1/wholesale_pricings/<id> — Suppression logique
  • GET /api/v1/wholesale_pricings/<id>/timeline — Audit et activités

Recherche