Rewards/Actions
/rewards/actions
This endpoint allows you to create a new reward action by providing the necessary details.
Request Body
Response
The response for this request is an empty array with a 201 HTTP Code
POST
/rewards/actions
Authorization
Authorization
RequiredBearer <token>In: header
Request Body
application/json
OptionalResponse 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