API v2//
- Retrieve a customer
List customers
Create a customer
Replace a customer
Erase a customer
Retrieve a customer
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
- Mock serverhttps://docs.dimepay.net/_mock/apis/v2/dime-v2/customers/{token}
- Sandbox. A separate environment with its own data; no real money
moves. Use a client key created in sandbox.
https://sandbox.api.dimepay.app/dapi/v2/customers/{token}
- Production. Real payments. Use a client key created in production.
https://api.dimepay.app/dapi/v2/customers/{token}
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'The customer.
Identifies the customer. Use it in customer URLs and wherever a request refers to the customer.
Example:"cus_2ex3bH8t_I8wppHr5_nnWIbSOb_0xGEWoW"
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" }