# Stripe Customers
> The authenticated end user on whose behalf your application is authorized, expressed in the Financial Data Exchange (FDX) customer shape. This is the response of the FDX `getCustomerInfo` operation. The `customerId` matches the `sub` returned by the user-info endpoint.

## The Stripe Customer object
### Example
```json
{
  "accounts": [
    {
      "accountId": "account_in71c4amph0vgo2qllky",
      "links": [
        {
          "href": "https://api.increase.com/fdx/stripe/accounts/account_in71c4amph0vgo2qllky",
          "rel": "self"
        }
      ],
      "relationship": "PRIMARY"
    }
  ],
  "customerId": "role_9xbk70891hiu2yj8kfof",
  "emails": [
    "support@increase.com"
  ]
}
```
### Attributes
- `accounts` (array of objects)
  The accounts the customer has authorized your application to access.

  - `accounts.accountId` (string)
    Identifier of the related account.

  - `accounts.links` (array of objects)
    Links related to the account, including a `self` link.

      - `accounts.links.href` (string)
        URL to invoke the action on the resource.

      - `accounts.links.rel` (string)
        Relation of this link to its containing entity, per IETF RFC5988.

  - `accounts.relationship` (enum)
    The customer's relationship to the account.
    Cases:
    * `AUTHORIZED_USER` (AUTHORIZED_USER)
    * `BUSINESS` (BUSINESS)
    * `FOR_BENEFIT_OF` (FOR_BENEFIT_OF)
    * `FOR_BENEFIT_OF_PRIMARY` (FOR_BENEFIT_OF_PRIMARY)
    * `FOR_BENEFIT_OF_PRIMARY_JOINT_RESTRICTED` (FOR_BENEFIT_OF_PRIMARY_JOINT_RESTRICTED)
    * `FOR_BENEFIT_OF_SECONDARY` (FOR_BENEFIT_OF_SECONDARY)
    * `FOR_BENEFIT_OF_SECONDARY_JOINT_RESTRICTED` (FOR_BENEFIT_OF_SECONDARY_JOINT_RESTRICTED)
    * `FOR_BENEFIT_OF_SOLE_OWNER_RESTRICTED` (FOR_BENEFIT_OF_SOLE_OWNER_RESTRICTED)
    * `POWER_OF_ATTORNEY` (POWER_OF_ATTORNEY)
    * `PRIMARY_JOINT_TENANTS` (PRIMARY_JOINT_TENANTS)
    * `PRIMARY` (PRIMARY)
    * `PRIMARY_BORROWER` (PRIMARY_BORROWER)
    * `PRIMARY_JOINT` (PRIMARY_JOINT)
    * `SECONDARY` (SECONDARY)
    * `SECONDARY_JOINT_TENANTS` (SECONDARY_JOINT_TENANTS)
    * `SECONDARY_BORROWER` (SECONDARY_BORROWER)
    * `SECONDARY_JOINT` (SECONDARY_JOINT)
    * `SOLE_OWNER` (SOLE_OWNER)
    * `TRUSTEE` (TRUSTEE)
    * `UNIFORM_TRANSFER_TO_MINOR` (UNIFORM_TRANSFER_TO_MINOR)

- `customerId` (string)
  Long-term persistent identity of the customer. Matches the `sub` returned by the user-info endpoint.

- `emails` (array of strings)
  Email addresses associated with the customer.

## Retrieve the current Stripe customer
GET /fdx/stripe/customers/current
> Retrieve information about the authenticated end user on whose behalf your application is authorized, in the Financial Data Exchange (FDX) customer shape. The response carries the customer's stable identifier (matching the `sub` from the user-info endpoint), email, and the accounts the customer has authorized along with their relationship to each.
### Example
```curl
curl \
  --url "${INCREASE_URL}/fdx/stripe/customers/current" \
  -H "Authorization: Bearer ${INCREASE_API_KEY}"
```