API → PaymentsUpdate 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_email
: Standard email support.priority_email
: Priority email support.premium
: Premium 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_api_credits_remaining_monetary_value": "96.93",
"stable_api_credits_remaining_monetary_value": "17.64"
}'
200 OK
Response{
"created_at": "2025-05-10T17:42:50.366Z",
"id": "66ca46f5-877c-4a09-84fa-16b10b1f315e",
"map_id": "74c9a5c8-5356-443d-bb59-cbd591eef710",
"modeling_app_enterprise_price": {
"type": "enterprise"
},
"monthly_api_credits_remaining": 9,
"monthly_api_credits_remaining_monetary_value": "5.99",
"stable_api_credits_remaining": 31,
"stable_api_credits_remaining_monetary_value": "61.85",
"subscription_details": {
"modeling_app": {
"annual_discount": 17,
"description": "PcWv8eHBi3yPX51g17WprFQ5iUXV51",
"endpoints_included": [
"ml"
],
"features": [
{
"info": "NrNVp3IOzLd2e"
}
],
"monthly_pay_as_you_go_api_credits": 24,
"monthly_pay_as_you_go_api_credits_monetary_value": "14.53",
"name": "team",
"pay_as_you_go_api_credit_price": "84.64",
"price": {
"type": "enterprise"
},
"share_links": [
"organization_only"
],
"support_tier": "standard_email",
"training_data_behavior": "default_off",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"text_to_cad"
]
}
},
"subscription_id": "oWaN6G8aGRnmmX8nk5bT",
"total_due": "71.05",
"updated_at": "2025-05-10T17:42:50.366Z"
}