API → Payments → Update balance for an orghidden
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
/orgs/{id}/payment/balance$ curl -X PUT "https://api.zoo.dev/orgs/{id}/payment/balance" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"monthly_credits_remaining": "9.09",
"pre_pay_cash_remaining": "24.29",
"pre_pay_credits_remaining": "70.44"
}'
200 OK
Response{
"created_at": "2024-09-07T21:57:05.986Z",
"id": "33aef751-3269-4547-9398-8235ec0a8761",
"map_id": "96df254f-0929-470e-a8b6-d8419e3afe3b",
"modeling_app_enterprise_price": {
"interval": "day",
"price": "54.30",
"type": "flat"
},
"monthly_credits_remaining": "96.21",
"pre_pay_cash_remaining": "43.76",
"pre_pay_credits_remaining": "74.09",
"subscription_details": {
"modeling_app": {
"description": "V4WsJc4DIfN0",
"features": [
{
"info": "IgZ1MHg6ptb2joKwIkSklK8u22kmECOjicSvksxbVvXMIBraGhZng0msSE1ZilRQA6A"
}
],
"name": "enterprise",
"pay_as_you_go_credits": "26.92",
"price": {
"type": "enterprise"
},
"support_tier": "priority",
"training_data_behavior": "default_on",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"modeling_app"
]
}
},
"subscription_id": "5eLaXU",
"total_due": "70.42",
"updated_at": "2024-09-07T21:57:05.987Z"
}