APIPaymentsUpdate the user's subscription

Parameters

Name

Type

Req.

  • bodyapplication/json

    object
    optional
    Object Properties

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
put
/user/payment/subscriptions
$ curl -X PUT "https://api.zoo.dev/user/payment/subscriptions" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "modeling_app": "free",
  "pay_annually": false
}'
200 OK
Response
{
  "modeling_app": {
    "annual_discount": 26,
    "description": "l5tAYX",
    "endpoints_included": [
      "modeling"
    ],
    "features": [
      {
        "info": "846I5iRi9hS7EisGO1PZG9Z2h7Q9JCGRb4WNOZaNAdf1U60muoMjrmhCPIR5u4eZksWsPO1J4KfWyEo"
      }
    ],
    "monthly_pay_as_you_go_api_credits": 22,
    "monthly_pay_as_you_go_api_credits_monetary_value": "94.11",
    "name": "free",
    "pay_as_you_go_api_credit_price": "4.48",
    "price": {
      "interval": "day",
      "price": "82.85",
      "type": "flat"
    },
    "share_links": [
      "public"
    ],
    "support_tier": "standard_email",
    "training_data_behavior": "always",
    "type": {
      "saml_sso": true,
      "type": "organization"
    },
    "zoo_tools_included": [
      "modeling_app"
    ]
  }
}