Save Quote API

The Save Quote API saves a CPQ quote.

Required Editions
Available in: Salesforce CPQ Summer ’16 and later
Formats

JSON, Apex

HTTP Method

POST

Authentication

Authorization: Bearer token

REQUEST

Name

quote

Type

QuoteModel

Required

Yes

Description

Representation of SBQQ__Quote__c data

RESPONSE

Type

QuoteModel

Description

Representation of SBQQ__Quote__c data

This request body quoteModel.json file saves a quote. The context value is a JSON formatted string.

An example response body after saving a quote. The actual response is a JSON formatted string.

Before saving the QuoteSaver example class, make sure that the CPQ Model classes are added as individual Apex classes in your org.

For an example of the QuoteSaver class, run the following code in anonymous Apex.