List storefronts
GET
/storefronts
const url = 'https://api.getdpd.com/v2/storefronts';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 \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”page
integer
Page number, 100 records per page. Leave it off to try to get every record.
Responses
Section titled “Responses”The storefronts in your account.
Media typeapplication/json
Array<object>
object
id
integer
created_at
UNIX timestamp (seconds).
integer
updated_at
UNIX timestamp (seconds).
integer
name
string
url
string
contact_name
string
contact_email
string
currency
string
type
string
subdomain
The store’s subdomain. Add .dpdcart.com for its cart host.
string
Example
[ { "type": "cart" }]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"}