Get a customer
GET
/customers/{id}
const url = 'https://api.getdpd.com/v2/customers/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/customers/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 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
Example
{ "status": "NOTFOUND"}