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": "23.90",
"pre_pay_cash_remaining": "66.17",
"pre_pay_credits_remaining": "22.06"
}'
200 OK
Response{
"created_at": "2025-01-07T17:17:28.842Z",
"id": "ee27a54f-c90b-4593-b2c3-6c7f2e5a180f",
"map_id": "50956229-6fb5-47a9-90d5-ae987e50eedf",
"modeling_app_enterprise_price": {
"interval": "day",
"price": "87.66",
"type": "flat"
},
"monthly_credits_remaining": "51.37",
"pre_pay_cash_remaining": "4.70",
"pre_pay_credits_remaining": "90.55",
"subscription_details": {
"modeling_app": {
"annual_discount": 15,
"description": "jT473k1uqRAi4ux0TnMHz",
"features": [
{
"info": "uaD8kSeVj4rB0BPtGMH96xHMpzs"
}
],
"name": "enterprise",
"pay_as_you_go_credits": "19.58",
"price": {
"type": "enterprise"
},
"share_links": [
"public"
],
"support_tier": "standard",
"training_data_behavior": "default_on",
"type": {
"saml_sso": true,
"type": "organization"
},
"zoo_tools_included": [
"diff_chrome_extension"
]
}
},
"subscription_id": "IdV79",
"total_due": "60.61",
"updated_at": "2025-01-07T17:17:28.842Z"
}