Create a card for a specified cardholder with a designated card product and initial deposit amount.
| Item | Details |
|---|---|
| Endpoint | POST /api/v1/merchant/card/createCard |
| Field | Type | Required | Description |
|---|---|---|---|
| String(64) | ✅ | Idempotent request ID, must be unique per operation |
| Long | ✅ | Cardholder ID |
| Long | ✅ | Card product ID |
| BigDecimal | ✅ | Initial deposit amount, must be greater than 0, up to 2 decimal places |
{
"clientRequestId": "REQ_20260101_001",
"cardholderId": 300001,
"productId": 1,
"amount": 100.00
}
| Field | Type | Description |
|---|---|---|
respCode | String | Response code |
respMsg | String | Response message |
data.cardId | Long | Newly created card ID |
{
"respCode": "20000",
"respMsg": "success",
"data": {
"cardId": 100001
}
}
Perform status operations on a card, such as freeze or unfreeze.
| Item | Details |
|---|---|
| Endpoint | POST /api/v1/merchant/card/operate |
| Field | Type | Required | Description |
|---|---|---|---|
| String(64) | ✅ | Idempotent request ID |
| Long | ✅ | Card ID |
| String(20) | ✅ | Operation type: |
{
"clientRequestId": "REQ_20260101_002",
"cardId": 100001,
"type": "FREEZE"
}
| Field | Type | Description |
|---|---|---|
respCode | String | Response code |
respMsg | String | Response message |
data.operateRecordId | Long | Operation record ID |
{
"respCode": "20000",
"respMsg": "success",
"data": {
"operateRecordId": 200001
}
}
Deposit a specified amount to a card.
| Item | Details |
|---|---|
| Endpoint | POST /api/v1/merchant/card/deposit |
| Field | Type | Required | Description |
|---|---|---|---|
| String(64) | ✅ | Idempotent request ID |
| Long | ✅ | Card ID |
| BigDecimal | ✅ | Deposit amount, must be greater than 0, up to 2 decimal places |
{
"clientRequestId": "REQ_20260101_003",
"cardId": 100001,
"amount": 50.00
}
| Field | Type | Description |
|---|---|---|
respCode | String | Response code |
respMsg | String | Response message |
data.operateRecordId | Long | Operation record ID |
{
"respCode": "20000",
"respMsg": "success",
"data": {
"operateRecordId": 200002
}
}