Skip to main content

Update Store

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

note

To update a specific store under the merchant. Specify store_id in your query.

Request Parameters

note
  • The URL is consists of [base_URL]/v3/store/[store_id]

  • Pass in Store ID in your query

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 PATCH "https://sb-open.revenuemonster.my/v3/store/1662168764176583360" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjIwMTgtMDMtMTMiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiKiJdLCJleHAiOjE1MjE2MjkyNTYsImlhdCI6MTUyMTYyMjA1NywiaXNzIjoiaHR0cHM6Ly9zYi1vYXV0aC5yZXZlbnVlbW9uc3Rlci5teSIsImp0aSI6IkVod0tFRTlCZFhSb1FXTmpaWE56Vkc5clpXNFF5cmYza3EzTDY4QnoiLCJuYmYiOjE1MjE2MjIwNTcsInN1YiI6IkVoUUtDRTFsY21Ob1lXNTBFSlhWemQzd3JhcVRPUklRQ2dSVmMyVnlFSXlKcUl6dnlNUFZjUSJ9.dJknY9MZHLNrKx1p7gZxS0_oA3uXLWplDU1r1dpwxIbmdB6yw4tQBTXKlWArDfKLlBDn6v22_gT5Px7sdCMj7e5M9eRoJoMnoPnslgYpmJJ5kjqAbKU7dUxKb1OzFLrvmtSK9r-FRLVtMFHioWYpwgSvSPBgZ6lAYkUyDzH7aKadFYtQcBuJR0hlq2CXtP0mzbHOeu2q6giONf3E5-XqS8lLRtuHPAbJ7_YFwo0Oe2zc6h05IOocmx_NvBVPfDBnuygTU063h70Q987MYeGDV_Os4N6N_I4b-GoHprEPtmntB1RJPrFrY28hvvoUfDHXHZVXT1GlrsozrkWV4EjbTw" \
--header "X-Signature: sha256 Uf8oEHcq3l5ZkPc/y9eUsRjoKkx0dLUQz5PEFntWUZcR4A0DYdtQ9+VTx5Rq4e4XsRVp+4KZb4cwpDfzPABCZA==" \
--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"
merchantSettlementIdStringLinkage with payment settlement account
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": "1662168764176583360",
"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:24:06.501633Z",
"updatedAt": "2018-05-27T17:24:06.501634Z"
},
"code": "SUCCESS"
}