NodiRef LogoNodiRef
Rewards/Actions

/rewards/actions

This endpoint allows you to create a new reward action by providing the necessary details.

Request Body

{
  "reward_rule_set_id": "RULESET_UUID", // Required
  "reward_type": "REWARD_TYPE", // Required
  "reward_amount": "AMOUNT", // Required
  "max_cap": "MAX_CAP", // Optional
  "currency": "CURRENCY_CODE" // Optional
}

Response

The response for this request is an empty array with a 201 HTTP Code

POST/rewards/actions

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonOptional

Response Body

Successful response

curl -X POST "https://api.nodiref.com/rewards/actions" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "reward_rule_set_id": "9ec468a5-f186-4388-ba7e-632b6a193bad",
    "action_type": "whatever",
    "reward_type": "percentage",
    "reward_amount": "10",
    "max_cap": "1000",
    "currency": "EUR"
  }'
Empty