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

Customer Bundle Schema

ID du schéma
customer_bundle
Collection
customer_bundles
Autorisations
  • Lirecustomer_bundle_view
  • Créercustomer_bundle_create
  • Modifiercustomer_bundle_edit
  • Supprimercustomer_bundle_delete
Relations

Champs

Customer Bundle Schema

customer_bundles4 autorisations

A named, customer-owned collection of articles. Lets MSPs see at a glance which articles are bundled for customer A vs. customer B.

bundleNumberstringfacultatif

Auto-generated sequence (e.g. PKG-2026-00042). Server-set, read-only.

max. 200 caractèresPar défaut : nulllecture seulenullable
namestringobligatoire

Bundle name (e.g. "Müller-IT-Setup", "Backup-Plus 2026")

1–300 caractères
descriptionstringfacultatif

Bundle description visible internally

max. 4000 caractèresPar défaut : nullnullable
shortDescriptionstringfacultatif

Short description shown on shop cards and list views

max. 500 caractèresPar défaut : nullnullable
descriptionHtmlstringfacultatif

Rich marketing description (sanitized HTML) for the customer portal product page

Par défaut : nullnullable
partyIduuidobligatoire

Customer (party) the bundle belongs to (primary owner)

lecture seule
partyNamestringfacultatif

Denormalized customer name for list-view perf

max. 300 caractèresPar défaut : nullnullable
availableForPartyIdsuuid[]facultatif

Additional parties that see this bundle in the customer-portal shop. Owner partyId is implicit; empty list = only owner.

Par défaut : []
visibleToAllCustomersbooleanfacultatif

When true, every customer with shop access sees this bundle — overrides the per-party `availableForPartyIds` filter. Use for catalog/teaser bundles.

Par défaut : false
ownerHistoryobject[]facultatif

Append-only audit log of every owner reassignment. Each entry captures who reassigned the bundle from which customer to which, when, and why. Written exclusively by POST /customer_bundles/:id/reassign-owner — direct PATCHes do not append.

Par défaut : []lecture seule
fromPartyIduuidobligatoire
fromPartyNamestringfacultatif
max. 300 caractèresPar défaut : nullnullable
toPartyIduuidobligatoire
toPartyNamestringfacultatif
max. 300 caractèresPar défaut : nullnullable
reasonstringobligatoire
3–500 caractères
changedAtdatetimeobligatoire
changedByuuidobligatoire
changedByNamestringfacultatif
max. 300 caractèresPar défaut : nullnullable
statusstringfacultatif

Bundle lifecycle state

DRAFTACTIVEEXPIREDCANCELLED
Par défaut : "DRAFT"
validFromdatefacultatif

Bundle valid from (YYYY-MM-DD)

Par défaut : nullnullable
validUntildatefacultatif

Bundle valid until (YYYY-MM-DD)

Par défaut : nullnullable
availableInShopbooleanfacultatif

When true, the bundle appears in the customer-portal shop for the owner party (and any party in availableForPartyIds).

Par défaut : false
imageFileIdsuuid[]facultatif

Image gallery (resolved via /api/v1/files/{fileId}/download-url). First entry is the hero/cover image.

Par défaut : []
attachmentFileIdsuuid[]facultatif

Non-image attachments (datasheets, brochures, …) shown on the shop detail page

Par défaut : []
bundleItemsobject[]facultatif

The articles bundled together for this customer

Par défaut : []
iduuidobligatoire
articleIduuidobligatoire

Referenced article UUID

articleNamestringfacultatif

Denormalized article name (snapshot at add time)

max. 300 caractèresPar défaut : nullnullable
articleNumberstringfacultatif

Denormalized article number

max. 200 caractèresPar défaut : nullnullable
quantitystringfacultatif

Quantity of this article in the bundle

MotifPar défaut : "1"
unitPriceOverridestringfacultatif

Override the article default price for this customer (gross or net depending on tenant config)

MotifPar défaut : nullnullable
discountPercentstringfacultatif

Optional line-level discount percentage (0..100)

MotifPar défaut : nullnullable
notestringfacultatif

Free-text note for this line (e.g. installation context)

max. 1000 caractèresPar défaut : nullnullable
positionNumberintegerobligatoire

Display order within the bundle

≥ 0
markupPercentstringfacultatif

Optional bundle-level markup applied as a percentage of the line subtotal (0..100). Stacks with markupAmount.

MotifPar défaut : nullnullable
markupAmountstringfacultatif

Optional bundle-level flat-fee surcharge added on top of the line subtotal (and after markupPercent).

MotifPar défaut : nullnullable
priceOnRequestbooleanfacultatif

When true, the customer-portal shop hides the resolved package price and shows "Preis auf Anfrage" with an "Angebot anfragen" CTA, regardless of the computed line/markup total. Bundle orders then route to inquiry mode (opportunity/LEAD). Mirrors article.priceOnRequest for high-touch B2B packages negotiated per customer.

Par défaut : false
sourceTemplateArticleIdstringfacultatif

Optional FK to a SALES_BILL_OF_MATERIAL article that was used as a template to seed bundleItems

MotifPar défaut : nullnullable
contractIdstringfacultatif

Optional FK to the contract this bundle is contracted under

MotifPar défaut : nullnullable
salesOrderIdstringfacultatif

Optional FK to the sales order that created this bundle

MotifPar défaut : nullnullable
internalNotestringfacultatif

Internal note (not visible in customer portal)

max. 4000 caractèresPar défaut : nullnullable
tagsstring[]facultatif

Tags for categorization

Par défaut : []

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

Recherche