Base URL & Format
One host, JSON in and JSON out, offset pagination capped at 50 records. The path parameter type is the single most common source of integration bugs — it varies per entity.
Base URL
https://api.sql.mySend content-type: application/json on every write. DELETE responses are an exception — they return the plain text "OK".
Pagination and envelopes
List requests accept ?offset=0 and return at most 50 records per request. List and single-record responses use different envelopes.
GET list
{
"pagination": { "offset": 0, "limit": 50, "count": 12 },
"data": [ ... ]
}GET single by path
{
"data": [ ... ]
}Path parameter types
Passing a string code to an :AUTOKEY entity returns not a valid floating point value.
| Param | Used by | Example |
|---|---|---|
| :CODE | Currency, Terms, Stock Category, Account, Customer, Supplier | /currency/USD |
| :AUTOKEY | Tax, Shipper, Tariff, Withholding Tax, Batch, Asset Group | /tax/1 |
| :DOCKEY | Stock Item, sales and purchase documents, payments and receipts | /salesinvoice/4521 |
Filtering
List endpoints accept field-name filters. Wildcards and date ranges are supported on SQL Account 5.2025.1061.890 and above.
GET /currency?offset=0&code=USD
GET /stockitem?offset=0&description=*Cable*
GET /salesinvoice?offset=0&docdate=2025-01-01~2025-01-31Writes
- POST returns 200, not 201.
- PUT is a partial update — send only the fields you are changing.
- Required fields must always be present; an empty body crashes the backend.
- Integer fields take plain numbers (
1), not strings. - Decimal fields such as qty, unitprice and rates are stored as strings (
"100.00").
Next: Known Issues or jump straight to Account.
