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": "77.30",
"pre_pay_cash_remaining": "87.33",
"pre_pay_credits_remaining": "77.39"
}'
200 OK
Response{
"created_at": "2024-04-29T20:00:08.917Z",
"id": "7f61ed6e-48ca-474f-b3a5-f9a791da2d41",
"map_id": "6c308129-ca8b-44ed-819c-daa8b7fa5251",
"modeling_app_enterprise_price": {
"interval": "week",
"price": "0.52",
"type": "flat"
},
"monthly_credits_remaining": "79.75",
"pre_pay_cash_remaining": "35.10",
"pre_pay_credits_remaining": "18.00",
"subscription_details": {
"modeling_app": {
"description": "r6D08eRXGWVoLr9LWb0ZDMfh1BRv",
"features": [
{
"info": "uZVcKRI4McECKLscc5SzF6OCRZU6a46rYyIexDgcO3SWPNnfrpx0yvTYXjiq40djLNfdHMcdozPkXX9n"
}
],
"name": "enterprise",
"pay_as_you_go_credits": "94.69",
"price": {
"interval": "month",
"price": "69.37",
"type": "flat"
},
"support_tier": "community",
"training_data_behavior": "always",
"type": {
"saml_sso": true,
"type": "organization"
},
"zoo_tools_included": [
"modeling_app"
]
}
},
"subscription_id": "kUKy5JCnO2qIJuex1vIXL",
"total_due": "31.28",
"updated_at": "2024-04-29T20:00:08.917Z"
}