Skip to content

Get the paid tiers

GET
/api/v1/newsletter/paid
curl --request GET \
--url https://digize.com/api/v1/newsletter/paid \
--header 'x-api-key: <x-api-key>'

The Paid subscriptions page: whether Stripe is connected (tiers are sold through the workspace’s own account), the workspace’s currency, every tier (archived ones too) with its prices and readers, and the paid settings.

Needs the newsletter:read permission.

Done

Media typeapplication/json
object
stripe
required
Any of:
object
account
required
string
connection
required
string
Allowed values: connect keys
chargesEnabled
required
boolean
livemode
required
boolean
currency
required
string
tiers
required
Array<object>
object
id
required
string
name
required
string
description
required

What readers get, in words.

string
currency
required
string
trialDays
required
number
position
required
number
archived
required
boolean
monthly
required
Any of:
object
amount
required
number
currency
required
string
stripePriceId
required
string
yearly
required
Any of:
object
amount
required
number
currency
required
string
stripePriceId
required
string
stripeProductId
required
string
readers
required

Readers at it now, whatever gives it.

number
paying
required

Of them, paying through Stripe.

number
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
settings
required
object
returnUrl
required
string
signInHosts
required
Array<string>
freeName
required
string
freeDescription
required
string

Example

{
"stripe": {
"connection": "connect"
}
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}