We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

400 Bad request while calling creating Quote in SOM

RavinderK
Tera Contributor

Hi All,

 

I am getting 400 bad request while trying to create Quote as per Quote Management Open API is a ServiceNow implementation of the TM Forum Quote Management API REST specification.  I tried multiple way with basic and mandatory fields only but getting this error.

 

Below is the sample JSON:

 

{
  "description": "B2B - First Test Quote for Home Tech Hub Bundle",
  "quoteDate": "2025-09-15 12:00:00",
  "validFor": {
    "startDateTime": "2025-09-15 12:00:00",
    "endDateTime": "2025-12-31 23:59:59"
  },
  "state": "Draft",
  "quoteItem": [
{
      "id": "item1",
      "action": "add",
  "@type": "QuoteItem",
  "state": "Draft",
  "product": {},
  "productOffering": {
        "id": "de901aec83f32610eadbf7efeeaad31b",
        "name": "SRK1004ETR",
        "@type": "ProductOfferingRef"
      },
      "quantity": 20,
      "unitOfMeasure": "Each",
  "price": {
        "priceType": "OneTime",
        "unit": "USD",
        "taxIncludedAmount": 700.00
      }
    }
  ],
  "relatedParty": [
    {
      "role": "Customer",
      "id": "75e55b7083f7a610eadbf7efeeaad3b5",
      "name": "Bosch China",
      "@type": "RelatedPartyRef",
      "@referredType": "Organization"
    }
  ]
}

 

Error: 

{
  "code": 21,
  "reason": "Invalid payload: Request body missing",
  "message": "Invalid payload: Request body missing",
  "details": [
    {
      "message": "A mandatory child product offering is missing for the parent product offering",
      "datapath": "/quoteItem[0]/productOffering"
    }
  ]
}

 

Thanks

0 REPLIES 0