for owner, author, student, and affiliate
GET /api/v1/current_user/payout_methods/:id
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/current_user/payout_methods/14?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/current_user/payout_methods/14?data[email]=user_paypal%40example.com&provider=paypal" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: zFokBaGbE8zGGhZbo9McTSp1oPwXhEbiiA" \
-H "X-Api-Email: user-202@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:09:22Z",
"data": {
"email": "7b6792@example.com"
},
"is_active?": true,
"id": 14,
"school_id": 636,
"payee_id": 1307,
"payee_type": "User",
"provider": "paypal",
"confirmation": "confirmation_not_required",
"confirmed_at": null,
"updated_at": "2019-10-31T22:09:22Z",
"meta": {
"class": "payoutmethod",
"url": null,
"name": "14",
"description": "",
"image_url": null
}
}
Request
Headers
Route
GET /api/v1/current_user/payout_methods/14?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/current_user/payout_methods/14?data[email]=user_paypal%40example.com&provider=paypal" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: zFokBaGbE8zGGhZbo9McTSp1oPwXhEbiiA" \
-H "X-Api-Email: user-202@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:09:22Z",
"data": {
"email": "7b6792@example.com"
},
"is_active?": true,
"id": 14,
"school_id": 636,
"payee_id": 1307,
"payee_type": "User",
"provider": "paypal",
"confirmation": "confirmation_not_required",
"confirmed_at": null,
"updated_at": "2019-10-31T22:09:22Z",
"meta": {
"class": "payoutmethod",
"url": null,
"name": "14",
"description": "",
"image_url": null
}
}
Request
Headers
Route
GET /api/v1/current_user/payout_methods/14?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/current_user/payout_methods/14?data[email]=user_paypal%40example.com&provider=paypal" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: zFokBaGbE8zGGhZbo9McTSp1oPwXhEbiiA" \
-H "X-Api-Email: user-202@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:09:22Z",
"data": {
"email": "7b6792@example.com"
},
"is_active?": true,
"id": 14,
"school_id": 636,
"payee_id": 1307,
"payee_type": "User",
"provider": "paypal",
"confirmation": "confirmation_not_required",
"confirmed_at": null,
"updated_at": "2019-10-31T22:09:22Z",
"meta": {
"class": "payoutmethod",
"url": null,
"name": "14",
"description": "",
"image_url": null
}
}
Request
Headers
Route
GET /api/v1/current_user/payout_methods/14?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/current_user/payout_methods/14?data[email]=user_paypal%40example.com&provider=paypal" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: zFokBaGbE8zGGhZbo9McTSp1oPwXhEbiiA" \
-H "X-Api-Email: user-202@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"created_at": "2019-10-31T22:09:22Z",
"data": {
"email": "7b6792@example.com"
},
"is_active?": true,
"id": 14,
"school_id": 636,
"payee_id": 1307,
"payee_type": "User",
"provider": "paypal",
"confirmation": "confirmation_not_required",
"confirmed_at": null,
"updated_at": "2019-10-31T22:09:22Z",
"meta": {
"class": "payoutmethod",
"url": null,
"name": "14",
"description": "",
"image_url": null
}
}