Cancellation of single specification order from a bundle order

ashwajit_b
Tera Expert

Hi, I've placed a bundle order (via TMF-645 API) consisting of multiple CFS orders, and now need to cancel a single specification from this bundle. ServiceNow's cancel API would cancel the whole order, as it does not allow cancellation of single specification, the other option was to use PATCH request of TMF-641 API however there is no 'cancel' action defined for 'serviceOrderItem.action' parameter. Is there a way to cancel a single CFS from the the bundle order using API?

 

Thank you,

Kind Regards,

Ashwajit

4 REPLIES 4

Tom Schnarr
ServiceNow Employee
ServiceNow Employee

I think you have a few terms incorrect - this is a Order - so either Product ORder (TMF622) /Service ORder (TMF641) as opposed to service qualification (TMF645).  (I know the TMF API numbers are confusing)  I expect you mean you are placing an order with many line items, with each line item referencing a specification (PO/Product Spec or Service Spec).  To cancel a subset of the order, use the PATCH api  and one the line items to be cancelled, set the productOrderItem.revisionOperation to 'cancel'. here is the link to the docs page for the Product order API https://docs.servicenow.com/bundle/vancouver-api-reference/page/integrate/inbound-rest/concept/tmf62....  Similar logic can be applied for Service Orders.

Hi @Tom Schnarr , thank you for looking into this. Yes, I mentioned wrong TMF API, it is actually TMF-641. For the service order, revisionOperation is not available, and I'm unable to find any other option to cancel the single order line item from the service order

 

Thank You,

 

Kind Regards,

Ashwajit

 

Hi @ashwajit_b , @Tom Schnarr 
Let me jump into your discussion.

 

I have just read the TMF641 reference page here , and I found the explanation about "serviceOrderItem.action" instead of "productOrderItem.revisionOperation", and I also found the action types that can be used in Service Order here .

Then, there is an option named "Delete", and it looks be able to use for item cancelation for service order. ( I attached the capture as below.)

aizawaken_0-1724136420020.png

 


Is this the one that Tom mentioned and also you are looking for??

     Thank you,

Hi @aizawaken , we can use delete action to cease the order, and while using this action the Product Inventory is mandatory. However, for cancellations (cancellation while fulfillment is in progress) we may not have the product inventory details available at the point when cancellation request is received