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": "4.46",
"pre_pay_cash_remaining": "82.51",
"pre_pay_credits_remaining": "67.34"
}'
200 OK
Response{
"created_at": "2024-10-21T17:59:52.386Z",
"id": "97c687dc-9b4b-41ad-87b9-6592a867d710",
"map_id": "bc833965-b915-4c31-9f81-911cb9d6f4da",
"modeling_app_enterprise_price": {
"interval": "year",
"price": "48.61",
"type": "per_user"
},
"monthly_credits_remaining": "8.48",
"pre_pay_cash_remaining": "37.09",
"pre_pay_credits_remaining": "17.04",
"subscription_details": {
"modeling_app": {
"annual_discount": 12,
"description": "1NopSBXobfHv",
"features": [
{
"info": "oVXChbQGWlJHlZvb3JWzqzw8SPgrNtprwcoKarKIbaITC6wI8h0QA2dkHeBlSuuTEc7v"
}
],
"name": "free",
"pay_as_you_go_credits": "88.46",
"price": {
"interval": "month",
"price": "70.63",
"type": "per_user"
},
"share_links": [
"password_protected"
],
"support_tier": "standard",
"training_data_behavior": "always",
"type": {
"saml_sso": true,
"type": "organization"
},
"zoo_tools_included": [
"modeling_app"
]
}
},
"subscription_id": "liLQ9ht1exwGGw6wZHTXB5MTa6kDu",
"total_due": "1.14",
"updated_at": "2024-10-21T17:59:52.386Z"
}