Skip to main content

Get Categories By Store ID

Method : POST

URL: https://open.revenuemonster.my/v3/service

Sandbox URL: https://sb-open.revenuemonster.my/v3/service

note
  • Using storeId to get categories

Request Parameters

ParameterTypeDescriptionExample
serviceStringalacarte service"alacarte"
versionStringCurrently only support 'v1""v1"
functionStringFunction that provide by alacarte"get.category"
requestObjectRefer to explanation below(Refer to explanation below)
ParameterTypeDescriptionExample
storeIdStringID of the Store that Create from RM"1556079400120532579"

Example Request

curl --location --request POST 'https://sb-open.revenuemonster.my/v3/service' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IjIwMTgtMDMtMTMiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOlsiYXBpX2NsaWVudEBFaGNLQzA5QmRYUm9RMnhwWlc1MEVKTE42dFdBMG82MEx3Il0sImV4cCI6MTYwMzI1NDU2OSwiaWF0IjoxNjAwNjYyNTY5LCJpc3MiOiJodHRwczovL3NiLW9hdXRoLnJldmVudWVtb25zdGVyLm15IiwianRpIjoiRWh3S0VFOUJkWFJvUVdOalpYTnpWRzlyWlc0UTZNenR5b1RFckpzVyIsIm5iZiI6MTYwMDY2MjU2OSwic3ViIjoiRWhRS0NFMWxjbU5vWVc1MEVKWFZ6ZDN3cmFxVE9SSVFDZ1JWYzJWeUVJeUpxSXp2eU1QVmNRIn0.H3G6UDX7sR9EXtTMNs4Q2OHdhUGIhhCfdlAeOpywH4rDuVOcWXXwzF4Imbx8E7I10vFAJpwYZrEkCWCdCCw-WV11y9VT5kP6k75CeS-ZPMOLcKnC5iFT7vEi07r6ovwty9erlcZeXrtrmEIn3rnLva-dxSg3vZ2MyymoNDk-kV7ltXnkoWW4jtXRls6siLhxeY__8kXn2qa0ojVX4Nm6HmzN_vgi-RKSmToMgsdzTF94Y61QVBWhZfolD2-JpHx4qNlklcUdv8HOJ1QHHWpyoJytaJmvr3GJ5G399LbcTLwxB1p2qPg7z4hpoGNu4AP-ybRJVC3P9q9OscQYDNX-dA' \
--header 'X-Signature: sha256 Sty3LNcKA8+WlMHtAgIY+y1xbwnzKsN0UdyKaW+yYIgcTkBAtF7G5Lx251qQITURJ4wiXPDODxhs1nFVmBBing==' \
--header 'X-Nonce-Str: VYNknZohxwicZMaWbNdBKUrnrxDtaRhN' \
--header 'X-Timestamp: 1528450585' \
--data-raw '{
"service": "alacarte",
"version": "v1",
"function": "get.categories",
"request": {
"storeId": "1556079400120532579"
}
}'

Response Parameters

ParameterTypeDescriptionExample
itemsArray(Refer to explanation below)(Refer to explanation below)
cursorStringOptional, if pagination exists."0"
countUintCurrent page record2
ParameterTypeDescriptionExample
categoryIdStringCategory ID"5f68485ccb3285b9d3955696"
storeIdStringID of the Store that Create from RM"1556079400120532579"
itemIdsArrayCategory Items["5f68485ccb3285b9d3955699"]
nameStringItem Name"Drinks"
statusStringStatus of Category "ACTIVE" and "INACTIVE""ACTIVE"
positionUintCurrent position among Category0
createdAtDateTimeCreation date time"2020-09-21T06:29:48.839Z"
updatedAtDateTimeLast update date time"2020-09-21T06:29:48.839Z"

Example Response

{
"items": [
{
"categoryId": "5f68485ccb3285b9d3955696",
"storeId": "1556079400120532579",
"itemIds": ["5f68485ccb3285b9d3955699"],
"name": "Drinks",
"status": "ACTIVE",
"position": 0,
"createdAt": "2020-09-21T06:29:48.839Z",
"updatedAt": "2020-09-21T06:29:48.839Z"
},
{
"categoryId": "5f684d01adbcf0b592bc012f",
"storeId": "1556079400120532579",
"itemIds": ["5f684d01adbcf0b592bc0129"],
"name": "Asian Cuisine",
"status": "ACTIVE",
"position": 1,
"createdAt": "2020-04-14T07:17:00.377Z",
"updatedAt": "2020-09-21T06:49:37.309Z"
}
],
"cursor": "0",
"count": 2
}