EarningsStatements API

for owner, author, student, and affiliate

GET /api/v1/earnings_statements

Parameters

Name Description
id id of the statement

Request

Headers

Accept: application/json
X-Api-Token: Bez8xNtM27-7yryHfoZD8RTUj5yHxnnRHg
X-Api-Email: user-501@example.com

Route

GET /api/v1/earnings_statements

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/earnings_statements" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: Bez8xNtM27-7yryHfoZD8RTUj5yHxnnRHg" \
	-H "X-Api-Email: user-501@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "earnings_statements": [

  ],
  "meta": {
    "total": 0,
    "page": 1,
    "from": 0,
    "to": 0,
    "per": 25,
    "number_of_pages": 1,
    "query": {
      "page": 1,
      "school_id": 411
    }
  }
}

Request

Headers

Accept: application/json
X-Api-Token: Bez8xNtM27-7yryHfoZD8RTUj5yHxnnRHg
X-Api-Email: user-501@example.com

Route

GET /api/v1/earnings_statements

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/earnings_statements" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: Bez8xNtM27-7yryHfoZD8RTUj5yHxnnRHg" \
	-H "X-Api-Email: user-501@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "earnings_statements": [

  ],
  "meta": {
    "total": 0,
    "page": 1,
    "from": 0,
    "to": 0,
    "per": 25,
    "number_of_pages": 1,
    "query": {
      "page": 1,
      "school_id": 411
    }
  }
}

Request

Headers

Accept: application/json
X-Api-Token: Bez8xNtM27-7yryHfoZD8RTUj5yHxnnRHg
X-Api-Email: user-501@example.com

Route

GET /api/v1/earnings_statements

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/earnings_statements" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: Bez8xNtM27-7yryHfoZD8RTUj5yHxnnRHg" \
	-H "X-Api-Email: user-501@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "earnings_statements": [

  ],
  "meta": {
    "total": 0,
    "page": 1,
    "from": 0,
    "to": 0,
    "per": 25,
    "number_of_pages": 1,
    "query": {
      "page": 1,
      "school_id": 411
    }
  }
}

Request

Headers

Accept: application/json
X-Api-Token: Bez8xNtM27-7yryHfoZD8RTUj5yHxnnRHg
X-Api-Email: user-501@example.com

Route

GET /api/v1/earnings_statements

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/earnings_statements" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: Bez8xNtM27-7yryHfoZD8RTUj5yHxnnRHg" \
	-H "X-Api-Email: user-501@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "earnings_statements": [

  ],
  "meta": {
    "total": 0,
    "page": 1,
    "from": 0,
    "to": 0,
    "per": 25,
    "number_of_pages": 1,
    "query": {
      "page": 1,
      "school_id": 411
    }
  }
}