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": "pro",
  "pay_annually": true
}'
200 OK
Response
{
  "modeling_app": {
    "annual_discount": 15,
    "description": "VuNjl4Z",
    "endpoints_included": [
      "modeling"
    ],
    "features": [
      {
        "info": "opJOImchcyT1vAljfG5pxmmDUbMSjXA7ZgID0WLONXNAn4"
      }
    ],
    "monthly_pay_as_you_go_api_credits": 24,
    "monthly_pay_as_you_go_api_credits_monetary_value": "47.07",
    "name": "free",
    "pay_as_you_go_api_credit_price": "18.78",
    "price": {
      "type": "enterprise"
    },
    "share_links": [
      "password_protected"
    ],
    "support_tier": "priority_email",
    "training_data_behavior": "default_off",
    "type": {
      "type": "individual"
    },
    "zoo_tools_included": [
      "modeling_app"
    ]
  }
}