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

Party Product Schema

ID du schéma
party_product
Collection
party_products
Autorisations
  • Lireparty_product_view
  • Créerparty_product_create
  • Modifierparty_product_edit
  • Supprimerparty_product_delete

Champs

Party Product Schema

party_products4 autorisations

Schema for tracking which products/services a customer (party) is using

partyIduuidobligatoire

Customer party UUID

productIduuidobligatoire

Product UUID

articleIduuidfacultatif

Specific article (optional, for granular tracking)

nullable
statusstringobligatoire

Current status of this product assignment

ACTIVETRIALPENDINGCHURNEDPAUSED
monthlyRevenuestringfacultatif

Monthly recurring revenue for this product (Decimal128 as string)

Motifnullable
billingIntervalstringfacultatif

Billing interval

MONTHLYQUARTERLYSEMI_ANNUALYEARLY
nullable
quantitynumberfacultatif

Number of seats / licenses / units

≥ 1nullable
contractStartdatefacultatif

Contract start date (YYYY-MM-DD)

nullable
contractEnddatefacultatif

Contract end date (YYYY-MM-DD)

nullable
contractIduuidfacultatif

Linked contract UUID

nullable
churnProbabilitynumberfacultatif

Churn probability in percent (0 = very sticky, 100 = will churn)

0 – 100nullable
churnReasonstringfacultatif

Reason / risk factors for potential churn

max. 2000 caractèresnullable
churnRiskLevelstringfacultatif

Churn risk classification

LOWMEDIUMHIGHCRITICAL
nullable
lastReviewedAtdatetimefacultatif

Last time churn risk was reviewed

nullable
firstInvoiceAtdatefacultatif

Date of the first invoice that referenced this article (YYYY-MM-DD)

nullable
lastInvoiceAtdatefacultatif

Date of the most recent invoice that referenced this article

nullable
lastInvoiceIduuidfacultatif

Most recent invoice UUID

nullable
lifetimeRevenuestringfacultatif

Total net revenue from this article across all invoices

Motifnullable
invoiceCountintegerfacultatif

Number of invoices billing this article

≥ 0nullable
notesstringfacultatif

Internal notes

max. 4000 caractèresnullable
tagsstring[]facultatif

Tags

Par défaut : []nullable

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

Recherche