API Model
Card Product
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | v | Product ID |
| name | String | v | Product name |
| note | Array | Card Notes | |
| feature | Array | Introduction to card features | |
| scenario | Array | Usage Scenarios | |
| default | Boolean | true. There will only be one default product. If no product is specified when creating a new card, the default product will be used. |
Supported Currency
| Name | Type | Required | Description |
|---|---|---|---|
| chainName | String | v | The type of crypto network |
| currency | String | v | Cryotpcurrency symbol |
| contractAddress | String | v | Please make sure to use the correct contract address to transfer tokens |
Top-up Address
| Name | Type | Required | Description |
|---|---|---|---|
| createdAt | String | v | Creation timestamp |
| address | String | v | Address of the crypto currency |
| currency | String | v | Supported currency |
Card
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | v | Card ID, which can be used to obtain card details |
| createdAt | String | v | Creation timestamp |
| number | String | v | Card number (showing only the first and last 4 digits) |
| balanceUpper | String | v | Card maximum balance limit |
| productId | String | Product ID |
Topup
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | v | Topup ID |
| createdAt | String | v | Creation timestamp |
| amount | String | v | Transaction amount in base unit |
| currency | String | v | Top-up currency |
| address | String | Payee address. If using wallet top-up, there will be no address or hash information. | |
| hash | String | On-chain transaction hash | |
| cardId | string | The card associated with the request | |
| productId | String | The product associated with the request |
Wallet History
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | v | History ID |
| at | String | v | History timestamp |
| amount | String | v | Transaction amount |
| currency | String | v | usd |
| description | String | v | Description text |
Authorized Transaction
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | v | Transaction ID |
| at | String | v | Transaction timestamp |
| type | String | v | Four transaction types:Authorization Transaction is authorizedSuccess Transaction completedFailure Transaction failedReversal Transaction reversed |
| original | {} | v | currency:String original currencyamount: String original amount |
| settlement | {} | v | currency:String authorized currencyamount: String authorized amount |
| description | String | v | Transaction description |
Settled Transaction
| Name | Type | Required | Description |
|---|---|---|---|
| id | String | v | Transaction ID |
| at | String | v | Transaction timestamp |
| amount | String | v | Settled amount |
| currency | String | v | Settled currency |
| description | String | Transaction description |