Skip to content

Get a product

GET
/products/{id}
curl --request GET \
--url https://api.getdpd.com/v2/products/1 \
--header 'Authorization: Basic <credentials>'

A product’s image comes in several sizes: 50x50, 100x100, 125x125, 150x150, 250x250, 300x300, 350x350, 400x400, 450x450, 500x500, 550x550, 600x600, 800x800 and 1000x1000. The URL for a size is https://d2beuh40lcdzfb.cloudfront.net/products/{id}/{size}/{image_file_name}.

id
required
integer

The product.

Media typeapplication/json
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
Allowed values: 0 1

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
Allowed value: NOTFOUND

Example

{
"status": "NOTFOUND"
}