Hi Nagendra,
After you submitted an order and Order Management (OM) accepted it for order fulfillment, if you want to cancel the whole order or a few order line items within the order, you can send a cancellation request to the order management system if the order or order items have not passed PONR. Generarlly, CPQ system creates a supplemental order for canceling the order. When the cancellation is accepted by OM, the original order is superseded, and the supplemental order is canceled.
For the whole order, please check "Operations on Cancel Product Order". For OLIs please check "Patch product order", attributes: cancellationDate, cancellationReason, state (AssessingCancellation, ...) -> Following a cancel request, the SP is assessing if cancel can be done for the order/item (or if the PO has reached PONR). If cancellation request is not accepted after assessment the order will return in Held or Pending or InProgress state.
------------------------------
Santiago Lorente
Salesforce
------------------------------
Original Message:
Sent: Sep 26, 2024 09:39
From: Nagendra Kodavatikanti
Subject: Partial cancellation of TMF622 product order - Cancel of one producrOrderItem from productOrder
Hi Team
I am looking for a solution to partially cancel the productOrder via TMF622 API
My Use case is like
use case1
We have product Order consists of multiple orderitems for eg productOrderItem1 - which will be fulfilled in 1 day, productOrderItem2 which will be fulfilled in a 1 hr and productOrderItem3 which will be fulfilled in 10 days
After the order gets placed today, by tomorrow (as per fulfilment times mentioned above) productOrderItem1 and productOrderItem2 would have completed, but ProductOrderItem3 is still in progress, and if customer want to cancel the productOrderItem3 which is still in progress, how can we achieve this via TMF622 APIs
use case 2
ProductOrder has 3 ProductOrderItems, POI1 with product.startDate as today, POI2 with product.startDate as today and for POI3 product.startDate as systemDate+3 days.
After fulfilment of POI1 and POI2 completion, if customer need to cancel the POI3 which is still pending for fulfilment, how can we achieve this via TMF622?
I have checked the documentation and felt Patch operation is better operation to pick and partially delete the productOrderItem which customer trying to cancel
Eg:
POST /productOrder:
POI1, POI2, POI3
PATCH /productOrder/{id}
POI3 - with action - delete
Can you please confirm it this is a right option to solve the use cases? or any suggestions please
------------------------------
Nagendra Kodavatikanti
BT Group plc
------------------------------