Skip to main content

Create Application Client

Method : POST
URL : https://open.revenuemonster.my/v3/partner/merchant/{merchantId}/application
Sandbox URL : https://sb-open.revenuemonster.my/v3/partner/merchant/{merchantId}/application

note

Create Application Client

Request Parameters

ParameterTypeExample
userIdString"1647501978916382207"
nameString"Name"
homePageUrlString"https://google.com"
logoUrlString"https://google.com"
privacyPolicyUrlString"https://google.com"
redirectUriArray String["https://google.com"]
publicKeyString"....."
isActiveBooleantrue

Example Request

curl --location --request GET "https://sb-open.revenuemonster.my/v3/partner/merchant/{merchantId}/application" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjIwMTgtMy0xOCIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiYXBpX2NsaWVudEBFaGNLQzA5QmRYUm9RMnhwWlc1MEVQZUEyYXJ4dk1PSUZnIl0sImV4cCI6MTU5MzU4MDY0NSwiaWF0IjoxNTkwOTg4NjQ1LCJpc3MiOiJodHRwczovL29hdXRoLnJldmVudWVtb25zdGVyLm15IiwianRpIjoiRWh3S0VFOUJkWFJvUVdOalpYTnpWRzlyWlc0UXMtNnI5LVgzbElvVyIsIm5iZiI6MTU5MDk4ODY0NSwic3ViIjoiRWhRS0NFMWxjbU5vWVc1MEVMUF9wNlNKNnFQN0ZSSVFDZ1JWYzJWeUVPaXZfb1dKNnFQN0ZRIn0.RKtXykw3y0ov3mKKa_K2h5FZB2jXtqf3gNRwwnzzA4xTMdY09mEHlFupMeUmchFW2XHYK254LdMYbF4ZhjxK9K51UUdQBYH-zZpo0WWtPSZqrPGtT-c4z_sEO73EDVcek3rDwyWiXvjSKDpsZM7NOdKRm5tvT3qNK-7C7WMUjSXDcBzbTFhwfOAOO1n-wMR9H_w0DuIE-yMjEZkOdt7GUIBC8F5izATlZH0FRTx4VAwQWY4gjjQ9-3PbUbHx-NKiFXwCOAsxu-79PiF0HDEHb6ZOCGywNmKuanEXqLonli0caZiUZfrdT53y3Xnd3W2SEr6s7ZQxWnQO5PeOU7BQYA" \
--header "X-Signature: sha256 bFGc2JOEFqdI91DE5VXYBUllr+9DHcrrylRFU3i1r72aPmJreljn0dU+nwPSwTH/dTQUiZ9C2aQSF8AuT959EW4WEyEZ6VWgt9gCyZaU/bcOQ/ZIhKc06+uwzivVhAzpbUtG5tm5/sBp4ig6Sk7L6SE0Ecu6Tm0FhYl0qdgZvrTh4EEpLs3kHIuYL9QXKJILfKlu4gTX1Exrt7nNyEr8ndeUMaKYrj3FckMbRtmCwc829SsVp6FAgvoDPnguUJ+VjLF1e9NXhar2JwYjuqMkwsmUWRDbittqCgCCfaPF8anarlLsoXbdYEa7bp9BYp2U/Dw3Xd2MlamEZSR8H+Dosw==" \
--header "X-Nonce-Str: VYNknZohxwicZMaWbNdBKUrnrxDtaRhN" \
--header "X-Timestamp: 1528450585" \

Example Body Request

{
"userId": "1647501978916382207",
"name": "required name",
"homePageUrl": "https://google.com",
"logoUrl": "https://google.com",
"privacyPolicyUrl": "https://google.com",
"redirectUri": ["https://google.com"],
"isActive": true,
"publicKey": "-----BEGIN PUBLIC KEY-----\nMIIBITANBgkqhkiG9w0BAQEFAAOCAQ4AMIIBCQKCAQBsJf/68nKn3WFcmbA4uK45\nYTQJ2M9XRf82COhN6OQpTLs4PEQSFCix9/05DdOfqe4PR64JS+nlA3q54YXLq++b\nuG8aerNM39Ie0VssTq+Wu3antoq9qvSQL0ADSfLPtWxRKirY8ysrFWN8yU2p7ofp\n/byYvo5DZ9i6aclctottecc/1NWaXWFSLzbsceSGjP3O+17+gMXCnwroT87XdGXJ\nY/D11Cly8sD3Ll9OKIT1aDlKkkR9FWcFct0wDYEedutBAMOFjYAW3jvcUbdi7CKy\neX42N7t7dIb1tw+WTFSpx5+tHKqRwLUq5S9eTx4e8+UxJ9LUTyr14O+TkTSL8Fpx\nAgMBAAE=\n-----END PUBLIC KEY-----"
}

Response Parameters

ParameterTypeDescriptionExample
itemObject(Refer to explanation below)
codeStringSuccessfully call this endpoint. If fail, will return error code object (Refer Appendix 1: Error Codes)"SUCCESS"

ParameterTypeDescriptionExample
clientIdString"1647502414730379278"
clientSecretString"dtbDsFgbLDzGhMleKjTFZXGxrDKFnMqe"
clientObject{publicKey: "refer below example"}
serverObject{publicKey: "refer below example" , privateKey :"refer below example"}
nameString"required name"
homePageUrlString"https://google.com"
logoUrlString"https://storage.googleapis.com/rm-sandbox-asset/img/default-application-logo.png",
privacyPolicyUrlString"https://google.com"
merchantIdyString"1647501978894816174"
userIdString"1647501978916382207"
oAuthClientProductsArray[]
isActiveBoolfalse
redirectUriArray (String)["https://google.com"],
createdAtDateTimeCreation date time of merchant"2021-02-12T08:53:13Z"
updatedAtDateTimeLast update date time of merchant"2021-02-12T08:53:13Z"

{
"item": {
"clientId": "1647502414730379278",
"clientSecret": "dtbDsFgbLDzGhMleKjTFZXGxrDKFnMqe",
"client": {
"publicKey": "-----BEGIN PUBLIC KEY-----\nMIIBITANBgkqhkiG9w0BAQEFAAOCAQ4AMIIBCQKCAQBsJf/68nKn3WFcmbA4uK45\nYTQJ2M9XRf82COhN6OQpTLs4PEQSFCix9/05DdOfqe4PR64JS+nlA3q54YXLq++b\nuG8aerNM39Ie0VssTq+Wu3antoq9qvSQL0ADSfLPtWxRKirY8ysrFWN8yU2p7ofp\n/byYvo5DZ9i6aclctottecc/1NWaXWFSLzbsceSGjP3O+17+gMXCnwroT87XdGXJ\nY/D11Cly8sD3Ll9OKIT1aDlKkkR9FWcFct0wDYEedutBAMOFjYAW3jvcUbdi7CKy\neX42N7t7dIb1tw+WTFSpx5+tHKqRwLUq5S9eTx4e8+UxJ9LUTyr14O+TkTSL8Fpx\nAgMBAAE=\n-----END PUBLIC KEY-----"
},
"server": {
"publicKey": "-----BEGIN RSA PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA3PfCJJSxGIvXNI//SROs\n3RK183bs25NjzJH6iXB3Y3hPmHWzGRckU0IAmCMIpu37p76DgzMJF8jfyZmvVNB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SduFzXcSC2TpmGfnE36svYKg6SPEa80yQsDPWCcKG09r26\n+QkrgOJkIcjFjMsg6y7OvxVQ7NXqYOBv9LqOqhmp4RBAMryxQeh4sWi69EBEEmIL\nDWXvrxu0u18910vdizGvru+Mq2jD1qEFUem1m2acOig/EK+1Ho1M9hkJAoGBAOab\n6Im7npFfkZVRx/np+bUUwo+38YI2kIq6GHEtdzRdL4L6wk5YxCMB1T6Mv1PGtgnY\nY9plWuMJpW4kuarhYWRFHr0RFUCExYn9PGScc4EZ8OVgRzYMrYrAH0MZS1eRFkbi\nH/PDqcwarQW5Ic56Q+BJ38p/0B2Syr0UACL3fCBrAoGBAKbOJpGdhz9rKfzKvExe\nTyGCmuIfjwn1m5Om2BXi9rUFDL6KJrgCq1L3CF/rI6Y54HJJYmSkJwDB1SvqhBJb\nT5qFZVqqUOgSH+58w4roeAv2Bh6lq7KMPYIyKWu3zSsJDJ0EfKE/DMDNccp+UjeR\nPJCm9JQkbM/tgtVZXvtLeJaxAoGBALLj6OzHbYeKIm455a5ZscqmExPX9nIzj8b9\n+634PguR6iRqD8clFumtJ1YBav47HMXgZf1qOKn8tqcNuDX15k4ZTHIQSXMmS/Ly\nTiIiN3vDutrE6Bjmls0Wommzun1wYF6WVYEMnLBnVScmaTI6KGNaC0+T/MakM7+f\nP0fgwhqHAoGAC9g5GYadr7C4CFPku4yOxpnOae5wR8FcxjNkfIJxV9DULjaTzISs\nzAKio5XbYR/Q4HnIYKS9vjIF7IOJGawt4MQGxAJBIdeye0w9DGyTU5In0ZlCGa6n\ngmxGBxjCTaGGSuUnA9VcCV6g4xpW1JIXCoJUl0EY/a+Re8hENR/HmH0=\n-----END RSA PRIVATE KEY-----\n"
},
"name": "required name",
"homePageUrl": "https://google.com",
"logoUrl": "https://google.com",
"privacyPolicyUrl": "https://google.com",
"merchantId": "1647501978894816174",
"userId": "1647501978916382207",
"oAuthClientProducts": [],
"isActive": false,
"redirectUri": ["https://google.com"],
"createdAt": "2022-03-17T07:33:34Z",
"updatedAt": "2022-03-17T07:36:10Z"
},
"code": "SUCCESS"
}