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": "33.38",
"pre_pay_cash_remaining": "68.12",
"pre_pay_credits_remaining": "37.18"
}'
200 OK
Response{
"created_at": "2024-09-19T16:12:27.642Z",
"id": "446c7db1-3492-4932-b7a9-f0720f92424a",
"map_id": "1150059f-30de-47d4-bd9c-52c902ec040c",
"modeling_app_enterprise_price": {
"interval": "day",
"price": "7.61",
"type": "flat"
},
"monthly_credits_remaining": "52.35",
"pre_pay_cash_remaining": "56.77",
"pre_pay_credits_remaining": "86.70",
"subscription_details": {
"modeling_app": {
"description": "ET0GtVMqQ5W9SM1Lhn31mBgEr4",
"features": [
{
"info": "YSEQ4KfbwYYsb3ba3i7yyLvdTIzHGvd5NYoiSHGn"
}
],
"name": "free",
"pay_as_you_go_credits": "88.37",
"price": {
"type": "enterprise"
},
"support_tier": "premium",
"training_data_behavior": "default_on",
"type": {
"type": "individual"
},
"zoo_tools_included": [
"text_to_cad"
]
}
},
"subscription_id": "L0VFu2njy1EO5OrYPB2D",
"total_due": "92.68",
"updated_at": "2024-09-19T16:12:27.642Z"
}