API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen
Entity · wholesale_pricings

Wholesale Pricing Schema

Schema-ID
wholesale_pricing
Collection
wholesale_pricings
Permissions
  • Lezenwholesale_pricing_edit
  • Aanmakenwholesale_pricing_create
  • Wijzigenwholesale_pricing_edit
  • Verwijderenwholesale_pricing_delete

Velden

Wholesale Pricing Schema

wholesale_pricings4 permissions

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

customerTenantIdstringoptioneel

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

PatternDefault: nullnullable
defaultMarkupPercentnumberoptioneel

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

0 – 1000Default: nullnullable
moduleOverridesobjectoptioneel

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

Default: {}
tierOverridesobjectoptioneel

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.

Default: {}
essentialintegeroptioneel
≥ 0
prointegeroptioneel
≥ 0
premiumintegeroptioneel
≥ 0
tierMarkupPercentnumberoptioneel

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 – 1000Default: nullnullable
vatRatestringoptioneel

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

Default: "19"
reverseChargebooleanoptioneel

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.

Default: false
currencystringoptioneel

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 tekensDefault: "EUR"
paymentTermsDaysintegeroptioneel

Default payment terms (days) for generated wholesale invoices.

0 – 365Default: 14
introTextstringoptioneel

Optional intro text written above invoice positions.

max. 2000 tekensDefault: nullnullable
closingTextstringoptioneel

Optional closing text written below invoice positions.

max. 2000 tekensDefault: nullnullable
notesstringoptioneel
max. 2000 tekensDefault: nullnullable

Standaard-endpoints

Deze resource volgt het generieke CRUD-contract van het platform. Lees de conventies voor paginering, idempotentie, optimistic locking en audit. De belangrijkste endpoints:

  • GET /api/v1/wholesale_pricings — Lijst, gepagineerd + filterbaar
  • GET /api/v1/wholesale_pricings/<id> — Enkele entity
  • POST /api/v1/wholesale_pricings — Aanmaken
  • PATCH /api/v1/wholesale_pricings/<id> — Gedeeltelijke update
  • DELETE /api/v1/wholesale_pricings/<id> — Soft-delete
  • GET /api/v1/wholesale_pricings/<id>/timeline — Audit + activiteiten

Zoeken