# getProfile

Get user profile.

`GET /hscodeselfclassify/profile/{avalaraId}`

**API:** Avalara Cross Border Classification
**Tag:** Profile
**API Version:** 1.0
**Base URL:** /
**Authentication:** Bearer token

Source: https://developer.avalara.com/products/self-serve-tariff-code/api/methods/Profile/getProfile/

## Description

Gets the user profile based on the authentication token. Returns profile details including ID, customer information, and subscribed destinations.

## Parameters

| Name | Type | In | Required | Description |
|---|---|---|---|---|
| `avalaraId` | string | path | Yes | AvaTax account identifier of the profile to retrieve. Must match the 'avatax_account_id' claim of the bearer token; the request is rejected with HTTP 401 otherwise. |
| `avalara-version` |  | header | Yes | API version. Current version is 1.0. |

## Responses

| Status | Description | Schema |
|---|---|---|
| 200 | Returns the user profile for the authenticated request. | `ProfileProjection` |
| 400 | The request parameters are invalid. | `AvalaraAPIExceptionDetails` |
| 401 | Authentication failed due to invalid or missing authentication token. | `AvalaraAPIExceptionDetails` |
| 500 | An unexpected server error occurred. | `AvalaraAPIExceptionDetails` |

### 200 Response: `ProfileProjection`

Customer profile information, including the AvaTax account identifier, the customer name, the list of subscribed services, the supported and subscribed destination countries, and the customer's destination subscription limit.

| Property | Type | Required | Description |
|---|---|---|---|
| `avalaraId` | string | No | AvaTax account identifier for the customer. Example: `123456`. |
| `customer` | string | No | Display name of the customer or organization. Example: `Example Corp`. |
| `subscribedServices` | string[] | No | Services the customer is subscribed to. Known values include XBOSelfServe (Self-Serve Tariff Classification), XBOTariffContent (Tariff Content), and XBOTradecompliance (Trade Compliance). |
| `destinations` | DestinationProjection[] | No | Destination countries supported by the customer's profile, with the HS version and effective date that applies to each. |
| `subscribedDestinations` | string[] | No | Destination country codes (ISO 3166-1 alpha-2, uppercase) the customer is currently subscribed to. |
| `maxSubscribedDestinations` | integer | No | Maximum number of destinations the customer is allowed to subscribe to. Example: `10`. |