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": "50.91",
"pre_pay_cash_remaining": "19.79",
"pre_pay_credits_remaining": "28.87"
}'
200 OK
Response{
"created_at": "2025-01-07T17:17:42.918Z",
"id": "5aff25db-0c2b-4bc3-91e8-99b55645745c",
"map_id": "a88367e9-0dce-4442-9404-24023d64537f",
"modeling_app_enterprise_price": {
"interval": "year",
"price": "97.40",
"type": "per_user"
},
"monthly_credits_remaining": "71.96",
"pre_pay_cash_remaining": "98.91",
"pre_pay_credits_remaining": "21.41",
"subscription_details": {
"modeling_app": {
"annual_discount": 28,
"description": "1UZc9KJpxKQimYBa62cApAoHpV",
"features": [
{
"info": "SKRbw5eitsiBa9zl6yGLvGcKD7EHZw7T1YPYFI"
}
],
"name": "enterprise",
"pay_as_you_go_credits": "40.42",
"price": {
"type": "enterprise"
},
"share_links": [
"password_protected"
],
"support_tier": "premium",
"training_data_behavior": "default_off",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"diff_chrome_extension"
]
}
},
"subscription_id": "ySBPaGKV0",
"total_due": "79.10",
"updated_at": "2025-01-07T17:17:42.918Z"
}