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

Customer Bundle Schema

ID del esquema
customer_bundle
Colección
customer_bundles
Permisos
  • Leercustomer_bundle_view
  • Crearcustomer_bundle_create
  • Modificarcustomer_bundle_edit
  • Eliminarcustomer_bundle_delete
Relaciones

Campos

Customer Bundle Schema

customer_bundles4 permisos

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

bundleNumberstringopcional

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

máx. 200 caracteresValor por defecto: nullsolo lecturaadmite null
namestringobligatorio

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

1–300 caracteres
descriptionstringopcional

Bundle description visible internally

máx. 4000 caracteresValor por defecto: nulladmite null
shortDescriptionstringopcional

Short description shown on shop cards and list views

máx. 500 caracteresValor por defecto: nulladmite null
descriptionHtmlstringopcional

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

Valor por defecto: nulladmite null
partyIduuidobligatorio

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

solo lectura
partyNamestringopcional

Denormalized customer name for list-view perf

máx. 300 caracteresValor por defecto: nulladmite null
availableForPartyIdsuuid[]opcional

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

Valor por defecto: []
visibleToAllCustomersbooleanopcional

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

Valor por defecto: false
ownerHistoryobject[]opcional

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.

Valor por defecto: []solo lectura
fromPartyIduuidobligatorio
fromPartyNamestringopcional
máx. 300 caracteresValor por defecto: nulladmite null
toPartyIduuidobligatorio
toPartyNamestringopcional
máx. 300 caracteresValor por defecto: nulladmite null
reasonstringobligatorio
3–500 caracteres
changedAtdatetimeobligatorio
changedByuuidobligatorio
changedByNamestringopcional
máx. 300 caracteresValor por defecto: nulladmite null
statusstringopcional

Bundle lifecycle state

DRAFTACTIVEEXPIREDCANCELLED
Valor por defecto: "DRAFT"
validFromdateopcional

Bundle valid from (YYYY-MM-DD)

Valor por defecto: nulladmite null
validUntildateopcional

Bundle valid until (YYYY-MM-DD)

Valor por defecto: nulladmite null
availableInShopbooleanopcional

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

Valor por defecto: false
imageFileIdsuuid[]opcional

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

Valor por defecto: []
attachmentFileIdsuuid[]opcional

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

Valor por defecto: []
bundleItemsobject[]opcional

The articles bundled together for this customer

Valor por defecto: []
iduuidobligatorio
articleIduuidobligatorio

Referenced article UUID

articleNamestringopcional

Denormalized article name (snapshot at add time)

máx. 300 caracteresValor por defecto: nulladmite null
articleNumberstringopcional

Denormalized article number

máx. 200 caracteresValor por defecto: nulladmite null
quantitystringopcional

Quantity of this article in the bundle

PatrónValor por defecto: "1"
unitPriceOverridestringopcional

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

PatrónValor por defecto: nulladmite null
discountPercentstringopcional

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

PatrónValor por defecto: nulladmite null
notestringopcional

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

máx. 1000 caracteresValor por defecto: nulladmite null
positionNumberintegerobligatorio

Display order within the bundle

≥ 0
markupPercentstringopcional

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

PatrónValor por defecto: nulladmite null
markupAmountstringopcional

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

PatrónValor por defecto: nulladmite null
priceOnRequestbooleanopcional

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.

Valor por defecto: false
sourceTemplateArticleIdstringopcional

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

PatrónValor por defecto: nulladmite null
contractIdstringopcional

Optional FK to the contract this bundle is contracted under

PatrónValor por defecto: nulladmite null
salesOrderIdstringopcional

Optional FK to the sales order that created this bundle

PatrónValor por defecto: nulladmite null
internalNotestringopcional

Internal note (not visible in customer portal)

máx. 4000 caracteresValor por defecto: nulladmite null
tagsstring[]opcional

Tags for categorization

Valor por defecto: []

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

Búsqueda