Skip to main content
POST
/
v1
/
onboarding
/
collectives
Create a Collective Onboarding Request
curl --request POST \
  --url https://api.traxes.io/connect/v1/onboarding/collectives \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collectiveId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "owner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "properties": "<any>",
  "type": "Household"
}'
{
  "action": {
    "documentationLink": "<string>",
    "redirectLink": "<string>",
    "type": "Consent"
  },
  "created": "2023-11-07T05:31:56Z",
  "data": {
    "collective": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "owner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "properties": "<any>",
      "type": "Household"
    },
    "entity": {
      "collectiveId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "information": {
        "type": "Battery",
        "brand": "<string>",
        "identifier": "<string>",
        "pairingCode": "<string>",
        "associatedEmail": "<string>",
        "name": "<string>",
        "track": "<string>"
      },
      "owner": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "properties": "<any>",
      "reference": {
        "brand": "<string>",
        "type": "<string>",
        "identifier": "<string>"
      },
      "systemProperties": "<any>",
      "type": "Battery"
    }
  },
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "principalId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "requestType": "Collective",
  "returnUrl": "<string>",
  "status": "Canceled",
  "errors": [
    {
      "code": "<string>",
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Access Token Authentication

Body

The Collective Onboarding Request

Represents a request to onboard a Collective

name
string | null
required

The name of the Collective

collectiveId
string<uuid> | null

The id of the Collective

owner
string<uuid> | null

The owner of the Collective

properties
any

The custom properties of the Collective

type
enum<string>
Available options:
Household,
Fleet,
SolarFarm,
VirtualPowerPlant

Response

Created

Represents an onboarding request

action
object

Represents an action for an onboarding request

created
string<date-time>

The date and time the onboarding request was created.

data
object

Represents the data of an onboarding request

id
string<uuid>

The id of the onboarding request

principalId
string<uuid>

The id of the principal that initiated the onboarding request

requestType
enum<string>
Available options:
Collective,
Entity
returnUrl
string | null

The url where the User will be redirected to after completing the consent flow on the OEM page.

status
enum<string>
Available options:
Canceled,
Failed,
InProgress,
Pending,
Succeeded
errors
object[] | null

Errors that occurred during the processing of the onboarding request