Skip to main content

Settle Account

Path

  • URL: /cb-core/api/v1/settlement/create-transaction
  • Method: POST
  • Description: This API is created request settlement for an account of merchant in Baokim.

Request

Request Table

ParamsData TypeRequiredDescription
request_idstring(50)YesThe only code that corresponds to an upload request.
Proposed format: MerchantCode + BK + YYYYMMDD + UniqueId
request_timestring(19)YesTime to send request from merchant. Format: YYYY-MM-DD HH:MM:SS
merchant_codestring(20)YesMerchant code provided by Baokim before integration
sub_merchant_codestring(50)YesCode for sub-merchant, or your Merchant code if seller is direct
reference_idstring(50)YesTransaction code sent by the merchant
bene_bank_nostring(6)YesThis is the bank of beneficiary.
Fill bank_no in the response of API Get bank list
bene_acc_nostring(22)YesThis is the account number of beneficiary
bene_amountint(9)YesThe amount that beneficiary can receive after completing disbursement transaction
memostring(100)NoMoney transfer contents
currency_codestring(10)YesThe currency code of disbursement transaction.
Fill VND for VND transaction

Request Example

{
"request_id": "MERCHANT12345678901234510281",
"request_time": "2024-11-15 14:36:00",
"merchant_code": "PHUONGTT",
"sub_merchant_code": "SUBPHUONGTT",
"reference_id": "1234567890",
"bene_bank_no": "123456",
"bene_acc_no": "1234567890123456789012",
"bene_amount": 300000,
"memo": "Payment for services",
"currency_code": "VND"
}

Response

Response Table

ParamsData TypeDescription
response_codeint(4)Error code from Baokim as per Error Codes Table
response_messagestring(200)Description of the error code from Baokim as per Error Codes Table
reference_idstring(50)Merchant information posted
transaction_idstring(50)Transaction code recorded on Baokim side
transaction_timestring(50)Finishing time on Baokim side. Format: YYYY-MM-DD HH:MM:SS
bene_bank_nostring(6)This is the bank of beneficiary. Fill bank_no in the response of API Get bank list
bene_acc_nostring(22)This is the account number of beneficiary.
bene_acc_namestring(50)Full bank account name of the beneficiary
bene_acc_typeint(1)This is the account type of beneficiary. Fill 0 for bank account number, 1 for bank card number
bene_amountdecimal(18,2)The amount that beneficiary can receive after completing disbursement transaction
actual_bene_amountdecimal(18,2)Actual amount transferred to the beneficiary. Will be less than bene_amount in request if there is disbursement fee for beneficiary
detail_statusstring(200)Detail description of the error code from Baokim

Response Example

{
"response_code": 200,
"response_message": "Success",
"reference_id": "MerchantRef12345",
"transaction_id": "BKTrans987654321",
"transaction_time": "2024-11-06 10:15:30",
"bene_bank_no": "001122",
"bene_acc_no": "1234567890123456789012",
"bene_acc_name": "John Doe",
"bene_acc_type": 0,