Open APIs

 View Only
  • 1.  API for validation of cart

    TM Forum Member
    Posted May 18, 2024 16:17

    Hi all,

    Which API could be used for validation of cart before creation of order?

    We looked through TMF 663 Shopping Cart API, but couldn't find any API which could be used for this purpose.

    While looking at TMF 622 Product Order Management API, we could find "rejected" as one of the possible states for ProductOrder. Description of this state seems to suggest, the POST ProductOrder API could be used for validation of Order request.



    ------------------------------
    Varun Pandhi
    Infosys
    ------------------------------


  • 2.  RE: API for validation of cart

    Posted May 20, 2024 21:53

    Hi Varun

    Take a look at the Product Configurator API (TMF760).  I think it is available in the preproduction Open API tables.  There are some good use cases in this spec along with various sequence diagrams.  For interaction between the Shopping Cart and the Product Configurator APIs, take a look at the ODA use case TMFS003 Order Capture Fibre Contract.

    Good luck!



    ------------------------------
    Dan d'Albuquerque
    Individual
    ------------------------------



  • 3.  RE: API for validation of cart

    TM Forum Member
    Posted May 21, 2024 04:32

    Hi,

    cart validation is really a process.

    When we validate a cart before creating an order, the cart component does:

    • recalculate prices
    • if there is a customisable product in the cart, run the product configurator again to compute the product configuration
    • validate product offering commercial eligibility
    • validate customer eligibility
    • validate service eligibility

    all of the above have their own APIs.



    ------------------------------
    Kind regards,

    Matthieu Hattab
    Lyse Platform
    ------------------------------