Disassembly

Breaks a finished item back into its component items.

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

Endpoints

GET
/disassembly

List documents with pagination and filters

GET
/disassembly/:DOCKEY

Get a single document by its internal ID

POST
/disassembly

Create a new disassembly

PUT
/disassembly/:DOCKEY

Update an existing document

DELETE
/disassembly/: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.
codestringNoNot party based.
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 Disassembly

POST /disassembly
{
  "dockey": 0,
  "docno": "",
  "docdate": "2026-09-30",
  "sdsdocdetail": [
    {
      "dtlkey": 0,
      "itemcode": "STK-001",
      "qty": "1.00",
      "unitprice": "100.00",
      "uom": "UNIT"
    }
  ]
}

GET — List Documents

GET /disassembly?offset=0

GET — Single Document

GET /disassembly/1

DELETE

DELETE /disassembly/1

Response: "OK" (plain text)

Notes