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.eyJzdWIiOiIxNTU0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTMxLCJleHAiOjE3NTExMDg1MzEsImp0aSI6ImRjMmQ4ODhlLTA0ZjktNDI5NC1hMDBhLWJlNGExNTZkMTQxZSJ9.-mmpS5BOWTVSq5tNEdqvHO6l1ZhCde4ImGQJRIvZxnc
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/"2a7ef41d4d522824eae89779b584c23b"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2356f49a-771b-4303-b3bd-1d9e43027d9e
x-runtime: 0.013266
content-length: 309

Body

{
  "rewards": [
    {
      "id": 1468,
      "bonus": "200.0",
      "completed_at": null,
      "referee": {
        "id": 1554,
        "admin": false,
        "image": null,
        "referral_code": "601478",
        "title": "Tajuana Labadie"
      }
    },
    {
      "id": 1467,
      "bonus": "200.0",
      "completed_at": null,
      "referee": {
        "id": 1554,
        "admin": false,
        "image": null,
        "referral_code": "601478",
        "title": "Tajuana Labadie"
      }
    }
  ]
}