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:Parameter | Type | Required | Description | Example |
---|---|---|---|---|
name | String | Yes | Store Name | "REVENUE MONSTER" |
addressLine1 | String | Yes | Store Address 1 | "B-5-30, 5th Floor, Block Bougainvillea," |
addressLine2 | String | No | Store Address 2 | "PJU 6A, Lebuhraya SPRINT, 10 Boulevard," |
postCode | String | Yes | Postcode of store | "47400" |
city | String | Yes | City of store | "Petaling Jaya" |
state | String | Yes | State of store | "Selangor" |
country | String | Yes | Country of store | "Malaysia" |
countryCode | String | Yes | Country code of store contact number | "60" |
phoneNumber | String | Yes | Phone number of store | "377334080" |
geoLocation | Object of [Float] | No | Geo Location (latitude and longtitude) of store | {"latitude": 3.1349857, "longitude": 101.6136659 } |
Example Request
#
Response ParametersParameter | Type | Description | Example |
---|---|---|---|
item | Object[] | Array of store object | (Refer to explanation below) |
code | String | Successfully call this endpoint. If fail, will return error code object (Refer Appendix 1: Error Codes ) | "SUCCESS" |
Array of store object (item):
Parameter | Type | Description | Example |
---|---|---|---|
id | String | Store ID | "6170506694335521334" |
name | String | Store Name | "REVENUE MONSTER" |
addressLine1 | String | Store Address 1 | "B-5-30, 5th Floor, Block Bougainvillea," |
addressLine2 | String | Store Address 2 | "PJU 6A, Lebuhraya SPRINT, 10 Boulevard," |
postCode | String | Postcode of store | "47400" |
city | String | City of store | "Petaling Jaya" |
state | String | State of store | "Selangor" |
country | String | Country of store | "Malaysia" |
countryCode | String | Country code of store contact number | "60" |
phoneNumber | String | Phone number of store | "377334080" |
geoLocation | Object of [Float] | Geo Location (latitude and longtitude) of store | {"latitude": 3.1349857, "longtitude": 101.6136659 } |
status | String | Current status of store | "ACTIVE" |
isDefault | String | Default store of merchant (first store created upon signup) | true |
createdAt | DateTime | Creation date time of store | "2018-02-12T08:53:13Z" |
updatedAt | DateTime | Last update date time of store | "2018-02-12T08:53:13Z" |
Example Response