Skip to main content

TMF637 Product Inventory Management

PropertyValue
Release5.0.0
Base path/tmf-api/productInventoryManagement/v5
Native sourceSubscriptions, Services and Deliverables
Native scopeslifecycle.subscription.read, lifecycle.service.read, lifecycle.deliverable.read, and the matching .update scopes

TMF637 is the customer's install base: every product instance the customer has bought. In Nambikk the install base is held as Subscriptions, Services and Deliverables. All three are TMF637 Product resources, told apart by @type.

Native recordTMF637 @typeWhat it is
SubscriptionNambikkSubscriptionProductThe sold context: a standalone product, a Package or a Solution. Root of its products.
ServiceNambikkServiceProductAn ongoing product inside a subscription, for example a fibre line, a managed router or one SIM.
DeliverableNambikkDeliverableProductA one-time product from an order, for example installation, a router shipment or number porting.

Each subtype has @baseType: "Product", so a client that only knows the standard Product reads all three.

Product identity across changes​

TM Forum expects a product to keep its id for its whole life. A later order changes or ends the product by referring to that id with action = modify or delete.

Natively, a commercial change does not edit an active Service in place. It creates a successor Service with a new id (replacesServiceId), and the earlier generation ends when the successor becomes active. To keep TM Forum ids stable:

  • A Service product's id is the service lineage id, shared by every generation of that service. GET /product/{id} returns the current generation: the active one, or the pending one before first activation.
  • Earlier generations are returned as history in the NambikkServiceProduct subtype, each with its own native service id, dates and attributes.
  • A modify or delete order item that refers to the lineage id changes the current generation.

Subscriptions and Deliverables are not replaced on change, so their native id is their product id.

Quantity strategy UNIT items already become one Service per unit natively, for example 1,000 SIMs become 1,000 Services. Each is its own TMF637 product with its own id, status and characteristics.

Resource: Product​

TMF attributeSubscriptionServiceDeliverable
idsubscription idservice lineage iddeliverable id
namenamenamename
isBundletrue for PACKAGE and SOLUTIONfalsefalse
statusstatusstatus of the current generationstatus
productOfferingoffering of the root quote itemproduct codeproduct code
productCharacteristicnonecommon and unit attributescommon and unit attributes
productchild Servicesnonenone
productRelationshipnoneparent Service; its Deliverablesthe Service it belongs to (relatedServiceId)
productOrderItemcreating order and itemorder and item of each generationcreating order and item
relatedPartyaccountaccountaccount
productPricecharges of the source quote itemscharges of the source quote itemone-time charges of the source quote item
startDate, terminationDatefrom activity historyfrom activity historyfrom activity history
productSerialNumbernonenoneserial number attribute, when the catalogue defines one
realizingServicenonetechnical services held by fulfilment, from external referencesnone
realizingResourcenonedevices, SIMs or numbers held by resource inventory, from external referencesdelivered device, from external references
@type, @baseTypeNambikkSubscriptionProduct, ProductNambikkServiceProduct, ProductNambikkDeliverableProduct, Product

productRelationship.relationshipType is a free string in the specification; Nambikk uses bundled for Subscription to Service and deliveredFor for a Deliverable to its Service.

Devices, SIMs and numbers as physical or logical resources belong to resource inventory (TMF639) in the systems that manage them. The commercial product links to them through realizingResource.

Lifecycle​

Subscriptions and Services:

Native statusTMF status
PENDING_ACTIVATIONpendingActive
ACTIVEactive
PARTIALLY_ACTIVEactive, with the native status in the subtype
SUSPENDEDsuspended
TERMINATEDterminated
CANCELLEDcancelled
FAILEDaborted

Deliverables:

Native statusTMF status
PENDINGcreated
IN_PROGRESSpendingActive
COMPLETEDactive
FAILEDaborted
CANCELLEDcancelled

The v5 specification spells aborted with a trailing space; Nambikk returns it exactly so. Every product also returns its native status in the subtype.

Operations​

OperationPathNative callsSupport
List productsGET /productGET /subscriptions, GET /services, GET /deliverables (account, status, cursor); @type selects one kindSupported
Retrieve productGET /product/{id}GET /subscriptions/{id}, GET /services/{id} or GET /deliverables/{id}Supported
Update productPATCH /product/{id}PATCH /subscriptions/{id}, PATCH /services/{id}, PATCH /deliverables/{id} for status and fulfilment fields; PATCH /services/{id}/non-commercial-attributes for editable characteristicsSupported: commercial attributes change only through an order
Create productPOST /productnoneNot offered: products are created by orders
Delete productDELETE /product/{id}noneNot offered: termination is a delete order item

Fulfilment systems report progress with PATCH /product/{id}, for example a Deliverable moving to active when the router is delivered, or a Service moving to active when the line is live. These run the native lifecycle status updates.

Notifications​

EventNative eventSupport
ProductCreateEventorder.created (new subscriptions, services and deliverables)Supported
ProductStateChangeEventsubscription.changed, service.changed, deliverable.changed with a status changeSupported
ProductAttributeValueChangeEventsubscription.changed, service.changed, deliverable.changedSupported
ProductDeleteEventnoneNot offered
ProductProductBatchEvent (spelled so in v5)noneNot offered