Update a quote
PUT/accounting/{connection_id}/quote/{id}
Parameters
fieldsstring array
Fields to return
rawstring
Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
connection_idstring required
ID of the connection
idstring required
ID of the Quote
Payload
idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
quote_numberstring
External identifier for this quote (Xero QuoteNumber, QBO DocNumber, NetSuite tranId)
referencestring
customer-side reference / PO number
titlestring
short title (Xero Title, max 100)
summarystring
longer summary (Xero Summary, max 3000)
payment_terms enum
unified payment terms enum, as on accounting_invoice / accounting_bill
customer_messagestring
customer-visible message
memostring
internal note, not customer-visible
contact_idstring
(reference to AccountingContact)
issued_atdate
Xero Date, QBO TxnDate (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
expires_atdate
Xero ExpiryDate, QBO ExpirationDate (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
sent_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
accepted_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
declined_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
status enum
where EXPIRED is derived (expires_at < now), the source status is preserved in raw
currencystring
currency_ratenumber
exchange rate to the organization's base currency
sub_total_amountnumber
tax_amountnumber
discount_amountnumber
total_amountnumber
tax_mode enum
Valid values:
"INCLUSIVE"
"EXCLUSIVE"
"NONE"
INCLUSIVE / EXCLUSIVE / NONE; maps Xero LineAmountTypes (a boolean cannot represent NoTax)
invoice_idstring
populated once the quote is converted to an invoice; left null when the source cannot supply it (reference to AccountingInvoice)
project_idstring
points to an AccountingProject (accounting costing project) (reference to TaskProject)
group_idstring
points to a HRIS Group (reference to HrisGroup)
category_idsstring array
tracking categories / classes (AccountingCategory dimensions)
urlstring
public online-quote link where exposed
organization_idstring
Returns
idstring
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
quote_numberstring
External identifier for this quote (Xero QuoteNumber, QBO DocNumber, NetSuite tranId)
referencestring
customer-side reference / PO number
titlestring
short title (Xero Title, max 100)
summarystring
longer summary (Xero Summary, max 3000)
payment_terms enum
unified payment terms enum, as on accounting_invoice / accounting_bill
customer_messagestring
customer-visible message
memostring
internal note, not customer-visible
contact_idstring
(reference to AccountingContact)
issued_atdate
Xero Date, QBO TxnDate (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
expires_atdate
Xero ExpiryDate, QBO ExpirationDate (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
sent_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
accepted_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
declined_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
status enum
where EXPIRED is derived (expires_at < now), the source status is preserved in raw
currencystring
currency_ratenumber
exchange rate to the organization's base currency
sub_total_amountnumber
tax_amountnumber
discount_amountnumber
total_amountnumber
tax_mode enum
Valid values:
"INCLUSIVE"
"EXCLUSIVE"
"NONE"
INCLUSIVE / EXCLUSIVE / NONE; maps Xero LineAmountTypes (a boolean cannot represent NoTax)
invoice_idstring
populated once the quote is converted to an invoice; left null when the source cannot supply it (reference to AccountingInvoice)
project_idstring
points to an AccountingProject (accounting costing project) (reference to TaskProject)
group_idstring
points to a HRIS Group (reference to HrisGroup)
category_idsstring array
tracking categories / classes (AccountingCategory dimensions)
urlstring
public online-quote link where exposed
organization_idstring
const options = {
method: 'PUT',
url: 'https://api.unified.to/accounting/5de520f96e439b002043d8dc/quote/5de520f96e439b002043d8d8',
headers: {
authorization: 'bearer .....'
},
data: undefined,
params: {
fields: '',
raw: '',
}
};
const results = await axios.request(options); Are we missing anything? Let us know