includes associations
GET /api/v1/earnings_statements/:id
Parameters
| Name |
Description |
|
id
|
id of the statement
|
Request
Headers
Route
GET /api/v1/earnings_statements/1
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/earnings_statements/1" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: 54q_ovXQkoMEk-HMoyg7t91hWsrfCxP8dg" \
-H "X-Api-Email: user-474@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:05:03Z",
"status": "Pending",
"id": 1,
"school_id": 398,
"payee_id": 398,
"payee_type": "School",
"period_start": null,
"period_end": null,
"total_amount": 10000,
"internal_gateway_amount": 10000,
"teachable_payments_amount": null,
"custom_gateway_amount": 0,
"user_note": null,
"requires_review": false,
"locked": false,
"fully_paid": false,
"updated_at": "2019-10-31T22:05:03Z",
"teachable_payments_payout_type": null,
"meta": {
"class": "earningsstatement",
"url": null,
"name": "1",
"description": "",
"image_url": null
},
"sum_earnings": 10000,
"sum_current_period_refunds": 0,
"sum_previous_period_refunds": 0,
"sum_current_period_chargebacks": 0,
"sum_previous_period_chargebacks": 0,
"sum_other": 0,
"count_earnings": 1,
"count_current_period_refunds": 0,
"count_previous_period_refunds": 0,
"count_current_period_chargebacks": 0,
"count_previous_period_chargebacks": 0,
"count_other": 0,
"payee_name": "School 219",
"payee_email": "school-219@example.com",
"payout_attempts": [
]
}