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