should return payouts for self
GET /api/v1/users/:id/payouts
Parameters
Request
Headers
Route
GET /api/v1/users/497/payouts
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/users/497/payouts" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: YoaXwXQ7UkoveQ2V7MxCg1-oGSwskqmFJA" \
-H "X-Api-Email: user-138@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"payouts": [
{
"created_at": "2019-10-31T22:02:28Z",
"amount": 1000,
"currency": "USD",
"kind": "affiliate",
"method": "paypal",
"status": "success",
"user_note": null,
"processed_at": null,
"id": 12,
"meta": {
"class": "payout",
"url": null,
"name": "12",
"description": "",
"image_url": null
}
},
{
"created_at": "2019-10-31T22:02:28Z",
"amount": 1000,
"currency": "USD",
"kind": "author",
"method": "paypal",
"status": "success",
"user_note": null,
"processed_at": null,
"id": 11,
"meta": {
"class": "payout",
"url": null,
"name": "11",
"description": "",
"image_url": null
}
}
],
"meta": {
"total": 2,
"page": 1,
"from": 1,
"to": 2,
"per": 25,
"number_of_pages": 1,
"query": {
}
}
}