Rewards

A staff member's preview of claiming a prize: nothing is claimed or delivered

Changed on

Staff only (coach, PC or admin flag; /rewards/me.claim_mode is preview); anyone else gets a 403. Answers like claim, choose and consent in one call, with preview: true: send catalogue_id for a choice prize's pick and consent to answer a consent_needed step. Nothing is reserved, booked, opened or delivered, and no consent is recorded. Afterwards the grant lists as claimed with staff_preview: true, and booking or picking for it is refused with STAFF_PREVIEW_ONLY.

post/api/rewards/grants/{id}/preview

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/grants/{id}/preview
  • Auth
    HTTP bearer

Path parameters

idnumber required

Request body

catalogue_idnumber

A choice prize: catalogue_id of the option picked, from GET grants/:id/options

consent'granted' | 'declined'

The answer to a consent_needed step. Recorded nowhere.

Changes