Skip to Content

ListPlans

GET
/billing/v1/plans

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Query Parameters

currency?currency
interval?interval
free?free

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/billing.v1.ListPlansResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "plans": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/billing.v1.Plan",
          "$ref-value": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "examples": [
                  "Mn0bVc9xZ8"
                ],
                "title": "id"
              },
              "name": {
                "type": "string",
                "examples": [
                  "Pro"
                ],
                "title": "name",
                "maxLength": 64
              },
              "description": {
                "type": "string",
                "title": "description"
              },
              "price": {
                "type": "string",
                "examples": [
                  "29.99"
                ],
                "title": "price"
              },
              "currency": {
                "type": "string",
                "examples": [
                  "usd"
                ],
                "title": "currency"
              },
              "interval": {
                "type": "string",
                "title": "interval"
              },
              "plan_type": {
                "examples": [
                  "PLAN_TYPE_PRO"
                ],
                "title": "plan_type",
                "$ref": "#/components/schemas/billing.v1.PlanType",
                "$ref-value": {
                  "type": "string",
                  "title": "PlanType",
                  "enum": [
                    "PLAN_TYPE_UNSPECIFIED",
                    "PLAN_TYPE_FREE",
                    "PLAN_TYPE_PAY_AS_YOU_GO",
                    "PLAN_TYPE_PRO",
                    "PLAN_TYPE_CUSTOM"
                  ]
                }
              },
              "interval_count": {
                "type": "integer",
                "examples": [
                  "5"
                ],
                "title": "interval_count",
                "format": "int32"
              },
              "sort_order": {
                "type": "integer",
                "examples": [
                  "5"
                ],
                "title": "sort_order",
                "format": "int32"
              },
              "features": {
                "title": "features",
                "$ref": "#/components/schemas/google.protobuf.Struct",
                "$ref-value": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/google.protobuf.Value",
                    "$ref-value": {
                      "oneOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "object",
                          "additionalProperties": true
                        }
                      ],
                      "description": "Any JSON value: `null`, number, string, boolean, array, or object."
                    }
                  },
                  "description": "A JSON object whose property values may be any JSON value."
                }
              },
              "stripe_price_id": {
                "type": "string",
                "examples": [
                  "price_1QabcXYZ"
                ],
                "title": "stripe_price_id"
              },
              "stripe_product_id": {
                "type": "string",
                "examples": [
                  "prod_QabcXYZ"
                ],
                "title": "stripe_product_id"
              },
              "active": {
                "type": "boolean",
                "title": "active"
              },
              "is_public": {
                "type": "boolean",
                "title": "is_public"
              },
              "entitlements": {
                "title": "entitlements",
                "$ref": "#/components/schemas/billing.v1.PlanEntitlements",
                "$ref-value": {
                  "type": "object",
                  "properties": {
                    "custom_domain": {
                      "type": "boolean",
                      "title": "custom_domain"
                    },
                    "verified_domain": {
                      "type": "boolean",
                      "title": "verified_domain"
                    },
                    "support_cases": {
                      "type": "boolean",
                      "title": "support_cases"
                    },
                    "support_chat": {
                      "type": "boolean",
                      "title": "support_chat"
                    },
                    "limits": {
                      "title": "limits",
                      "$ref": "#/components/schemas/billing.v1.PlanLimits",
                      "$ref-value": {
                        "type": "object",
                        "properties": {
                          "max_projects": {
                            "type": "integer",
                            "title": "max_projects",
                            "format": "int32"
                          },
                          "max_videos": {
                            "type": "integer",
                            "title": "max_videos",
                            "format": "int32"
                          },
                          "max_images": {
                            "type": "integer",
                            "title": "max_images",
                            "format": "int32"
                          },
                          "max_team_members": {
                            "type": "integer",
                            "title": "max_team_members",
                            "format": "int32"
                          },
                          "storage_bytes": {
                            "type": "string",
                            "title": "storage_bytes",
                            "format": "int64"
                          },
                          "bandwidth_bytes": {
                            "type": "string",
                            "title": "bandwidth_bytes",
                            "format": "int64"
                          },
                          "api_requests_per_month": {
                            "type": "integer",
                            "title": "api_requests_per_month",
                            "format": "int32"
                          }
                        },
                        "title": "PlanLimits",
                        "additionalProperties": false
                      }
                    }
                  },
                  "title": "PlanEntitlements",
                  "additionalProperties": false
                }
              }
            },
            "title": "Plan",
            "additionalProperties": false
          }
        },
        "title": "plans"
      }
    },
    "title": "ListPlansResponse",
    "additionalProperties": false
  }
}
default
curl -X GET 'https://api.rixl.com/billing/v1/plans'

Success

application/json

{
  "$ref": "#/components/schemas/billing.v1.ListPlansResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "plans": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/billing.v1.Plan",
          "$ref-value": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "examples": [
                  "Mn0bVc9xZ8"
                ],
                "title": "id"
              },
              "name": {
                "type": "string",
                "examples": [
                  "Pro"
                ],
                "title": "name",
                "maxLength": 64
              },
              "description": {
                "type": "string",
                "title": "description"
              },
              "price": {
                "type": "string",
                "examples": [
                  "29.99"
                ],
                "title": "price"
              },
              "currency": {
                "type": "string",
                "examples": [
                  "usd"
                ],
                "title": "currency"
              },
              "interval": {
                "type": "string",
                "title": "interval"
              },
              "plan_type": {
                "examples": [
                  "PLAN_TYPE_PRO"
                ],
                "title": "plan_type",
                "$ref": "#/components/schemas/billing.v1.PlanType",
                "$ref-value": {
                  "type": "string",
                  "title": "PlanType",
                  "enum": [
                    "PLAN_TYPE_UNSPECIFIED",
                    "PLAN_TYPE_FREE",
                    "PLAN_TYPE_PAY_AS_YOU_GO",
                    "PLAN_TYPE_PRO",
                    "PLAN_TYPE_CUSTOM"
                  ]
                }
              },
              "interval_count": {
                "type": "integer",
                "examples": [
                  "5"
                ],
                "title": "interval_count",
                "format": "int32"
              },
              "sort_order": {
                "type": "integer",
                "examples": [
                  "5"
                ],
                "title": "sort_order",
                "format": "int32"
              },
              "features": {
                "title": "features",
                "$ref": "#/components/schemas/google.protobuf.Struct",
                "$ref-value": {
                  "type": "object",
                  "additionalProperties": {
                    "$ref": "#/components/schemas/google.protobuf.Value",
                    "$ref-value": {
                      "oneOf": [
                        {
                          "type": "null"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "string"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "array"
                        },
                        {
                          "type": "object",
                          "additionalProperties": true
                        }
                      ],
                      "description": "Any JSON value: `null`, number, string, boolean, array, or object."
                    }
                  },
                  "description": "A JSON object whose property values may be any JSON value."
                }
              },
              "stripe_price_id": {
                "type": "string",
                "examples": [
                  "price_1QabcXYZ"
                ],
                "title": "stripe_price_id"
              },
              "stripe_product_id": {
                "type": "string",
                "examples": [
                  "prod_QabcXYZ"
                ],
                "title": "stripe_product_id"
              },
              "active": {
                "type": "boolean",
                "title": "active"
              },
              "is_public": {
                "type": "boolean",
                "title": "is_public"
              },
              "entitlements": {
                "title": "entitlements",
                "$ref": "#/components/schemas/billing.v1.PlanEntitlements",
                "$ref-value": {
                  "type": "object",
                  "properties": {
                    "custom_domain": {
                      "type": "boolean",
                      "title": "custom_domain"
                    },
                    "verified_domain": {
                      "type": "boolean",
                      "title": "verified_domain"
                    },
                    "support_cases": {
                      "type": "boolean",
                      "title": "support_cases"
                    },
                    "support_chat": {
                      "type": "boolean",
                      "title": "support_chat"
                    },
                    "limits": {
                      "title": "limits",
                      "$ref": "#/components/schemas/billing.v1.PlanLimits",
                      "$ref-value": {
                        "type": "object",
                        "properties": {
                          "max_projects": {
                            "type": "integer",
                            "title": "max_projects",
                            "format": "int32"
                          },
                          "max_videos": {
                            "type": "integer",
                            "title": "max_videos",
                            "format": "int32"
                          },
                          "max_images": {
                            "type": "integer",
                            "title": "max_images",
                            "format": "int32"
                          },
                          "max_team_members": {
                            "type": "integer",
                            "title": "max_team_members",
                            "format": "int32"
                          },
                          "storage_bytes": {
                            "type": "string",
                            "title": "storage_bytes",
                            "format": "int64"
                          },
                          "bandwidth_bytes": {
                            "type": "string",
                            "title": "bandwidth_bytes",
                            "format": "int64"
                          },
                          "api_requests_per_month": {
                            "type": "integer",
                            "title": "api_requests_per_month",
                            "format": "int32"
                          }
                        },
                        "title": "PlanLimits",
                        "additionalProperties": false
                      }
                    }
                  },
                  "title": "PlanEntitlements",
                  "additionalProperties": false
                }
              }
            },
            "title": "Plan",
            "additionalProperties": false
          }
        },
        "title": "plans"
      }
    },
    "title": "ListPlansResponse",
    "additionalProperties": false
  }
}