Goods Received

Receipt of goods against a purchase order, moving stock into a location.

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

Endpoints

GET
/goodsreceived

List documents with pagination and filters

GET
/goodsreceived/:DOCKEY

Get a single document by its internal ID

POST
/goodsreceived

Create a new goods received

PUT
/goodsreceived/:DOCKEY

Update an existing document

DELETE
/goodsreceived/: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 supplier code — the supplier 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 Goods Received

POST /goodsreceived
{
  "dockey": 0,
  "docno": "",
  "docdate": "2026-09-30",
  "code": "SUP-01",
  "terms": "30 Days",
  "currencycode": "----",
  "sdsdocdetail": [
    {
      "dtlkey": 0,
      "itemcode": "STK-001",
      "qty": "10.00",
      "unitprice": "50.00",
      "uom": "UNIT"
    }
  ]
}

GET — List Documents

GET /goodsreceived?offset=0

GET — Single Document

GET /goodsreceived/1

DELETE

DELETE /goodsreceived/1

Response: "OK" (plain text)

Notes