Create Category
Method : POST
URL: https://open.revenuemonster.my/v3/service
Sandbox URL: https://sb-open.revenuemonster.my/v3/service
note
- Using
storeId
name
andstatus
to create a category
#
Request ParametersParameter | Type | Description | Example |
---|---|---|---|
service | String | alacarte service | "alacarte" |
version | String | Currently only support 'v1" | "v1" |
function | String | Function that provide by alacarte | "create.category" |
request | Object | Refer to explanation below | (Refer to explanation below) |
Parameter | Type | Description | Example |
---|---|---|---|
storeId | String | ID of the Store that Create from RM | "1556079400120532579" |
name | String | Category name | "Drinks" |
status | String | Status of Category "ACTIVE" and "INACTIVE" | "ACTIVE" |
Example Request
#
Response ParametersParameter | Type | Description | Example |
---|---|---|---|
cursor | String | Optional, if pagination exists. | "" |
count | Uint | Current page record | 1 |
item | Object | (Refer to explanation below) | (Refer to explanation below) |
Parameter | Type | Description | Example |
---|---|---|---|
categoryId | String | Category ID | "5f697cb3585d7cc1ae35a37f" |
storeId | String | ID of the Store that Create from RM | "1556079400120532579" |
itemIds | Array | Category Items | null |
name | String | Item Name | "Drinks" |
status | String | Status of Category "ACTIVE" and "INACTIVE" | "ACTIVE" |
position | Uint | Current position among Category | 7 |
createdAt | DateTime | Creation date time | "2020-09-22T04:25:23.684330293Z" |
updatedAt | DateTime | Last update date time | "2020-09-22T04:25:23.684330293Z" |
Example Response