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": "93.39",
"pre_pay_cash_remaining": "80.74",
"pre_pay_credits_remaining": "68.50"
}'
200 OK
Response{
"created_at": "2024-04-29T19:59:55.022Z",
"id": "7e29ccf7-8b3c-47db-8a17-bb53528382f4",
"map_id": "6075f6e9-c871-4f0f-930b-439bb777cd26",
"modeling_app_enterprise_price": {
"interval": "week",
"price": "0.12",
"type": "flat"
},
"monthly_credits_remaining": "18.60",
"pre_pay_cash_remaining": "23.85",
"pre_pay_credits_remaining": "21.32",
"subscription_details": {
"modeling_app": {
"description": "IR",
"features": [
{
"info": "u6VQcIj5M62B3TgU26aHfPiOeqWGU5MfIDLXo670NcOJZu92kUTE8xwdl0GjNgnMaFBDIZq"
}
],
"name": "team",
"pay_as_you_go_credits": "42.82",
"price": {
"type": "enterprise"
},
"support_tier": "premium",
"training_data_behavior": "always",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"text_to_cad"
]
}
},
"subscription_id": "68pcvDwOmIcVzTBWydXSsm",
"total_due": "23.99",
"updated_at": "2024-04-29T19:59:55.022Z"
}