TMF637 Product Inventory Management
| Property | Value |
|---|---|
| Release | 5.0.0 |
| Base path | /tmf-api/productInventoryManagement/v5 |
| Native source | Subscriptions, Services and Deliverables |
| Native scopes | lifecycle.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 record | TMF637 @type | What it is |
|---|---|---|
| Subscription | NambikkSubscriptionProduct | The sold context: a standalone product, a Package or a Solution. Root of its products. |
| Service | NambikkServiceProduct | An ongoing product inside a subscription, for example a fibre line, a managed router or one SIM. |
| Deliverable | NambikkDeliverableProduct | A 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
idis 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
NambikkServiceProductsubtype, each with its own native service id, dates and attributes. - A
modifyordeleteorder 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 attribute | Subscription | Service | Deliverable |
|---|---|---|---|
id | subscription id | service lineage id | deliverable id |
name | name | name | name |
isBundle | true for PACKAGE and SOLUTION | false | false |
status | status | status of the current generation | status |
productOffering | offering of the root quote item | product code | product code |
productCharacteristic | none | common and unit attributes | common and unit attributes |
product | child Services | none | none |
productRelationship | none | parent Service; its Deliverables | the Service it belongs to (relatedServiceId) |
productOrderItem | creating order and item | order and item of each generation | creating order and item |
relatedParty | account | account | account |
productPrice | charges of the source quote items | charges of the source quote item | one-time charges of the source quote item |
startDate, terminationDate | from activity history | from activity history | from activity history |
productSerialNumber | none | none | serial number attribute, when the catalogue defines one |
realizingService | none | technical services held by fulfilment, from external references | none |
realizingResource | none | devices, SIMs or numbers held by resource inventory, from external references | delivered device, from external references |
@type, @baseType | NambikkSubscriptionProduct, Product | NambikkServiceProduct, Product | NambikkDeliverableProduct, 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 status | TMF status |
|---|---|
PENDING_ACTIVATION | pendingActive |
ACTIVE | active |
PARTIALLY_ACTIVE | active, with the native status in the subtype |
SUSPENDED | suspended |
TERMINATED | terminated |
CANCELLED | cancelled |
FAILED | aborted |
Deliverables:
| Native status | TMF status |
|---|---|
PENDING | created |
IN_PROGRESS | pendingActive |
COMPLETED | active |
FAILED | aborted |
CANCELLED | cancelled |
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
| Operation | Path | Native calls | Support |
|---|---|---|---|
| List products | GET /product | GET /subscriptions, GET /services, GET /deliverables (account, status, cursor); @type selects one kind | Supported |
| Retrieve product | GET /product/{id} | GET /subscriptions/{id}, GET /services/{id} or GET /deliverables/{id} | Supported |
| Update product | PATCH /product/{id} | PATCH /subscriptions/{id}, PATCH /services/{id}, PATCH /deliverables/{id} for status and fulfilment fields; PATCH /services/{id}/non-commercial-attributes for editable characteristics | Supported: commercial attributes change only through an order |
| Create product | POST /product | none | Not offered: products are created by orders |
| Delete product | DELETE /product/{id} | none | Not 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
| Event | Native event | Support |
|---|---|---|
ProductCreateEvent | order.created (new subscriptions, services and deliverables) | Supported |
ProductStateChangeEvent | subscription.changed, service.changed, deliverable.changed with a status change | Supported |
ProductAttributeValueChangeEvent | subscription.changed, service.changed, deliverable.changed | Supported |
ProductDeleteEvent | none | Not offered |
ProductProductBatchEvent (spelled so in v5) | none | Not offered |