List products
GET
/products
const url = 'https://api.getdpd.com/v2/products';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/products \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”storefront_id
integer
Only products in this storefront. Defaults to all storefronts.
page
integer
Page number, 100 records per page. Leave it off to try to get every record.
Responses
Section titled “Responses”The products in your account.
Media typeapplication/json
Array<object>
object
id
integer
created_at
UNIX timestamp (seconds).
integer
updated_at
UNIX timestamp (seconds).
integer
storefront_id
integer
name
string
description
Short description.
string
long_description
string
price
string
sku
string
image_file_name
The image’s file name, for building an image URL.
string
image_updated_at
UNIX timestamp (seconds).
integer
mime_type
string
file_size
integer
file_name
string
prices
Array<object>
object
id
integer
name
string
price
string
weight
integer
visibility
0 is hidden, 1 is displayed.
integer
Example
[ { "price": "19.99", "prices": [ { "price": "19.99" } ], "visibility": 0 }]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"}