🚧 Work in Progress: This documentation is actively being developed and is subject to change.
API ReferenceFood

Get Food Item Status

Retrieves the current processing status, scoring results, and points awarded for a specific food log.

GET
/track/food/{id}/status

Path Parameters

idstring

Query Parameters

api-versionstring

The API version, in the format 'major.minor'.

Response Body

application/json

application/problem+json

application/problem+json

curl -X GET "https://loading/track/food/string/status?api-version=1.0"
{
  "id": "string",
  "userId": "string",
  "status": "string",
  "lastUpdated": "2019-08-24T14:15:22Z",
  "logState": {
    "foodId": "string",
    "name": "string",
    "imageUrl": "string",
    "merchant": {
      "name": "string",
      "country": "string"
    },
    "weight": 0.1,
    "unit": "string",
    "quantity": 0.1,
    "amount": 0.1,
    "currency": "string",
    "loggedAt": "2019-08-24T14:15:22Z"
  },
  "scoredState": {
    "co2e": 0.1,
    "carbonImpactRating": 0,
    "healthImpactRating": 0,
    "createdAt": "2019-08-24T14:15:22Z"
  },
  "completedState": {
    "transactionId": "string",
    "totalPoints": 0.1,
    "healthPoints": 0.1,
    "carbonPoints": 0.1,
    "isGreenProduct": true,
    "isHealthyProduct": true,
    "createdAt": "2019-08-24T14:15:22Z"
  },
  "errorMessage": "string",
  "isReported": true,
  "issue": "string",
  "retryCount": 0,
  "applicationDetails": {
    "id": "string",
    "name": "string",
    "sourceType": 0
  },
  "metaData": {}
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}