Team Members Pydantic Models
In order to simplify and standardize the data that is passed between the client and the Revolut Business API, PyRevolut uses Pydantic models to define the structure of the data.
Below are the Pydantic models used by the Team Members
endpoint.
RetrieveListOfTeamMembers
Get information about all the team members of your business.
The results are paginated and sorted by the created_at date in reverse chronological order.
Note
This feature is available in the UK, US and the EEA.
This feature is not available in Sandbox.
Source code in pyrevolut/api/team_members/get/retrieve_list_of_team_members.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|
Params
Bases: BaseModel
The parameters of the request.
Source code in pyrevolut/api/team_members/get/retrieve_list_of_team_members.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
Response
Bases: BaseModel
The response model.
Source code in pyrevolut/api/team_members/get/retrieve_list_of_team_members.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|
RetrieveTeamRoles
Get the list of roles for your business.
The results are paginated and sorted by the created_at date in reverse chronological order.
This feature is available in the UK, US and the EEA.
This feature is not available in Sandbox.
Source code in pyrevolut/api/team_members/get/retrieve_team_roles.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
Params
Bases: BaseModel
The query parameters of the request.
Source code in pyrevolut/api/team_members/get/retrieve_team_roles.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
Response
Bases: BaseModel
The response model.
Source code in pyrevolut/api/team_members/get/retrieve_team_roles.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
InviteTeamMember
Invite a new member to your business account.
When you invite a new team member to your business account, an invitation is sent to their email address that you provided in this request. To join your business account, the new team member has to accept this invitation.
Note
This feature is available in the UK, US and the EEA.
This feature is not available in Sandbox.
Source code in pyrevolut/api/team_members/post/invite_team_member.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
Body
Bases: BaseModel
The body of the request.
Source code in pyrevolut/api/team_members/post/invite_team_member.py
26 27 28 29 30 31 32 33 34 35 36 37 |
|
Response
Bases: BaseModel
The response model.
Source code in pyrevolut/api/team_members/post/invite_team_member.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|