跳到主要内容

申请创建设备

Request

ENDPOINT
/account/ACCOUNT_KEY/device
MÉTODO
POST

路径参数

字段类型描述字符数
account_keyuuidv4账户唯一标识键。36
Request Body: 通过 SMS 身份验证
{
"device_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"session_id": "fae3cb6c-9012-4b1c-9d61-7e8b2a6a5ed2",
"tfa_info": {
"approver_document_number": "98765432100",
"contact_type": "sms",
},
}

Body 参数

字段类型描述字符数
device_key *uuidv4UUID v4 格式的设备唯一标识键,通过 device_scan 获取(由集成客户端在此时创建)。36
session_id *uuidv4UUID v4 格式的会话唯一标识键,通过 device_scan 获取(由集成客户端在此时创建)。36
tfa_info*Object包含账户审批人文件号码及联系方式或 image_key 的对象。tfa_info 对象

tfa_info 对象

字段类型描述字符数
approver_document_number*string账户审批人的文件号码。11
contact_type*string指定与账户审批负责人的联系方式。可能的值为 smsemailliveness(使用 image_key 进行身份验证时)。

Response

STATUS
202
Response Body: 交易已申请
{
"device_key": "b6804f32-101e-4702-8fbc-c2dbc4c2caec",
"device_status": "pending_2fa_approval",
"created_at": "2024-12-22T20:30:23.459Z"
}
STATUS
4xx
Response Body: Error
{
"title": "titulo",
"description": "description in English",
"translation": "descrição em portugues",
"code": "codigo",
"extra_fields": {}
}
HTTP 代码
status
QI 代码
code
标题
title
描述(英文)
description
描述(葡文)
translation
400QIT000001Bad RequestSchema ErrorErro de Schema
404OBD000002Not FoundBank account not foundConta não encontrada
400OBD000088Bad RequestAccount blocked or closed can not perform this actionA conta bloqueada ou fechada não pode executar esta ação
400OBD000089Bad RequestHub account can not perform this actionA conta hub não pode executar esta ação
403OBD000090No approver permissionGiven document number does not belong to an approver for this account stringNúmero de documento enviado não pertence a um aprovador da conta
400OBD000091tfa_info is requiredClient must send object tfa_infoCliente deve enviar objeto tfa_info.
400OBD000092Invalid device infoSession ID and Device Key must be a valid UUID4A Session ID e o Device Key devem ser um UUID4 válidos
404OBD000093Requester Configuration not foundThere is no Requester Configuration attributed to requester_keyNão há Requester Configuration para a requester_key enviada
403OBD000094Requester not allowed to create a deviceRequester has no permission to create a deviceRequester não possui permissão para criar um dispositivo
400OBD000097Error occurred while sending tokenAn unexpected error occurred while sending tokenUm erro inexperado ocorreu ao tentar enviar token