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": "38.21",
"pre_pay_cash_remaining": "21.19",
"pre_pay_credits_remaining": "16.13"
}'
200 OK
Response{
"created_at": "2025-03-12T01:37:12.494Z",
"id": "aef52b8f-12d3-4281-9330-7132198868bb",
"map_id": "38180de5-4ec3-49dd-90e4-d56f439d9a6d",
"modeling_app_enterprise_price": {
"type": "enterprise"
},
"monthly_credits_remaining": "20.38",
"pre_pay_cash_remaining": "72.45",
"pre_pay_credits_remaining": "68.25",
"subscription_details": {
"modeling_app": {
"annual_discount": 7,
"description": "C",
"features": [
{
"info": "PuHA03eRkAkwWy7FZ6qxDFiqb"
}
],
"name": "pro",
"pay_as_you_go_credits": "85.32",
"price": {
"interval": "year",
"price": "91.58",
"type": "flat"
},
"share_links": [
"public"
],
"support_tier": "priority",
"training_data_behavior": "always",
"type": {
"saml_sso": true,
"type": "organization"
},
"zoo_tools_included": [
"text_to_cad"
]
}
},
"subscription_id": "qVXOFC4lwOf2dAlr0hpeGr",
"total_due": "34.63",
"updated_at": "2025-03-12T01:37:12.494Z"
}