Open APIs

 View Only
  • 1.  Shopping Cart Add Product Offering depending on an existing product

    Posted Feb 23, 2021 12:30
    Hello Team ,We want to achieve the Use case for adding ProductOffering as Cross Sell from ShoppingCart Request.Here for example 
    In customer inventory : product 123456..


    Based on the above Customer Inventory Customer got the Recommendation for Cross-Sell Product Offering "message addon"We want to Demonstrate that shoppingCart Patch request will have "message addon" ProductOffering with the existing CPI linked via productRelationShip attribute .Wanted to validate that does the following Add to cart request is correct for scenario{
    "cartItem": [
    {
    "action": "ADD",
    "product": {
    "productRelationship":{
    "id": "123456"
    "type": "reliesOn"
    }
    },
    "productOffering": {
    "id": "message_addon"
    },
    "quantity": 1
    }
    ],
    "relatedParty": [
    {
    "id": "xyz@abc.com"
    }
    ]
    }


    ---------------------------------
    Guneet 
    IBM Corporation


    ------------------------------
    Guneet Singh
    IBM Corporation
    ------------------------------


  • 2.  RE: Shopping Cart Add Product Offering depending on an existing product

    Posted Mar 22, 2021 14:38
    Hello Guneet,
    I think your example is ok in essence, but the base product reference should be placed in the productRelationship.product property.
    "cartItem": [
        {
            "action": "add",
            ...,
            "product": {
                "name": "Message Addon",
                ...,
                "productRelationship": [
                    {
                        "relationshipType": "reliesOn",
                        "product": {
                            "id": "123456",
                            "href": "https://host:port/productInventoryManagement/v4/product/123456",
                            "name": "Unlimited 5G Plan",
                            ...
                        }
                    }
                ]
            }
        }
    ]
    

    P.S. This extract is based on release 19 of the TMF663 API. I suspect you have an older version.
    Hope it helps,



    ------------------------------
    Şanver Narin
    PiA-TEAM INC.
    ------------------------------