API → Payments → Update balance for an userhidden
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
/users/{id}/payment/balance$ curl -X PUT "https://api.zoo.dev/users/{id}/payment/balance" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"monthly_credits_remaining": "16.95",
"pre_pay_cash_remaining": "31.56",
"pre_pay_credits_remaining": "88.79"
}'
200 OK
Response{
"created_at": "2025-04-25T16:40:02.282Z",
"id": "1629e7d7-35c8-4174-a99f-4954bd936791",
"map_id": "3e0b6c8f-06ee-48ef-a968-e4475008b7a8",
"modeling_app_enterprise_price": {
"interval": "year",
"price": "64.72",
"type": "per_user"
},
"monthly_credits_remaining": "65.85",
"pre_pay_cash_remaining": "71.04",
"pre_pay_credits_remaining": "90.61",
"subscription_details": {
"modeling_app": {
"annual_discount": 17,
"description": "hFmotQJ6",
"endpoints_included": [
"file"
],
"features": [
{
"info": "wbMojEaEgdwwOb7"
}
],
"name": "free",
"pay_as_you_go_credits": "95.56",
"price": {
"interval": "year",
"price": "70.38",
"type": "per_user"
},
"share_links": [
"public"
],
"support_tier": "premium",
"training_data_behavior": "always",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"diff_chrome_extension"
]
}
},
"subscription_id": "fT9v0rYuEND1tV0SdedtDF",
"total_due": "79.81",
"updated_at": "2025-04-25T16:40:02.282Z"
}