Retrieves the customer details, including reward balances.
Required scope: customer:read
Security
accountId and apiKey
- Sandboxhttps://api.test.easypay.pt/2.0/customer/{id}
- Productionhttps://api.prod.easypay.pt/2.0/customer/{id}
curl -i -X GET \
'https://api.test.easypay.pt/2.0/customer/{id}' \
-H 'AccountId: 2b0f63e2-9fb5-4e52-aca0-b4bf0339bbe6' \
-H 'ApiKey: eae4aa59-8e5b-4ec2-887d-b02768481a92'OK
The contact phone number of the customer, excluding the country code indicator.
Example:"911234567"
The country code indicator for the customer's phone number.
Example:"+351"
Customer's tax identification number or fiscal number.
Example:"PT123456789"
A customizable text field for users to input their own identifier for the customer.
Example:"customer Key Example"
Preferred language for customer communications. Uses ISO 639-1 language codes.
Enum:"PT""EN""ES"
Example:"PT"
Reward balances across all reward accounts for this customer. Empty array if no reward accounts exist. See the Rewards & Redemptions guide for the full flow.
Response
Success
{ "id": "649e88cf-0b78-4c36-8f99-33f5ebb812a1", "name": "John Doe", "email": "john.doe@example.com", "phone": "911234567", "phone_indicative": "+351", "fiscal_number": "PT123456789", "key": "customer Key Example", "language": "PT", "reward_balances": [ { … }, { … } ] }