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": "31.80",
"pre_pay_cash_remaining": "9.82",
"pre_pay_credits_remaining": "44.70"
}'
200 OK
Response{
"created_at": "2024-12-19T17:49:51.016Z",
"id": "ea8c9e59-838c-4a1b-b785-6ae877b07a73",
"map_id": "f76f78eb-9c2d-42d7-9221-86b1e045c920",
"modeling_app_enterprise_price": {
"interval": "year",
"price": "25.03",
"type": "per_user"
},
"monthly_credits_remaining": "22.62",
"pre_pay_cash_remaining": "99.25",
"pre_pay_credits_remaining": "10.34",
"subscription_details": {
"modeling_app": {
"annual_discount": 26,
"description": "2SWM",
"features": [
{
"info": "OgHOsXbIqUE0VaLt"
}
],
"name": "free",
"pay_as_you_go_credits": "3.02",
"price": {
"interval": "month",
"price": "38.17",
"type": "flat"
},
"share_links": [
"organization_only"
],
"support_tier": "community",
"training_data_behavior": "default_on",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"modeling_app"
]
}
},
"subscription_id": "yFjtZEeyxk7epgQIcHmtcdwnwT",
"total_due": "78.59",
"updated_at": "2024-12-19T17:49:51.016Z"
}