{ "$schema": "https://json-structure.org/meta/core/v0/#", "$id": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-structure/public-api-redeem-and-accumulate-rewards-request-structure.json", "name": "RedeemAndAccumulateRewardsRequest", "description": "Request body for RedeemAndAccumulateRewards API call.", "type": "object", "properties": { "userId": { "type": "string", "description": "The id of the user.", "example": "someidstring" }, "order": { "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-order-2-schema.json" }, "selectedRewards": { "type": "array", "description": "Selected rewards, currently only support one reward, if multiple rewards are passed it will throw an error.", "items": { "$ref": "https://raw.githubusercontent.com/api-evangelist/otter/refs/heads/main/json-schema/public-api-selected-reward-schema.json" } } }, "required": [ "userId", "order", "selectedRewards" ] }