AlphaAlpha Docs
API ReferenceAsset instances

Get an asset instance by id

Retrieves a specific asset instance

GET
/asset-instances/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/asset-instances/string"
{
  "address": {
    "city": "string",
    "country": "string",
    "houseNumber": "string",
    "id": "string",
    "latitude": 0.1,
    "longitude": 0.1,
    "postalCode": "string",
    "street": "string"
  },
  "assetLocation": {
    "children": [
      "string"
    ],
    "clients": [
      "string"
    ],
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "description": "string",
    "id": "string",
    "isRoot": true,
    "name": "string",
    "tenantId": "string",
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  },
  "certifications": [
    {
      "critical": true,
      "description": "string",
      "documents": [
        {
          "blobId": "string",
          "created": "2019-08-24T14:15:22Z",
          "extension": "string",
          "fileSize": 0,
          "name": "string",
          "type": "IMAGE"
        }
      ],
      "expirationDate": "2019-08-24T14:15:22Z",
      "id": "string",
      "isCritical": true,
      "isRepeat": true,
      "issueDate": "2019-08-24T14:15:22Z",
      "repeat": true,
      "status": "VALID",
      "type": "string"
    }
  ],
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currentValue": 0.1,
  "failures": [
    {
      "alerted": "2019-08-24T14:15:22Z",
      "arrival": "2019-08-24T14:15:22Z",
      "cause": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "repaired": "2019-08-24T14:15:22Z",
      "type": "string"
    }
  ],
  "id": "string",
  "installationDate": "2019-08-24T14:15:22Z",
  "maintenance": [
    {
      "documents": [
        {
          "blobId": "string",
          "created": "2019-08-24T14:15:22Z",
          "extension": "string",
          "fileSize": 0,
          "name": "string",
          "type": "IMAGE"
        }
      ],
      "doneDate": "2019-08-24T14:15:22Z",
      "dueDate": "2019-08-24T14:15:22Z",
      "executed": true,
      "finished": true,
      "id": "string",
      "status": "PLANNED",
      "type": "MAINTENANCE"
    }
  ],
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "name": "string",
  "objectNumber": "string",
  "product": {
    "assets": [
      {
        "blobId": "string",
        "created": "2019-08-24T14:15:22Z",
        "extension": "string",
        "fileSize": 0,
        "name": "string",
        "type": "IMAGE"
      }
    ],
    "brand": "string",
    "c02": 0.1,
    "category": "string",
    "cost": 0.1,
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "currency": "string",
    "description": "string",
    "dimensions": {
      "height": 0.1,
      "length": 0.1,
      "width": 0.1
    },
    "discounts": [
      {
        "active": true,
        "clientTypes": [
          "PERSON"
        ],
        "name": "string",
        "regions": [
          "string"
        ],
        "volumeThresholds": [
          {
            "discountPercentage": 1,
            "minAmount": 1
          }
        ]
      }
    ],
    "events": [
      {
        "authorId": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "type": "CREATE"
      }
    ],
    "gtin": {
      "gtin": "string",
      "type": "GTIN8"
    },
    "id": "string",
    "lastPurchaseAt": "2019-08-24T14:15:22Z",
    "lastPurchasePrice": 0.1,
    "lastPurchaseSupplierId": "string",
    "leadTimeDays": 0,
    "lifetime": 0.1,
    "materialBreakdown": [
      {
        "areaM2": 0.1,
        "categories": "string",
        "materialName": "string",
        "volumeM3": 0.1
      }
    ],
    "metaData": [
      {
        "key": "string",
        "value": "string"
      }
    ],
    "name": "string",
    "number": "string",
    "partCosts": 0.1,
    "parts": [
      {
        "amount": 0.1,
        "product": {
          "assets": [
            {
              "blobId": "string",
              "created": "2019-08-24T14:15:22Z",
              "extension": "string",
              "fileSize": 0,
              "name": "string",
              "type": "IMAGE"
            }
          ],
          "brand": "string",
          "c02": 0.1,
          "category": "string",
          "cost": 0.1,
          "created": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "currency": "string",
          "description": "string",
          "dimensions": {
            "height": 0.1,
            "length": 0.1,
            "width": 0.1
          },
          "discounts": [
            {
              "active": true,
              "clientTypes": [
                "PERSON"
              ],
              "name": "string",
              "regions": [
                "string"
              ],
              "volumeThresholds": [
                {
                  "discountPercentage": 1,
                  "minAmount": 1
                }
              ]
            }
          ],
          "events": [
            {
              "authorId": "string",
              "date": "2019-08-24T14:15:22Z",
              "description": "string",
              "id": "string",
              "type": "CREATE"
            }
          ],
          "gtin": {
            "gtin": "string",
            "type": "GTIN8"
          },
          "id": "string",
          "lastPurchaseAt": "2019-08-24T14:15:22Z",
          "lastPurchasePrice": 0.1,
          "lastPurchaseSupplierId": "string",
          "leadTimeDays": 0,
          "lifetime": 0.1,
          "materialBreakdown": [
            {
              "areaM2": 0.1,
              "categories": "string",
              "materialName": "string",
              "volumeM3": 0.1
            }
          ],
          "metaData": [
            {
              "key": "string",
              "value": "string"
            }
          ],
          "name": "string",
          "number": "string",
          "partCosts": 0.1,
          "parts": [],
          "price": 0.1,
          "reference": "string",
          "reorderPoint": 0.1,
          "revision": 0,
          "revisionCode": "string",
          "safetyStock": 0.1,
          "shopSettings": {
            "collections": [
              "string"
            ],
            "comparePrice": 0.1,
            "featuredImageBlobId": "string",
            "metaDescription": "string",
            "seoTitle": "string",
            "shopDescription": "string",
            "shopStatus": "DRAFT",
            "shopTitle": "string",
            "tags": [
              "string"
            ],
            "taxClass": "string",
            "urlHandle": "string",
            "vendor": "string"
          },
          "sku": "string",
          "subsidiaryId": "string",
          "supplierId": "string",
          "taxRate": 0.1,
          "tenantId": "string",
          "totalCosts": 0.1,
          "type": "RAW_MATERIAL",
          "unitsOfMeasurement": [
            {
              "baseUnit": true,
              "cost": 0.1,
              "decimal": true,
              "isBaseUnit": true,
              "isDecimal": true,
              "name": "string",
              "quantity": 0.1,
              "salesPrice": 0.1,
              "unit": "string"
            }
          ],
          "updated": "2019-08-24T14:15:22Z",
          "updatedBy": "string",
          "variant": "string",
          "visibility": "PUBLIC",
          "volume": 0.1,
          "weight": 0.1
        },
        "unit": "string"
      }
    ],
    "price": 0.1,
    "reference": "string",
    "reorderPoint": 0.1,
    "revision": 0,
    "revisionCode": "string",
    "safetyStock": 0.1,
    "shopSettings": {
      "collections": [
        "string"
      ],
      "comparePrice": 0.1,
      "featuredImageBlobId": "string",
      "metaDescription": "string",
      "seoTitle": "string",
      "shopDescription": "string",
      "shopStatus": "DRAFT",
      "shopTitle": "string",
      "tags": [
        "string"
      ],
      "taxClass": "string",
      "urlHandle": "string",
      "vendor": "string"
    },
    "sku": "string",
    "subsidiaryId": "string",
    "supplierId": "string",
    "taxRate": 0.1,
    "tenantId": "string",
    "totalCosts": 0.1,
    "type": "RAW_MATERIAL",
    "unitsOfMeasurement": [
      {
        "baseUnit": true,
        "cost": 0.1,
        "decimal": true,
        "isBaseUnit": true,
        "isDecimal": true,
        "name": "string",
        "quantity": 0.1,
        "salesPrice": 0.1,
        "unit": "string"
      }
    ],
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string",
    "variant": "string",
    "visibility": "PUBLIC",
    "volume": 0.1,
    "weight": 0.1
  },
  "risk": "LOW",
  "serialNumber": "string",
  "serviceIntervals": [
    {
      "description": "string",
      "id": "string",
      "intervals": [
        {
          "cost": 0.1,
          "year": 0
        }
      ],
      "partCategory": "string",
      "partId": "string"
    }
  ],
  "status": "OPERATIONAL",
  "type": "string",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}