on 2023 Jul 20 11:47 AM
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
Request clarification before answering.
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>
<?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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.