API → Payments → Update balance for an userhidden
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
/users/{id}/payment/balance$ curl -X PUT "https://api.zoo.dev/users/{id}/payment/balance" \
--header "Authorization: Bearer $TOKEN" \
--header "Content-Type: application/json" \
--data '{
"monthly_credits_remaining": "67.24",
"pre_pay_cash_remaining": "72.81",
"pre_pay_credits_remaining": "59.02"
}'
200 OK
Response{
"created_at": "2024-10-18T02:49:08.214Z",
"id": "53bc5e0a-e756-47d4-8ebd-00872c045dda",
"map_id": "712cb534-7a0c-4819-a088-0f14e72a74b0",
"modeling_app_enterprise_price": {
"interval": "month",
"price": "5.48",
"type": "per_user"
},
"monthly_credits_remaining": "54.00",
"pre_pay_cash_remaining": "13.91",
"pre_pay_credits_remaining": "64.82",
"subscription_details": {
"modeling_app": {
"annual_discount": 14,
"description": "vwZ1nUliriWIUM",
"features": [
{
"info": "qqLICr2sdqeDwXenMnt5H150u3s14veDGrKGb9A3x"
}
],
"name": "free",
"pay_as_you_go_credits": "8.04",
"price": {
"interval": "day",
"price": "26.36",
"type": "flat"
},
"share_links": [
"password_protected"
],
"support_tier": "priority",
"training_data_behavior": "always",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"text_to_cad"
]
}
},
"subscription_id": "G1wfSWMoaXf",
"total_due": "76.22",
"updated_at": "2024-10-18T02:49:08.215Z"
}