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": "28.32",
"pre_pay_cash_remaining": "98.56",
"pre_pay_credits_remaining": "73.08"
}'
200 OK
Response{
"created_at": "2025-01-17T16:13:59.888Z",
"id": "27ac0a05-d6e1-480b-b76f-2c5a1e4ebf90",
"map_id": "affd07ab-bf77-46a7-a1ec-24361e18963f",
"modeling_app_enterprise_price": {
"interval": "week",
"price": "88.16",
"type": "per_user"
},
"monthly_credits_remaining": "56.21",
"pre_pay_cash_remaining": "69.28",
"pre_pay_credits_remaining": "31.12",
"subscription_details": {
"modeling_app": {
"annual_discount": 14,
"description": "vWQj86WARaQIsK4YS9Z8Rm",
"features": [
{
"info": "GhGqufeC5Yrsmm7cDJkxEb30jd2Ox5tNFCo7eosKr154Sj8"
}
],
"name": "free",
"pay_as_you_go_credits": "59.63",
"price": {
"interval": "day",
"price": "73.45",
"type": "flat"
},
"share_links": [
"organization_only"
],
"support_tier": "community",
"training_data_behavior": "default_off",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"diff_chrome_extension"
]
}
},
"subscription_id": "GnuuwAvlhrBmLfF8ba",
"total_due": "39.04",
"updated_at": "2025-01-17T16:13:59.888Z"
}