Sales Quotation

Quotations issued to a customer before an order is confirmed.

Path Parameter::DOCKEY (integer) — the internal document ID used in the URL path

Endpoints

GET
/salesquotation

List documents with pagination and filters

GET
/salesquotation/:DOCKEY

Get a single document by its internal ID

POST
/salesquotation

Create a new sales quotation

PUT
/salesquotation/:DOCKEY

Update an existing document

DELETE
/salesquotation/:DOCKEY

Delete a document by its internal ID

Fields

FieldTypeRequiredNotes
dockeyintegerNoSend 0 to let SQL Account auto-assign the internal ID. The returned dockey is the value used as the path param.
Default: 0
docnostringNoDocument number. Leave blank to let SQL Account generate the next running number.
Default: ""
docdatestring
Yes
Document date in YYYY-MM-DD. Proven: "2026-09-30".
postdatestringNoAccounting posting date in YYYY-MM-DD. Required on invoices, notes and journals.
codestringNocode is the customer code — the customer must already exist.
termsstringNoPayment terms code from GET /terms → data[].code.
currencycodestringNoCurrency code. ---- means the company base currency.
Default: "----"
cancelledbooleanNoCancellation flag.
Default: false
sdsdocdetailarray
Yes
Detail lines. At least one line is required — an empty array is rejected.
sdsdocdetail[].dtlkeyintegerNoSend 0 for a new detail line.
Default: 0
sdsdocdetail[].itemcodestringNoStock item code from GET /stockitem → data[].code.
sdsdocdetail[].locationstringNoStock location code — used on inventory documents.
sdsdocdetail[].qtystringNoQuantity as a string decimal. Proven: "1.00".
sdsdocdetail[].uomstringNoUnit of measure. Proven: "UNIT".
sdsdocdetail[].unitpricestringNoUnit price as a string decimal. Proven: "100.00".
sdsdocdetail[].taxstringNoTax code for the line from GET /tax → data[].code.
sdsdocdetail[].amountstringNoLine amount. Computed by SQL Account when omitted.

Examples

POST — Create Sales Quotation

POST /salesquotation
{
  "dockey": 0,
  "docno": "",
  "docdate": "2026-09-30",
  "code": "CUS-01",
  "terms": "30 Days",
  "currencycode": "----",
  "sdsdocdetail": [
    {
      "dtlkey": 0,
      "itemcode": "STK-001",
      "qty": "1.00",
      "unitprice": "100.00",
      "uom": "UNIT"
    }
  ]
}

GET — List Documents

GET /salesquotation?offset=0

GET — Single Document

GET /salesquotation/1

DELETE

DELETE /salesquotation/1

Response: "OK" (plain text)

Notes