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": "plus",
  "pay_annually": false
}'
201 Created
Response
{
  "modeling_app": {
    "annual_discount": 23,
    "description": "X1krX6V5hpucUB6i",
    "endpoints_included": [
      "file"
    ],
    "features": [
      {
        "info": "lPrZEqZkRgyL8ttdT6W"
      }
    ],
    "monthly_pay_as_you_go_api_credits": 16,
    "monthly_pay_as_you_go_api_credits_monetary_value": "89.86",
    "name": "free",
    "pay_as_you_go_api_credit_price": "74.65",
    "price": {
      "interval": "month",
      "price": "27.97",
      "type": "flat"
    },
    "share_links": [
      "public"
    ],
    "support_tier": "community",
    "training_data_behavior": "default_off",
    "type": {
      "saml_sso": true,
      "type": "organization"
    },
    "zoo_tools_included": [
      "modeling_app"
    ]
  }
}