Skip to content

Retrieve a customer

Request

Addressed by the customer's token, which is in the customer object returned when you create or list customers. A token that matches no customer returns 404.

Security
ClientKey and SecretKey
Path
tokenstringrequired

The customer's token, from create or list.

Example:cus_2ex3bH8t_I8wppHr5_nnWIbSOb_0xGEWoW
curl -i -X GET \
  https://docs.dimepay.net/_mock/apis/v2/dime-v2/customers/cus_2ex3bH8t_I8wppHr5_nnWIbSOb_0xGEWoW \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'X-Dime-Client: YOUR_API_KEY_HERE'

Responses

The customer.

Bodyapplication/json
objectstring
Example:"customer"
Value:"customer"
tokenstring

Identifies the customer. Use it in customer URLs and wherever a request refers to the customer.

Example:"cus_2ex3bH8t_I8wppHr5_nnWIbSOb_0xGEWoW"
first_namestring
Example:"Michael"
last_namestring
Example:"Scott"
emailstring, (email)
Example:"mscott@example.com"
phonestring or null
Example:"+18765551234"
companystring or null
Example:"Dunder Mifflin"
billing_address_streetstring or null
Example:"555 Lackawanna Ave"
billing_address_citystring or null
Example:"Scranton"
billing_address_statestring or null
Example:"Pennsylvania"
billing_address_postal_codestring or null
Example:"18508"
billing_address_countrystring or null
Example:"United States"
shipping_address_streetstring or null
Example:"555 Lackawanna Ave"
shipping_address_citystring or null
Example:"Scranton"
shipping_address_statestring or null
Example:"Pennsylvania"
shipping_address_postal_codestring or null
Example:"18508"
shipping_address_countrystring or null
Example:"United States"
notesstring or null
Example:"Prefers email over phone."
custom_attributesobject or null
Example:
{ "loyalty_tier": "gold" }
is_activeboolean
Example:true
created_atstring, (date-time)
Example:"2026-08-26T00:48:52.252Z"
updated_atstring, (date-time)
Example:"2026-08-26T00:48:52.252Z"
Response
{ "object": "customer", "token": "cus_2ex3bH8t_I8wppHr5_nnWIbSOb_0xGEWoW", "first_name": "Michael", "last_name": "Scott", "email": "mscott@example.com", "phone": "+18765551234", "company": null, "billing_address_street": "555 Lackawanna Ave", "billing_address_city": "Scranton", "billing_address_state": "Pennsylvania", "billing_address_postal_code": "18508", "billing_address_country": "United States", "shipping_address_street": null, "shipping_address_city": null, "shipping_address_state": null, "shipping_address_postal_code": null, "shipping_address_country": null, "notes": null, "custom_attributes": null, "is_active": true, "created_at": "2026-10-27T15:04:05.000Z", "updated_at": "2026-10-27T15:04:05.000Z" }