API → PaymentsCreate the subscription for an org

Parameters

Name

Type

Req.

  • bodyapplication/json

    object
    optional
    Object Properties
    • modeling_app

      string
      optional
      Possible values
      • team:  The team tier.
      • enterprise:  The enterprise tier.
    • pay_annually

      boolean
      optional

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • modeling_app

      object
      optional
      Object Properties
      • annual_discount

        integer
        optional
      • description

        string
        optional
      • features

        array
        optional
        Array of
      • name

        string
        optional
        Possible values
        • free:  The free tier.
        • pro:  The pro tier.
        • team:  The team tier.
        • enterprise:  The enterprise tier.
      • pay_as_you_go_credits

        number / USD Price
        optional
      • price

        oneOf
        optional
        One of
        • flat

          object
          optional
          Object Properties
          • interval

            string
            optional
            Possible values
            • day:  Day.
            • month:  Month.
            • week:  Week.
            • year:  Year.
          • price

            number / USD Price
            optional
          • type

            string
            optional
            Possible values
            • flat
        • per_user

          object
          optional
          Object Properties
          • interval

            string
            optional
            Possible values
            • day:  Day.
            • month:  Month.
            • week:  Week.
            • year:  Year.
          • price

            number / USD Price
            optional
          • type

            string
            optional
            Possible values
            • per_user
        • enterprise

          object
          optional
          Object Properties
          • type

            string
            optional
            Possible values
            • enterprise
      • array
        optional
      • support_tier

        string
        optional
        Possible values
        • community:  Community support.
        • standard:  Standard support.
        • premium:  Premium support.
        • priority:  Priority support.
      • Possible values
        • always:  The data is always used for training and cannot be turned off.
        • default_on:  The data is used for training by default, but can be turned off.
        • default_off:  The data is not used for training by default, but can be turned on.
      • type

        oneOf
        optional
        One of
        • individual

          object
          optional
          Object Properties
          • type

            string
            optional
            Possible values
            • individual
        • organization

          object
          optional
          Object Properties
          • saml_sso

            boolean
            optional
          • type

            string
            optional
            Possible values
            • organization
      • zoo_tools_included

        array
        optional
post
/org/payment/subscriptions
$ curl -X POST "https://api.zoo.dev/org/payment/subscriptions" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "modeling_app": "enterprise",
  "pay_annually": false
}'
201 Created
Response
{
  "modeling_app": {
    "annual_discount": 7,
    "description": "TR90",
    "features": [
      {
        "info": "I2TQNFtAMU0wsxuqJr6QLOclDVpo8vhL2mtzpe3wi9yS7N2LT8vCaKaIUeZI"
      }
    ],
    "name": "enterprise",
    "pay_as_you_go_credits": "92.25",
    "price": {
      "type": "enterprise"
    },
    "share_links": [
      "password_protected"
    ],
    "support_tier": "priority",
    "training_data_behavior": "default_off",
    "type": {
      "type": "individual"
    },
    "zoo_tools_included": [
      "text_to_cad"
    ]
  }
}