PayoutMethods API

includes only the user's records and not the school's

GET /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

Accept: application/json
X-Api-Token: HpizVQMorN7KMzBEx8L29uBkRtx8_BiMVw
X-Api-Email: user-196@example.com

Route

GET /api/v1/current_user/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/current_user/payout_methods?data[email]=user_paypal%40example.com&provider=paypal" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: HpizVQMorN7KMzBEx8L29uBkRtx8_BiMVw" \
	-H "X-Api-Email: user-196@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 466

Status

200 OK

Body

{
  "payout_methods": [
    {
      "created_at": "2019-10-31T22:09:20Z",
      "data": {
        "email": "ba0149@example.com"
      },
      "is_active?": true,
      "id": 11,
      "school_id": 633,
      "payee_id": 1301,
      "payee_type": "User",
      "provider": "paypal",
      "confirmation": "confirmation_not_required",
      "confirmed_at": null,
      "updated_at": "2019-10-31T22:09:20Z",
      "meta": {
        "class": "payoutmethod",
        "url": null,
        "name": "11",
        "description": "",
        "image_url": null
      }
    }
  ],
  "meta": {
    "total": 1,
    "page": 1,
    "from": 1,
    "to": 1,
    "per": 25,
    "number_of_pages": 1,
    "query": {
    }
  }
}