Skip to main content
POST
/
v5
/
accountant
/
account
Create an accountant
curl --request POST \
  --url https://sandbox.hurdlr.com/rest/v5/accountant/account \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: */*' \
  --data '
{
  "userId": "fake_userId",
  "client_id": "fake_client_id",
  "client_secret": "fake_client_secret",
  "email": "jane@mycompany.com",
  "firstName": "Jane",
  "lastName": "Doe",
  "canReopenBooks": true,
  "canManageAdmins": true,
  "canManageUsers": true,
  "canAccessAllUsers": true
}
'
{
  "result": "SUCCESS",
  "oAuth": {
    "access_token": "00f6b2b68eb9459eab681d19aa86c6154e225068f3074d1d9b639316d5380a4c.91d620872c3b438ba33f4baaca124624",
    "refresh_token": "7369c0ee82194721ac6f633ec16206f348680736e80e4aacb85d4fbce0ee9669.56b43c61141541dc858dd8613959389a",
    "expires_in": 7776000,
    "created_at": 1599065168,
    "scope": "token"
  },
  "error": {}
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

*/*
userId
string
required

Id of the accountant in your DB

Example:

"fake_userId"

client_id
string
required

The client_id of the Tight Partner

Example:

"fake_client_id"

client_secret
string
required

The client_secret of the Tight Partner

Example:

"fake_client_secret"

email
string

Email address for the accountant

Example:

"jane@mycompany.com"

firstName
string

First name for the accountant

Example:

"Jane"

lastName
string

Last name for the accountant

Example:

"Doe"

canReopenBooks
boolean

Whether this accountant can reopen books

canManageAdmins
boolean

Whether this accountant can manage other accountants

canManageUsers
boolean

Whether this accountant can manage users

canAccessAllUsers
boolean

Whether this accountant has access to all users

Response

200 - application/json

Successful operation

result
enum<string>
Available options:
SUCCESS,
INVALID_CREDENTIALS,
SUCCESS_TEMP_PASSWORD,
SUCCESS_PASSWORD_EXPIRED,
SUCCESS_HAS_NO_PASSWORD,
FAILURE,
SUCCESS_UPDATED,
INVALID_PLATFORM
Example:

"SUCCESS"

oAuth
object
error
object

Description of errors