List subscribers
GET
/storefronts/{storefront_id}/subscribers
const url = 'https://api.getdpd.com/v2/storefronts/1/subscribers';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
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://api.getdpd.com/v2/storefronts/1/subscribers \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”storefront_id
required
integer
Query Parameters
Section titled “Query Parameters”username
string
The subscriber’s username (their email address).
page
integer
Page number, 100 records per page. Leave it off to try to get every record.
Responses
Section titled “Responses”The storefront’s subscribers.
Media typeapplication/json
Array<object>
object
id
integer
created_at
UNIX timestamp (seconds).
integer
updated_at
UNIX timestamp (seconds).
integer
username
The subscriber’s email address.
string
last_login_at
UNIX timestamp (seconds).
integer
subscription
object
id
integer
status
NEWNot activated yet: checking out, or abandoned signup.TRIALIn the trial period.ACTIVEActive, no payment due.CANCELEDCanceled, but the current term hasn’t ended.CLOSEDCanceled and closed.PAST_DUEActive, but a payment is overdue. Closes if it isn’t paid.
string
price
string
period
integer
unit
The billing period’s unit, one character.
string
tax_amount
string
trial_price
string
trial_period
integer
trial_unit
string
trial_tax_amount
string
created_at
UNIX timestamp (seconds).
integer
updated_at
UNIX timestamp (seconds).
integer
started_at
UNIX timestamp (seconds).
integer
ended_at
UNIX timestamp (seconds).
integer
trial_started_at
UNIX timestamp (seconds).
integer
last_payment_at
UNIX timestamp (seconds).
integer
next_payment_at
UNIX timestamp (seconds).
integer
Example
[ { "subscription": { "status": "NEW", "price": "19.99", "tax_amount": "19.99", "trial_price": "19.99", "trial_tax_amount": "19.99" } }]The username or API password is wrong.
Nothing found: the record doesn’t exist or isn’t yours, the list is empty, or the page is past the last one.
Media typeapplication/json
object
status
string
Example
{ "status": "NOTFOUND"}