Rewards (QA)

Replace a user's grants with one, in a given state

Changed on
post/api/rewards/admin/qa/grants/{userId}

Request

  • Base URL
    https://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.rewritelifestyle.ai/api/rewards/admin/qa/grants/{userId}
  • Auth
    HTTP bearer

Path parameters

userIdnumber required

Request body

status'unresolved_pending' | 'resolved_pending' | 'expired' | 'claimed' required

unresolved_pending: waiting on the waterfall/choice pick (needs trigger_level or trigger_days). resolved_pending: a specific prize already attached, ready to claim (needs catalogue_key) — claiming it against a consent-gated entry exercises the consent flow for real. expired / claimed: terminal states, for testing history and "already claimed" copy (both need catalogue_key).

trigger_levelnumber
trigger_daysnumber
catalogue_keystring

reward_catalogue.key — required for every status except unresolved_pending.

Example request

{
  "trigger_level": 5,
  "trigger_days": 100,
  "catalogue_key": "log_review"
}

Changes