APIPaymentsUpdate balance for an user
hidden

Parameters

Name

Type

Req.

Returns

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_api_credits_remaining_monetary_value": "100.06",
  "stable_api_credits_remaining_monetary_value": "69.19"
}'
200 OK
Response
{
  "created_at": "2025-05-22T02:04:22.294Z",
  "id": "fd331132-070e-496b-9e71-8cc9e60caf05",
  "map_id": "aafdb59a-baf3-4787-896e-b5f21d503b98",
  "modeling_app_enterprise_price": {
    "interval": "month",
    "price": "88.81",
    "type": "flat"
  },
  "monthly_api_credits_remaining": 25,
  "monthly_api_credits_remaining_monetary_value": "60.20",
  "stable_api_credits_remaining": 18,
  "stable_api_credits_remaining_monetary_value": "20.62",
  "subscription_details": {
    "modeling_app": {
      "annual_discount": 9,
      "description": "71v7k2cvTDuBGo",
      "endpoints_included": [
        "ml"
      ],
      "features": [
        {
          "info": "lLQsaYpNTNxlRKaJS2sxi63t5lHsv4DIPcuglj1VlGn9pWlD2LaT9t4JaZo0FsYkWI1TpFj6ESdpwq"
        }
      ],
      "monthly_pay_as_you_go_api_credits": 16,
      "monthly_pay_as_you_go_api_credits_monetary_value": "7.55",
      "name": "free",
      "pay_as_you_go_api_credit_price": "30.96",
      "price": {
        "type": "enterprise"
      },
      "share_links": [
        "organization_only"
      ],
      "support_tier": "community",
      "training_data_behavior": "always",
      "type": {
        "saml_sso": true,
        "type": "organization"
      },
      "zoo_tools_included": [
        "modeling_app"
      ]
    }
  },
  "subscription_id": "SLZObSYOFgFdrVBnDU5fB",
  "total_due": "61.32",
  "updated_at": "2025-05-22T02:04:22.294Z"
}