This document outlines the API integration guidelines for the HUO BI LABUAN Card Management System. The API utilizes a single-endpoint RPC architecture via HTTPS POST, processing encrypted JSON payloads.
Production API URL: https://huobilabuan.com/api/card/
Staging API URL: https://huobilabuan.com/api/staging-card/
All communications must be executed over HTTPS using the POST method with UTF-8 encoding.
| Header Key | Type | Description |
|---|---|---|
lang | String | Localization. zh_CN (Simplified Chinese), zh_Hant (Traditional Chinese), en_US (English). |
merchantId | String | Your assigned Merchant Code (e.g., M000000053). |
version | String | API Version. Fixed value: 2.0.0. |
sign | String | SHA256 Signature for request verification. |
| Parameter | Type | Required | Description |
|---|---|---|---|
version | String | Yes | Fixed value: 2.0.0. |
method | String | Yes | The target API method name (e.g., card.createCard). |
timestamp | Integer | Yes | Current epoch timestamp in milliseconds. |
token | String | No | JWT token (Required for specific user/card operations based on config). |
data | Mixed | Yes | The business payload (JSON, Array, or String). Must be AES encrypted. |
| Parameter | Type | Description |
|---|---|---|
status | String/Int | HTTP/Business status code (200 = Success, 500 = Failure, etc.). |
success | Boolean | Indicates if the transaction was successful (true/false). |
message | String | Human-readable response message. |
response | Mixed | The decrypted business data payload. Can be an Object, Array, or empty. |
Applied to Header sign
SHA256SHA256(Raw JSON Request String + AppId)Applied to Body data
AES/ECB/PKCS7PaddingNote: All requests are made to the base RPC endpoint URL using the method parameter to route the request.
Retrieves platform configuration enumerations (e.g., supported countries).
{
"version": "2.0.0",
"method": "common.getDict",
"timestamp": 1735196181137,
"data": "sys_country"
}
{
"message": "Transaction successful",
"status": "200",
"success": true,
"response": [
{
"dictKey": "ARE",
"dictLabel": "阿联酋",
"dictValue": "AE",
"remark": "(784)United Arab Emirates"
}
]
}
Retrieves available card tiers, limits, and issuance pricing.
{
"version": "2.0.0",
"method": "card.getSupportCardList",
"timestamp": 1735531570514,
"data": "",
"token": "eyJ0eXAiOiJKV1..."
}
{
"message": "Transaction successful",
"status": "200",
"success": true,
"response": [
{
"id": 1,
"cardName": "普卡",
"cardBin": "49372401",
"cardInstitution": "VISA",
"cardType": "SINGLE",
"cardCurrency": "USD",
"cardLimit": 500.0000,
"cardChargeLimit": 500.0000,
"cardTransLimit": 500.0000,
"rateAmount": 5,
"rateCurrency": "USD"
}
]
}
Issues a new card to a specific cardholder profile.
{
"version": "2.0.0",
"method": "card.createCard",
"timestamp": 1735532366771,
"token": "eyJ...",
"data": {
"firstName": "fff",
"lastName": "lll",
"country": "CN",
"phoneNumber": "13800138000",
"email": "13800138001@139.com",
"address": "testAddr",
"addrCity": "testCity",
"addrCountry": "CN",
"postalCode": "123456",
"supportCardId": "8"
}
}
{
"message": "Transaction successful",
"status": "200",
"success": true,
"response": {
"id": 84,
"cardNo": "461199*********",
"cardName": "普卡",
"cardInstitution": "VISA",
"cardCurrency": "USD",
"cardStatus": "PENDING",
"customerId": 47,
"createTime": "2025-05-04 10:02:33"
}
}
Fetches a high-level list of all cards issued by the merchant.
{
"version": "2.0.0",
"method": "card.getCardList",
"timestamp": 1735532885688,
"data": "",
"token": "eyJ..."
}
{
"message": "Transaction successful",
"success": true,
"response": [
{
"id": 44,
"cardNo": "49372401******8012",
"cardInstitution": "VISA",
"cardCurrency": "USD",
"cardStatus": "ACTIVE",
"createTime": "2024-11-06 16:27:22"
}
]
}
Retrieves general status and balance information for a specific card.
{
"version": "2.0.0",
"method": "card.getCardInfo",
"timestamp": 1735533158066,
"data": 44,
"token": "eyJ..."
}
{
"message": "Transaction successful",
"success": true,
"response": {
"id": "44",
"cardNo": "49372401******8012",
"cardBalance": "100.00",
"cardStatus": "ACTIVE",
"formFactor": "VIRTUAL"
}
}
Retrieves sensitive data (Full PAN, CVV, Expiry) for a specific card.
{
"version": "2.0.0",
"method": "card.getCardInfoDetail",
"timestamp": 1735533511171,
"data": 44
}
{
"message": "Transaction successful",
"success": true,
"response": {
"cardNumber": "400000000000012",
"expireDate": "01/29",
"cvv": "000",
"firstName": "fname",
"lastName": "lname"
}
}
Funds a specific card from the merchant's master balance.
{
"version": "2.0.0",
"method": "card.reCharge",
"timestamp": 1735532366771,
"data": {
"cardId": 44,
"amount": "10.12",
"merchantOrderNo": "M_ORD_12345"
}
}
{
"message": "Transaction successful",
"status": "200",
"success": true,
"response": {}
}
Retrieves authorization and fee history for a card.
{
"version": "2.0.0",
"method": "common.getTransList",
"timestamp": 1735532366771,
"data": {
"cardId": 44,
"pageNum": 1,
"pageSize": 10
}
}
{
"success": true,
"response": {
"total": 52,
"records": [
{
"orderNo": "TRN_1753",
"cardNo": "49372401******8012",
"transAmount": "1.68",
"transCurrency": "USD",
"transStatus": "SUCCESS",
"transactionType": "AUTHORIZATION",
"billMerchantName": "WEIXIN*Crying"
}
]
}
}
Retrieves the history of top-ups applied to cards.
{
"version": "2.0.0",
"method": "common.getCardRechargeTransList",
"data": {
"cardId": 44,
"pageNum": 1,
"pageSize": 10
}
}
{
"success": true,
"response": {
"total": 16,
"records": [
{
"orderNo": "ORC_0000001727",
"cardNo": "49372401******8012",
"chargeAmount": 10.00,
"chargeCurrency": "USD",
"status": "SUCCESS"
}
]
}
}
Retrieves a list of registered cardholders under the merchant.
{
"version": "2.0.0",
"method": "user.getCardHolders",
"data": ""
}
{
"success": true,
"response": [
{
"id": 23,
"firstName": "ff",
"lastName": "ll",
"email": "*********@163.com",
"country": "CN"
}
]
}
Maps a physical card PAN to a specific Cardholder ID.
{
"version": "2.0.0",
"method": "user.bindPhysicsCard",
"data": [
"4096360800020104",
"23"
]
}
{
"success": true,
"response": {
"cardId": 51
}
}
Activates a physical card using the Card ID, Activation Code, and PIN.
{
"version": "2.0.0",
"method": "card.activateCard",
"data": [
"49",
"123456",
"888888"
]
}
{
"success": true,
"response": {}
}
Registers a new customer profile required before card issuance.
{
"version": "2.0.0",
"method": "card.createCardHolder",
"data": {
"firstName": "ff",
"lastName": "gg",
"country": "CN",
"phoneNumber": "13900000005",
"email": "abc2@qq.com",
"address": "akljhcioe",
"addrCity": "ccc",
"addrCountry": "CN",
"postalCode": "123456"
}
}
{
"success": true,
"response": {
"id": 134,
"userId": 47,
"firstName": "ff",
"lastName": "gg",
"cardholderStatus": "SUCCESS"
}
}
Queries the real-time status of a specific recharge or transaction order.
{
"version": "2.0.0",
"method": "trans.orderQuery",
"data": {
"orderNo": "ORC_0000000337"
}
}
{
"success": true,
"response": {
"orderNo": "ORC_0000000337",
"cardNo": "461199******1048",
"chargeAmount": 500.00,
"status": "SUCCESS"
}
}
Queries the available pre-funded balance for the master merchant account.
{
"version": "2.0.0",
"method": "trans.getBalance",
"data": [1]
}
{
"success": true,
"response": {
"amount": 975914.9800,
"freezeAmount": 0.0000,
"currency": "USD",
"status": "SUCCESS"
}
}