API → PaymentsGet balance for your user

Parameters

No parameters

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • created_at

      string / ISO-8601
      optional
    • id

      string / UUID
      optional
    • map_id

      string / UUID
      optional
    • modeling_app_enterprise_price

      oneOf
      optional
      One of
      • flat

        object
        optional
        Object Properties
        • interval

          string
          optional
          Possible values
          • day:  Day.
          • month:  Month.
          • week:  Week.
          • year:  Year.
        • price

          number / USD Price
          optional
        • type

          string
          optional
          Possible values
          • flat
      • per_user

        object
        optional
        Object Properties
        • interval

          string
          optional
          Possible values
          • day:  Day.
          • month:  Month.
          • week:  Week.
          • year:  Year.
        • price

          number / USD Price
          optional
        • type

          string
          optional
          Possible values
          • per_user
      • enterprise

        object
        optional
        Object Properties
        • type

          string
          optional
          Possible values
          • enterprise
    • monthly_credits_remaining

      number / USD Price
      optional
    • pre_pay_cash_remaining

      number / USD Price
      optional
    • pre_pay_credits_remaining

      number / USD Price
      optional
    • subscription_details

      object
      optional
      Object Properties
      • modeling_app

        object
        optional
        Object Properties
        • annual_discount

          integer
          optional
        • description

          string
          optional
        • features

          array
          optional
          Array of
        • name

          string
          optional
          Possible values
          • free:  The free tier.
          • pro:  The pro tier.
          • team:  The team tier.
          • enterprise:  The enterprise tier.
        • pay_as_you_go_credits

          number / USD Price
          optional
        • price

          oneOf
          optional
          One of
          • flat

            object
            optional
            Object Properties
            • interval

              string
              optional
              Possible values
              • day:  Day.
              • month:  Month.
              • week:  Week.
              • year:  Year.
            • price

              number / USD Price
              optional
            • type

              string
              optional
              Possible values
              • flat
          • per_user

            object
            optional
            Object Properties
            • interval

              string
              optional
              Possible values
              • day:  Day.
              • month:  Month.
              • week:  Week.
              • year:  Year.
            • price

              number / USD Price
              optional
            • type

              string
              optional
              Possible values
              • per_user
          • enterprise

            object
            optional
            Object Properties
            • type

              string
              optional
              Possible values
              • enterprise
        • array
          optional
        • support_tier

          string
          optional
          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

          oneOf
          optional
          One of
          • individual

            object
            optional
            Object Properties
            • type

              string
              optional
              Possible values
              • individual
          • organization

            object
            optional
            Object Properties
            • saml_sso

              boolean
              optional
            • type

              string
              optional
              Possible values
              • organization
        • zoo_tools_included

          array
          optional
    • subscription_id

      string
      optional
    • total_due

      number / USD Price
      optional
    • updated_at

      string / ISO-8601
      optional
get
/user/payment/balance
$ curl "https://api.zoo.dev/user/payment/balance" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "created_at": "2024-11-01T17:01:30.071Z",
  "id": "84a9fc3d-0b5b-457a-a1ce-0d73c0f70863",
  "map_id": "40f5084a-ce1a-4801-ae97-a3e94d92bd40",
  "modeling_app_enterprise_price": {
    "interval": "year",
    "price": "49.59",
    "type": "flat"
  },
  "monthly_credits_remaining": "39.94",
  "pre_pay_cash_remaining": "38.79",
  "pre_pay_credits_remaining": "11.84",
  "subscription_details": {
    "modeling_app": {
      "annual_discount": 4,
      "description": "6a",
      "features": [
        {
          "info": "SurYji4ldq7NojR2EgWzRitnuQBT9AaI32HoUPI6R3J9Am0QF1UBG9E"
        }
      ],
      "name": "enterprise",
      "pay_as_you_go_credits": "20.71",
      "price": {
        "interval": "year",
        "price": "16.15",
        "type": "per_user"
      },
      "share_links": [
        "organization_only"
      ],
      "support_tier": "priority",
      "training_data_behavior": "default_on",
      "type": {
        "saml_sso": false,
        "type": "organization"
      },
      "zoo_tools_included": [
        "diff_chrome_extension"
      ]
    }
  },
  "subscription_id": "18bAfFhSwYKQKfASTZ8h2r2",
  "total_due": "48.39",
  "updated_at": "2024-11-01T17:01:30.071Z"
}