API ReferenceMeals
Get Meal Status
Run in PostmanRetrieves the current processing status, scoring results, and points awarded for a specific meal log.
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/meals/string/status?api-version=1.0"{
"id": "string",
"userId": "string",
"status": "string",
"lastUpdated": "2019-08-24T14:15:22Z",
"logState": {
"mealName": "string",
"imageUrl": "string",
"mealType": "string",
"loggedAt": "2019-08-24T14:15:22Z",
"country": "string",
"totalAmount": 0.1,
"currency": "string",
"ingredients": [
{
"name": "string",
"foodId": "string",
"weight": 0.1,
"unit": "string"
}
]
},
"scoredState": {
"totalCo2e": 0.1,
"carbonImpactRating": 0,
"healthImpactRating": 0,
"createdAt": "2019-08-24T14:15:22Z",
"scoredItems": [
{
"foodId": "string",
"name": "string",
"weight": 0.1,
"unit": "string",
"carbonImpactRating": 0,
"healthImpactRating": 0,
"co2e": 0.1
}
]
},
"completedState": {
"transactionId": "string",
"totalPoints": 0.1,
"totalGreenProducts": 0,
"totalHealthyProducts": 0,
"totalHealthPoints": 0.1,
"totalCarbonPoints": 0.1,
"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"
}