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.eyJzdWIiOiIxNTc0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2NDAzLCJleHAiOjE3NjYyMTg0MDMsImp0aSI6IjhmNGQ0ZDc4LWJjMDktNDYyMS04ZjExLWFmNWNiMWM1ODFiYyJ9.1H_X1oP85dZrOp0eWttdp0bsMO5T8n3Ohf4xisIVHAQ
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/"13f8b82892f4e9c55f99aa2bcec9f3e4"
cache-control: max-age=0, private, must-revalidate
x-request-id: 53254b26-fb96-4808-b94b-1c96f8692762
x-runtime: 0.021074
content-length: 305

Body

{
  "rewards": [
    {
      "id": 1496,
      "bonus": "200.0",
      "completed_at": null,
      "referee": {
        "id": 1574,
        "admin": false,
        "image": null,
        "referral_code": "978064",
        "title": "Bobbi Leffler"
      }
    },
    {
      "id": 1495,
      "bonus": "200.0",
      "completed_at": null,
      "referee": {
        "id": 1574,
        "admin": false,
        "image": null,
        "referral_code": "978064",
        "title": "Bobbi Leffler"
      }
    }
  ]
}