Approve device creation
Request
ENDPOINT
/account/ACCOUNT_KEY/device/DEVICE_KEY/validateMETHOD
PUTPath Params
| Field | Type | Description | Characters |
|---|---|---|---|
account_key | uuidv4 | Unique account identification key. | 36 |
device_key | uuidv4 | Unique device identification key. | 36 |
Request Body
{
"token": "329adf"
}
Body Params
| Field | Type | Description | Characters |
|---|---|---|---|
token * | string | Authentication code sent to the account transaction approver | 6 |
Response
STATUS
201Response Body: Device Created
{
"device_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"device_status": "created",
"created_at": "2024-12-22T20:30:23.459Z"
}
STATUS
4xxResponse Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP Codestatus | QI Codecode | Titletitle | Description (eng)description | Description (ptbr)translation |
|---|---|---|---|---|
| 400 | QIT000001 | Bad Request | Schema Error | Erro de Schema |
| 404 | OBD000002 | Not Found | Bank account not found | Conta não encontrada |
| 400 | OBD000088 | Bad Request | Account blocked or closed can not perform this action | A conta bloqueada ou fechada não pode executar esta ação |
| 400 | OBD000089 | Bad Request | Hub account can not perform this action | A conta hub não pode executar esta ação |
| 400 | OBD000099 | Number of token validation attempts exceeded | The maximum number of failed token validation attempts has been reached | Número máximo de tentativas de validação de token atingida |
| 404 | OBD000100 | Device not found | No device is associated with the provided device_key. | Nenhum dispositivo está associado à device_key fornecida. |
| 400 | OBD0000100 | Incorrect Token | Token sent does not match expected | Token enviado não condiz com, o esperado |