Show customer details
Retrieves the customer details, including reward balances.
Required scope: <code style="background:#e8f0fe;color:#1a73e8;padding:2px 8px;border-radius:12px;font-size:0.85em">customer:read</code>
Request
- Base URLhttps://api.test.easypay.pt/2.0
- AuthAPI key in header AccountId and API key in header ApiKey
Path parameters
Resource Identification
Response
OK
The Customer object contains detailed information about the customer, including reward balances.
Unique identifier for the customer.
Full name of the customer.
Customer's email address.
The contact phone number of the customer, excluding the country code indicator.
The country code indicator for the customer's phone number.
Customer's tax identification number or fiscal number.
A customizable text field for users to input their own identifier for the customer.
Preferred language for customer communications. Uses ISO 639-1 language codes.
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.
Example response
{
"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": [
{
"account_id": "458b2fc4-3092-4de3-abd4-fe1600c09420",
"available_balance": 12.5
}
]
}Changes
No recorded changes to this operation across all 11 revisions of this API.