跳到主要内容

Register Merchant

POST 

/api/entry/addmerchant

Through this API, institutions or merchants can submit merchant information to create a merchant.

Precautions for Using This API:

  1. out_merchant_no is the unique identifier for the merchant within the institution's/merchant's internal system. PayCloud will check whether the out_merchant_no already exists; if it exists, the merchant information will be updated, and if it does not exist, a new merchant will be created.
  2. out_store_no is the unique identifier for the store within the institution's/merchant's internal system. PayCloud will check whether the out_store_no already exists; if it exists, the store information will be updated, and if it does not exist, a new store will be created.
  3. This interface can be used to register merchant KYC, contact information, merchant super administrator, store, and terminal information. It can also automatically sign an electronic acquiring agreement, configure the signing fee rate, set payment parameters such as MID and TID, and automatically enable the POS cashier application. It also opens settlement and sets up the settlement account.
  4. After the merchant registration application is successful, you will receive the merchant_no and store_no parameters, which are unique identifiers assigned by the PayCloud system. Please save them in the institution's/merchant's system and establish a relationship with the internal system's merchant/store.
Here is a Java code example
// Set application parameters and keys
private static final String APP_RSA_PRIVATE_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCqYYFrbdXFhOv3zEo4fmORUmYKsadE/QMJhD5kGzthsfwvMoqJHzN41rrGWOp4ljL64elsd2amgnEkWi8ImtV9hS4IKLft/Lq0oP5OBUvbqldaG6KX5wjq7Q11W7Ec5/tSX0IdAtV++UaO/IJyydn2JNZjspeSxbUuE+cymGs9sXtO5s5wRQmeJWv3VhDzQMj8N0ptD2dVvoFkKZ7lbnpNo9ULwAn2oVQgLrmEv/R+TEZPiAcCIhcez4eimY9i6ucTcj4I9liUeTgydAnNAesQZDCt3qQyfl8EZvfWtCUVVbin4uiYsxbzcFSW3q0q27fLsruPRGf+XHnjbR4438MpAgMBAAECggEAMo4YDr5abe9Q7QgLBdRKyvX+HTI1hbzlR8+bi6yg5A4h3AdNH/7IERT1+qCrgfhfTB34WxzaspGF7Nltl0oKCuKXlAgw+0bAR5R1oMTli1px7OTCS/xbowmPssDwPrl+0yQ8w8rxemmQzCCUvGa0a9rmWlLFsuFDL1bshRDA0V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jANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2m4nkQKyQAxJc8VVsz/L6qVbtDWRTBolUK8Dwhi9wH6aygA6363PVNEPM8eRI5W19ssCyfdtNFy6DRAureoYV053ETPUefEA5bHDOQnjbb9PuNEfT651v8cqwEaTptaxj2zujsWI8Ad3R50EyQHsskQWms/gv2aB36XUM4vyOIk4P1f3dxtqigH0YROEYiuwFFqsyJuNSjJzNbCmfgqlQv/+pE/pOV9MIQe0CAdD26JF10QpSssEwKgvKvnXPUynVu09cjSEipev5cLJSApKSDZxrRjSFBXrh6nzg8JK05ehkI8wdsryRUneh0PGN0PgYLP/wjKiqlgTJaItxnb/JQIDAQAB";

private static final String APP_ID = "wz715fc0d10ee9d156";

private static final String SANDBOX_GATEWAY_URL = "https://wiseasy-open.sg.wisepaycloud.com";

// Instantiate a client
OpenApiClient openapiClient = new OpenApiClient(APP_ID, SANDBOX_GATEWAY_URL, APP_RSA_PRIVATE_KEY, GATEWAY_RSA_PUBLIC_KEY);

// Build a request object, set parameters
MerchantOnboardingRequest request = new MerchantOnboardingRequest();
request.setInstitution_no("100012278");
request.setOut_merchant_no("M20240828-001");
request.setMerchant_name("Real Madrid");
request.setMerchant_full_name("Real Madrid Football Club in Spain");
request.setMerchant_type("Enterprise");
request.setRegistration_certificate_number("CYUQI0017816XXX");
request.setRegistration_certificate_date("2036-12-31");
request.setPrincipal_name("Florentino");
request.setPrincipal_id_number("X907819919011");
request.setPrincipal_certificate_date("2048-12-31");
request.setMcc("7941");
request.setCountry("ZAF");
request.setAddress_detail("123 Long Street, Cape Town");
request.setSales_employee_email("sales@rm.com");
request.setBusiness_type("Both");
request.setContact_name("Raul");
request.setContact_email("raul@rm.com");
request.setContact_phone("264 127615167");
request.setCreate_super_admin(true);
request.setOut_store_no("S00001");
request.setStore_name("Bernabeu Stadium");
request.setStore_address_detail("Avenida de Concha Espina, 1, 28036 Madrid");
request.setTerminal_sn("P52024082800001");
request.setDebit_rate("1.2");
request.setCredit_rate("1.5");
request.setOpen_vat(true);
request.setOpen_settle(true);
request.setSettlement_cycle("T+1");
request.setAccount_no("07187618891");
request.setAccount_holder("Zidane");
request.setAccount_branch("Standard Bank");
request.setMid("67871986171901690");
request.setTid("00007818");
request.setStatus(1);

MerchantOnboardingResponse response;
try {
// Execute the request
response = openapiClient.execute(request);
} catch (OpenApiException e) {
// Handle network exceptions ......
// @TODO
System.err.println("\nrequest api error:" + e.getErrCode() + "->>" + e.getErrMsg());
return;
}
if (!response.isSuccess()) {
// Handle business exceptions ......
// @TODO
System.err.println("\napi execute error: " + JSON.toJSONString(response));
}

// Write your business code based on the API response ......
// @TODO

Request

Responses

success

Response Headers