/identity/v1/invitationsRetrieve a list of invitations based on specified criteria
limitstringThe maximum number of invititations to return (default 20, maximum 100).
startingAfterstringThe ID of the last invitation in the previous page of results. Results will start after this invite code
statusstringFilter results by status ('APPROVED' or 'PENDING_APPROVAL').
referenceIdstringFilter results by reference ID.
driverstringFilter results by Driver ID.
typestringFilter results by invitation type ('PRIVATE_CHARGING' or 'PRICE_ADJUSTMENT').
A list of invite codes
{
"data": {
"hasMore": true,
"items": [
{
"id": "string",
"type": "PRIVATE_CHARGING",
"referenceId": "string",
"driverId": "string",
"status": "PENDING_APPROVAL",
"network": {
"id": "string"
},
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
]
}
}/identity/v1/invitationsCreate an invitation with an invite code
driverIdstringrequired
codestringrequired
{
"driverId": "string",
"code": "string"
}OK
{
"data": {
"id": "string",
"type": "PRIVATE_CHARGING",
"referenceId": "string",
"driverId": "string",
"status": "PENDING_APPROVAL",
"network": {
"id": "string"
},
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}/identity/v1/invitations/{invitationId}/resolveResolve an invitation based on the specified invitationId and status (APPROVED or DENIED).
statusstringrequired
{
"status": "APPROVED"
}OK
{
"data": {
"id": "string",
"type": "PRIVATE_CHARGING",
"referenceId": "string",
"driverId": "string",
"status": "PENDING_APPROVAL",
"network": {
"id": "string"
},
"createdAt": "2023-06-07T17:32:28Z",
"updatedAt": "2023-06-07T17:32:28Z"
}
}Was this page helpful?