POST
/
accounts
curl --request POST \
  --url https://api.sandbox.goteal.co/accounts \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "user_id": "95a0e70b-fe02-4f47-aef9-2efff279df71",
  "payroll_provider": "quickbooks",
  "user_name": "john.smith@company.com",
  "password": "very-secret-password"
}'
{
  "account_id": "95a0e70b-fe02-4f47-aef9-2efff279df71",
  "payroll_provider": "quickbooks",
  "user_name": "john.smith@company.com",
  "status": "PENDING",
  "created_at": "2019-05-17T00:00:00.000Z",
  "mfa_enabled": true,
  "latest_pay_date": "2019-05-17T00:00:00.000Z",
  "authorization_url": "https://provider/authenticate?redirect_url=https://api.teal.com/auth&state=state&scope=read"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
user_id
string
required

The id of the user

Example:

"95a0e70b-fe02-4f47-aef9-2efff279df71"

payroll_provider
string
required

The payroll provider to use

Example:

"quickbooks"

user_name
string

The login of the user

Example:

"john.smith@company.com"

password
string

The password of the user

Example:

"very-secret-password"

Response

201
application/json
Created
account_id
string
required

The id of the account

Example:

"95a0e70b-fe02-4f47-aef9-2efff279df71"

payroll_provider
string
required

The payroll provider to use

Example:

"quickbooks"

user_name
string
required

The login of the user

Example:

"john.smith@company.com"

created_at
string
required
Example:

"2019-05-17T00:00:00.000Z"

status
string

Status of account

Example:

"PENDING"

mfa_enabled
boolean

Is mfa enabled for this account

latest_pay_date
string

The latest pay date of the payroll under this account

Example:

"2019-05-17T00:00:00.000Z"

authorization_url
string

Authrorization url for provider using OAUTH2

Example:

"https://provider/authenticate?redirect_url=https://api.teal.com/auth&state=state&scope=read"