TMF622 Product Ordering Management
| Property | Value |
|---|---|
| Base path | /tmf-api/productOrderingManagement/v5 |
| Native source | POST /carts/{id}/order, Orders and lifecycle reads |
| Native scopes | commerce.order.create, lifecycle.order.read, lifecycle.order.update |
A Nambikk order is always created from a priced or approved quote. The order
is decomposed in the same transaction into Subscriptions, Services and
Deliverables, so a ProductOrder is complete as soon as it is acknowledged.
Resource: ProductOrder
| TMF attribute | Native source | Notes |
|---|---|---|
id | order id | |
externalId | customerReference and orderNumber | ExternalIdentifier entries. |
state | order status | See lifecycle. |
orderDate | createdAt | |
completionDate | time of COMPLETED | |
requestedStartDate | none | Only when the catalogue defines an activation-date attribute. |
category | orderType | NEW_SALE, SUBSCRIPTION_CHANGE, NON_COMMERCIAL_CHANGE. |
quote | sourceCartId | QuoteRef |
channel | Catalogue View code | ChannelRef |
relatedParty | account and primary contact | |
note | order note | |
orderTotalPrice | order totals | |
productOrderItem | source quote items | Native orders have no separate lines; items are read from the source quote. |
@type | ProductOrder |
ProductOrderItem
| TMF attribute | Native source |
|---|---|
id | source quote item id |
action | item action: add, modify, delete, noChange |
quantity | quantity |
state | status of the Services and Deliverables created from the item |
productOffering | product code |
product | the TMF637 product created or changed: Subscription, Service or Deliverable (ProductRefOrValue) |
quoteItem | source quote item (QuoteItemRef) |
itemPrice, itemTotalPrice | item charges |
productOrderItem | child items for Package and Solution components |
productOrderItemRelationship | parent item and add-on links |
Deliverables, for example installation or shipment, are TMF637 products of
type NambikkDeliverableProduct. The order item that created them refers to
them as its product, and its state includes their progress.
Lifecycle
| Native status | TMF state |
|---|---|
CREATED | acknowledged |
IN_PROGRESS | inProgress |
PARTIALLY_COMPLETED | partial |
COMPLETED | completed |
FAILED | failed |
CANCELLED | cancelled |
TMF622 draft, rejected, held, pending, inProgress.accepted,
assessingCancellation and pendingCancellation are not used, and
requestedInitialState is always acknowledged. A request Nambikk refuses is never stored,
so it returns an error instead of a rejected order.
Operations
| Operation | Path | Native calls | Support |
|---|---|---|---|
| Create order from a quote | POST /productOrder with quote | POST /carts/{id}/validate (PRE_ACCEPT), POST /carts/{id}/order | Supported |
| Create order without a quote | POST /productOrder with items only | Quote created, configured and priced first, then ordered | Supported: when no approval is needed |
| Change installed products | POST /productOrder with modify, delete or noChange items | POST /subscriptions/{id}/changes, item commands, price, order | Supported: when no approval is needed; otherwise use a change quote |
| List orders | GET /productOrder | GET /orders (account, status, cursor) | Supported |
| Retrieve order | GET /productOrder/{id} | GET /orders/{id}, source quote items | Supported |
| Update order | PATCH /productOrder/{id} | PATCH /orders/{id} for approved lifecycle fields | Supported: lifecycle fields |
| Amend an open order | PATCH /productOrder/{id} with item changes | POST /orders/{id}/amendments, then quote commands and order | Not offered as PATCH; offered as a change quote |
| Delete order | DELETE /productOrder/{id} | none | Not offered |
| Cancel order | POST /cancelProductOrder | native order cancellation, before the point of no return | Supported |
Notifications
| Event | Native event | Support |
|---|---|---|
ProductOrderCreateEvent | order.created | Supported |
ProductOrderStateChangeEvent | order.changed with a status change | Supported |
ProductOrderAttributeValueChangeEvent | order.changed, deliverable.changed | Supported |
ProductOrderDeleteEvent | none | Not offered |
ProductOrderInformationRequiredEvent | none | Not offered |
CancelProductOrderCreateEvent, CancelProductOrderStateChangeEvent | order.changed with a cancellation | Supported |
ProductOrderErrorMessageEvent, ProductOrderJeopardyAlertEvent, ProductOrderMilestoneEvent | none | Not offered: fulfilment milestones are not tracked natively |
Known differences
- An order that needs approval must go through TMF648 first;
POST /productOrderwithout a quote cannot wait for an approver. - A price change between quote and order (
PRICE_CHANGED) returns an error; the client reprices the quote and orders again. - Order amendment is modelled as a change quote because the native amendment is re-priced and re-validated like any quote.