{ "opencollection": "1.0.0", "info": { "name": "Thanx Consumer Account Rewards API", "version": "v4.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Rewards", "type": "folder" }, "items": [ { "info": { "name": "Get Rewards", "type": "http" }, "http": { "method": "GET", "url": "https://api.thanx.com/rewards", "params": [ { "name": "states[]", "value": "", "type": "query", "description": "Only rewards in these states are returned." }, { "name": "merchant_id", "value": "92b7b0dac4", "type": "query" }, { "name": "user_id", "value": "92b7b0dac4", "type": "query" }, { "name": "page", "value": "", "type": "query" }, { "name": "per_page", "value": "", "type": "query" } ] }, "docs": "Retrieves loyalty rewards, optionally filtered by state and merchant." }, { "info": { "name": "Get Reward", "type": "http" }, "http": { "method": "GET", "url": "https://api.thanx.com/rewards/:id", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Retrieves a single reward by identifier." }, { "info": { "name": "Activate Reward", "type": "http" }, "http": { "method": "POST", "url": "https://api.thanx.com/rewards/:id/activate", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Activates a reward so it can be redeemed." }, { "info": { "name": "Finalize Reward", "type": "http" }, "http": { "method": "POST", "url": "https://api.thanx.com/rewards/:id/finalize", "params": [ { "name": "id", "value": "", "type": "path" } ] }, "docs": "Finalizes a reward after redemption." } ] } ], "bundled": true }