/identity/v1/invitations
Retrieve a list of invitations based on specified criteria
limit
string
The maximum number of invititations to return (default 20, maximum 100).
startingAfter
string
The ID of the last invitation in the previous page of results. Results will start after this invite code
status
string
Filter results by status ('APPROVED' or 'PENDING_APPROVAL').
referenceId
string
Filter results by reference ID.
driver
string
Filter results by Driver ID.
type
string
Filter 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/invitations
Create an invitation with an invite code
driverId
string
required
code
string
required
{
"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}/resolve
Resolve an invitation based on the specified invitationId and status (APPROVED or DENIED).
status
string
required
{
"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?