# Create terminal

Create a new terminal

Endpoint: POST /terminal
Version: 0.9.74
Security: bearer, apiKey, apiSecret

## Header parameters:

  - `Authorization` (string, required)

## Request fields (application/json):

  - `nonce` (string)

  - `name` (string, required)

  - `integrationType` (string)
    Enum: "portbase", "psa", "dpworld"

  - `ean` (string)

  - `bicsCode` (string)

  - `quayName` (string)

  - `smdgCode` (string)

  - `locations` (array)

  - `locations.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.uuid` (string, required)

  - `locations.primaryPlatformId` (string, required)

  - `locations.language` (object)
    circular reference

  - `locations.type` (string)
    Enum: "warehouse", "store", "environmentalZone", "restrictedArea", "customer", "parkingSpot", "loadingUnloadingArea", "operationalBase", "fuelStation"

  - `locations.name` (string)

  - `locations.unCode` (string)

  - `locations.geoReference` (object)

  - `locations.geoReference.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.geoReference.uuid` (string, required)

  - `locations.geoReference.primaryPlatformId` (string, required)

  - `locations.geoReference.language` (object)
    circular reference

  - `locations.geoReference.type` (string)
    Enum: "addressGeoReference", "zoneGeoReference", "tmcArrayGeoReference", "tmcLocationGeoReference", "openLRGeoReference", "GeoReference", "Feature", "latLonArrayGeoReference", "latLonPointGeoReference"

  - `locations.administrativeReference` (object)

  - `locations.administrativeReference.name` (string)

  - `locations.administrativeReference.street` (string)

  - `locations.administrativeReference.houseNumber` (string)

  - `locations.administrativeReference.houseNumberAddition` (string)

  - `locations.administrativeReference.postalCode` (string)

  - `locations.administrativeReference.city` (string)

  - `locations.administrativeReference.country` (string)

  - `locations.contactDetails` (array)

  - `locations.contactDetails.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.contactDetails.uuid` (string, required)

  - `locations.contactDetails.primaryPlatformId` (string, required)

  - `locations.contactDetails.language` (object)
    circular reference

  - `locations.contactDetails.type` (string)
    Enum: "iban", "gln", "vatCode", "name", "lastName", "middleName", "firstName", "phone", "mobilePhone", "email", "language", "other"

  - `locations.contactDetails.value` (string)

  - `locations.contactDetails.remarks` (string)

  - `locations.openingTimes` (object)

  - `locations.openingTimes.monday` (object)

  - `locations.openingTimes.monday.start` (string)

  - `locations.openingTimes.monday.end` (string)

  - `locations.openingTimes.monday.open` (boolean)

  - `locations.openingTimes.monday.day` (string)

  - `locations.openingTimes.monday.name` (string)

  - `locations.openingTimes.monday.description` (string)

  - `locations.openingTimes.tuesday` (object)

  - `locations.openingTimes.wednesday` (object)

  - `locations.openingTimes.thursday` (object)

  - `locations.openingTimes.friday` (object)

  - `locations.openingTimes.saturday` (object)

  - `locations.openingTimes.sunday` (object)

  - `locations.terminal` (object)

  - `locations.terminal.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.terminal.uuid` (string, required)

  - `locations.terminal.primaryPlatformId` (string, required)

  - `locations.terminal.language` (object)
    circular reference

  - `locations.terminal.name` (string, required)

  - `locations.terminal.integrationType` (string)
    Enum: "portbase", "psa", "dpworld"

  - `locations.terminal.ean` (string)

  - `locations.terminal.bicsCode` (string)

  - `locations.terminal.quayName` (string)

  - `locations.terminal.smdgCode` (string)

  - `locations.terminal.locations` (array)

  - `locations.terminal.allowedModalities` (array)

  - `locations.terminal.terminalSettings` (array)

  - `locations.terminal.terminalSettings.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.terminal.terminalSettings.uuid` (string, required)

  - `locations.terminal.terminalSettings.primaryPlatformId` (string, required)

  - `locations.terminal.terminalSettings.language` (object)
    circular reference

  - `locations.terminal.terminalSettings.loading` (boolean)

  - `locations.terminal.terminalSettings.full` (boolean)

  - `locations.terminal.terminalSettings.modality` (string)

  - `locations.terminal.terminalSettings.sealNumberAllowed` (boolean)

  - `locations.terminal.terminalSettings.reeferAllowed` (boolean)

  - `locations.terminal.terminalSettings.grossWeightAllowed` (boolean)

  - `locations.terminal.terminalSettings.outOfGaugeAllowed` (boolean)

  - `locations.terminal.terminalSettings.dangerousGoodsAllowed` (boolean)

  - `locations.terminal.terminalSettings.cargoCutOffInMinutes` (integer)

  - `locations.terminal.tarRequired` (boolean)

  - `locations.terminal.roadLicenseIdRequired` (boolean)

  - `locations.actions` (array)

  - `locations.actions.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.actions.uuid` (string, required)

  - `locations.actions.primaryPlatformId` (string, required)

  - `locations.actions.language` (object)
    circular reference

  - `locations.actions.type` (string)
    Enum: "load", "unload", "handOver", "stop", "move", "attachTransportEquipment", "detachTransportEquipment", "attachChauffeur", "detachChauffeur", "genericAction", "wait", "break", "refuel", "customs", "weighing", "typeTakeAndReturn", "booking"

  - `locations.actions.groupId` (string)

  - `locations.actions.name` (string, required)
    The name of the action

  - `locations.actions.externalAttributes` (object)

  - `locations.actions.identifiers` (array)

  - `locations.actions.identifiers.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.actions.identifiers.uuid` (string, required)

  - `locations.actions.identifiers.primaryPlatformId` (string, required)

  - `locations.actions.identifiers.language` (object)
    circular reference

  - `locations.actions.identifiers.name` (string)

  - `locations.actions.identifiers.system` (string)

  - `locations.actions.identifiers.value` (string)

  - `locations.actions.identifiers.expiredAt` (string)

  - `locations.actions.lifeCycle` (string)
    Enum: "requested", "planned", "projected", "actual", "realized"

  - `locations.actions.result` (object)

  - `locations.actions.result.status` (string)
    Enum: "succeeded", "failed", "partiallySucceeded", "cancelled"

  - `locations.actions.result.remark` (string)

  - `locations.actions.result.reason` (string)

  - `locations.actions.result.results` (array)

  - `locations.actions.result.answers` (object)

  - `locations.actions.result.attachments` (array)

  - `locations.actions.result.attachments.questionId` (string)

  - `locations.actions.result.attachments.type` (string)
    Enum: "photo", "signature", "document"

  - `locations.actions.result.attachments.documentId` (string)

  - `locations.actions.result.attachments.dataUrl` (string)

  - `locations.actions.remark` (string)

  - `locations.actions.sequenceNr` (integer)
    The number in which order the Action occurs

  - `locations.actions.tripSequenceNr` (integer)
    The number in which order the Action occurs within the trip

  - `locations.actions.location` (object)

  - `locations.actions.location.associationType` (string)
    Enum: "inline", "reference"

  - `locations.actions.startTime` (string)

  - `locations.actions.endTime` (string)

  - `locations.actions.eta` (string)

  - `locations.actions.etd` (string)

  - `locations.actions.timeFormat` (string)

  - `locations.actions.recurrence` (string)

  - `locations.actions.duration` (integer)
    The actual duration of the action in minutes

  - `locations.actions.estimatedDuration` (integer)
    The estimated duration of the action in minutes

  - `locations.actions.inTripOnly` (boolean)

  - `locations.actions.actions` (array)

  - `locations.actions.actions.associationType` (string)
    Enum: "inline", "reference"

  - `locations.actions.communicationRequests` (array)

  - `locations.actions.communicationRequests.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.actions.communicationRequests.uuid` (string, required)

  - `locations.actions.communicationRequests.primaryPlatformId` (string, required)

  - `locations.actions.communicationRequests.language` (object)
    circular reference

  - `locations.actions.communicationRequests.name` (string)

  - `locations.actions.communicationRequests.description` (string)

  - `locations.actions.communicationRequests.status` (string)
    Enum: "pending", "processing", "success", "failure"

  - `locations.actions.communicationRequests.responseMessage` (string)

  - `locations.actions.communicationRequests.responseValue` (string)

  - `locations.actions.documents` (array)

  - `locations.actions.documents.associationType` (string)
    Enum: "inline", "reference"

  - `locations.actions.contextEvents` (array)

  - `locations.actions.contextEvents.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.actions.contextEvents.uuid` (string, required)

  - `locations.actions.contextEvents.primaryPlatformId` (string, required)

  - `locations.actions.contextEvents.language` (object)
    circular reference

  - `locations.actions.contextEvents.type` (string)
    Enum: "generalEvent", "sensorUpdateEvent", "gateInEvent", "gateOutEvent", "arrivalEvent", "departureEvent", "stopEngineEvent", "startEngineEvent", "startWaitingEvent", "stopWaitingEvent", "stopMovingEvent", "startMovingEvent", "locationUpdateEvent", "updateEvent", "associationRemovedEvent", "associationCreatedEvent", "capacityChangeEvent"

  - `locations.actions.contextEvents.lifeCycle` (string)
    Enum: "requested", "planned", "projected", "actual", "realized"

  - `locations.actions.contextEvents.externalAttributes` (object)

  - `locations.actions.contextEvents.identifiers` (array)

  - `locations.actions.contextEvents.dateTime` (string)

  - `locations.actions.attributes` (array)

  - `locations.actions.attributes.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.actions.attributes.uuid` (string, required)

  - `locations.actions.attributes.primaryPlatformId` (string, required)

  - `locations.actions.attributes.language` (object)
    circular reference

  - `locations.actions.attributes.name` (string)

  - `locations.actions.attributes.color` (string)

  - `locations.actions.versionNumber` (integer)

  - `locations.actions.constraints` (array)

  - `locations.actions.constraints.associationType` (string, required)

  - `locations.constraints` (array)

  - `locations.constraints.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.constraints.uuid` (string, required)

  - `locations.constraints.primaryPlatformId` (string, required)

  - `locations.constraints.language` (object)
    circular reference

  - `locations.constraints.type` (string)
    Enum: "accessConstraint", "timeConstraint", "timeWindowsConstraint", "startDateTimeConstraint", "endDateTimeConstraint", "sizeConstraint", "weightConstraint", "speedConstraint", "sensorValueConstraint", "fuelTypeConstraint", "vehicleTypeConstraint", "emissionStandardConstraint", "attributeConstraint", "transportEquipmentTypeConstraint", "routeConstraint", "andConstraint", "orConstraint", "notConstraint", "genericConstraint"

  - `locations.constraints.name` (string)

  - `locations.constraints.enforceability` (string)
    Enum: "enforced", "preference"

  - `locations.pricingElements` (array)

  - `locations.pricingElements.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.pricingElements.uuid` (string, required)

  - `locations.pricingElements.primaryPlatformId` (string, required)

  - `locations.pricingElements.language` (object)
    circular reference

  - `locations.pricingElements.sequenceNr` (integer)

  - `locations.pricingElements.quantity` (integer)

  - `locations.pricingElements.name` (string)

  - `locations.pricingElements.description` (string)

  - `locations.pricingElements.category` (object)

  - `locations.pricingElements.category.nonce` (string)
    Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.

  - `locations.pricingElements.category.uuid` (string, required)

  - `locations.pricingElements.category.primaryPlatformId` (string, required)

  - `locations.pricingElements.category.language` (object)
    circular reference

  - `locations.pricingElements.category.name` (string)

  - `locations.pricingElements.category.creditCode` (string)

  - `locations.pricingElements.category.debitCode` (string)

  - `locations.pricingElements.category.defaultValue` (number)

  - `locations.pricingElements.category.enabled` (boolean)

  - `locations.pricingElements.category.tripRevenue` (boolean)

  - `locations.pricingElements.business` (object)
    circular reference

  - `locations.remark` (string)

  - `locations.hash` (string)

  - `locations.identifiers` (array)

  - `locations.externalAttributes` (object)

  - `locations.dataIsComplete` (boolean)

  - `allowedModalities` (array)

  - `terminalSettings` (array)

  - `tarRequired` (boolean)

  - `roadLicenseIdRequired` (boolean)

## Response 200 fields (application/json):

  - `success` (boolean)

  - `message` (string)

  - `code` (integer)

  - `terminal` (object)

## Response 400 fields (application/json):

  - `success` (boolean)

  - `message` (string)

  - `code` (integer)

  - `errors` (array)

  - `suggestion` (string)


