Skip to main content

Update VCN Status

⚠️ The original document notes: currently only card locking is supported, unlocking is not yet supported — even though the parameters table lists both values (1: Unlock, 2: Lock).

Process

Merchant calls this API to update VCN status when temporarily locking/unlocking a VCN is needed.

API Information

URL: /b2b-iccp-service/api/ext/iccp/vcn-update-status/{vcnId}

Method: PUT

Request

Main Parameters Table

No.Field NameData TypeRequiredDescription
1request_idStringUnique ID for each Request from MERCHANT to Baokim.
2request_timeStringRequest sent time. Format: YYYY-MM-DD H:i:s
3master_merchant_codeStringUnique identifier for MASTER MERCHANT
4sub_merchant_codeStringUnique identifier for SUB MERCHANT
5reference_idStringReference code
6actionNumberAction to update for VCN
-
Unlock
-
Lock
Currently only card locking is supported, unlocking is not yet supported

Request Example

{
"request_id": "MERCHANT050015588AXE014",
"request_time": "2025-08-11 14:41:00",
"master_merchant_code": "MASTERMERCHANTCODE",
"sub_merchant_code": "SUBMERCHANTCODE",
"reference_id": "RF_123456789abcxyz",
"action": 2
}

Response

Main Parameters Table

No.Field NameData TypeRequiredDescription
1codeNumberBaokim error code
2messageStringBaokim error code message
3dataObjectData returned by Baokim

Description of the data inside the data field (3)

No.Field NameData TypeRequiredDescription
1reference_idString(50)Reference code of the VCN creation request
2vcn_idNumberVCN ID
3statusNumberVCN status

Response Example

{
"code": 100,
"message": "Success",
"data": {
"reference_id": "RF_123456789abcxyz",
"vcn_id": 423677,
"status": 2
}
}

Error Codes

Error CodeDescription
100Success
11Failed
401Merchant verify failed
422Validation error
1201vcn_id does not exist