Customer

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>

get/customer/{id}

Request

  • Base URL
    https://api.test.easypay.pt/2.0
  • Auth
    API key in header AccountId and API key in header ApiKey

Path parameters

id, string uuid required

Resource Identification

Response

OK

CustomerDetail required

The Customer object contains detailed information about the customer, including reward balances.

id, string uuid

Unique identifier for the customer.

name, string

Full name of the customer.

email, string email

Customer's email address.

phone, string

The contact phone number of the customer, excluding the country code indicator.

phone_indicative, string

The country code indicator for the customer's phone number.

fiscal_number, string

Customer's tax identification number or fiscal number.

key, string

A customizable text field for users to input their own identifier for the customer.

language, 'PT' | 'EN' | 'ES'

Preferred language for customer communications. Uses ISO 639-1 language codes.

reward_balances, object[]

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.