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": "59.81",
"pre_pay_cash_remaining": "73.12",
"pre_pay_credits_remaining": "8.20"
}'
200 OK
Response{
"created_at": "2025-02-27T21:31:16.654Z",
"id": "390e2206-ae97-4606-8c97-5bc0e99491f5",
"map_id": "0faf1bd6-220e-4fa1-adda-c4f4cebb769e",
"modeling_app_enterprise_price": {
"interval": "month",
"price": "21.42",
"type": "flat"
},
"monthly_credits_remaining": "85.05",
"pre_pay_cash_remaining": "35.73",
"pre_pay_credits_remaining": "100.68",
"subscription_details": {
"modeling_app": {
"annual_discount": 30,
"description": "w3N6wi",
"features": [
{
"info": "T3qgeQCPP9c7uhJlsL3SlmY6A7ASJ"
}
],
"name": "team",
"pay_as_you_go_credits": "86.86",
"price": {
"type": "enterprise"
},
"share_links": [
"organization_only"
],
"support_tier": "priority",
"training_data_behavior": "default_off",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"text_to_cad"
]
}
},
"subscription_id": "OqVH",
"total_due": "37.65",
"updated_at": "2025-02-27T21:31:16.654Z"
}