Open APIs

 View Only
  • 1.  TMF622 Product Order Cancellation

    TM Forum Member
    Posted Jan 17, 2022 08:08
    According to TMF622 I have a question about product order cancellation. If I execute POST /cancelProductOrder what will ProductOrder state achieve ? AccessingCancellation or PendingCancellation ? Put in another way: ProductOrder cancellation include accessing cancellation phase or it is execute outside of request ? If outside then it is correct then after cancellation request (200 OK) product order is still in "In Progress" state (cancel cannot be done) ?

    ------------------------------
    Radosław Twardy
    Comarch S.A.
    ------------------------------


  • 2.  RE: TMF622 Product Order Cancellation

    TM Forum Member
    Posted Jan 18, 2022 08:52
    Hello Radoslaw
    For me the objective to the POST /cancelProductOrder is to request an Product Order cancellation.... but this request could be denied from the server side if for example it is too late in the fullfilment (PONR reached). 

    From a server perspective:

    - you received the POST & perform surface check
    - Check if product order could be cancelled
      - if no .... depending if your process is sync or async, server reject the request (with a 422) (if cancellation is performed sync) or the request state change to 'terminatedWithError' (if async).
      - if yes ... the product Order is cancel-able then  - if it takes time to cancel it the task is 'inProgress' and the order in 'pendingCancellation' - once effectively cancelled the PO is in state 'cancelled' and the task CancelOrder in 'done' state.

    Hope it helps
    Ludovic



    ------------------------------
    Ludovic Robert
    Orange
    My answer are my own & don't represent necessarily my company or the TMF
    ------------------------------



  • 3.  RE: TMF622 Product Order Cancellation

    TM Forum Member
    Posted Jan 18, 2022 11:17
    Thanks for reply.
    In my case process is async, so if I understand I should reply for cancellation request by HTTP 201 with state = "Acknowledged". And next system should send notification with state = "TerminatedWithError" or "InProgress".

    ------------------------------
    Radosław Twardy
    Comarch S.A.
    ------------------------------



  • 4.  RE: TMF622 Product Order Cancellation

    TM Forum Member
    Posted Jan 18, 2022 12:07
    For me yes that's correct.

    ------------------------------
    Ludovic Robert
    Orange
    My answer are my own & don't represent necessarily my company or the TMF
    ------------------------------