API → Payments → Get balance for an userhidden
hidden
Parameters
Name
Type
Req.
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
get
/users/{id}/payment/balance$ curl "https://api.zoo.dev/users/{id}/payment/balance" \
--header "Authorization: Bearer $TOKEN"
200 OK
Response{
"created_at": "2024-12-19T17:49:45.655Z",
"id": "94031b50-1bd4-4195-827b-dc9e78d04892",
"map_id": "4f4a422c-5fc9-409b-9043-84414fd9cea8",
"modeling_app_enterprise_price": {
"type": "enterprise"
},
"monthly_credits_remaining": "22.80",
"pre_pay_cash_remaining": "90.56",
"pre_pay_credits_remaining": "5.50",
"subscription_details": {
"modeling_app": {
"annual_discount": 26,
"description": "nl4xkxQNr84QP53Bxx3fhsngh44Tw",
"features": [
{
"info": "yQkSVWTc8Uzjaqbim1r1FA7MJHA81hm9BjT2jQQrRHOwGIU57wa6lGnR6ejfRmm5bEmIMV"
}
],
"name": "enterprise",
"pay_as_you_go_credits": "97.89",
"price": {
"type": "enterprise"
},
"share_links": [
"password_protected"
],
"support_tier": "priority",
"training_data_behavior": "default_off",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"modeling_app"
]
}
},
"subscription_id": "3aYDWsepksURzkLb7BpVThSvaFk5Ni",
"total_due": "13.47",
"updated_at": "2024-12-19T17:49:45.655Z"
}