School Plans API

should return 200

GET /api/v1/school_plans

Request

Headers

Accept: application/json
X-Api-Token: sqzAQwUSR7VsodNNFAhqogckmmbhJNZkCQ
X-Api-Email: user-154@example.com

Route

GET /api/v1/school_plans

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/school_plans" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: sqzAQwUSR7VsodNNFAhqogckmmbhJNZkCQ" \
	-H "X-Api-Email: user-154@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "school_plans": [
    {
      "created_at": "2019-10-31T22:02:33Z",
      "plan_ranking_value": 1,
      "name": "basic",
      "amount": 3900,
      "transaction_fee_base": 0,
      "transaction_fee_percent": 0.05,
      "supports_custom_domains": true,
      "position": 1,
      "supports_bank_deposit": false,
      "supports_subscriptions": true,
      "supports_webhooks": true,
      "supports_graded_quizzes": false,
      "supports_priority_support": false,
      "supports_importing_students": false,
      "supports_drip_content": false,
      "stripe_plan_id": "school_plan_252",
      "is_published": true,
      "feature_text": "basic",
      "interval": "month",
      "supports_payment_gateways": null,
      "supports_native_comments": false,
      "supports_extensions": true,
      "supports_coupons": null,
      "supports_teachable_accounts": true,
      "supports_code_snippets": false,
      "supports_emailing_students": true,
      "supports_upsell_reports": false,
      "supports_native_certificates": null,
      "supports_custom_roles": null,
      "supports_back_office": null,
      "admins_cap": null,
      "affiliates_cap": null,
      "domains_cap": null,
      "id": 252,
      "supports_vat_taxes": null,
      "meta": {
        "class": "schoolplan",
        "url": null,
        "name": "basic",
        "description": "",
        "image_url": null
      }
    }
  ]
}