Skip to main content
GET
/
stripe
/
connect
/
accounts
/
{accountId}
/
subscriptions
/
by-customer
List Subscriptions by Customer
curl --request GET \
  --url https://api.chat-dash.com/v1/public/stripe/connect/accounts/{accountId}/subscriptions/by-customer \
  --header 'Authorization: <authorization>'
{
  "subscriptions": [
    {
      "id": "sub_1ABC123DEF456GHI",
      "type": "subscription",
      "status": "active",
      "cancelAtPeriodEndDisplay": null,
      "customer": {
        "id": "cus_ABC123XYZ",
        "email": "[email protected]"
      },
      "current_period_start": 1700000000,
      "current_period_end": 1702600000,
      "created": 1700000000,
      "collection_method": "charge_automatically",
      "cancel_at_period_end": false,
      "canceled_at": null,
      "product": {
        "id": "prod_ABC123XYZ",
        "name": "Pro Plan"
      },
      "automatic_tax": false,
      "coupon": "",
      "agents": "Agent 1, Agent 2"
    }
  ],
  "has_more": false,
  "next_cursor": null
}

Headers

Authorization
string
required

All requests to the ChatDash API must be validated with the agency API Key found on your agency profile

Path Parameters

accountId
string
required

The Stripe connected account ID

Query Parameters

customerId
string

Filter by Stripe customer ID. Either customerId or email is required.

email
string<email>

Filter by customer email. Either email or customerId is required.

Response

OK

subscriptions
object[]
has_more
boolean
Example:

false

next_cursor
string | null
Example:

null