APIPaymentsCreate the subscription for a user

Parameters

Name

Type

Req.

  • bodyapplication/json

    object
    optional
    Object Properties
    • modeling_app

      string
      optional
      Possible values
      • free:  The free tier.
      • plus:  The plus tier.
      • pro:  The pro tier.
    • pay_annually

      boolean
      optional

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
post
/user/payment/subscriptions
$ curl -X POST "https://api.zoo.dev/user/payment/subscriptions" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "modeling_app": "pro",
  "pay_annually": false
}'
201 Created
Response
{
  "modeling_app": {
    "annual_discount": 31,
    "description": "vvlxoqVEMv1",
    "endpoints_included": [
      "modeling"
    ],
    "features": [
      {
        "info": "wFT7DptIqgDJcAkHrIM61"
      }
    ],
    "monthly_pay_as_you_go_api_credits": 27,
    "monthly_pay_as_you_go_api_credits_monetary_value": "67.32",
    "name": "team",
    "pay_as_you_go_api_credit_price": "46.07",
    "price": {
      "interval": "week",
      "price": "28.45",
      "type": "per_user"
    },
    "share_links": [
      "organization_only"
    ],
    "support_tier": "community",
    "training_data_behavior": "default_off",
    "type": {
      "saml_sso": false,
      "type": "organization"
    },
    "zoo_tools_included": [
      "diff_chrome_extension"
    ]
  }
}