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": "83.07",
"pre_pay_cash_remaining": "76.07",
"pre_pay_credits_remaining": "73.11"
}'
200 OK
Response{
"created_at": "2024-12-06T17:03:15.752Z",
"id": "1aa30f84-4eab-495a-b359-f1e1d5f55db3",
"map_id": "b5bb563d-82f5-4b2f-9a20-d5bbc86f25c9",
"modeling_app_enterprise_price": {
"interval": "month",
"price": "47.70",
"type": "per_user"
},
"monthly_credits_remaining": "87.78",
"pre_pay_cash_remaining": "90.71",
"pre_pay_credits_remaining": "55.00",
"subscription_details": {
"modeling_app": {
"annual_discount": 14,
"description": "pVKMrS2nGLon1bY7Cqxc3fea",
"features": [
{
"info": "9TJFhsu"
}
],
"name": "pro",
"pay_as_you_go_credits": "58.54",
"price": {
"type": "enterprise"
},
"share_links": [
"organization_only"
],
"support_tier": "community",
"training_data_behavior": "default_on",
"type": {
"saml_sso": false,
"type": "organization"
},
"zoo_tools_included": [
"modeling_app"
]
}
},
"subscription_id": "sMKD0pM9WJeVKWmj33GlBTi",
"total_due": "77.97",
"updated_at": "2024-12-06T17:03:15.752Z"
}