API referenceNutrition

Nutrition

1 operation. Every schema and example on this page is generated from the platform contract.

Get the customer saved Eat target for a store.

Returns the signed-in customer derived daily nutrition targets (calories + protein / carbs / fat, plus a goal label) for a given store, synced server-side so the target survives a reinstall or a new device. The profile is null when the member has saved none for that store. Body metrics (age / weight / height) are intentionally not stored server-side; only the derived targets live here. The customer is resolved from the session, never a client-supplied id.

auth customer:readop getCustomerNutritionProfilerate limitederrors

Parameters

store_idstring · uuidqueryrequired

Store whose saved nutrition target to read for the signed-in customer.

Response, 200

profileobjectrequired

The saved targets, or null if the member has none for this store.

6 child fields
calorie_target_kcalnumber, nullablerequired

Daily calorie target (kcal), or null if not set.

protein_target_gnumber, nullablerequired

Daily protein target (grams), or null if not set.

carbs_target_gnumber, nullablerequired

Daily carbohydrate target (grams), or null if not set.

fat_target_gnumber, nullablerequired

Daily fat target (grams), or null if not set.

goal_labelstring, nullablerequired

Human label for the goal (e.g. 'Lose weight'), or null.

updated_atstringrequired

When the profile was last saved (ISO 8601 timestamp).

curl -G "https://www.membber.com/api/v1/nutrition/profile" \
  -H "Authorization: Bearer $MEMBBER_TOKEN" \
  --data-urlencode "store_id=6659c139-0000-4000-8000-d0c500000066"
Response, 200
{
  "profile": {
    "calorie_target_kcal": 1,
    "protein_target_g": 1,
    "carbs_target_g": 1,
    "fat_target_g": 1,
    "goal_label": "<goal_label>",
    "updated_at": "<updated_at>"
  }
}
WhatsApp
Book a Call
Start Free