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 |
|---|---|---|---|
| Long | ✅ | Merchant number |
| 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 |
| 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 |
|---|---|---|---|
| Long | ✅ | Merchant number |
| String(64) | ✅ | Idempotent request ID |
| Long | ✅ | Card ID |
| String(20) | ✅ | Operation type: |
| 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 |
|---|---|---|---|
| Long | ✅ | Merchant number |
| String(64) | ✅ | Idempotent request ID |
| Long | ✅ | Card ID |
| BigDecimal | ✅ | Deposit amount, must be greater than 0 |
| Field | Type | Description |
|---|---|---|
respCode | String | Response code |
respMsg | String | Response message |
data.operateRecordId | Long | Operation record ID |
{
"respCode": "20000",
"respMsg": "success",
"data": {
"operateRecordId": 200002
}
}