List rule blocks

​

The catalog of rule building blocks. Each measure lists the conditions, payouts and limits it allows; each block includes a description and a JSON Schema (paramsSchema) for its fields.

Responses

  • application/json
Request Example for get/api/v1/rewards/rule-blocks
curl https://rewards-api.bettermoney.com/api/v1/rewards/rule-blocks \
  --header 'x-api-key: YOUR_SECRET_TOKEN'
{
  "measures": [
    {
      "type": "string",
      "description": "string",
      "paramsSchema": null,
      "conditions": [
        "string"
      ],
      "payouts": [
        "string"
      ],
      "limits": [
        "string"
      ]
    }
  ],
  "conditions": [
    {
      "type": "string",
      "description": "string",
      "paramsSchema": null,
      "measures": [
        "string"
      ]
    }
  ],
  "payouts": [
    {
      "type": "string",
      "description": "string",
      "paramsSchema": null,
      "measures": [
        "string"
      ]
    }
  ],
  "limits": [
    {
      "type": "string",
      "description": "string",
      "paramsSchema": null,
      "measures": [
        "string"
      ]
    }
  ]
}