1. Overview

Microservice containing the business logic for validating and processing different import requests like WorkOrder, ProcessOrder, Material, MaterialLot, OSP and MBOM.

Descriptions of these functions can be found in the section headers for each collection of relevant resources.

1.1. URI scheme

Host : localhost
BasePath : /

1.2. Tags

  • import-service-controller : Import Service Controller

2. Resources

2.1. Import-service-controller

Import Service Controller

2.1.1. Import Assignments Lots

POST /v1/importAssignmentsLots
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Body

input
required

Import Assignment

RequestInfo

Responses
HTTP Code Description Schema

200

Validated

object

400

Bad Request

No Content

401

Unauthorized

No Content

404

Validation Failed

No Content

500

Internal server error

No Content

Consumes
  • application/json

  • application/vnd.ge.mes.full+json;version=1.0

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.2. Import data entry plan

POST /v1/importDataEntryPlan
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Body

input
required

Import data entry plan

RequestInfo

Responses
HTTP Code Description Schema

202

Accepted

object

400

Bad Request

No Content

401

Unauthorized

No Content

422

Unprocessable Entity

No Content

500

Internal server error

No Content

Consumes
  • application/vnd.ge.mes.full+json;version=1.0

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.3. Get the statuses of the submitted jobs

GET /v1/importJobs/{jobIdsList}
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Path

jobIdsList
required

List of comma separated Job Ids

string

Responses
HTTP Code Description Schema

200

Ok

< ResponseInfo > array

401

Unauthorized

No Content

404

Not found

No Content

500

Internal server error

No Content

Produces
  • application/json

  • application/vnd.ge.mes.full+json;version=1.0

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.4. Import MBOM

POST /v1/importMBOM
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Body

input
required

Import BOM

RequestInfo

Responses
HTTP Code Description Schema

200

Validated

object

400

Bad Request

No Content

401

Unauthorized

No Content

404

Validation Failed

No Content

500

Internal server error

No Content

Consumes
  • application/json

  • application/vnd.ge.mes.full+json;version=1.0

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.5. Import Material

POST /v1/importMaterialJobs
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Body

input
required

Import Material with media type of XML/JSON, Job Id and the import message specified.

RequestInfo

Responses
HTTP Code Description Schema

202

Accepted

object

400

Bad Request

No Content

401

Unauthorized

No Content

404

Not found

No Content

500

Internal server error

No Content

Consumes
  • application/json

  • application/vnd.ge.mes.full+json;version=1.0

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.6. Import MaterialLots

POST /v1/importMaterialLotJobs
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Body

input
required

Import Material Lots with media type of XML/JSON, Job Id and the import message itself specified.

RequestInfo

Responses
HTTP Code Description Schema

202

Accepted

object

400

Bad Request

No Content

401

Unauthorized

No Content

404

Not found

No Content

500

Internal server error

No Content

Consumes
  • application/json

  • application/vnd.ge.mes.full+json;version=1.0

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.7. Import Osp

POST /v1/importOspJobs
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Body

input
required

Import OSP with media type of XML/JSON, Job Id and the import message itself specified.

RequestInfo

Responses
HTTP Code Description Schema

202

Accepted

object

400

Bad Request

No Content

401

Unauthorized

No Content

404

Not found

No Content

500

Internal server error

No Content

Consumes
  • application/json

  • application/vnd.ge.mes.full+json;version=1.0

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.8. Import ProcessOrder

POST /v1/importProcessOrderJobs
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Body

input
required

Import ProcessOrder with media type of XML/JSON, Job Id and the import message itself specified.

RequestInfo

Responses
HTTP Code Description Schema

202

Accepted

object

400

Bad Request

No Content

401

Unauthorized

No Content

404

Not found

No Content

500

Internal server error

No Content

Consumes
  • application/json

  • application/vnd.ge.mes.full+json;version=1.0

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.9. Import route

POST /v1/importRoute
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Body

input
required

Import route with media type of JSON, Job Id and the import message itself specified.

RequestInfo

Responses
HTTP Code Description Schema

202

Accepted

object

400

Bad Request

No Content

401

Unauthorized

No Content

404

Not found

No Content

500

Internal server error

No Content

Consumes
  • application/json

  • application/vnd.ge.mes.full+json;version=1.0

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.10. Import Tool

POST /v1/importTool
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Body

input
required

import Tool

RequestInfo

Responses
HTTP Code Description Schema

202

Accepted

object

400

Bad Request

No Content

401

Unauthorized

No Content

422

Unprocessable Entity

No Content

500

Internal server error

No Content

Consumes
  • application/vnd.ge.mes.full+json;version=1.0

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.11. Import WorkOrder

POST /v1/importWorkOrderJobs
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Body

input
required

Import WorkOrder with media type of XML/JSON, Job Id and the import message specified.

RequestInfo

Responses
HTTP Code Description Schema

202

Accepted

object

400

Bad Request

No Content

401

Unauthorized

No Content

404

Not found

No Content

500

Internal server error

No Content

Consumes
  • application/json

  • application/vnd.ge.mes.full+json;version=1.0

Produces
  • /

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

2.1.12. Get the number of submitted but yet to be processed requests or jobs. It is recommended to check if the size is less than 100 before submitting any new request or job. If the size is 100 or more, wait for some time for it come down to below 100.

GET /v1/queueSize
Parameters
Type Name Description Schema

Header

Site-Id
required

Represents the id of the site to connect to

string

Responses
HTTP Code Description Schema

200

Ok

object

401

Unauthorized

No Content

404

Not found

No Content

500

Internal server error

No Content

Produces
  • application/json

  • application/vnd.ge.mes.full+json;version=1.0

Security
Type Name Scopes

oauth2

access_token

default

oauth2

resource_owner

default

oauth2

implicit_grant

default

oauth2

client_creds

default

3. Definitions

3.1. BillOfMaterialInfo

Bill of Materials of a work order.

Name Description Schema

behaviors
required

behaviors of the material

< string > array

bomItemId
required

Bom Item Id of the material

integer (int32)

bomItemName
optional

string

defaultStorageUnit
required

Name of the defaultStorageUnit

string

defaultStorageUnitId
optional

defaultStorageUnitId of the material

integer (int32)

displayOrder
required

display order of the Bom Item

integer (int32)

lowerTolerance
optional

lowerTolerance of the material

number (double)

lowerTolerancePrecision
optional

lowerTolerancePrecision of the material

integer (int32)

materialId
required

Id of the material

integer (int64)

materialName
required

Name of the material

string

propertyValues
optional

< MaterialProperties > array

quantity
required

Quantity of the material

number (double)

quantityPrecision
optional

quantityPrecision of the material

integer (int32)

requiresConsumptionTracking
required

Determines if Consumption is required

boolean

scrapFactor
optional

scrapFactor of the material

number (double)

substitution
optional

< Substitutions > array

unitOfMeasureId
required

Id of the unitOfMeasure

integer (int64)

unitOfMeasureName
required

unit Of Measure

string

upperTolerance
optional

upperTolerance of the material

number (double)

upperTolerancePrecision
optional

upperTolerancePrecision of the material

integer (int32)

3.2. DocumentInfo

Documents of a route.

Name Description Schema

displayName
required

Name of the document

string

link
required

Link of the document

string

3.3. MaterialInfo

Material Information from ERP to import a material.

Name Description Schema

externalRevision
optional

Product external revision info

integer (int32)

isSerialized
optional

The product Id is serialized or not

boolean

productCode
required

ProductCode of the material

string

productDescription
required

ProductDescription of the material

string

productFamily
optional

ProductFamily of the material

string

propertyValues
optional

Properties of the material

< MaterialProperties > array

3.4. MaterialLotImportDocumentInfo

MaterialLot Information from ERP to import a MaterialLot.

Name Description Schema

materialLot
required

List of material lots

< MaterialLotInfo > array

schemaVersion
required

Version of the MaterialLot document

integer (int32)

3.5. MaterialLotInfo

Information from ERP to import a MaterialLot.

Name Description Schema

description
optional

Description of the materialLot

string

isSerialized
optional

The product Id is serialized or not

boolean

lotIdentifier
required

Name of the materialLot

string

materialLotId
optional

Id of materialLot

integer (int64)

materialSubLots
optional

List of MaterialSubLots

< MaterialSubLots > array

processOrderId
optional

processOrderId

integer (int64)

productId
optional

productId

integer (int64)

productName
required

Name of the Product

string

productionLine
optional

Name of the ProductionLine

string

productionUnit
optional

Name of the productionUnit

string

propertyValues
optional

properties associated to a materialLot.

< MaterialProperties > array

quantity
required

Quantity of the Product

number (double)

segmentId
optional

segmentId

integer (int64)

status
optional

Status of the materialLot

string

statusId
optional

Id of the Status

integer (int64)

unitId
optional

Id of the Unit

integer (int64)

unitOfMeasure
optional

UnitOfMeasure associated to Unit

string

unitOfMeasureId
optional

unitOfMeasureId

integer (int64)

workOrderId
optional

workOrderId

integer (int64)

3.6. MaterialMasterInfo

Material to import.

Name Description Schema

material
optional

Material details.

MaterialInfo

productionLines
optional

Units to which material will be associated.

< string > array

schemaVersion
required

Schema version of the material master import document

integer (int32)

storageUnit
optional

Storage Unit

string

storageZone
optional

Storage Zone

string

unitOfMeasureId
optional

integer (int64)

3.7. MaterialProperties

Properties of a material.

Name Description Schema

propertyDataType
optional

Datatype of property

string

propertyDefinitionId
optional

Id of property

string

propertyName
required

Name of the property

string

propertyValue
required

Value of the property

string

required
optional

boolean

3.8. MaterialSubLots

Name Schema

lotIdentifier
optional

string

quantity
optional

number (double)

3.9. OperationsGroupInfo

OperationsGroupInfo data tranfer object

Name Description Schema

operations
optional

List Of Operations.

< OperationsInfo > array

route
optional

Route Operation details.

RouteOperationInfo

3.10. OperationsInfo

Operation data tranfer object

Name Description Schema

behaviors
optional

Behaviors associated to operation

< string > array

billOfMaterials
optional

Bill of materials associated to operation

< BillOfMaterialInfo > array

description
optional

Description of the operation

string

displayOrder
optional

displayOrder of the operation

integer (int32)

documents
optional

Documents associated to operation

< DocumentInfo > array

id
optional

integer (int64)

laborTypeIds
optional

< integer (int64) > array

name
optional

Name of the operation

string

plannedUnitIds
optional

units associated to a operation

< integer (int64) > array

plannedUnitNames
optional

Name of the units associated to a operation

< string > array

propertyValues
optional

properties associated to operation

< MaterialProperties > array

sequenceNumber
optional

Sequence number of the operation

integer (int32)

skipIfSuccessorStarted
optional

skipIfSuccessorStart to operation

boolean

suggestedLaborTypes
optional

laborTypes associated to operation

< string > array

3.11. ProcessOrderImportDocumentInfo

Process Order Information from ERP to import a Process order.

Name Description Schema

blockNumber
optional

blockNumber of the processorder

string

bomFormulation
required

bomFormulation of the processorder

string

bomFormulationId
optional

bomFormulationId of the processorder

integer (int64)

extendedInfo
optional

extendedInfo of the processorder

string

orderTypeId
optional

orderTypeId of the processorder

integer (int64)

path
optional

path of the processorder

string

pathId
optional

pathId of the processorder

integer (int64)

plannedEndDate
required

plannedEndDate of the workorder

string (date-time)

plannedLineId
optional

plannedLineId of the workorder

integer (int32)

plannedLineName
required

plannedLineName of the workorder

string

plannedQuantity
optional

plannedQuantity of the processorder

number (double)

plannedStartDate
required

plannedStartDate of the workorder

string (date-time)

priority
required

priority of the workorder

integer (int32)

processOrderName
required

Name of the processorder

string

producedMaterialId
optional

producedMaterialId of the workorder

integer (int64)

producedMaterialName
required

producedMaterialName of the workorder

string

productionRate
optional

productionRate of the processorder

number (double)

propertyValues
optional

Properties of the processorder

< MaterialProperties > array

schemaVersion
required

Version of the Workorder document

integer (int32)

status
optional

status of the processorder

string

statusId
optional

statusId of the processorder

integer (int64)

userGeneral1
optional

userGeneral1 of the processorder

string

userGeneral2
optional

userGeneral2 of the processorder

string

userGeneral3
optional

userGeneral3 of the processorder

string

3.12. RequestInfo

Name Description Schema

jobId
required

Job Id, this should be unique integer value for each request.

integer (int64)

mediaType
required

Media type, either application/xml or application/json

string

message
required

Message describing the WorkOrder/Material/MaterialLot/OSP/ProcessOrder being imported. Please visit the 'ERP Integration Guide' for the details of the message structure for each type of import and media type.

string

3.13. ResponseInfo

Name Schema

jobId
optional

integer (int64)

keyData
optional

string

orgCode
optional

string

responseCode
optional

integer (int32)

responseMessage
optional

< string > array

3.14. RouteOperationInfo

RouteOperationInfo data tranfer object

Name Description Schema

behaviors
optional

Behaviors associated to Route operation

< string > array

billOfMaterials
optional

List of Bill of materials associated to Route operation

< BillOfMaterialInfo > array

documents
optional

List of documents associated to Route operation

< DocumentInfo > array

propertyValues
optional

properties associated to Route operation

< MaterialProperties > array

3.15. Substitutions

substitutions of the material

Name Description Schema

conversionFactor
required

conversionFactor of the substitute

number (double)

materialName
required

Material Name of the substitute

string

unitOfMeasureName
required

unitOfMeasure Name of the substitute

string

3.16. WorkOrderImportDocumentInfo

WorkOrderImportDocumentInfo data tranfer object

Name Description Schema

operationsGroup
optional

OperationsGroup Info

OperationsGroupInfo

plannedEndDate
required

plannedEndDate of the workorder

string (date-time)

plannedLineId
optional

plannedLineId of the workorder

integer (int32)

plannedLineName
required

plannedLineName of the workorder

string

plannedStartDate
required

plannedStartDate of the workorder

string (date-time)

priority
required

priority of the workorder

integer (int32)

producedMaterialId
optional

producedMaterialId of the workorder

integer (int64)

producedMaterialName
required

producedMaterialName of the workorder

string

routeDefinitionId
optional

Route Definition Id

integer (int64)

routeDefinitionMinorRevision
optional

Route Definition Minor Revision

integer (int32)

routeDefinitionName
optional

Route Definition Name

string

routeDefinitionRevision
optional

Route Definition Revision

integer (int32)

schemaVersion
required

Version of the Workorder document

integer (int32)

workOrderName
optional

Name of the Workorder

string

4. Security

4.1. access_token

Type : oauth2
Flow : accessCode
Token URL : http://uaa:8080/uaa/oauth/authorize
Token URL : http://uaa:8080/uaa/oauth/token

Name Description

default

Default oauth2 scope.

4.2. resource_owner

Type : oauth2
Flow : password
Token URL : http://uaa:8080/uaa/oauth/token

Name Description

default

Default oauth2 scope.

4.3. implicit_grant

Type : oauth2
Flow : implicit
Token URL : http://uaa:8080/uaa/oauth/authorize

Name Description

default

Default oauth2 scope.

4.4. client_creds

Type : oauth2
Flow : application
Token URL : http://uaa:8080/uaa/oauth/token

Name Description

default

Default oauth2 scope.