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.eyJzdWIiOiIxNTA1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg1LCJleHAiOjE3NDAxNDM1ODUsImp0aSI6ImM4Mjg2OTdlLWRjZDYtNDZhZS1hZTU3LTBlZGI4MTdhOTAxYiJ9.cBfhRdUCvpjIvGiN9qz1AUHXyDcPiHNXQ6VWWQldylk
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/"e91a8ee381a22d49fba05e2cc5d56f48"
cache-control: max-age=0, private, must-revalidate
x-request-id: cca714c5-d3e9-4649-b0b4-00f5312592fc
x-runtime: 0.014718
content-length: 313
Body
{
"rewards": [
{
"id": 1438,
"bonus": "200.0",
"completed_at": null,
"referee": {
"id": 1505,
"admin": false,
"image": null,
"referral_code": "497318",
"title": "Mercedez Nikolaus"
}
},
{
"id": 1437,
"bonus": "200.0",
"completed_at": null,
"referee": {
"id": 1505,
"admin": false,
"image": null,
"referral_code": "497318",
"title": "Mercedez Nikolaus"
}
}
]
}