Qbit API 资源

Qbit API使用的资源列表

核心资源

Account 对象

示例

{
  "id": "cae9efe2-b577-4632-8c57-8822ddb8542a",
  "type": "SubAccount",
  "status": "Active",
  "name": "wangwu0213",
  "displayId": "251759",
  "kycStatus": "Na",
  "cardKybStatus": "Passed",
  "createTime": "2023-03-06T07:51:59.391Z"
}

Account 属性

id string

账户ID


type string

账户类型 可能的值: SubAccount, MasterAccount.


status string

账户状态 可能的值: Active, Frozen, Inactive.


name string

账户名


displayId string

分配的唯一ID


kycStatus string

账户KYC状态 可能的值: Pending, Request, Passed, Canceled, Na.


qbitCardKybStatus string

量子卡KYB状态 可能的值: Pending, Request, Passed, Canceled, Na.


message string

KYC拒绝原因


createTime string
创建时间


User 对象

示例

{
  "id": "7d09c531-dd0b-4027-aa65-4e6f63416fae",
  "createTime": "2023-03-07T07:09:45.949Z",
  "status": "Active",
  "phone": "+8619923338445",
  "email": null,
  "name": "Macey.Mosciski科技有限公司"
}

User 属性

id string

用户ID


status string

用户状态 可能的值: Active, Frozen, Inactive.


phone string

手机号(包含区号)


email string

邮箱


name string

用户名


createTime string

创建时间


FaceAuthentication 对象

示例

{
    "accountId": "38bd10c0-ac62-4bd3-93cc-b189e260d31d",
    "status": "Na",
    "reason": ""
}

FaceAuthentication 属性

accountId string

账户ID


status string

人脸认证状态 可能的值: Na, Pending, Success, Fail.


reason string

人脸认证失败的原因


Balance 对象

示例

{
    "id": "5abd4512-073f-43a0-a6e9-8378464f4e2f",
    "accountId": "c110e2aa-322b-4f3f-a795-f441955844ed",
    "available": 100,
    "pending": 50,
    "frozen": 0,
    "currency": "USD",
    "createTime": "2021-07-14T09:27:39.174Z",
    "walletType": "Card"
}

Balance 属性

id string

余额ID


accountId string

账户ID


available double

可用余额


frozen double

冻结余额


walletType string

余额类型 可能的值: QbitCard, QbitBudget, QbitAccount, GlobalAccount.


createTime string

创建时间


量子卡资源

Budget 对象

示例

{
    "id": "08971715-b7b4-4916-ad98-c1719ea2035f",
    "accountId": "88c5610d-2bb3-4a8e-a506-9e00f69bae37",
    "name": "Kole.Little",
    "balanceId": "46ed0562-48d9-4460-b534-b3c35e96bedc",
    "expiryDate": "2099-12-31T15:59:59.000Z",
    "status": "Active",
    "createTime": "2022-01-18T03:08:56.779Z"
}

Budget 属性

id string

预算ID


accountId string

账户ID


name string

预算名


balanceId string

余额ID


expiryDate string

预算有效期


status string

预算状态 可能的值: Active, Frozen, Inactive.


createTime string

创建时间


Card 对象

示例

{
    "id": "ce04331f-d2f3-42de-8d65-f66c69aa3888",
    "accountId": "e8b0d02e-5f70-4baa-b824-b4f87e34716d",
    "token": "3d9bbdf1-3c93-4fbe-80bc-a3bfe25bd6ce",
    "status": "Inactive",
    "currency": "USD",
    "provider": "PrepaidCard_493193",
    "userName": "as aa",
    "createTime": "2021-08-30T11:59:32.935Z",
    "cardNoLastFour": "9990",
    "cardAddress": null,
    "label": "默认",
    "balanceId": "7eddcfcc-f6a3-4875-8aab-2c7a0f639023"
}

Card 属性

id string

卡ID


accountId string

账户ID


status string

卡状态 可能的值: Active, Inactive, Frozen, Control.


balanceId string

余额ID


budgetId string

预算ID


token string

三方唯一的卡标识


currencystring

币种


provider string

卡提供方(type + bin)


userName string

持卡人


cardNoLastFour string

卡号后四位


label string

自定义label


createTime string

创建时间


CardTransaction 对象

示例

{
    "id": "302b17cf-b56a-4f86-bc7f-32ae6dd71550",
    "accountId": "2040791b-9132-4621-86a7-3e5476db9dab",
    "cardId": "de61fa0f-c6b2-4dfe-b411-873fd43fbd51",
    "currency": "USD",
    "amount": 10,
    "fee": 0,
    "type": "TransferIn",
    "clientTransactionId": "595f83f6-9b28-464d-be77-e9e7319d2951",
    "status": "Closed",
    "transactionTime": "2021-10-28T11:07:31.019Z"
}

CardTransaction 属性

id string

交易ID


accountId string

账户ID


cardId string

卡ID


currencystring

交易币种


amount double

交易金额


fee double

交易手续费


type string

交易类型 可能的值: Consumption, TransferIn, TransferOut, Credit, Reversal, Frozen, UnFrozen.


clientTransactionId string

客户端自定义交易ID


status string

交易状态 可能的值: Pending, Closed, Fail.


transactionTime string

交易时间


BudgetTransaction 对象

示例

{
    "id": "b4e61edc-63d0-44b9-9251-d1b10fcfb4bb",
    "accountId": "88c5610d-2bb3-4a8e-a506-9e00f69bae37",
    "budgetId": "00f0012e-ce96-4135-8cf8-e6eb51463040",
    "cardId": null,
    "amount": 0.11,
    "fee": 0,
    "type": "TransferIn",
    "clientTransactionId": "5dce475f-4950-4961-9977-0dad80d318e4",
    "status": "Closed",
    "transactionTime": "2022-01-19T08:44:38.599Z"
}

BudgetTransaction 属性

id string

交易ID


accountId string

账户ID


budgetId string

预算ID


cardId string

卡ID


currencystring

币种


amount double

交易金额


fee double

交易手续费


type string

交易类型 可能的值: Consumption, TransferIn, TransferOut, Credit, Reversal, CreateCardFee.


clientTransactionId string

客户端自定义交易ID


status string

交易状态 可能的值: Pending, Closed, Fail.


transactionTime string

交易时间


全球账户资源

BankAccount 对象

示例

{
    "id": "f3f1855d-0942-4e9c-bbf8-e97db721103e",
    "status": "Active",
    "currency": "USD",
    "accountNo": "GB49TCCL12345614818413",
    "accountId": "d37deed7-f0e7-4635-a43a-781af0cb59f0",
    "createTime": "2023-02-24T03:29:42.241Z",
    "bankName": "The Currency Cloud Limited",
    "routingType": "BIC_SWIFT",
    "routingNumber": "TCCLGB3L",
    "bankAddress": "12 Steward Street, The Steward Building, London, E1 6FQ, GB",
    "accountName": "API TEST"
}

BankAccount 属性

id string

银行账户ID


accountId string

账户ID


accountName string

账户持有人姓名


accountNo string

帐号


currency string

币种


bankName string

银行名


bankAddress string

银行地址


swift string

SWIFT/BIC


routingNumber string

汇款路线号码


routingType string

汇款路线类型


branchName string

支行名称


branchCode string

支行代码


status string

状态 可能的值: Active, Frozen, Inactive.


createTime string

创建时间


GlobalAccountTransaction 对象

示例
{
    "id": "2174e191-3554-49a9-a891-6bcac1b143c5",
    "accountId": "fc91fece-f8e2-43d9-a70b-a1bddebc399c",
    "currency": "USD",
    "settlementCurrency": "USD",
    "counterparty": "iPeakoin Pay",
    "transactionAmount": 10,
    "fee": 36,
    "businessType": "Outbound",
    "status": "Pending",
    "transactionTime": "2021-11-18T07:23:42.096Z",
    "transactionId": "f2646616-930c-4259-92ea-064e6d870a21",
    "clientTransactionId": "dd7774c1-e9a2-14942-921d-f6909cc8fa61",
    "createTime": "2021-11-18T07:23:42.096Z"
}
GlobalAccountTransaction 属性

id string

交易ID


accountId string

账户ID


currency string

币种


settlementCurrency string

结算币种


counterparty string

交易对手方


transactionAmount double

交易金额


fee double

交易手续费


businessType string

业务类型 可能的值: Inbound, Outbound.


status string

交易状态 可能的值: Pending, Closed, Fail.


transactionTime string

交易时间


clientTransactionId string

客户端自定义交易ID


createTime string

创建时间