Accepting a Quote
This API accepts a quote or proposal.
API |
Signature |
---|---|
acceptQuote |
webService static Boolean acceptQuote(Id quoteOrProposalId) |
Request Parameter |
|||
---|---|---|---|
Name |
Type |
Required? |
Description |
QuoteID | ID |
Yes |
The id of the quote/proposal you want to accept. |
Response Parameter |
||
---|---|---|
Field |
Type |
Description |
isSuccess | Boolean |
Indicates whether the quote is accepted or not. The ID of the newly created cart object |
Code Sample
The following sample enables you to accepts quote with a Quote ID. Provide a Quote ID of the Quote or Proposal you want to accept. If the quote is successfully accepted, the API returns true, otherwise, the API returns false.
/**
* Accepts the given quote/proposal
* @param quoteOrProposalId the id of the quote/proposal sobject to accept
* @return <code>true</code> if the operation was successful, <code>false</code> otherwise
*/
WebService static Boolean acceptQuote(ID quoteOrProposalId) {
Id quoteOrProposalId = 'a0Y3C000000u2xv';
Boolean isSuccess = Apttus_QPConfig.QPConfigWebService.acceptQuote(quoteOrProposalId);
}
Integration Details
Use the following information in your integrations with CPQ Web Services API. Refer to Integrating Conga with External Systems for information on how to get started.
Response/Request XML
Example Request<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:qpc="http://soap.sforce.com/schemas/class/Apttus_QPConfig/QPConfigWebService">
<soapenv:Header>
<qpc:SessionHeader>
<qpc:sessionId>00DZ000000NAEIA!ASAAQNJKTI9h4.FgZutgi4zWkwHRIvIJFNu3_Qh4XPyiODbj2Q3XzSjmRb76.sgyY.eOutBVPu5wFakw8WmXHCIsOjzI375z</qpc:sessionId>
</qpc:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<qpc:acceptQuote>
<qpc:quoteOrProposalId>a0eZ0000005pF4h</qpc:quoteOrProposalId>
</qpc:acceptQuote>
</soapenv:Body>
</soapenv:Envelope>
Example Response
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="http://soap.sforce.com/schemas/class/Apttus_QPConfig/QPConfigWebService">
<soapenv:Body>
<acceptQuoteResponse>
<result>true</result>
</acceptQuoteResponse>
</soapenv:Body>
</soapenv:Envelope>