Documentation (1.0.5)
Download OpenAPI specification:Download
Documentation for the Track and Trace infrastructure
search for an Asset by display-name value and return the trackId if exists.
get an Asset Id by the display-name
Authorizations:
query Parameters
| displayNameValue required | string Display Name value |
| organizationId required | string Organization Id |
| supplyChainId required | string Supply Chain ID |
| workflowId required | string Workflow ID |
Responses
Response samples
- 200
{- "custodian": "string",
- "dateUpdated": "2019-08-24T14:15:22Z",
- "displayProperty": {
- "name": "string",
- "value": "string"
}, - "properties": [
- {
- "metadata": "string",
- "name": "string",
- "ordinal": 0,
- "propertyTemplateId": "string",
- "type": "string",
- "value": "string"
}
], - "status": "string",
- "trackId": "string"
}Get Assets by track ids
Get a list of Assets by its track ids
Authorizations:
query Parameters
| assetIds | Array of strings Asset List of IDs |
| organizationId required | string Organization Id |
Responses
Response samples
- 200
[- {
- "assetTemplateId": "string",
- "dateCreated": "2019-08-24T14:15:22Z",
- "dateUpdated": "2019-08-24T14:15:22Z",
- "id": "string",
- "metadata": "string",
- "organizationId": "string",
- "propertiesList": [
- {
- "dateCreated": "2019-08-24T14:15:22Z",
- "name": "string",
- "propertyTemplateId": "string",
- "type": "string",
- "value": "string",
- "version": 0
}
], - "snapshotId": "string"
}
]Upload a file
This endpoint allows you to upload a file up to 50 Megabytes.
There are some valid extensions to upload such as:
- PDF, DOC, DOCX, XLS, CSV, TXT, JPG, JPEG, PNG and ZIP
If the required properties are not provided, a 422 error code will be returned.
If the request is successful, the API will return an UploadedFile object, which includes information about
the file that was uploaded.
Request Body schema: multipart/form-data
| assetVersion | integer <int32> |
| extensionFile | string |
| file | string <binary> (File) File object that you want to upload. |
| supplyChainId | string |
| trackId | string |
| workflowDefinitionId | string |
Responses
Response samples
- 200
{- "file-hash": "string",
- "file-name": "string",
- "file-url": "string"
}Get all balances related to an organization and inventory
Get a list of balances
Authorizations:
query Parameters
| organizationId required | string Organization Id |
| inventoryId | string Inventory ID |
Responses
Response samples
- 200
- 204
[- {
- "dateUpdated": "2019-08-24T14:15:22Z",
- "income": "string",
- "outcome": "string",
- "product": {
- "dateCreated": "2019-08-24T14:15:22Z",
- "dateUpdated": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": 0,
- "name": "string",
- "organizationId": "string",
- "productId": "string",
- "productUnit": {
- "dateCreated": "2019-08-24T14:15:22Z",
- "dateUpdated": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": 0,
- "name": "string",
- "organizationId": "string",
- "productUnitId": "string"
}
}, - "quantity": "string"
}
]Get all inventory events related to a product and an inventory
Get a list of inventory events
Authorizations:
query Parameters
| organizationId required | string Organization Id |
| productId | string Product ID |
| inventoryId | string Inventory ID |
| dateFrom | string <date> date filter from bound |
| dateTo | string <date> date filter to bound |
| tags | Array of strings Multiple tags filter |
| flow | string Enum: "INFLOW" "OUTFLOW" filter by flow |
| size | integer <int> [ 5 .. 100 ] Default: 20 The number of items to return per page |
| page | integer Page of the results |
| sort | Array of strings Example: sort=name,name,asc,name,desc The sort order that you want to return. You can specify one or more comma-separated sort keys, each followed by
an optional sort direction of either If you want to sort in descending order, append Examples of valid sort query parameters include:
|
Responses
Response samples
- 200
{- "pageContent": [
- {
- "assetTemplateId": "string",
- "dateCreated": "2019-08-24T14:15:22Z",
- "dateUpdated": "2019-08-24T14:15:22Z",
- "id": "string",
- "metadata": "string",
- "organizationId": "string",
- "propertiesList": [
- {
- "dateCreated": "2019-08-24T14:15:22Z",
- "name": "string",
- "propertyTemplateId": "string",
- "type": "string",
- "value": "string",
- "version": 0
}
], - "snapshotId": "string"
}
], - "contentType": "AssetFullDetailsPageDTO",
- "pageElements": 0,
- "pageNumber": 0,
- "totalElements": 0,
- "totalPages": 0
}Get the balance related an specific product
Get the balance of a product
Authorizations:
query Parameters
| organizationId required | string Organization Id |
| inventoryId | string Inventory ID |
| productId | string Product ID |
| dateFrom | string <date> date filter from bound |
| dateTo | string <date> date filter to bound |
Responses
Response samples
- 200
{- "dateUpdated": "2019-08-24T14:15:22Z",
- "income": "string",
- "outcome": "string",
- "product": {
- "dateCreated": "2019-08-24T14:15:22Z",
- "dateUpdated": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": 0,
- "name": "string",
- "organizationId": "string",
- "productId": "string",
- "productUnit": {
- "dateCreated": "2019-08-24T14:15:22Z",
- "dateUpdated": "2019-08-24T14:15:22Z",
- "description": "string",
- "id": 0,
- "name": "string",
- "organizationId": "string",
- "productUnitId": "string"
}
}, - "quantity": "string"
}Start / Update a step in a workflow Deprecated
This endpoint allows you to start or update a step in a workflow. To do so, you'll need to provide metadata
about the step and its execution in the form of a StepMetadata object in the request body.
As part of the body StepMetadata object you can also include the stepExecutorMetadata to provide any
additional metadata required to run the step. The specific properties required at each endpoint are dynamic
depending on what has been configured for this step in a workflow. You can see what properties are required
by making a GET request to /v1/step-executions/execution-metadata/{stepDefinitionId}/{workflowDefinitionId} with the relevant step definition ID.
If the required properties are not provided, a 422 error code will be returned.
If the request is successful, the API will return a StepInstance object, which includes information about
the step instance that was created.
Note that certain error codes may be returned if the required metadata is not provided or if validation issues are encountered. More information on these error codes can be found in the responses section below.
Authorizations:
query Parameters
| organization-id required | string Organization Id |
Request Body schema: application/json
Metadata about the step and its execution
| assetTrackId | string |
| stepDefinitionId required | string |
object Additional metadata required to run the step. Information about the properties required for a specific step is available at geStepExecutionMetadataSchema section | |
| supplyChainId required | string |
| workflowDefinitionId required | string |
Responses
Request samples
- Payload
{- "assetTrackId": "assetTrack123",
- "stepDefinitionId": "def456",
- "stepExecutorMetadata": {
- "assetId": "asset-id",
- "properties": {
- "address": {
- "city": "Anytown",
- "state": "CA",
- "street": "123 Main St",
- "zip": "12345"
}, - "items": [
- "item1",
- "item2",
- "item3"
], - "price": 5.99,
- "quantity": 10
}
}, - "supplyChainId": "chain101",
- "workflowDefinitionId": "workflow789"
}Response samples
- 200
{- "assetTrackId": "string",
- "errorCode": "string",
- "errorDetails": "string",
- "id": 0,
- "message": "string",
- "status": "string",
- "stepDefinitionId": "string",
- "stepInstanceId": "string",
- "workflowInstanceId": "string"
}Execute a specific step in a workflow instance
Executes the specified step in the given workflow instance
path Parameters
| instanceId required | string |
| definitionId required | string |
query Parameters
| organization-id required | string Organization Id |
Request Body schema: application/json
required | object Map of input field keys to their values for step execution | ||
| |||
Responses
Request samples
- Payload
{- "executionValues": {
- "property1": { },
- "property2": { }
}
}Response samples
- 200
- 422
{- "instanceId": "string"
}Retry a failed step with corrected data
Allows retrying a failed step with corrected metadata to resolve validation or execution errors
path Parameters
| instanceId required | string |
| definitionId required | string |
query Parameters
| organization-id required | string Organization Id |
Request Body schema: application/json
required | object Map of input field keys to their values for step execution | ||
| |||
Responses
Request samples
- Payload
{- "executionValues": {
- "property1": { },
- "property2": { }
}
}Response samples
- 200
- 422
{- "instanceId": "string"
}Initialize a workflow instance and run the init step
Creates a new workflow instance and executes its initialization step
query Parameters
| organization-id required | string Organization Id |
Request Body schema: application/json
| assetTrackId required | string or null Unique identifier of the asset. If this field is null, an asset will be created. If a value is provided, an asset will be imported. |
| definitionId required | string Unique identifier of the workflow definition to initialize |
Responses
Request samples
- Payload
{- "assetTrackId": "string",
- "definitionId": "string"
}Response samples
- 201
- 422
{- "instanceId": "string"
}