Skip to content

Documents REST API

All document operations use the REST API at /api/v2.

For a guided walkthrough, see the Working with Documents guide.

MethodEndpointDescription
PUT/api/v2/organisations/{orgId}/documents/{docId}Create or update a document
GET/api/v2/organisations/{orgId}/documents/{docId}Fetch a document
DELETE/api/v2/organisations/{orgId}/documents/{docId}Delete a document
ParameterDescription
upsert=trueCreate the document if it doesn’t exist, update if it does
enableBaseOrgs=trueAuto-create organisations when Core ID doesn’t match an existing connection
MethodEndpointDescription
POST/api/v2/organisations/{orgId}/document-jobs/Submit a batch of documents
GET/api/v2/organisations/{orgId}/document-jobs/List all batch jobs
GET/api/v2/organisations/{orgId}/document-jobs/{batchId}Get batch job details
GET/api/v2/organisations/{orgId}/document-jobs/{batchId}/resultGet batch job results
DELETE/api/v2/organisations/{orgId}/document-jobs/{batchId}Cancel a batch job
ParameterDescription
enableBaseOrgs=trueAuto-create organisations when Core ID doesn’t match an existing connection
selfCoreId={value}Set the location’s self Core ID for matching the occupant in the batch
PropertyTypeRequiredDescription
idstringYesUnique document identifier
directionstringYesInbound or Outbound
occupantOrgRef*The location organisation
offsiteOrgRef*The remote organisation
carrierOrgRef*The transport company
loadsLoad[]NoArray of load line items
settingsobjectNo{ mode, maxUses }
validDatesDateRangeNo{ begin, end } — bookable window
preferredDatesDateRangeNo{ begin, end } — preferred dates
descriptionstringNoOptional description
attributesobjectNoKey-value metadata
status{ name }NoDocument status label
type{ name }NoDocument type label

* At least one of occupant, offsite, or carrier must be provided.

An organisation can be referenced by Mobiledock ID or by Core ID:

// By Mobiledock ID
{ "id": "990090c9-7506-487b-9872-c4e65557ae75" }
// By Core ID
{ "coreName": "SUPPLIER", "coreId": "0001" }
PropertyTypeRequiredDescription
namestringYesLoad type name
quantitynumberYesNumber of units
loadTagstringNoIdentifier (e.g. SKU)
ModeDescription
FreeBooker can modify loads
FixedBooker cannot modify loads
FlexibleBooker can modify quantities but not load types
CodeDescription
200Document updated
201Document created
400Invalid payload — see response body
CodeDescription
200Document returned
CodeDescription
200Document deleted