Get the paid tiers
GET
/api/v1/newsletter/paid
const url = 'https://digize.com/api/v1/newsletter/paid';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Done
Media typeapplication/json
object
stripe
required
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
yearly
required
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
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
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
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
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
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}