includes only the school's records and not the user's
GET /api/v1/payout_methods
Parameters
| Name |
Description |
|
data
|
account information for the payout method
|
|
provider
|
provider of payout method, e.g. paypal or wire
|
|
id
|
id of the payout method
|
Request
Headers
Route
GET /api/v1/payout_methods?data[email]=user_paypal%40example.com&provider=paypal
Query Parameters
data: {"email"=>"user_paypal@example.com"}
provider: paypal
cURL
curl "http://localhost:3000/api/v1/payout_methods?data[email]=user_paypal%40example.com&provider=paypal" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: KQzGCD8jN67D3EeP2gy2xamwQMzbdgNYZQ" \
-H "X-Api-Email: user-188@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"payout_methods": [
{
"created_at": "2019-10-31T22:09:16Z",
"data": {
"email": "9d8a39@example.com"
},
"is_active?": true,
"id": 10,
"school_id": 629,
"payee_id": 629,
"payee_type": "School",
"provider": "paypal",
"confirmation": "confirmation_not_required",
"confirmed_at": null,
"updated_at": "2019-10-31T22:09:16Z",
"meta": {
"class": "payoutmethod",
"url": null,
"name": "10",
"description": "",
"image_url": null
}
}
],
"meta": {
"total": 1,
"page": 1,
"from": 1,
"to": 1,
"per": 25,
"number_of_pages": 1,
"query": {
}
}
}