Create a quote
POSTRequirements/api/v3/quote
- You must specify an existing customer_id, customer_token, or customer_external_key value.
- You must specify at least one line item.
- Each line item must refer to an existing item_id value.
- You must specify a paycycle:
one
- a quote for a one-time invoicemon
- a quote for a monthly subscription2mn
- a quote for a subscription that invoices the customer every 2 monthsyrl
- a quote for a yearly subscription2yr
- a quote for a subscription that invoices the customer every 2 years3yr
- a quote for a subscription that invoices the customer every 3 years1wk
- a quote for a weekly subscription2wk
- a quote for a subscription that invoices the customer every 2 weeksqtr
- a quote for a quarterly subscriptionsix
- a quote for a subscription that invoices customers every 6 months
- The id value in the response is the
quote_id
value of the newly created quote. - The "Location:" header will provide a direct API link to the newly created quote.
Request
- application/json
Body
Quote reference number
External key value
Payment cycle for the quote (e.g. monthly, etc.)
Quote nickname
Customer ID #
Quote date
Quote valid until
Date/time invoicing for the resulting subscription to be delayed until
Currency ID #
Terms ID #
Class ID # for Quickbooks
Brand ID #
Admin/Worker ID #
Billing address line 1
Billing address line 2
Billing address line 3
Billing address city
Billing address state
Billing address postal code
Billing address country
(deprecated)
Shipping address line 1
Shipping address line 2
Shipping address line 3
Shipping address city
Shipping address state
Shipping address postal code
Shipping address country
(deprecated)
URL the lead should be redirected to after accepting a quote
URL the lead should be redirected to after rejecting a quote
Memo/notes to customer
Custom field #1
Custom field #2
Custom field #3
Custom field #4
Custom field #5
Custom field #6
Custom field #7
Custom field #8
Custom field #9
Custom field #10
Custom field #11
Custom field #12
Custom field #13
Custom field #14
Custom field #15
Custom field #16
Custom field #17
Custom field #18
Custom field #19
Custom field #20
A list of line items for the quote
Responses
- 201
- 400
- 401
Object was created successfully
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
response
object
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": {
"id": 0
}
}
{
"code": 201,
"status": "OK",
"message": "",
"details": {},
"response": {
"id": 1234
}
}
Bad request
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 400,
"status": "Error",
"message": "Missing or invalid parameter.",
"details": {},
"response": false
}
Authentication error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
{
"code": 0,
"status": "string",
"message": "string",
"details": {},
"response": true
}
{
"code": 401,
"status": "Error",
"message": "Invalid or incorrect authorization [Missing (basic) authorization header.]",
"details": {},
"response": false
}