<!-- https://staircase.co/delivery/distribution/setup -->
# Setup

# Setup

Self-service account and environment creation, between a user interface and the platform's own APIs.

Creating an account and its first environment touches several products in a fixed order — identity, environment provisioning, catalogue installation and key issuance. This product carries that sequence so a front end can present it as one step.

Per-vendor credential onboarding follows the same shape: each vendor integration exposes an endpoint to store a lender's credentials and another to describe the schema those credentials must satisfy, so the form can be rendered from the schema rather than hand-built per vendor.

## Operations

<!--source:api-specifications-->

### Setup
<!--/source-->

`POST` `/setupAccount`

<!--source:api-specifications-->

#### Setup Account
<!--/source-->

`setup-account`

<!--source:api-specifications-->
Setup new account.
<!--/source-->

<!--source:api-specifications-->
Create new account and send an email

<!--/source-->

##### Request

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "first_name": "John",
 "last_name": "Doe",
 "email": "john.doe@company.com",
 "company_name": "company",
 "company_industry": "Mortgage Broker",
 "company_size": "1-50",
 "address": "STREET",
 "zip_code": "00000",
 "state": "CA",
 "password": "XXXXX"
}
```

<!--/source-->

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy OK.

```
{
 "transaction_id": "aaaa-bbb-xccccc"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
2
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `Content-Type` required | `string` header | `application/json` | <!--source:api-specifications-->The content type.<!--/source--> |

##### Request body`application/json`

<!--source:api-specifications-->
10 fields
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `first_name`required | `string` | <!--source:api-specifications-->First name<!--/source-->Example `John` |
| `last_name`required | `string` | <!--source:api-specifications-->Last name<!--/source-->Example `Doe` |
| `email`required | `string` | <!--source:api-specifications-->Email of account<!--/source-->Example `john.doe@company.com` |
| `company_name`required | `string` | <!--source:api-specifications-->Company name<!--/source-->Example `company` |
| `company_industry`required | `string` | <!--source:api-specifications-->Category of company<!--/source-->Example `Mortgage Broker` |
| `company_size`required | `string` | <!--source:api-specifications-->Number employees in the company<!--/source-->Example `1-50` |
| `address`required | `string` | <!--source:api-specifications-->Address<!--/source-->Example `STREET` |
| `zip_code`required | `string` | <!--source:api-specifications-->Zip Code<!--/source-->Example `00000` |
| `state`required | `string` | <!--source:api-specifications-->State<!--/source-->Example `CA` |
| `password`required | `string` | <!--source:api-specifications-->Password of account<!--/source-->Example `XXXXX` |

##### Response `200``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
OK.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `transaction_id` | `string` | <!--source:api-specifications-->Transaction ID<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`POST` `/refresh_token`

<!--source:api-specifications-->

#### Refresh Token
<!--/source-->

`Refresh-token`

<!--source:api-specifications-->
Returns new token when access_token expires

<!--/source-->

##### Request

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "refresh_token": "<redacted>"
}
```

<!--/source-->

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy OK.

```
{
 "id_token": "xxxxxx",
 "refresh_token": "<redacted>",
 "token_type": "yyyyyy"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
2
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `Content-Type` required | `string` header | `application/json` | <!--source:api-specifications-->The content type.<!--/source--> |

##### Request body`application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `refresh_token`required | `string` | <!--source:api-specifications-->Token to refresh<!--/source-->Example `<redacted>` |

##### Response `200``application/json`

<!--source:api-specifications-->
3 fields
<!--/source-->
<!--source:api-specifications-->
OK.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `id_token` | `string` | <!--source:api-specifications-->The ID token.<!--/source--> |
| `refresh_token` | `string` | <!--source:api-specifications-->The refresh token.<!--/source--> |
| `token_type` | `string` | <!--source:api-specifications-->The token type.<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`POST` `/sign_in`

<!--source:api-specifications-->

#### Sign In
<!--/source-->

`sign-in`

<!--source:api-specifications-->
Sign in.
<!--/source-->

<!--source:api-specifications-->
Sign in the credentials

<!--/source-->

##### Request

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "email": "john.doe@company.com",
 "password": "XXXXX"
}
```

<!--/source-->

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy OK.

```
{
 "id_token": "xxxxxx",
 "refresh_token": "<redacted>",
 "token_type": "yyyyyy"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
2
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `Content-Type` required | `string` header | `application/json` | <!--source:api-specifications-->The content type.<!--/source--> |

##### Request body`application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `email`required | `string` | <!--source:api-specifications-->Email of account<!--/source-->Example `john.doe@company.com` |
| `password`required | `string` | <!--source:api-specifications-->Password of account<!--/source-->Example `XXXXX` |

##### Response `200``application/json`

<!--source:api-specifications-->
3 fields
<!--/source-->
<!--source:api-specifications-->
OK.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `id_token` | `string` | <!--source:api-specifications-->The ID token.<!--/source--> |
| `refresh_token` | `string` | <!--source:api-specifications-->The refresh token.<!--/source--> |
| `token_type` | `string` | <!--source:api-specifications-->The token type.<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`GET` `/check_email_availability/{email}`

<!--source:api-specifications-->

#### Check Email Availability
<!--/source-->

`check-Email-Availability`

<!--source:api-specifications-->
Checks email registered incognito pool

<!--/source-->

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy OK.

```
{
 "status": "AVAILABLE"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
2
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `email` required | `string` path | `john.doe@company.com` | <!--source:api-specifications-->Email of account<!--/source--> |

##### Response `200``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
OK.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `status` | `string` | <!--source:api-specifications-->Status of account<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`GET` `/retrieve_all_products`

<!--source:api-specifications-->

#### Get all products
<!--/source-->

`get-all-products`

<!--source:api-specifications-->
Get all products from marketplace

<!--/source-->

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy OK.

```
{
 "products": [
 {
 "name": "Account Management",
 "description": "",
 "status": "NOT_DEPLOY"
 }
 ]
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
2
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Response `200``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
OK.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `products` | `object[]` | <!--source:api-specifications-->List of products<!--/source--> |
| `name` | `string` | <!--source:api-specifications-->Product name<!--/source--> |
| `description` | `string` | <!--source:api-specifications-->Description of product<!--/source--> |
| `status` | `string` | <!--source:api-specifications-->Status of deploy of product (NOT_DEPLOY, IN_QUEUE; FAILED, SUCCESS)<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`GET` `/admin_retrieve_transaction_status`

<!--source:api-specifications-->

#### Get environment creation status
<!--/source-->

`admin_retrieve_transaction_status`

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy OK.

```
{
 "status": "DEPLOYING_INFRASTRUCTURE_PRODUCTS"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
2
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Response `200``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
OK.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `status` | `string` | <!--source:api-specifications-->Status of environment<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`POST` `/submit_customer_api_key`

<!--source:api-specifications-->

#### Send email
<!--/source-->

`submit-customer-api-key`

<!--source:api-specifications-->
Submit API key received by email

<!--/source-->

##### Request

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "api_key": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
```

<!--/source-->

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy OK.

```
{
 "body": "Task success sent"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
3
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `Content-Type` required | `string` header | `application/json` | <!--source:api-specifications-->The content type.<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Request body`application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `api_key`required | `string` | <!--source:api-specifications-->API key of environment<!--/source-->Example `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` |

##### Response `200``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
OK.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `body` | `string` | <!--source:api-specifications-->Response of endpoint<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`POST` `/submit_product_deploy_options`

<!--source:api-specifications-->

#### Save product selected
<!--/source-->

`submit-product-deploy-options`

<!--source:api-specifications-->
Save product selected of environment created in the front-end side

<!--/source-->

##### Request

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "products_selected": [
 "Code",
 "Assess"
 ]
}
```

<!--/source-->

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy OK.

```
{
 "body": "Task success sent"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
3
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `Content-Type` required | `string` header | `application/json` | <!--source:api-specifications-->The content type.<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Request body`application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `products_selected`required | `string[]` | <!--source:api-specifications-->Products selected<!--/source--> |

##### Response `200``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
OK.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `body` | `string` | <!--source:api-specifications-->Response of endpoint<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`GET` `/user-info`

<!--source:api-specifications-->

#### Get information about authenticated user
<!--/source-->

`user-info`

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy OK.

```
{
 "UserAttributes": {
 "sub": "xxxxass-xxx-xxxx-xxxx-xxxxxxxxx",
 "email_verified": "true",
 "company_name": "Staircase",
 "email_confirmed": "False",
 "api_key_submitted": "True",
 "last_name": "Doe",
 "setup_id": "xxxxass-xxx-xxxx-xxxx-xxxxxxxxx",
 "api_key": "<redacted>",
 "first_name": "John",
 "account_id": "xxxxass-xxx-xxxx-xxxx-xxxxxxxxx",
 "email": "john.doe@staircase.co",
 "company_status": "SETUP_COMPLETED",
 "environment_fqdn": "setup-xxx-xxxxxx.staircaseapi.com"
 },
 "LosAttributes": [
 {
 "provider": "Encompass",
 "credentials": {
 "clientId": "xxxxx",
 "instanceId": "xxxxx",
 "username": "xxxxx"
 },
 "isAdmin": true,
 "adminEmail": "",
 "adminPhone": ""
 }
 ]
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
2
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Response `200``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
OK.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `UserAttributes`required | `object` | <!--source:api-specifications-->Information of user<!--/source--> |
| `sub`required | `string` | <!--source:api-specifications-->ID of user incognito<!--/source--> |
| `email_verified`required | `string` | <!--source:api-specifications-->Email is verified incognito<!--/source--> |
| `company_name`required | `string` | <!--source:api-specifications-->Company name of user<!--/source--> |
| `email_confirmed`required | `string` | <!--source:api-specifications-->Email was confirmed incognito<!--/source--> |
| `api_key_submitted`required | `string` | <!--source:api-specifications-->If the API key was submitted<!--/source--> |
| `last_name`required | `string` | <!--source:api-specifications-->Last name<!--/source--> |
| `setup_id`required | `string` | <!--source:api-specifications-->ID the user in step functions<!--/source--> |
| `api_key`required | `string` | <!--source:api-specifications-->API key of environment related with the user<!--/source--> |
| `first_name`required | `string` | <!--source:api-specifications-->First name<!--/source--> |
| `account_id`required | `string` | <!--source:api-specifications-->ID of user in account product<!--/source--> |
| `email`required | `string` | <!--source:api-specifications-->Email of user<!--/source--> |
| `company_status`required | `string` | <!--source:api-specifications-->Status in the flow of setup<!--/source--> |
| `environment_fqdn`required | `string` | <!--source:api-specifications-->Domain of environment related with the user<!--/source--> |
| `LosAttributes` | `object[]` | <!--source:api-specifications-->List of LOS Providers<!--/source--> |
| `provider`required | `string` | <!--source:api-specifications-->Provider name<!--/source--> |
| `isAdmin`required | `boolean` | <!--source:api-specifications-->Status if the user is admin<!--/source--> |
| `adminEmail` | `string` | <!--source:api-specifications-->The admin email if the user is not Admin<!--/source--> |
| `adminPhone` | `string` | <!--source:api-specifications-->The admin phone if the user is not Admin<!--/source--> |
| `credentials`required | `object` | <!--source:api-specifications-->Credentials of LOS Configuration<!--/source--> |
| `clientId` | `string` | <!--source:api-specifications-->Client ID of LOS Credentials<!--/source--> |
| `instanceId` | `string` | <!--source:api-specifications-->Instance ID of LOS Credentials<!--/source--> |
| `username` | `string` | <!--source:api-specifications-->Username of LOS Credentials<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`POST` `/submit_los_configuration/{provider_name}`

<!--source:api-specifications-->

#### Create new LOS configuration
<!--/source-->

`submit_LOS_configuration`

##### Request

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "credentials": {
 "clientId": "xxxxx",
 "instanceId": "xxxxx",
 "username": "xxxxx"
 },
 "isAdmin": true,
 "adminEmail": "",
 "adminPhone": ""
}
```

<!--/source-->

##### Response

<!--source:api-specifications-->
201400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy OK.

```
{
 "message": "The credential was stored successfully"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
3
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `provider_name` required | `string` path | `Encompass` | <!--source:api-specifications-->Provider name (NoProvider, Encompass)<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Request body`application/json`

<!--source:api-specifications-->
4 fields
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `isAdmin`required | `boolean` | <!--source:api-specifications-->Status if the user is admin<!--/source--> |
| `adminEmail` | `string` | <!--source:api-specifications-->The admin email if the user is not Admin<!--/source--> |
| `adminPhone` | `string` | <!--source:api-specifications-->The admin phone if the user is not Admin<!--/source--> |
| `credentials`required | `object` | <!--source:api-specifications-->Credentials of LOS Configuration<!--/source--> |
| `clientId` | `string` | <!--source:api-specifications-->Client ID of LOS Credentials<!--/source--> |
| `instanceId` | `string` | <!--source:api-specifications-->Instance ID of LOS Credentials<!--/source--> |
| `username` | `string` | <!--source:api-specifications-->Username of LOS Credentials<!--/source--> |

##### Response `201``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
OK.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message`required | `string` | <!--source:api-specifications-->Created description.<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`POST` `/sms-templates/{product}`

<!--source:api-specifications-->

#### Create new SMS template by product
<!--/source-->

`create-sms-templates`

##### Request

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "text_body": "xxxxxxxx xxxx xxxxxx"
}
```

<!--/source-->

##### Response

<!--source:api-specifications-->
201400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy Created.

```
{
 "text_body": "xxxxxxxx xxxx xxxxxx",
 "name": "sms_template"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
3
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `product` required | `string` path | `Employment` | <!--source:api-specifications-->Product name (Employment, Income)<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Request body`application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `text_body`required | `string` | <!--source:api-specifications-->Content of template<!--/source--> |

##### Response `201``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Created.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `text_body`required | `string` | <!--source:api-specifications-->Content of template<!--/source--> |
| `name`required | `string` | <!--source:api-specifications-->Template name<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`GET` `/sms-templates/{product}`

<!--source:api-specifications-->

#### Retrieve SMS template by product
<!--/source-->

`retrieve-sms-templates`

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy Created.

```
{
 "text_body": "xxxxxxxx xxxx xxxxxx",
 "name": "sms_template"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
3
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `product` required | `string` path | `Employment` | <!--source:api-specifications-->Product name (Employment, Income)<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Response `200``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Created.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `text_body`required | `string` | <!--source:api-specifications-->Content of template<!--/source--> |
| `name`required | `string` | <!--source:api-specifications-->Template name<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`POST` `/email-templates/{product}`

<!--source:api-specifications-->

#### Create new email template by product
<!--/source-->

`create-email-templates`

##### Request

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "html_part": "<!DOCTYPE html> <html lang=\"en\"> </html>\n",
 "subject_part": "xxxx xxxxx",
 "logo_data": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABA4AAAQcCAYAAAAVwNnQAAA"
}
```

<!--/source-->

##### Response

<!--source:api-specifications-->
201400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy Created.

```
{
 "html_part": "<!DOCTYPE html> <html lang=\"en\"> </html>\n",
 "subject_part": "xxxx xxxxx",
 "product_name": "Income"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
3
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `product` required | `string` path | `Employment` | <!--source:api-specifications-->Product name (Employment, Income)<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Request body`application/json`

<!--source:api-specifications-->
3 fields
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `html_part`required | `string` | <!--source:api-specifications-->Content of template<!--/source--> |
| `subject_part`required | `string` | <!--source:api-specifications-->Subject of template<!--/source--> |
| `logo_data` | `string` | <!--source:api-specifications-->Logo of template in Base64 encode<!--/source--> |

##### Response `201``application/json`

<!--source:api-specifications-->
3 fields
<!--/source-->
<!--source:api-specifications-->
Created.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `html_part`required | `string` | <!--source:api-specifications-->Content of template<!--/source--> |
| `subject_part`required | `string` | <!--source:api-specifications-->Subject of template<!--/source--> |
| `product_name`required | `string` | <!--source:api-specifications-->Product Name<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`GET` `/email-templates/{product}`

<!--source:api-specifications-->

#### Retrieve email template by product
<!--/source-->

`retrieve-email-templates`

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy Created.

```
{
 "template": {
 "text_body": "xxxxxxxx xxxx xxxxxx",
 "name": "sms_template",
 "logo_image": "xxxxxxxxxxxxxxxxx"
 }
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
3
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `product` required | `string` path | `Employment` | <!--source:api-specifications-->Product name (Employment, Income)<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Response `200``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Created.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `template`required | `object` | <!--source:api-specifications-->Information about the template<!--/source--> |
| `text_body` | `string` | <!--source:api-specifications-->Content of template<!--/source--> |
| `name` | `string` | <!--source:api-specifications-->Template name<!--/source--> |
| `logo_image` | `string` | <!--source:api-specifications-->URL of logo<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

`POST` `/vendor/{vendor}/credentials`

<!--source:api-specifications-->

#### Create credentials by vendor
<!--/source-->

`create-vendor-credentials`

##### Request

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "username": "xxxxxxxx",
 "password": "<redacted>",
 "title_provider_orderings": {
 "default_ordering": [
 "fidelity",
 "first_american",
 "stewart"
 ]
 }
}
```

<!--/source-->

##### Response

<!--source:api-specifications-->
200400401403422500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy Setup API Triggered Successfully

```
{
 "message": "Credentials are saved"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "Invalid request body",
 "error": "[object has missing required properties ([\"client_secret\"])]"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
3
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `vendor` required | `string` path | `ernst` | <!--source:api-specifications-->Vendor name (ernst)<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Request body`application/json`

<!--source:api-specifications-->
3 fields
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `username` | `string` | <!--source:api-specifications-->Username of credential<!--/source--> |
| `password` | `string` | <!--source:api-specifications-->Password of credential<!--/source--> |
| `title_provider_orderings`required | `object` | <!--source:api-specifications-->An object to set default title fees' provider list for states, counties and cities<!--/source--> |
| `default_ordering` | `string[]` | <!--source:api-specifications-->Root default ordering for title fees' provider<!--/source--> |
| `states` | `object[]` | <!--source:api-specifications-->States<!--/source--> |
| `state_code` | `string` | <!--source:api-specifications-->State code<!--/source--> |
| `default_ordering` | `string[]` | <!--source:api-specifications-->Default title provider ordering for the state<!--/source--> |
| `counties` | `object[]` | <!--source:api-specifications-->Counties<!--/source--> |
| `county_name` | `string` | <!--source:api-specifications-->County name<!--/source--> |
| `default_ordering` | `string[]` | <!--source:api-specifications-->Default title provider ordering for the county<!--/source--> |
| `cities` | `object[]` | <!--source:api-specifications-->Cities<!--/source--> |

##### Response `200``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Setup API Triggered Successfully
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `422``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |
| `error` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Other responses

`404`

`GET` `/vendor/{vendor}/credentials`

<!--source:api-specifications-->

#### Retrieve credentials by vendor
<!--/source-->

`retrieve-vendor-credentials`

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "username": "xxxxxxxx",
 "password": "<redacted>",
 "title_provider_orderings": {
 "default_ordering": [
 "fidelity",
 "first_american",
 "stewart"
 ]
 }
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
3
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |
| `vendor` required | `string` path | `ernst` | <!--source:api-specifications-->Vendor name (ernst)<!--/source--> |
| `Authorization` required | `string` header | `<redacted>` | <!--source:api-specifications-->Setup authorization token<!--/source--> |

##### Response `200``application/json`

<!--source:api-specifications-->
3 fields
<!--/source-->
<!--source:api-specifications-->
Setup API Triggered Successfully
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `username` | `string` | <!--source:api-specifications-->Username of credential<!--/source--> |
| `password` | `string` | <!--source:api-specifications-->Password of credential<!--/source--> |
| `title_provider_orderings`required | `object` | <!--source:api-specifications-->An object to set default title fees' provider list for states, counties and cities<!--/source--> |
| `default_ordering` | `string[]` | <!--source:api-specifications-->Root default ordering for title fees' provider<!--/source--> |
| `states` | `object[]` | <!--source:api-specifications-->States<!--/source--> |
| `state_code` | `string` | <!--source:api-specifications-->State code<!--/source--> |
| `default_ordering` | `string[]` | <!--source:api-specifications-->Default title provider ordering for the state<!--/source--> |
| `counties` | `object[]` | <!--source:api-specifications-->Counties<!--/source--> |
| `county_name` | `string` | <!--source:api-specifications-->County name<!--/source--> |
| `default_ordering` | `string[]` | <!--source:api-specifications-->Default title provider ordering for the county<!--/source--> |
| `cities` | `object[]` | <!--source:api-specifications-->Cities<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Other responses

`404`

`POST` `/send-invitation`

<!--source:api-specifications-->

#### Send an invitation to new customers
<!--/source-->

`send-invitation-customer`

##### Request

<!--source:api-specifications-->
application/json Copy An example of a payload.

```
{
 "company_id": "xxxxxxxx",
 "email": "joedoe@test.co",
 "first_name": "Joe",
 "last_name": "Doe"
}
```

<!--/source-->

##### Response

<!--source:api-specifications-->
200400401403500502
<!--/source-->

<!--source:api-specifications-->
application/json Copy Created.

```
{
 "message": "OK"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Request data failed validation

```
{
 "message": "{'data': ['Missing data for required field.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Unauthorized validation

```
{
 "message": "{'data': ['Unauthorized.']}"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy Invalid key for service

```
{
 "message": "Please check the key you used to call this service",
 "url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy The product has encountered an internal server error

```
{
 "message": "The product has encountered an internal server error"
}
```

<!--/source-->

<!--source:api-specifications-->
application/json Copy While acting as a gateway or proxy, received an invalid response from the upstream server.

```
{
 "message": "The product has encountered an bad gateway error"
}
```

<!--/source-->

##### Parameters

<!--source:api-specifications-->
1
<!--/source-->

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| `x-api-key` required | `string` header | `<redacted>` | <!--source:api-specifications-->Key used to identify the API usage plan<!--/source--> |

##### Request body`application/json`

<!--source:api-specifications-->
4 fields
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `company_id`required | `string` | <!--source:api-specifications-->The company identifier<!--/source--> |
| `email`required | `string` | <!--source:api-specifications-->Customer email<!--/source--> |
| `first_name`required | `string` | <!--source:api-specifications-->Customer name<!--/source--> |
| `last_name` | `string` | <!--source:api-specifications-->Last Name of customer<!--/source--> |

##### Response `200``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Created.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message`required | `string` | <!--source:api-specifications-->message<!--/source--> |

##### Response `400``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Request data failed validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `401``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
Unauthorized validation
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Message<!--/source--> |

##### Response `403``application/json`

<!--source:api-specifications-->
2 fields
<!--/source-->
<!--source:api-specifications-->
Invalid key for service
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | — |
| `url` | `string` | — |

##### Response `500``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
The product has encountered an internal server error
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

##### Response `502``application/json`

<!--source:api-specifications-->
1 fields
<!--/source-->
<!--source:api-specifications-->
While acting as a gateway or proxy, received an invalid response from the upstream server.
<!--/source-->

| Field | Type | Description |
| --- | --- | --- |
| `message` | `string` | <!--source:api-specifications-->Error Message<!--/source--> |

## Canonical model

- `address`
- `address`

## Property data it reads

- address

## Errors

`400``401``403``404``422``500``502`

## More in Distribution

- Previous product: Marketplace
