Update Store Types
Method : POST
URL: https://open.revenuemonster.my/v3/service
Sandbox URL: https://sb-open.revenuemonster.my/v3/service
note
- Using
storeId
andsupportedTypes
to update the support types.
#
Request ParametersParameter | Type | Description | Example |
---|---|---|---|
service | String | alacarte service | "alacarte" |
version | String | Currently only support 'v1" | "v1" |
function | String | Function that provide by alacarte | "updates.store.types" |
request | Object | Refer to explanation below | (Refer to explanation below) |
Parameter | Type | Description | Example |
---|---|---|---|
storeId | String | ID of the Store that Create from RM | "2808912573238362402" |
supportedTypes | Array | We have 4 type for user to choose | ["DELIVERY", "DINEIN", "DRIVE_THRU", "PICKUP"] |
Example Request
#
Response ParametersParameter | Type | Description | Example |
---|---|---|---|
closedUntil | DateTime | Set when your store will close | "2020-09-22T05:00:06.741Z" |
supportedTypes | Array | We have 4 type for user to choose | ["DELIVERY", "DINEIN", "DRIVE_THRU", "PICKUP"] |
delivery | Object | Refer to explanation below | (Refer to explanation below) |
updatedAt | DateTime | Last update date time | "2020-09-22T04:44:57.950398414Z" |
#
Inside Delivery (parameter)Parameter | Type | Description | Example |
---|---|---|---|
method | String | Current delivery service for merchant to select "OWN" , "MRSPEEDY" , "GRABEXPRESS" | "OWN" |
cost | Array | Refer to explanation below | (Refer to explanation below) |
#
Inside Cost (parameter)Parameter | Type | Description | Example |
---|---|---|---|
type | String | we have "DYNAMIC" , "FIXED" | "FIXED" |
startDistanceInMeter | Uint | Set a Start Distance (In Meter) | 0 |
endDistanceInMeter | Uint | Set a End Distance (In Meter) | 5000 |
amount | Uint | Set Distance amount | 0 |
Example Response