API → Payments → Update balance for an orghidden
hidden
Parameters
Name
Type
Req.
bodyapplication/json
objectoptionalObject Properties
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
modeling_app_enterprise_price
oneOfoptionalOne of
enterprise
objectoptionalObject Properties
Possible values
enterprise
subscription_details
objectoptionalObject Properties
modeling_app
objectoptionalObject Properties
Possible values
free
: The free tier.pro
: The pro tier.team
: The team tier.enterprise
: The enterprise tier.
price
oneOfoptionalOne of
enterprise
objectoptionalObject Properties
Possible values
enterprise
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
oneOfoptionalOne of
individual
objectoptionalObject Properties
Possible values
individual
organization
objectoptional
put
/orgs/{id}/payment/balance$ curl -X PUT "https://api.zoo.dev/orgs/{id}/payment/balance" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"monthly_credits_remaining": "44.07",
"pre_pay_cash_remaining": "13.96",
"pre_pay_credits_remaining": "70.18"
}'
200 OK
Response{
"created_at": "2024-12-19T17:49:29.350Z",
"id": "d4530fde-2540-4a06-b6d7-c5d3ea9d8423",
"map_id": "889f39f3-afe1-4a71-bde0-5aa0e43dcf96",
"modeling_app_enterprise_price": {
"type": "enterprise"
},
"monthly_credits_remaining": "57.90",
"pre_pay_cash_remaining": "25.32",
"pre_pay_credits_remaining": "77.07",
"subscription_details": {
"modeling_app": {
"annual_discount": 3,
"description": "Qfyl6XKX1o",
"features": [
{
"info": "ZKSljlqrca3tSVjPnBaJXD0BfIv"
}
],
"name": "pro",
"pay_as_you_go_credits": "13.36",
"price": {
"interval": "year",
"price": "49.25",
"type": "per_user"
},
"share_links": [
"organization_only"
],
"support_tier": "standard",
"training_data_behavior": "default_on",
"type": {
"saml_sso": true,
"type": "organization"
},
"zoo_tools_included": [
"modeling_app"
]
}
},
"subscription_id": "CmyBddFspmXuWpJ7FLo7XPAd",
"total_due": "61.80",
"updated_at": "2024-12-19T17:49:29.351Z"
}