# Get customer details

Get customer details

Endpoint: GET /customers/{id}
Version: 2.6.0
Security: bearer, basic, apiKey

## Security:

  - `bearer` (unknown)
    http bearer JWT

  - `basic` (unknown)
    http basic

  - `apiKey` (unknown)
    apiKey in header X-API-Key

## Path parameters:

  - `id` (string, required)
    Customer Id

## Response 200:

  - `200` (unknown)
    Customer successfully retrieved

## Response 200 fields (application/json):

  - `billingAddress` (object)

  - `billingAddress.streetName` (string)
    Street name of billing address. Present if passed by merchant in Payment.

  - `billingAddress.streetNumber` (string)
    Street number of billing address. Present if passed by merchant in Payment.

  - `billingAddress.city` (string)
    City of billing address. Present if passed by merchant in Payment.

  - `billingAddress.postalCode` (string)
    Postal code of billing address. Present if passed by merchant in Payment.

  - `billingAddress.state` (string)
    State of billing address. Present if passed by merchant in Payment.

  - `billingAddress.country` (string)
    Country of billing address. Present if passed by merchant in Payment.

  - `lastUsedAt` (any)
    Last used date and time in ISO 8601 format.

  - `id` (string)
    Unique identifier of the customer assigned by Paygate.

  - `merchantCustomerId` (string)
    Unique identifier of the customer assigned by merchant.

  - `firstName` (string)
    First name of the customer. Present if passed by merchant in Payment.

  - `lastName` (string)
    Last name of the customer. Present if passed by merchant in Payment.

  - `companyName` (string)
    Last name of the customer. Present if passed by merchant in Payment.

  - `email` (string)
    E-mail address of the customer. Present if passed by merchant in Payment.

  - `phone` (object)

  - `phone.countryCode` (string)
    Area or country code of the phone number of the customer. Present if passed by merchant in Payment.

  - `phone.number` (string)
    Phone number of the customer. Present if passed by merchant in Payment.

  - `scope` (string)
    Scope of customer vault. Present if configured for the merchant in MAT.

  - `createdAt` (any)
    Creation date and time in ISO 8601 format.

  - `updatedAt` (any)
    Update date and time in ISO 8601 format.

## Response 400:

  - `400` (unknown)
    Invalid Customer Id supplied

## Response 400 fields (application/json):

  - `errors` (object)
    "Object": [
"Error 1",
"Error 2"
]
}`

  - `type` (string)
    A URI reference that identifies the problem type

  - `title` (string)
    A short, human-readable summary of the problem type

  - `status` (string)
    The HTTP status code

  - `detail` (string)

  - `instance` (string)

## Response 404:

  - `404` (unknown)
    Customer Details not found

## Response 404 fields (application/json):

  - `type` (string)

  - `title` (string)

  - `status` (string)

  - `detail` (string)

  - `instance` (string)

## Response 500:

  - `500` (unknown)
    Internal Server Error

## Response 500 fields (application/json):

  - `type` (string)

  - `title` (string)

  - `status` (string)

  - `detail` (string)

  - `instance` (string)

## Response 200 examples:

  - `Default` (unknown)

