# Create goods

Create a new goods

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

## Header parameters:

  - `Authorization` (string, required)

## Request fields (application/json):

  - `nonce` (string)

  - `type` (string)
    Enum: "transportEquipment", "items"

  - `name` (string)

  - `description` (string)

  - `remark` (string)

  - `barCode` (string)

  - `quantity` (integer)

  - `weight` (object)

  - `weight.value` (string)

  - `weight.unit` (string)

  - `grossWeight` (object)

  - `maxStackableWeight` (object)

  - `width` (object)

  - `height` (object)

  - `length` (object)

  - `loadMeters` (object)

  - `documents` (array)

  - `documents.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.

  - `documents.uuid` (string, required)

  - `documents.primaryPlatformId` (string, required)

  - `documents.language` (object)
    circular reference

  - `documents.name` (string)

  - `documents.description` (string)

  - `documents.expiresAt` (string)

  - `documents.fileName` (string)

  - `documents.mimeType` (string)

  - `documents.encoding` (string)

  - `documents.verified` (boolean)

  - `documents.owner` (object)

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

  - `documents.content` (object, required)

  - `documents.content.contentType` (string)
    Enum: "data", "uri"

  - `documents.file` (object)

  - `documents.file.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.

  - `documents.file.uuid` (string, required)

  - `documents.file.primaryPlatformId` (string, required)

  - `documents.file.language` (object)
    circular reference

  - `documents.file.url` (string)

  - `documents.file.path` (string)

  - `documents.file.name` (string)

  - `documents.file.originalName` (string)

  - `documents.file.size` (integer)

  - `documents.file.purpose` (string)

  - `documents.file.type` (string)
    Enum: "IMAGE", "VIDEO", "MUSIC", "WORD", "EXCEL", "CSV", "PDF", "EMAIL", "JSON"

  - `documents.file.mimeType` (string)

  - `documents.file.extension` (string)

  - `documents.file.identifiers` (array)

  - `documents.file.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.

  - `documents.file.identifiers.uuid` (string, required)

  - `documents.file.identifiers.primaryPlatformId` (string, required)

  - `documents.file.identifiers.language` (object)
    circular reference

  - `documents.file.identifiers.name` (string)

  - `documents.file.identifiers.system` (string)

  - `documents.file.identifiers.value` (string)

  - `documents.file.identifiers.expiredAt` (string)

  - `documents.file.bucket` (object)

  - `documents.file.bucket.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.

  - `documents.file.bucket.uuid` (string, required)

  - `documents.file.bucket.primaryPlatformId` (string, required)

  - `documents.file.bucket.language` (object)
    circular reference

  - `documents.file.bucket.name` (string)

  - `documents.file.uploadedAt` (string)

  - `documents.file.tempFile` (string)

  - `documents.file.contentMatrix` (array)

  - `documents.identifiers` (array)

  - `documents.externalAttributes` (object)

  - `actors` (array)

  - `actors.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.

  - `actors.uuid` (string, required)

  - `actors.primaryPlatformId` (string, required)

  - `actors.language` (object)
    circular reference

  - `actors.name` (string)

  - `actors.user` (object)
    circular reference

  - `actors.identifiers` (array)

  - `actors.contactDetails` (array)

  - `actors.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.

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

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

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

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

  - `actors.contactDetails.value` (string)

  - `actors.contactDetails.remarks` (string)

  - `actions` (array)

  - `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.

  - `actions.uuid` (string, required)

  - `actions.primaryPlatformId` (string, required)

  - `actions.language` (object)
    circular reference

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

  - `actions.groupId` (string)

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

  - `actions.externalAttributes` (object)

  - `actions.identifiers` (array)

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

  - `actions.result` (object)

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

  - `actions.result.remark` (string)

  - `actions.result.reason` (string)

  - `actions.result.results` (array)

  - `actions.result.answers` (object)

  - `actions.result.attachments` (array)

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

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

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

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

  - `actions.remark` (string)

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

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

  - `actions.location` (object)

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

  - `actions.startTime` (string)

  - `actions.endTime` (string)

  - `actions.eta` (string)

  - `actions.etd` (string)

  - `actions.timeFormat` (string)

  - `actions.recurrence` (string)

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

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

  - `actions.inTripOnly` (boolean)

  - `actions.actions` (array)

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

  - `actions.communicationRequests` (array)

  - `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.

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

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

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

  - `actions.communicationRequests.name` (string)

  - `actions.communicationRequests.description` (string)

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

  - `actions.communicationRequests.responseMessage` (string)

  - `actions.communicationRequests.responseValue` (string)

  - `actions.documents` (array)

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

  - `actions.contextEvents` (array)

  - `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.

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

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

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

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

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

  - `actions.contextEvents.externalAttributes` (object)

  - `actions.contextEvents.identifiers` (array)

  - `actions.contextEvents.dateTime` (string)

  - `actions.attributes` (array)

  - `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.

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

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

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

  - `actions.attributes.name` (string)

  - `actions.attributes.color` (string)

  - `actions.versionNumber` (integer)

  - `actions.constraints` (array)

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

  - `constraints` (array)

  - `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.

  - `constraints.uuid` (string, required)

  - `constraints.primaryPlatformId` (string, required)

  - `constraints.language` (object)
    circular reference

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

  - `constraints.name` (string)

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

  - `identifiers` (array)

  - `attributes` (array)

  - `stackObjectMetrics` (object)

  - `stackObjectMetrics.totalMinimumGroundSpace` (object)

  - `stackObjectMetrics.totalVolume` (object)

  - `stackObjectMetrics.totalWeight` (object)

  - `stackObjectMetrics.totalMinimumLoadMeters` (object)

  - `isStackObjectMetricsUpdated` (boolean)

## Response 200 fields (application/json):

  - `success` (boolean)

  - `message` (string)

  - `code` (integer)

  - `goods` (object)

  - `goods.id` (string, required)
    Uniquely identifies this entity. A ID can be assigned  or will be generated by the server if the request doesn't provide it. Once assigned, the ID can't be changed

  - `goods.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.

  - `goods.uuid` (string, required)

  - `goods.primaryPlatformId` (string, required)

  - `goods.createdAt` (string)
    The date and time this Entity has been created

  - `goods.updatedAt` (string)
    The date and time this Entity has been updated

  - `goods.language` (object)
    circular reference

  - `goods.type` (string)
    Enum: "transportEquipment", "items"

  - `goods.name` (string)

  - `goods.description` (string)

  - `goods.remark` (string)

  - `goods.barCode` (string)

  - `goods.quantity` (integer)

  - `goods.weight` (object)

  - `goods.grossWeight` (object)

  - `goods.maxStackableWeight` (object)

  - `goods.width` (object)

  - `goods.height` (object)

  - `goods.length` (object)

  - `goods.loadMeters` (object)

  - `goods.documents` (array)

  - `goods.actors` (array)

  - `goods.actions` (array)

  - `goods.constraints` (array)

  - `goods.identifiers` (array)

  - `goods.attributes` (array)

  - `goods.stackObjectMetrics` (object)

  - `goods.isStackObjectMetricsUpdated` (boolean)

## Response 400 fields (application/json):

  - `success` (boolean)

  - `message` (string)

  - `code` (integer)

  - `errors` (array)

  - `suggestion` (string)


