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
        • 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
        • 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-04-12T19:24:24.382Z",
  "id": "7037c798-477d-49b1-b9f6-0648b80cd051",
  "map_id": "ec13a464-8bdc-442f-879a-287eba8bb318",
  "modeling_app_enterprise_price": {
    "interval": "day",
    "price": "38.69",
    "type": "flat"
  },
  "monthly_credits_remaining": "52.65",
  "pre_pay_cash_remaining": "34.69",
  "pre_pay_credits_remaining": "7.03",
  "subscription_details": {
    "modeling_app": {
      "description": "8bLD6a2GOOIC3mAOEcDTnKIC78TOt",
      "features": [
        {
          "info": "TDBynsTbaFmUW1fpvmGlqSQQHhIeusSWKlRfUrcPYo6PqdFNAc0nc3qtTaF6hz8na2H6MTmZAc3uMgcv"
        }
      ],
      "name": "team",
      "pay_as_you_go_credits": "1.97",
      "price": {
        "interval": "day",
        "price": "100.12",
        "type": "per_user"
      },
      "support_tier": "standard",
      "training_data_behavior": "default_off",
      "type": {
        "saml_sso": false,
        "type": "organization"
      },
      "zoo_tools_included": [
        "diff_chrome_extension"
      ]
    }
  },
  "subscription_id": "L5MZCXDbp38d6SP8nK52H",
  "total_due": "49.82",
  "updated_at": "2024-04-12T19:24:24.382Z"
}