DockMaster SQL API Guide
Guide to the new API · December 2026
Numbers on this page are current values and may change before launch. Questions: your DockMaster contact.
Start here
Moving to the new DockMaster API. DockMaster is moving its partner API to a new system. Your routes, request bodies and response fields stay the same, apart from a few answers listed under What's different. For most integrations the move comes down to a new address, a new login for each marina, and a few new answers to handle.
We send you a username and password for each marina as it moves.
404 when a record isn't found, 409 when two saves collide, 429 when you go over a limit. See Errors.
Marinas move one at a time, and we tell you each date. See How the move works.
- Paths and field names don't change. The address and the login do, and empty fields now arrive as
null. - The old API keeps working for every marina that hasn't moved yet.
- The new API has usage limits; the old one had none. See Limits.
- The new address (base URL) will be confirmed before your first marina moves.
How the move works
Marinas move from the old API to the new one one at a time. You switch each marina's calls on the date we give you for it.
- NowAll marinas on the old APINothing changes for you yet.
- Marina by marinaEach marina moves on its dateYou send that marina's calls to the new API from then on.
- All movedOld API stays up 30 more daysIt stays until it has had no partner calls for 30 days.
- RetiredOld API switched offPlanned: it answers 410 Gone for 90 days, then shuts down. We confirm dates first.
Which API do I call for a marina?
A marina that hasn't moved can't log in on the new API: the login answers 401. If a call answers 409 with type urn:dockmaster:public-api:marina-not-migrated, the marina was moved back to the old API after you logged in. Send its calls to the old API and let us know.
On each marina's move date
- Send that marina's calls to the new API, logging in with the new username and password we sent for it. Old logins and tokens don't work on the new API.
- Start any list you were paging through again, without a
listName. Old list names don't work on the new API. - Stop all saves for that marina on the old API. After the move date the old API only holds a frozen copy, so anything saved there is lost.
Keep every marina that hasn't moved on the old API until its own date.
Logging in
Log in once with the marina's username and password. You get a token, which you send with every call along with the marina's id.
- 1 · Log in
POST /api/v1/tokenSend the username and password. - 2 · GetA token and the marina's id
authToken,refreshToken,systemId. - 3 · CallEvery request, two headers
AuthorizationandX-DM_SYSTEM_ID. - 4 · Refresh
POST /api/v1/token/refreshBefore the 24 hours run out, then keep calling.
After step 4, carry on from step 3 with the new token.
Log in
POST /api/v1/token
{ "UserName": "your-username", "Password": "…" }
The answer
{
"authToken": "eyJ…",
"refreshToken": "…",
"authExpiration": "2026-12-01T14:00:00Z",
"availableConnections": [
{ "name": "Example Marina", "systemId": "…", "isDefault": true }
]
}
Send on every call
| Header | Value |
|---|---|
Authorization | Bearer <authToken> |
X-DM_SYSTEM_ID | The marina's systemId from availableConnections |
Refresh
POST /api/v1/token/refresh
{ "expiredAuthToken": "…", "refreshToken": "…" }
Good to know
- How long tokens last: a token lasts 24 hours; a refresh token lasts 30 days.
- Keep only the newest refresh token. Each refresh gives you a new one. Using an older one again ends the session, with a short grace in case an answer got lost.
- Log in once and share the token across your workers. A new login ends the refresh tokens of earlier sessions; their tokens keep working until they expire.
- Six wrong passwords lock the login for 30 minutes.
- A password change, or a deactivated login, ends its sessions. Log in again.
- Marina id header: if
X-DM_SYSTEM_IDis missing, sent twice, or names a marina your token doesn't list, the answer is 401.
Sending requests
Address and paths
- Base URL: to be confirmed by DockMaster before your first marina moves.
- Paths don't change. Routes live under
/api/v1/{Module}/…, for example/api/v1/Service/WorkOrders/Retrieve. The short form without/api/v1still works, as before.metadataroutes need the/api/v1prefix. - One version: answers carry
api-supported-versions: 1.0. - Route list:
GET /api/v1/About/endpointslists every route and whether it's available. No login needed. - Health check:
GET /api/v1/About/healthanswers 200 when the API is up. No login needed.
Request bodies
- Send JSON with
Content-Type: application/json.text/jsonstill works. - A body can be up to 256 KB; larger bodies get 413. The login routes take up to 4 KB.
- Field names in answers are camelCase:
name,systemId,listName. Field names you send can be in any case. - Empty fields are sent as
null. The old API left them out. Make sure your code acceptsnullin any field.
Paging through lists
Lists come in pages, in the same shape as before, plus a new totalCount.
{ "currentPage": 1, "maxPages": 12, "pageSize": 100, "listName": "…", "totalCount": 1187 }
- Send the
listNameback with the nextPageto continue the same list. listNameis now up to 4,096 characters long. Store it as long text.- It expires after 24 hours and only works for the marina it came from.
- A
PageSizeabove 500 is served as 500, and the answer says so. - Two lists page differently:
Service/WorkOrderLaborDetail/ListandService/WorkOrderPartDetail/Listcontinue with aCursorandmoreData, have nototalCount, and refuse aPageSizeover 1,000 with 400.
Dates and times
Dates and times are in the marina's own local time, as before.
Retrying a save safely
If a save times out, you can't tell whether it went through. Send an Idempotency-Key header with each save (a new UUID each time). If you resend with the same key and body within 24 hours, you get the first answer back and nothing is saved twice.
- Only successful answers are kept. A save that was refused (400, 409) or failed (500) runs again when you retry it.
- Changed the body? Use a new key. The same key with a different body runs as a new save.
- 1 · SaveSend it with a new key
Idempotency-Key: 6f1c… - 2 · No answerThe call times outDid it go through? You can't tell.
- 3 · RetrySame key, same bodyWithin 24 hours.
- 4 · ResultThe first answer, onceMarked
Idempotent-Replayed: true. Nothing saved twice.
Saves that support it
| Module | Saves |
|---|---|
| AR | NextReferenceNumber, SubmitBatch, CreateMiscARCharge |
| Boats | UpdateBoat, UpdatePlacement |
| Customers | UpdateCustomer |
| GL | CreateJournalTransaction |
| Orders | SubmitOrder |
| PointOfSale | SubmitPOSTicket |
| Service | WorkOrders/Update, Estimates/Update, WorkOrders/CreateFromEstimate, Schedule/Update, WorkOrders/SubmitPartEntry, Estimates/SubmitPartEntry, Estimates/SubmitLaborEntry, WorkOrders/SubmitTimeEntry, WorkOrders/DeletePartEntry, WorkOrders/DeleteOperation, Estimates/DeleteOperation |
Without a key, only a few saves spot an exact repeat on their own: SubmitBatch with no BatchId, SubmitTimeEntry, the three deletes and WorkOrders/CreateFromEstimate. Every other save without a key is saved again, as on the old API.
Limits
The new API limits how much each login can do at once; the old API had no limits. These are the current values and may change before launch.
| What | Limit | If you go over |
|---|---|---|
| Requests | 600 a minute per login | 429, with Retry-After in seconds |
AR/NextReferenceNumber | 10 a minute, on top of the 600 | 429, with Retry-After |
Searches (the eight …/Search routes and Inventory/FindParts) | 2 at once per login, 4 more waiting | 429 |
| Search time | 15 seconds | 503 with Retry-After: 5; narrow the search or retry |
| Large reads without paging | 1 at a time per login; the rest wait their turn | 429 only if the queue keeps growing for several minutes |
| Records in one read without paging | 5,000 records and 50,000 detail lines (Customers/List 25,000; UnitSales/RetrieveOpenContracts and RetrieveClosedContracts 20,000; Customers/RetrieveCustomers 500) | 400: “The request selects more than N records; narrow it.” |
| Ids in one request | 1,000 ids of up to 64 characters | 400: “At most 1000 ids per request.” |
| Search text | 256 characters | 400 |
| A single filter value | 64 characters | 400 |
| Request body | 256 KB | 413 |
| Items in one save | 500 operations, receipts, payments per receipt, appointments, or order and ticket lines; 100 attachments per operation | 400, and nothing is saved |
Comment sent with Customers/UpdateCustomer | 4,000 characters; a customer's comments up to 64,000 in all | Cut to 4,000; past 64,000 the comment is not added, with no error |
| Wrong passwords | 6, then locked for 30 minutes | 401 |
To stay inside the limits: wait the Retry-After time before retrying a 429 or 503, page through big lists instead of reading them whole, and run searches one or two at a time.
Errors
Errors come back as JSON with a title and a type; most also have a status and a detail saying what went wrong. A 413 and a 500 have no body. Saves still answer 200 with a result or success field when the marina's own rules refuse the change, as before.
| Status | What it means | What to do |
|---|---|---|
| 400 | Something in the request is wrong, or a limit was passed. errors names the field and detail gives the reason. For paging, code is PAGING_TOKEN_INVALID or PAGING_TOKEN_EXPIRED. | Fix the request. For a paging code, start the list again without a ListName. |
| 401 | The token is missing, expired or ended, or X-DM_SYSTEM_ID names a marina the token doesn't list. | Refresh or log in again, and check the header. |
| 404 | No such record, on Boats/RetrieveBoat, Customers/RetrieveCustomer, Service/WorkOrders/Retrieve, Service/Estimates/Retrieve and Service/Estimates/PrintData. | Treat it as not found. The old API answered 200 with an empty object. |
| 409 | With type …marina-not-migrated: the marina was moved back to the old API after you logged in. | Send this marina's calls to the old API, and tell us. |
| 409 | Any other 409: another save to the same record landed while yours was running, so yours was refused. On PointOfSale/SubmitPOSTicket it can also mean no ticket number was free. | Retry. On WorkOrders/Update and Estimates/Update, read the record first: parts saved before the 409 stay saved. |
| 413 | The body is bigger than the limit. | Send less in one request. |
| 429 | Over a rate or search limit. | Wait Retry-After seconds, then retry. |
| 501 | The route isn't available on the new API yet. | See Endpoints, and tell us if you need it. |
| 503 | A search ran longer than 15 seconds. | Narrow the search, or wait Retry-After. |
| 500 | Something unexpected went wrong on our side. No body. | Retry later; tell us if it keeps happening. On WorkOrders/Update and Estimates/Update, read the record first: part of the save may have gone through. |
Example: an expired list name
{ "title": "Bad Request", "status": 400, "detail": "ListName has expired. Start again without a ListName.", "code": "PAGING_TOKEN_EXPIRED" }
Example: a field that failed a check
{ "title": "One or more validation errors occurred.", "status": 400,
"errors": { "SearchString": ["The length of 'Search String' must be 256 characters or fewer. You entered 300 characters."] } }
What's different from the old API
Check each item against how you use the API. Most integrations need the first four.
On five single-record reads: RetrieveBoat, RetrieveCustomer, WorkOrders/Retrieve, Estimates/Retrieve and Estimates/PrintData.
Customers, boats, work orders, estimates, orders, POS tickets.
New
| What | Where |
|---|---|
totalCount on every page of a list | All paged lists except the two work-order detail feeds |
maxOrder, minOrder, safetyStock, recommLevel per location, as "0.00" text | Inventory/ListByPage, Retrieve, RetrievePart, RetrieveOnlinePartsList, FindParts |
Idempotency-Key for safe retries | The saves listed under Sending requests |
Answers that changed
| When | Old API | New API |
|---|---|---|
AR/SubmitBatch with a ReferenceNum already on file | Overwrote the receipt | 400 “ReferenceNum X already exists.” |
Service/WorkOrders/SubmitTimeEntry sent twice within 24 hours | Two entries | The first answer, one entry |
Unknown or expired listName | Empty page | 400 with a paging code |
A date filter that can't be read (LastModifiedDate, LastUpdateDate) | Varied, sometimes 500 | 400 “… is not a valid date.” |
| Bad paging values or dates on a few routes | 500 | 400 with a reason |
AR/CalculateTax with no TaxDate | Rates dated 0001-01-01 | Today's rates |
GL/CreateJournalTransaction AcctDate with an offset or Z | Converted to the server's time zone | Dated in UTC |
PageSize over 500 | Served as sent | Served as 500 |
| A field with no value | Left out | Sent as null |
Service/WorkOrders/CreateFromEstimate on an estimate already converted | A new work order each time | The work order already made from it |
Service/WorkOrders/SubmitTimeEntry priceExtension and costExtension | 1/100 of the amount (1.60 for 160.00) | Dollars (160.00) |
The eight …/Search routes | The old search index | Matches on words, exact id first; words after the eighth are ignored. Results can differ. |
Service/Estimates/GeneratePdf | A PDF | 501; use Service/Estimates/PrintData |
Fields that read differently
| Field | Where | New API |
|---|---|---|
taxID | Customers | Always null (the old API sent an encrypted value) |
| Trailer fields | Boat reads | The first trailer only |
| Receiver, special-order and back-order fields | Inventory/PurchaseOrders reads | The first row only |
operator | MarinaOps/LaunchTickets/List | The first operator only |
boatPackagePointer | UnitSales inventory reads | The first pointer only |
comments | Orders/RetrieveOrders | Lines joined with a line break |
installmentInfo | AR/RetrieveBillingCharges | Left out |
Known gaps right now: a few fields read blank or zero until their data is moved over, such as estimate billing lists, entryPort on Orders/RetrieveOrders and some Inventory/RetrieveFuel totals. Slip and launch-operation dates show the move date until the record is saved again. On moved boat contracts, contractTotal and balanceDue leave out a discount or override insurance premiums until that data is moved over.
Endpoints
The new API serves 150 of the old API's 221 partner routes. The 69 it doesn't serve yet had no recorded partner calls from 31 July to 29 October 2026, and they answer 501 for now. If you need one, tell us before your marina moves. GET /api/v1/About/endpoints returns the full list.
| Module | Available | Not yet | Covers |
|---|---|---|---|
| Service | 48 | 34 | Work orders, estimates, operations, labor, parts, time entries, schedule |
| Inventory | 20 | 4 | Parts, stock by location, fuel, purchase and special orders, adjustments |
| AR | 17 | 2 | Invoices, billing charges, cash receipts, payment history, tax, receipt batches |
| UnitSales | 15 | 12 | Boat, motor, trailer and other units; models; quotes; contracts; unit purchase orders |
| Customers | 10 | 2 | Customer records, notes, search, statements, updates |
| Boats | 8 | 2 | Boat records, notes, search, updates, slip placement |
| General | 6 | 0 | Clerks, locations, pay types, tax schemas |
| GL | 5 | 2 | Journal transactions, account period amounts, bank deposits |
| MarinaOps | 5 | 5 | Slips, availability, launch tickets and operations, reservations |
| PointOfSale | 4 | 0 | POS tickets and payments |
| Vendors | 3 | 0 | Vendor records and search |
| AP | 2 | 2 | Payable invoices and transactions |
| Orders | 2 | 0 | Sales orders |
| metadata | 2 | 0 | Metadata |
| token | 2 | 0 | Logging in and refreshing |
| Departments | 1 | 0 | Departments |
| Prospects | 0 | 4 | Prospect records and search |
Not available yet
These answer 501. Open a module to see its routes.
AP · 2
CreateInvoice,RetrieveInvoice
AR · 2
ApplyCreditMemo,ReversePayment
Boats · 2
Notes/Save,Notes/Delete
Customers · 2
Notes/Save,Notes/Delete
GL · 2
BankReconciliation/{account}/ListWorkingAdjustments,BankReconciliation/{account}/UpdateWorkingAdjustments
Inventory · 4
PartsKits,PartsKits/List,RetrieveReceivers,SpecialOrders/ReceivedOrders
MarinaOps · 5
LaunchTicket,LaunchTickets,Reservations(GET and POST),Reservations/Cancel
Prospects · 4
Retrieve,RetrieveList,Search,UpdateProspect
Service · 34
- Work orders:
WorkOrders/RetrieveOperations,RetrieveBillingCodes,RetrieveEquipment,RetrieveMileage,RetrieveMiscSupply,RetrieveGroupDescription,SubmitBillcodeEntry,DeleteBillcodeEntry,SubmitSubletEntry,Notes/Save,WorkOrders/{id}/Reopen - Estimates:
Estimates/RetrieveLabor,RetrieveParts,RetrieveFreight,RetrieveEquipment,RetrieveMileage,RetrieveMiscSupply,RetrieveBillingCodes,SubmitBillcodeEntry,DeleteBillcodeEntry,DeletePartEntry,SubmitSubletEntry,Notes/Retrieve,Notes/Save,Estimates/{id}/Reopen - Other:
WorkOrderOperations/Notes/Retrieve,WorkOrderOperations/Notes/Save,EstimateOperations/Notes/Retrieve,EstimateOperations/Notes/Save,Notes/Delete,Operations/{parentId}/{opCode}/Reopen,Schedule/OperationSchedule,Schedule/WorkOrderSchedule,Layouts/Retrieve
UnitSales · 12
RetrieveMotorModels,RetrieveOtherModels,RetrieveTrailerModels,UpdateContract,Update{Boat,Motor,Trailer,Other}Inventory,Update{Boat,Motor,Trailer,Other}Model
Two routes won't be moved: GET Service/Estimates/GeneratePdf (use Service/Estimates/PrintData instead) and GET Service/Layouts/Xml. A full reference with every route's request and response format is built into the new API; we'll share its address when it's published.
Your checklist
Tick items off as you go. Your ticks are saved in this browser only. 0 of 10 done.