Skip to main content

CardOpen API

Endpoints

Live POST https://pay.onlinepay.ai/card/open

Sandbox POST https://testpay.onlinepay.ai/card/open

Request Parameters

Basic Information

ParameterTypeRequiredDescription
merNoIntegerYesMerchant Number, Unique identifier assigned to the merchant by the onlinepay payment platform when registering with onlinepay
productTypeStringYes000000:test card(USD,use for test environment) 001001:通华金服VISA公务卡(HKD) 001201:通华金服VISA虚拟卡(HKD) 021201:通华VPA电子卡(HKD) 001202:Hong Kong Visa Card(USD) 100001:Hong Kong Master Card(EUR,GBP,USD) 100002:United States Visa Card(USD)
currencyStringYescard currency code
cardHolderNoStringYesresult of Create Cardholder
shippingCountryStringNorequired when productType is 001001,refer to Country info,such as China : CN
shippingStateStringNorequired when shippingCountry is CHN
shippingCityStringNorequired when shippingCountry is CHN
shippingAddressStringNorequired when productType is 001001
shippingZipcodeStringNorequired when productType is 001001
payTypeStringYespayment currency, such as USDC
isMainCardStringYes1:main card 0:sub card(if productType is (001202,100001,100002), the value is 1)
merApplyNoStringYesmerchant apply number
notifyUrlStringNoAsynchronous notification address to notify the merchant of the final result (max 512 characters)
payeeAccountStringNorequired when productType is 021201
procureContentStringNorequired when productType is 021201
agmfidStringNoresult of Upload File, required when productType is 021201
mainCardNoStringYesrequired when isMainCard is 1, the value is the main card number
sceneIdStringNorequired when productType is 021201
signStringYesSignature, MD5(merNo+merOrderNo+currencyCode+sourceAmount+PrivateKey) or RSA

Example Request

{
"merNo": "104001001",
"productType": "021201",
"shippingCountry": "CHN",
"shippingState": "000007",
"shippingCity": "000008",
"shippingAddress": "shippingAddress1",
"shippingZipcode": "000000",
"payType": "USDT_TRC",
"isMainCard": "1",
"merApplyNo": "MER123456789",
"notifyUrl": "https://testpay.onlinepay.ai",
"payeeAccount": "payeeAccount",
"procureContent": "procurecontent",
"agmfid": "1727235173391.png",
"mainCardNo": "4083870020395826",
"sceneId": "455",
"sign": "e8b6b0b9f0b0f8b0b8b0a0b0c0d0e0f"
}

Responses Body

ParameterTypeRequiredDescription
codestringYesIf the value is 00000, it will return success, other please refer to Error Code
messagestringYesInterface returns description
datastringYesapplyOrderNo: onlinePay apply order number

Example Responses

{
"code":"00000",
"message":"SUCCESS",
"data":"CAD0240927153321448"
}