Creates a new sales quote and automatically submits it to the assigned buyer.
While the B2B Edition control panel allows you to save a new quote as a draft without sending it to the buyer, quotes created with this endpoint are automatically visible in a Company user’s Buyer Portal. However, you can give the allowCheckout a value of false to prevent the buyer from purchasing it immediately upon submission.
While you can create custom products from within a quote while creating or editing it in your B2B Edition control panel, you cannot create a custom product with this endpoint.
Create a custom product while creating or editing a quote in the B2B Edition control panel, or by using the Create a Product endpoint in the Catalog API. Obtain your newly-created product’s ID and add it to the productId field of the Create a Quote request body to include it in the quote.
In order to create a sales quote, the request body must include the following fields. Fields marked with an asterisk are only required under specific conditions.
grandTotaldiscountsubtotaluserEmailexpiredAtcontactInfo
nameemailcompanyId*productList
skuproductIdbasePricediscountofferedPricequantityextraFields*
fieldName*fieldValue*channelId*The companyId field is only required if you are linking a quote to an existing Company account. The companyName and email fields under contactInfo cannot be used to link a quote to a particular Company account or user.
The optional bcCustomerId field links a quote to an existing registered non-company customer account. If both companyId and bcCustomerId are provided, companyId takes precedence. If neither is provided, the quote is created as a guest quote.
The contactInfo object is display-only metadata. Customer association is determined solely by bcCustomerId and companyId; contactInfo.email and userEmail are not used to look up or validate the customer record.
The extraFields array is only required if you have created Quote extra fields which are marked as required. To learn more about extra fields, see B2B Edition Settings (Help Center).
The channelId field is required if you have multiple storefront channels. If you only have a single storefront, then you do not need to include it.
The BigCommerce customer ID to link the quote to a registered non-company customer account. Ignored when companyId is also provided. Returns a 404 error if the customer ID does not exist.
The storefront channel ID associated with the quote. This is required if your store has multiple storefront channels. Use 1 for your store’s default storefront channel.
The date when the buyer can no longer purchase the quote. Use ‘%m/%d/%Y’ format when entering the expiration date.
The quote’s terms and conditions. Use the newline character to separate each line of text. Omitting this field or leaving it blank does not add your store’s default terms and conditions to the quote. Instead, the quote will not display any terms.
A message sent to the buyer via the in-quote messaging system.
The quote’s buyer-facing notes. Use the newline character to separate each line of text.
The email address of the quote’s sales rep. Any user email found within the B2B Edition System Users menu is considered a valid value for this field.
This field is optional. If left blank, it will default to the store owner’s email address as shown in the B2B Edition System Users menu.
For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.
For more about BigCommerce OAuth scopes, see our Guide to API Accounts.
For a list of API status codes, see API Status Codes.