Rewards

Get all rewards

GET rewards

Endpoint

GET /api/v1/rewards

Parameters

Name Description In
by_kind Filter rewards by kind
by_name Filter rewards by name
order_by[created_at] Order by created_at ["asc", "desc"]

Request

Route

GET /api/v1/rewards

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNTM2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQ0LCJleHAiOjE3NDUwNTY5NDQsImp0aSI6IjhkOWJkZjgxLTg3NjAtNGJjMC1hODk4LWExY2NmNTQ4ZDUxMyJ9.yii67p5oM_8J32SK8-kP6v1mdVn8I0zVdT8HrNFK4ss
Host: example.org
Cookie: 

Query Parameters

{}=

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
per-page: 20
total: 2
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"a4c6aa61656969bf1b10c68a45474f71"
cache-control: max-age=0, private, must-revalidate
x-request-id: 53d3f2f6-8bfa-4ea7-a971-f217610757c3
x-runtime: 0.013841
content-length: 303

Body

{
  "rewards": [
    {
      "id": 1460,
      "bonus": "200.0",
      "completed_at": null,
      "referee": {
        "id": 1536,
        "admin": false,
        "image": null,
        "referral_code": "940917",
        "title": "Hollis Bruen"
      }
    },
    {
      "id": 1459,
      "bonus": "200.0",
      "completed_at": null,
      "referee": {
        "id": 1536,
        "admin": false,
        "image": null,
        "referral_code": "940917",
        "title": "Hollis Bruen"
      }
    }
  ]
}