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_idString✅Unique ID for each Request from MERCHANT to Baokim.
2request_timeString✅Request sent time. Format: YYYY-MM-DD H:i:s
3master_merchant_codeString✅Unique identifier for MASTER MERCHANT
4sub_merchant_codeString✅Unique identifier for SUB MERCHANT
5reference_idString✅Reference code
6actionNumber✅Action 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
1codeNumber✅Baokim error code
2messageString✅Baokim error code message
3dataObject✅Data 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_idNumber✅VCN ID
3statusNumber✅VCN 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