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.eyJzdWIiOiIxNTU0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjE2LCJleHAiOjE3NTU4NTgyMTYsImp0aSI6ImM3NzgwM2NiLTYxZTAtNDBmMS04OGM1LWQyMDU2Yzg1Zjg4NiJ9.HGj2SjRxePJKUBgjqKZSxVye_3-I09xJ24UC8a0SXoM
Host: example.org
Cookie: 

Query Parameters

{}=

Body

{
}

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/"d21a53517beba67114be069cf5f31946"
cache-control: max-age=0, private, must-revalidate
x-request-id: f3583723-b67d-4838-a390-088477f83b2f
x-runtime: 0.018726
content-length: 303

Body

{
  "rewards": [
    {
      "id": 1468,
      "bonus": "200.0",
      "completed_at": null,
      "referee": {
        "id": 1554,
        "admin": false,
        "image": null,
        "referral_code": "545311",
        "title": "Dave Streich"
      }
    },
    {
      "id": 1467,
      "bonus": "200.0",
      "completed_at": null,
      "referee": {
        "id": 1554,
        "admin": false,
        "image": null,
        "referral_code": "545311",
        "title": "Dave Streich"
      }
    }
  ]
}