Verify a subscriber
GET
/storefronts/{storefront_id}/subscribers/verify
const url = 'https://api.getdpd.com/v2/storefronts/1/subscribers/verify?username=test%40example.com';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/verify?username=test%40example.com' \ --header 'Authorization: Basic <credentials>'Returns just the subscriber’s subscription status, as plain text. Pass
id or username. Subscribers with ACTIVE, TRIAL or PAST_DUE
should get service.
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).
Example
test@example.comid
integer
The subscriber ID. Used instead of username when both are given.
Responses
Section titled “Responses”The subscription status.
Media typetext/plain
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
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"}