Get all rewards
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.eyJzdWIiOiIxNTMzIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDY5LCJleHAiOjE3NjM1NDI0NjksImp0aSI6ImJmY2RkMDE3LTRhOWMtNDJjZS1iZWEyLTVhNWRhYjZkZGFiMSJ9.wVoKN19P4G4g4O8TdnvflxF1W5BYZD0bBVFTEyiFlbY
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/"e30deb825db49c1d1aa740cb483a93fb"
cache-control: max-age=0, private, must-revalidate
x-request-id: a0a77893-a564-4514-9ef3-ec77f44fc148
x-runtime: 0.012969
content-length: 301
Body
{
"rewards": [
{
"id": 1458,
"bonus": "200.0",
"completed_at": null,
"referee": {
"id": 1533,
"admin": false,
"image": null,
"referral_code": "208591",
"title": "Bo O'Reilly"
}
},
{
"id": 1457,
"bonus": "200.0",
"completed_at": null,
"referee": {
"id": 1533,
"admin": false,
"image": null,
"referral_code": "208591",
"title": "Bo O'Reilly"
}
}
]
}