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": "100.06",
"stable_api_credits_remaining_monetary_value": "69.19"
}'
200 OK
Response{
"created_at": "2025-05-22T02:04:22.294Z",
"id": "fd331132-070e-496b-9e71-8cc9e60caf05",
"map_id": "aafdb59a-baf3-4787-896e-b5f21d503b98",
"modeling_app_enterprise_price": {
"interval": "month",
"price": "88.81",
"type": "flat"
},
"monthly_api_credits_remaining": 25,
"monthly_api_credits_remaining_monetary_value": "60.20",
"stable_api_credits_remaining": 18,
"stable_api_credits_remaining_monetary_value": "20.62",
"subscription_details": {
"modeling_app": {
"annual_discount": 9,
"description": "71v7k2cvTDuBGo",
"endpoints_included": [
"ml"
],
"features": [
{
"info": "lLQsaYpNTNxlRKaJS2sxi63t5lHsv4DIPcuglj1VlGn9pWlD2LaT9t4JaZo0FsYkWI1TpFj6ESdpwq"
}
],
"monthly_pay_as_you_go_api_credits": 16,
"monthly_pay_as_you_go_api_credits_monetary_value": "7.55",
"name": "free",
"pay_as_you_go_api_credit_price": "30.96",
"price": {
"type": "enterprise"
},
"share_links": [
"organization_only"
],
"support_tier": "community",
"training_data_behavior": "always",
"type": {
"saml_sso": true,
"type": "organization"
},
"zoo_tools_included": [
"modeling_app"
]
}
},
"subscription_id": "SLZObSYOFgFdrVBnDU5fB",
"total_due": "61.32",
"updated_at": "2025-05-22T02:04:22.294Z"
}