emails the creator
POST /api/v1/current_user/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
POST /api/v1/current_user/payout_methods
Body
{"data":{"email":"user_paypal@example.com"},"provider":"paypal"}
cURL
curl "http://localhost:3000/api/v1/current_user/payout_methods" -d '{"data":{"email":"user_paypal@example.com"},"provider":"paypal"}' -X POST \
-H "Accept: application/json" \
-H "X-Api-Token: _VChNnbjWy_C-EHqMLcdPQSbg2G-wzDeww" \
-H "X-Api-Email: user-214@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
201 Created
Body
{
"created_at": "2019-10-31T22:09:28Z",
"data": {
"email": "user_paypal@example.com"
},
"is_active?": true,
"id": 20,
"school_id": 642,
"payee_id": 1319,
"payee_type": "User",
"provider": "paypal",
"confirmation": "confirmation_not_required",
"confirmed_at": null,
"updated_at": "2019-10-31T22:09:28Z",
"meta": {
"class": "payoutmethod",
"url": null,
"name": "20",
"description": "",
"image_url": null
}
}