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

Customer Bundle Schema

Schema-ID
customer_bundle
Collection
customer_bundles
Permissions
  • Lezencustomer_bundle_view
  • Aanmakencustomer_bundle_create
  • Wijzigencustomer_bundle_edit
  • Verwijderencustomer_bundle_delete
Relaties

Velden

Customer Bundle Schema

customer_bundles4 permissions

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

bundleNumberstringoptioneel

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

max. 200 tekensDefault: nullread-onlynullable
namestringvereist

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

1–300 tekens
descriptionstringoptioneel

Bundle description visible internally

max. 4000 tekensDefault: nullnullable
shortDescriptionstringoptioneel

Short description shown on shop cards and list views

max. 500 tekensDefault: nullnullable
descriptionHtmlstringoptioneel

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

Default: nullnullable
partyIduuidvereist

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

read-only
partyNamestringoptioneel

Denormalized customer name for list-view perf

max. 300 tekensDefault: nullnullable
availableForPartyIdsuuid[]optioneel

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

Default: []
visibleToAllCustomersbooleanoptioneel

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

Default: false
ownerHistoryobject[]optioneel

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.

Default: []read-only
fromPartyIduuidvereist
fromPartyNamestringoptioneel
max. 300 tekensDefault: nullnullable
toPartyIduuidvereist
toPartyNamestringoptioneel
max. 300 tekensDefault: nullnullable
reasonstringvereist
3–500 tekens
changedAtdatetimevereist
changedByuuidvereist
changedByNamestringoptioneel
max. 300 tekensDefault: nullnullable
statusstringoptioneel

Bundle lifecycle state

DRAFTACTIVEEXPIREDCANCELLED
Default: "DRAFT"
validFromdateoptioneel

Bundle valid from (YYYY-MM-DD)

Default: nullnullable
validUntildateoptioneel

Bundle valid until (YYYY-MM-DD)

Default: nullnullable
availableInShopbooleanoptioneel

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

Default: false
imageFileIdsuuid[]optioneel

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

Default: []
attachmentFileIdsuuid[]optioneel

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

Default: []
bundleItemsobject[]optioneel

The articles bundled together for this customer

Default: []
iduuidvereist
articleIduuidvereist

Referenced article UUID

articleNamestringoptioneel

Denormalized article name (snapshot at add time)

max. 300 tekensDefault: nullnullable
articleNumberstringoptioneel

Denormalized article number

max. 200 tekensDefault: nullnullable
quantitystringoptioneel

Quantity of this article in the bundle

PatternDefault: "1"
unitPriceOverridestringoptioneel

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

PatternDefault: nullnullable
discountPercentstringoptioneel

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

PatternDefault: nullnullable
notestringoptioneel

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

max. 1000 tekensDefault: nullnullable
positionNumberintegervereist

Display order within the bundle

≥ 0
markupPercentstringoptioneel

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

PatternDefault: nullnullable
markupAmountstringoptioneel

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

PatternDefault: nullnullable
priceOnRequestbooleanoptioneel

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.

Default: false
sourceTemplateArticleIdstringoptioneel

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

PatternDefault: nullnullable
contractIdstringoptioneel

Optional FK to the contract this bundle is contracted under

PatternDefault: nullnullable
salesOrderIdstringoptioneel

Optional FK to the sales order that created this bundle

PatternDefault: nullnullable
internalNotestringoptioneel

Internal note (not visible in customer portal)

max. 4000 tekensDefault: nullnullable
tagsstring[]optioneel

Tags for categorization

Default: []

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

Zoeken