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-09-19T16:12:26.109Z",
"id": "2896be7b-89d2-4831-9ca5-42c7b6004b62",
"map_id": "c16d794b-3feb-4d6c-8e45-0bad18594cd0",
"modeling_app_enterprise_price": {
"type": "enterprise"
},
"monthly_credits_remaining": "50.91",
"pre_pay_cash_remaining": "79.56",
"pre_pay_credits_remaining": "20.39",
"subscription_details": {
"modeling_app": {
"description": "eZm2KS22hw8deW",
"features": [
{
"info": "w3E4DfPITYYiR6XGpFYGifwzY5VmLP1H1tLhlkKaQ6SKInCuEma4NHTPIUbS"
}
],
"name": "pro",
"pay_as_you_go_credits": "87.20",
"price": {
"interval": "day",
"price": "53.29",
"type": "per_user"
},
"support_tier": "priority",
"training_data_behavior": "default_off",
"type": {
"saml_sso": true,
"type": "organization"
},
"zoo_tools_included": [
"diff_chrome_extension"
]
}
},
"subscription_id": "DcGLlJKuydi47XHLzE",
"total_due": "91.63",
"updated_at": "2024-09-19T16:12:26.109Z"
}