Create a new employee

post/employees

Request body

namestring required
organization_emailstring required
phone_numberstring required
team_codestring required
role'CARD USER' required

Response

Created

idstring
namestring
phonestring
team_codestring
organization_emailstring
rolestring
accnostring

employee wallet accno

balancenumber double

account balance

status'ACTIVE' | 'SUSPENDED'
createdAtstring date

Changes

Changed in 1 of the 2 revisions of this API.142

  • 190d4c90e3ab142See the full diff
    • the balance response's property type/format changed from double/ to number/double for status 201

      response-property-type-changed

    • removed the optional property code from the response with the 400 status

      response-optional-property-removed

    • removed the optional property code from the response with the 401 status

      response-optional-property-removed

    • removed the optional property message from the response with the 400 status

      response-optional-property-removed

    • removed the optional property message from the response with the 401 status

      response-optional-property-removed

    • added the optional property errorMessage to the response with the 400 status

      response-optional-property-added

    • added the optional property errorMessage to the response with the 401 status

      response-optional-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog