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",
  "status": "PENDING",
  "created_at": "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
headerrequired

Body

application/json
user_id
string
required

The id of the user

payroll_provider
string
required

The payroll provider to use

user_name
string

The login of the user

password
string

The password of the user

Response

201 - application/json
account_id
string
required

The id of the account

payroll_provider
string
required

The payroll provider to use

status
string

Status of account

created_at
string
required
authorization_url
string

Authrorization url for provider using OAUTH2