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": "61.31",
"pre_pay_cash_remaining": "62.18",
"pre_pay_credits_remaining": "70.30"
}'
200 OK
Response{
"created_at": "2025-01-17T16:13:45.126Z",
"id": "aea7ec4a-c8dc-45b4-9fd7-6b538baa3d53",
"map_id": "86ba050d-d8de-4fec-8626-7ccd961b2d3c",
"modeling_app_enterprise_price": {
"interval": "day",
"price": "91.86",
"type": "per_user"
},
"monthly_credits_remaining": "25.01",
"pre_pay_cash_remaining": "34.75",
"pre_pay_credits_remaining": "1.85",
"subscription_details": {
"modeling_app": {
"annual_discount": 14,
"description": "nzalO9tZkYEqBxxg9W",
"features": [
{
"info": "SBuCv3YZo0qKpzt6wAMen6yw"
}
],
"name": "pro",
"pay_as_you_go_credits": "30.03",
"price": {
"type": "enterprise"
},
"share_links": [
"organization_only"
],
"support_tier": "priority",
"training_data_behavior": "default_off",
"type": {
"saml_sso": false,
"type": "organization"
},
"zoo_tools_included": [
"diff_chrome_extension"
]
}
},
"subscription_id": "h",
"total_due": "35.30",
"updated_at": "2025-01-17T16:13:45.126Z"
}