Payout API

should not see payouts for another user

GET /api/v1/users/:id/payouts

Parameters

Name Description
id id

Request

Headers

Accept: application/json
X-Api-Token: JA1xgkX5kSCdN1ygEUopY4axjA2KhBdFzQ
X-Api-Email: user-132@example.com

Route

GET /api/v1/users/492/payouts

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/users/492/payouts" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: JA1xgkX5kSCdN1ygEUopY4axjA2KhBdFzQ" \
	-H "X-Api-Email: user-132@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 84

Status

401 Unauthorized

Body

{
  "success": false,
  "error": "Unauthorized",
  "status": 401,
  "message": "You can't do that!"
}