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": "68.12",
"pre_pay_cash_remaining": "42.42",
"pre_pay_credits_remaining": "35.64"
}'
200 OK
Response{
"created_at": "2025-03-12T01:37:27.464Z",
"id": "78e0eca0-8c48-4515-9926-70df8fa4df31",
"map_id": "45cf3f08-3d57-4a64-9514-914466b89a21",
"modeling_app_enterprise_price": {
"interval": "month",
"price": "43.88",
"type": "flat"
},
"monthly_credits_remaining": "23.73",
"pre_pay_cash_remaining": "35.14",
"pre_pay_credits_remaining": "31.30",
"subscription_details": {
"modeling_app": {
"annual_discount": 15,
"description": "M3GDFQlhyH5dExO6u8S4",
"features": [
{
"info": "Ef15QpX7Ezmj0eKOcXHxRGQHT25abfpNsoiE8o3dTYzZKB8mK7T7mnNtu3PyXk"
}
],
"name": "free",
"pay_as_you_go_credits": "70.99",
"price": {
"type": "enterprise"
},
"share_links": [
"organization_only"
],
"support_tier": "community",
"training_data_behavior": "default_on",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"diff_chrome_extension"
]
}
},
"subscription_id": "5i6",
"total_due": "1.36",
"updated_at": "2025-03-12T01:37:27.464Z"
}