Get a subscriber's tier
GET
/api/v1/newsletter/subscribers/{contactId}/tier
const url = 'https://digize.com/api/v1/newsletter/subscribers/example/tier';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/subscribers/example/tier \ --header 'x-api-key: <x-api-key>'A subscriber’s paid side: the tier they read at now and what gives it, their comps and gifts, and their paid tiers’ Stripe subscriptions.
Needs the newsletter:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”contactId
required
string
Responses
Section titled “Responses”Done
Media typeapplication/json
object
tierId
required
string | null
tier
required
string | null
grants
required
subscriptions
required
Array<object>
object
id
required
string
tierId
required
string
tier
required
string
status
required
string
amount
required
number
currency
required
string
intervalDays
required
number
startedAt
required
string format: date-time
Example
{ "source": "stripe", "grants": [ { "kind": "comp" } ]}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" }}