List subscriptions
List subscriptions of a billing account.
Path Parameters
org_id string required
Query Parameters
billing_id string
ID of the billing account to list subscriptions for
state string
Filter subscriptions by state
plan string
expand string[]
Responses
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
application/json
Schema
Example (from schema)
Schema
- Array [
- Array [
- ]
- Array [
- ]
- Array [
- Array [
- ]
- Array [
- ]
- ]
- ]
subscriptions object[]
id string
customer_id string
provider_id string
plan_id string
state string
metadata object
created_at date-time
updated_at date-time
canceled_at date-time
ended_at date-time
trial_ends_at date-time
current_period_start_at date-time
current_period_end_at date-time
billing_cycle_anchor_at date-time
phases object[]
effective_at date-time
plan_id string
customer object
id string
org_id string
name string
email string
phone string
address object
line1 string
line2 string
city string
state string
postal_code string
country string
provider_id string
provider string
currency string
state string
tax_data object[]
type tax type like "vat", "gst", "sales_tax" or if it's
provider specific us_ein, uk_vat, in_gst, etc
id unique identifier provided by the tax agency
metadata object
created_at date-time
updated_at date-time
organization object
id string
name string
title string
metadata object
created_at date-time
The time the organization was created.
updated_at date-time
The time the organization was last updated.
state string
The state of the organization (enabled or disabled).
avatar string
The base64 encoded image string of the organization avatar. Should be less than 2MB.
plan object
id string
name string
title string
description string
products object[]
id string
name string
title string
description string
plan_ids string[]
state string
prices object[]
id string
product_id string
provider_id string
name string
interval known intervals are "day", "week", "month", and "year"
usage_type usage_type known types are "licensed" and "metered"
billing_scheme billing_scheme known schemes are "tiered" and "flat"
state string
currency currency like "usd", "eur", "gbp"
amount int64
metered_aggregate metered_aggregate known aggregations are "sum", "last_during_period" and "max"
tier_mode tier_mode known modes are "graduated" and "volume"
metadata object
created_at date-time
updated_at date-time
behavior string
features object[]
id string
name machine friendly name
product_ids string[]
title human friendly name
metadata object
created_at date-time
updated_at date-time
behavior_config object
credit_amount int64
seat_limit int64
min_quantity int64
max_quantity int64
metadata object
created_at date-time
updated_at date-time
interval known intervals are "day", "week", "month", and "year"
on_start_credits int64
trial_days int64
metadata object
created_at date-time
updated_at date-time
{
"subscriptions": [
{
"id": "string",
"customer_id": "string",
"provider_id": "string",
"plan_id": "string",
"state": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.258Z",
"updated_at": "2024-07-13T09:54:48.258Z",
"canceled_at": "2024-07-13T09:54:48.258Z",
"ended_at": "2024-07-13T09:54:48.258Z",
"trial_ends_at": "2024-07-13T09:54:48.258Z",
"current_period_start_at": "2024-07-13T09:54:48.258Z",
"current_period_end_at": "2024-07-13T09:54:48.258Z",
"billing_cycle_anchor_at": "2024-07-13T09:54:48.259Z",
"phases": [
{
"effective_at": "2024-07-13T09:54:48.259Z",
"plan_id": "string"
}
],
"customer": {
"id": "string",
"org_id": "string",
"name": "string",
"email": "string",
"phone": "string",
"address": {
"line1": "string",
"line2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"country": "string"
},
"provider_id": "string",
"provider": "string",
"currency": "string",
"state": "string",
"tax_data": [
{
"type": "string",
"id": "string"
}
],
"metadata": {},
"created_at": "2024-07-13T09:54:48.259Z",
"updated_at": "2024-07-13T09:54:48.259Z",
"organization": {
"id": "string",
"name": "string",
"title": "string",
"metadata": {},
"created_at": "2023-06-07T05:39:56.961Z",
"updated_at": "2023-06-07T05:39:56.961Z",
"state": "enabled",
"avatar": "string"
}
},
"plan": {
"id": "string",
"name": "string",
"title": "string",
"description": "string",
"products": [
{
"id": "string",
"name": "string",
"title": "string",
"description": "string",
"plan_ids": [
"string"
],
"state": "string",
"prices": [
{
"id": "string",
"product_id": "string",
"provider_id": "string",
"name": "string",
"interval": "string",
"usage_type": "string",
"billing_scheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"metered_aggregate": "string",
"tier_mode": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.259Z",
"updated_at": "2024-07-13T09:54:48.259Z"
}
],
"behavior": "string",
"features": [
{
"id": "string",
"name": "string",
"product_ids": [
"string"
],
"title": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.259Z",
"updated_at": "2024-07-13T09:54:48.259Z"
}
],
"behavior_config": {
"credit_amount": "string",
"seat_limit": "string",
"min_quantity": "string",
"max_quantity": "string"
},
"metadata": {},
"created_at": "2024-07-13T09:54:48.259Z",
"updated_at": "2024-07-13T09:54:48.259Z"
}
],
"interval": "string",
"on_start_credits": "string",
"trial_days": "string",
"metadata": {},
"created_at": "2024-07-13T09:54:48.259Z",
"updated_at": "2024-07-13T09:54:48.259Z"
}
}
]
}
Bad Request - The request was malformed or contained invalid parameters.
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
application/json
Schema
Example (from schema)
Schema
- Array [
- ]
code int32
message string
details object[]
@type string
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Loading...