Skip to main content

Create Deeplink

Process

Position in business flow: Main step — MERCHANT calls this API after the user has selected a bank, to obtain the deeplink_url that redirects the user into the bank's app.

  • MERCHANT calls this API to request a deeplink for the bank the user has chosen to pay with.

API Information

Method: POST

URL: /b2b/core/api/ext/deeplink/create

Request

Main Parameters

No.Field NameData TypeRequiredDescription
1request_idString(100)Unique ID for each Request from MERCHANT to Baokim
2request_timeString(20)Request send time. Format: YYYY-MM-DD H:i:s
3master_merchant_codeString(50)Unique identifier for master merchant
4sub_merchant_codeString(50)Unique identifier for sub merchant
5deeplink_bank_codeString(20)Bank app code used to create the deeplink
6bank_codeString(20)Bank code of the money recipient
7account_numberString(100)Recipient account number
8account_nameString(255)Recipient account name
9amountNumberTransfer amount
10noteString(50)Transfer content
11redirect_urlString(255)URL to redirect back to the Merchant's app after payment

Request Example

{
"request_id": "MERCHANT050015588AXE014",
"request_time": "2025-08-11 14:41:00",
"master_merchant_code": "MASTER_MERCHANT",
"sub_merchant_code": "SUB_MERCHANT",
"deeplink_bank_code": "970436",
"bank_code": "970436",
"account_number": "113366668888",
"account_name": "BAOKIM NGUYEN VAN A",
"amount": 1000000,
"note": "NGUYEN VAN A thanh toan don hang ORD_23456",
"redirect_url": "https://play.google.com/store/apps/details?id=com.tc.baokimplus&hl=vi&pli=1"
}

Response

Main Parameters

No.Field NameData TypeRequiredDescription
1codeNumber(3)Baokim error code
2messageString(200)Baokim error message
3dataObjectData returned by Baokim

Data Information

No.Field NameData TypeRequiredDescription
1request_idString(100)Unique ID of the Request
2deeplinkObjectInformation of the payment Deeplink created
No.Field NameData TypeRequiredDescription
1deeplink_urlString(255)Deeplink that redirects to the payment app
2expired_atString(20)Deeplink expiration time. Format: YYYY-MM-DD H:i:s

Response Example

{
"code": 0,
"message": "Success",
"data": {
"request_id": "MERCHANT050015588AXE014",
"deeplink": {
"deeplink_url": "https://payment-page.baokim.vn/deeplink?request_id=MERCHANT050015588AXE014&checksum=BC151dsTTmdrSpRapya3rKYJmtu2Ue6e",
"expired_at": "2026-01-11 14:41:00"
}
}
}

Error Codes

Error CodeDescription
200Success
101Baokim system error
102Missing required information
104OAuth authentication error
105Signature verification error
422Parameter validation error
429Too many requests
3002Payment channel not supported
3010Gateway system error
3011Gateway system timeout