Change the quote settings
Updates only the supplied quote settings and returns the saved values.
Required access
- API key
- Change settingspermission
- Request limit
- Counts as 5 requests. Each key has a capacity of 15, restored at 0.6 a second.
Idempotent-Replayed: true. Responses are saved for 24 hours.Headers
Bearer and your key, opk_….
Up to 100 characters (letters, digits, - _ : .). Kept for 24 hours.
application/json. A body is at most 256 KB.
Body
JSONAuto-save quotes and unpaid drafts after their first save.
With expiring_soon_from: days: how many days before expiry.
When a quote shows ‘Expiring soon’: third or half of its time left, or days (expiring_soon_days before expiry).
One of third, half, days.
Block signing and payment after a quote expires.
With follow_up_carrier_timing: days: how many days.
Needs attention: follow up with a carrier after the delivery_promise, or after days (follow_up_carrier_days).
One of delivery_promise, days.
Needs attention: follow up with a customer after this many days.
Needs attention: follow up with a teammate after this many days.
With follow_up_vendor_timing: days: how many days.
Needs attention: follow up with a vendor after their lead_time, or after days (follow_up_vendor_days).
One of lead_time, days.
Customers can pay only after payment is enabled on the quote or order (a payment request, a recorded payment or a copied payment link enables it too).
Quotes are valid for this many days.
Show the Quotes tab in the menus.
Needs attention’s reminder wording for customers.
Needs attention’s reminder wording for teammates.
Needs attention’s reminder wording for vendors.
A renamed template line becomes its own product template under its new name (quotes reuse a name but don’t make one).
Order create and edit no longer offer Skip vendor, and final saves need a real vendor. Draft saves stay allowed.
Optional fields of a product template appear on the line when it is added.
Show the vendor on product template cards.
Returns
OK: auto_save_quotes, expiring_soon_days, expiring_soon_from, expiry_blocks_customer, follow_up_carrier_days, follow_up_carrier_timing, follow_up_customer_days, follow_up_teammate_days, follow_up_vendor_days, follow_up_vendor_timing and more
Errors
Errors use { "error": { "code", "message" } }. Use code to handle the error. View all error codes.
The request isn’t valid (see error.code), or the API version isn’t supported.
No valid access token or API key.
The store’s subscription isn’t active.
Not allowed: the API is off for this store, or the caller lacks the scope or permission.
Not found, or not visible to this caller.
Wrong method for this path; Allow lists every method the path takes.
The request body didn’t arrive in time.
The same Idempotency-Key is still being processed (REQUEST_IN_PROGRESS), its outcome is unknown (OUTCOME_UNKNOWN: check the record), or the record changed since it was read.
The request body is too large.
The request is valid JSON but can’t be done (a rule of the store refuses it), or the Idempotency-Key was used with a different body.
The app is older than the oldest version still served (error.code CLIENT_TOO_OLD); see error.min_version and error.upgrade_url.
Over a rate limit; wait Retry-After seconds.
Something went wrong on our side. A write may have partly happened: check the record before retrying it.
Busy, switched off, or billing couldn’t be checked; wait Retry-After seconds.