for owner
GET /api/v1/earnings_statements/:id
Parameters
| Name |
Description |
|
id
|
id of the statement
|
Request
Headers
Route
GET /api/v1/earnings_statements/2
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/earnings_statements/2" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: YcVA4vWX-Wd4xvNKHNbwHx6Sm4EAPxNc-Q" \
-H "X-Api-Email: user-478@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:05:05Z",
"status": "Pending",
"id": 2,
"school_id": 400,
"payee_id": 400,
"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:05Z",
"teachable_payments_payout_type": null,
"meta": {
"class": "earningsstatement",
"url": null,
"name": "2",
"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 221",
"payee_email": "school-221@example.com",
"payout_attempts": [
]
}