Skip to content

Get a customer

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

The customer.

Media typeapplication/json
object
id
integer
firstname
string
lastname
string
email
string
receives_email

Whether the customer gets your product update emails.

boolean
created_at

UNIX timestamp (seconds).

integer
updated_at

UNIX timestamp (seconds).

integer

Example generated

{
"id": 1,
"firstname": "example",
"lastname": "example",
"email": "example",
"receives_email": true,
"created_at": 1,
"updated_at": 1
}

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"
}