Get a subscriber
GET
/storefronts/{storefront_id}/subscribers/{id}
const url = 'https://api.getdpd.com/v2/storefronts/1/subscribers/1';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/1 \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”storefront_id
required
integer
id
required
integer
Responses
Section titled “Responses”The subscriber.
Media typeapplication/json
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"}