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
------------------------------