cancel
Showing results for 
Search instead for 
Did you mean: 

API quote 1.0 - Configuration of an item

dmonta
Explorer
0 Kudos
410

Dear community,

how can I retrieve quote item configuration with api for quote 1.0?

In the swagger help page I can find this GET method:

GET /api/v1/quotes/{quoteId}/items/{itemId}

that should contain configuration id in the response, but I obtain the following error: "internalMessage": "This action is only supported for Quote 2.0."

What should I use for quote 1.0 in order to obtain actual configuration of a configurable product in a cpq quote?

Is it possible for quote 1.0?

For quote 2.0 I'm using GET /api/v1/quotes/{quoteId}/items/{itemId} obtaining configuration id and then GET /api/configuration/v1/configurations/{configurationId} and it works well.

Thank you.

Best regards,

Davide

Accepted Solutions (0)

Answers (2)

Answers (2)

dmonta
Explorer
0 Kudos

Hello,

I've found this link: https://eusb.webcomcpq.com/wsAPI/CPQAPI.asmx?op=GetQuoteItemsAttributes

and tested (method: POST - https://yoursapcpqtenant/wsAPI/CPQAPI.asmx):

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetQuoteItemsAttributes xmlns="http://webcominc.com/" >
      <username>ADMIN_USER</username>
      <password>PASSWORDL</password>
      <cartCompositeNumber>01199999</cartCompositeNumber>
      <getAllAttributes>true</getAllAttributes>
    </GetQuoteItemsAttributes>
  </soap12:Body>
</soap12:Envelope>



Response is:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
        <GetQuoteItemsAttributesResponse xmlns="http://webcominc.com/">
            <GetQuoteItemsAttributesResult><Result><Status>NOK</Status><Message>Invalid login</Message></Result></GetQuoteItemsAttributesResult>
        </GetQuoteItemsAttributesResponse>
    </soap:Body>
</soap:Envelope>

(To test with postman you should add header key 'Content-Type' and value 'application/soap+xml; charset=utf-8')


Do you have any ideas how to solve this issue?

Best regards,

Davide

dmonta
Explorer
0 Kudos

The issue was related to Authorization type= NO AUTH. It was set to bearer token and so the issue.

If anybody catch similar issue testing with postman feel free to ask.

Thank you community, bye.

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

dmonta

Quote 1,0 APIs are not so user friendly.. you can develop custom script and make use of it in Quote 1.0.

reason is to move to Quote 2.0 engine which you already mentioned in your comment.