Skip to main content

Create Store

Method : POST
URL : https://open.revenuemonster.my/v3/store
Sandbox URL : https://sb-open.revenuemonster.my/v3/store

note

To create a store under one merchant.

Request Parameters:

ParameterTypeRequiredDescriptionExample
merchantSettlementIdStringNoLinkage with payment settlement account
nameStringYesStore Name"REVENUE MONSTER"
addressLine1StringYesStore Address 1"B-5-30, 5th Floor, Block Bougainvillea,"
addressLine2StringNoStore Address 2"PJU 6A, Lebuhraya SPRINT, 10 Boulevard,"
postCodeStringYesPostcode of store"47400"
cityStringYesCity of store"Petaling Jaya"
stateStringYesState of store"Selangor"
countryStringYesCountry of store"Malaysia"
countryCodeStringYesCountry code of store contact number"60"
phoneNumberStringYesPhone number of store"377334080"
geoLocationObject of [Float]NoGeo Location (latitude and longitude) of store{"latitude": 3.1349857, "longitude": 101.6136659 }

Example Request

curl --location --request POST "https://sb-open.revenuemonster.my/v3/store" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjIwMTgtMDMtMTMiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiKiJdLCJleHAiOjE1MjE2MjkyNTYsImlhdCI6MTUyMTYyMjA1NywiaXNzIjoiaHR0cHM6Ly9zYi1vYXV0aC5yZXZlbnVlbW9uc3Rlci5teSIsImp0aSI6IkVod0tFRTlCZFhSb1FXTmpaWE56Vkc5clpXNFF5cmYza3EzTDY4QnoiLCJuYmYiOjE1MjE2MjIwNTcsInN1YiI6IkVoUUtDRTFsY21Ob1lXNTBFSlhWemQzd3JhcVRPUklRQ2dSVmMyVnlFSXlKcUl6dnlNUFZjUSJ9.dJknY9MZHLNrKx1p7gZxS0_oA3uXLWplDU1r1dpwxIbmdB6yw4tQBTXKlWArDfKLlBDn6v22_gT5Px7sdCMj7e5M9eRoJoMnoPnslgYpmJJ5kjqAbKU7dUxKb1OzFLrvmtSK9r-FRLVtMFHioWYpwgSvSPBgZ6lAYkUyDzH7aKadFYtQcBuJR0hlq2CXtP0mzbHOeu2q6giONf3E5-XqS8lLRtuHPAbJ7_YFwo0Oe2zc6h05IOocmx_NvBVPfDBnuygTU063h70Q987MYeGDV_Os4N6N_I4b-GoHprEPtmntB1RJPrFrY28hvvoUfDHXHZVXT1GlrsozrkWV4EjbTw" \
--header "X-Signature: sha256 X+IAMfyCdGTE4Or/jdYqBbwRvCpzNqv1lnaXUd+iWE37nCmxAT69x3PqdmcwyQnmO6BuHsqNy7znCFg3L9sjxg==" \
--header "X-Nonce-Str: VYNknZohxwicZMaWbNdBKUrnrxDtaRhN" \
--header "X-Timestamp: 1527407052" \
--data "{
\"addressLine1\": \"gugusan melur\",
\"city\": \"petaling jaya\",
\"country\": \"malaysia.\",
\"name\": \"yussuf\",
\"countryCode\": \"60\",
\"phoneNumber\": \"176473298\",
\"postCode\": \"47810\",
\"state\": \"selangor\"
}"

Response Parameters

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

Array of store object (item):
ParameterTypeDescriptionExample
idStringStore ID"6170506694335521334"
merchantSettlementIdStringMerchant Settlement ID"6170506694335521334"
nameStringStore Name"REVENUE MONSTER"
addressLine1StringStore Address 1"B-5-30, 5th Floor, Block Bougainvillea,"
addressLine2StringStore Address 2"PJU 6A, Lebuhraya SPRINT, 10 Boulevard,"
postCodeStringPostcode of store"47400"
cityStringCity of store"Petaling Jaya"
stateStringState of store"Selangor"
countryStringCountry of store"Malaysia"
countryCodeStringCountry code of store contact number"60"
phoneNumberStringPhone number of store"377334080"
geoLocationObject of [Float]Geo Location (latitude and longitude) of store{"latitude": 3.1349857, "longitude": 101.6136659 }
statusStringCurrent status of store"ACTIVE"
isDefaultStringDefault store of merchant (first store created upon signup)true
createdAtDateTimeCreation date time of store"2018-02-12T08:53:13Z"
updatedAtDateTimeLast update date time of store"2018-02-12T08:53:13Z"

Example Response

{
"item": {
"id": "5237968049713769466",
"name": "yussuf",
"addressLine1": "GUGUSAN MELUR",
"addressLine2": "",
"postCode": "47810",
"city": "PETALING JAYA",
"state": "SELANGOR",
"country": "MALAYSIA.",
"countryCode": "60",
"phoneNumber": "176473298",
"geoLocation": {
"latitude": 0,
"longitude": 0
},
"status": "ACTIVE",
"createdAt": "2018-05-27T17:17:12.196274Z",
"updatedAt": "2018-05-27T17:17:12.196283Z"
},
"code": "SUCCESS"
}