Create (invite) a team member
Changed onCreate (invite) a user to join a team, invitation can be done via userId, email and/or phone. A user that does not exist in yet will have a null userId.</br></br>Required scope: team-members:write </br>Organization authorization: supported
Request
- Base URLhttps://partner-api.monta.com
- URLhttps://partner-api.monta.com/api/v1/team-members
- AuthHTTP bearer
Request body
Example request
{
"teamId": 1,
"userId": 1,
"email": "partner-api@monta.com",
"phone": "+45123456789",
"priceGroupId": 1,
"costGroupId": 1,
"teamMemberProfileId": 1,
"teamWalletChargePaymentType": "none",
"canPayForChargesCountryIds": [
1,
2,
3
],
"note": "Welcome to the Monta team",
"chargePointIds": [
1,
2,
3,
4
],
"partnerExternalId": "ACME-12345",
"partnerCustomPayload": {
"internalId": "ACME-12345",
"department": "Fleet"
},
"notifyUser": true,
"autoAccept": true,
"immediateAccess": true,
"kwhPriceCapAc": 2.5,
"kwhPriceCapDc": 5,
"sponsoredPriceGroupId": 1,
"costCenterId": 1
}Response
Team member created
Example response
{
"id": 1,
"teamId": 42,
"displayName": "Casper Rasmussen",
"operator": {
"id": 14,
"name": "Monta",
"identifier": "monta",
"partnerId": 1,
"vatNumber": "FOO-123-ABC"
},
"partnerExternalTeamId": "A1B2C3BE3121",
"userId": 1,
"email": "example@monta.com",
"phone": "+4512345678",
"note": "A Note",
"invitedAt": "2022-05-12T15:56:45.99Z",
"invitedBy": "example@monta.com",
"acceptedAt": "2022-05-12T15:56:45.99Z",
"acceptedBy": "example@monta.com",
"rejectedAt": "2022-05-12T15:56:45.99Z",
"createdAt": "2022-05-12T15:56:45.99Z",
"updatedAt": "2022-05-12T16:56:45.99Z",
"deletedAt": "2022-05-12T16:56:45.99Z",
"priceGroupId": 1,
"costGroupId": 1,
"costCenterId": 1,
"teamMemberProfileId": 1,
"canPayForChargesCountryIds": [
1,
2,
3
],
"teamWalletChargePaymentType": "none",
"partnerExternalId": "ACME-12345",
"partnerCustomPayload": {
"internalId": "ACME-12345",
"department": "Fleet"
},
"kwhPriceCapAc": 2.5,
"kwhPriceCapDc": 5,
"sponsoredPriceGroupId": 1
}Changes
- breaking
the
request property type changed fromarraytoobject - breaking
the
request property type changed fromstringto no type - breaking
the
response's property type changed fromarraytoobjectfor status - warning
removed
subschema #2from therequest propertyallOflist - warning
added the new
team_and_parentenum value to theresponse property for the response status - info
added the new optional request property
- info
the
request property default value changed fromtruetofalse - info
added the new
team_and_parentenum value to the request property//// - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added to the
response propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status - info
removed from the
response propertyallOflist for the response status - info
removed from the
response propertyallOflist for the response status
- breaking