<commit_before>.. _web_hooks/reward:
.. include:: /partials/common.rst

Reward Web Hook
===============

Triggered when there is a new reward in Curebit.

.. raw:: html

   <h2>Payload parameters provided for Reward Web Hook</h2>

* **campaign** — subhash of parameters describing the campaign

  * **id** — unique campaign ID
  * **cached_slug** — unique SEO friendly ID
  * **type** — either *"StandaloneCampaign"* or *"DoubleSidedDealCampaign"*
  * **tag_names** — array of campaign's tags

* **person** — subhash of parameters describing the person that got reward

  * **email**
  * **first_name**
  * **last_name**
  * **gender**
  * **sub_choice**

* **reward** — subhash of parameters describing the reward itself

  * **reason** — reason why this reward was given
  * **incentive_type** — type of incentive (rebate, discount_coupon, other)
  * **amount** — amount of money to reward (null when **incentive_type** is<commit_msg>Reward webhook: note that person might be nil<commit_after>.. _web_hooks/reward:
.. include:: /partials/common.rst

Reward Web Hook
===============

Triggered when there is a new reward in Curebit.

.. raw:: html

   <h2>Payload parameters provided for Reward Web Hook</h2>

* **campaign** — subhash of parameters describing the campaign

  * **id** — unique campaign ID
  * **cached_slug** — unique SEO friendly ID
  * **type** — either *"StandaloneCampaign"* or *"DoubleSidedDealCampaign"*
  * **tag_names** — array of campaign's tags

* **person** — subhash of parameters describing the person that got reward (note: might be **null**)

  * **email**
  * **first_name**
  * **last_name**
  * **gender**
  * **sub_choice**

* **reward** — subhash of parameters describing the reward itself

  * **reason** — reason why this reward was given
  * **incentive_type** — type of incentive (rebate, discount_coupon, other)
  * **amount** — amount of money to reward (null when **incentive_type** is
{'fraction_non_alphanumeric': 0.15129533678756477, 'fraction_numerical': 0.002072538860103627, 'mean_word_length': 4.363888888888889, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3192101', 'n_tokens_mistral': 601, 'n_tokens_neox': 592, 'n_words': 226}