QuoteType 1) and sales quotes (QuoteType 2) use the same endpoints.
Required fields
QuoteType:1purchase quote,2sales quote. It cannot be changed after the quote is created (5015).QuoteNumber: unique within the company for the sameQuoteType, at most 10 characters (5002). Send"Next"on create to generate it from the company’s number series: ALTEKLİFNO for purchase quotes and VERTEKLİFNO for sales quotes."Next"cannot be sent on update (5003).Date: the quote date. If you send a time it is stored as the quote time, otherwise the current time is used.CustomerId: a customer the user can see.RepresentativeIdis optional and must be a representative of that customer.CurrencyId: the quote currency.Lines: at least one line (5012).
Lines
ProductIdandUnitIdare required. The unit must be one of the product’s own units (its main unit or its second/third unit).Quantitymust be greater than 0;UnitPricecannot be negative.CurrencyIdof a line defaults to the quote currency;ExchangeRateis the rate of the line currency.Discountsis the list of discount rates of the line. They are applied one after another in list order: 10, 10 and 10 give a 27.1% line discount. Leave the list empty when the line has no discount.LineGroupIdis optional and comes from the line groups definition.- Lines have no ID: their order in the list is their order in the quote, and update replaces all lines.
Status
Status is read-only.
Quotes created through the API are always
0 (pending), and update never changes the status. Quotes accepted, revised or rejected in Noyax show that status here.
Editing and deleting
Editing and deleting are not restricted by status: a quote can be updated or deleted whatever its status is, even if it was already converted to an order, invoice or waybill in Noyax. Noyax only asks the user to confirm in that case; the API has no such confirmation, so check on your side before changing such quotes. A quote that other records refer to (for example a service slip or an opportunity) cannot be deleted (5014).
Sharing
SharingCodeId limits who can see the quote: empty means everyone, otherwise it must be one of the user’s sharing codes (5011). Quotes the user cannot see return 404.