Skip to main content

Get All Stores

Retrieve all stores belonging to the authenticated merchant.

When to Use​

▾

Use this endpoint when you:

  • List every store the merchant operates
  • Build a store picker in your dashboard
  • Need pagination over merchants with many stores
tip

Append ?cursor=<cursor> to paginate large result sets.

How to Use​

▾
Endpoint
GET/v3/stores

Step 1: Authenticate​

▾

Obtain a valid accessToken for the merchant.

Step 2: Send the GET Request​

▾

No request body required. Add ?cursor=<cursor> query string for paginated reads.

Step 3: Iterate items​

▾

The response items array holds each store record. The meta object reports counts and the next cursor.


Request Parameters​

▾

No request body. Authenticated headers only.


Response Parameters​

▾
itemsARRAY

Array of store object

idSTRING

Store ID

Example: "6170506694335521334"

merchantSettlementIdSTRING

Merchant Settlement ID

Example: ""

nameSTRING

Store Name

Example: "REVENUE MONSTER"

imageUrlSTRING

Store image URL

Example: "https://storage.googleapis.com/rm-prod-asset/img/store.png"

addressLine1STRING

Store Address 1

Example: "B-5-30, 5th Floor, Block Bougainvillea,"

addressLine2STRING

Store Address 2

Example: "PJU 6A, Lebuhraya SPRINT, 10 Boulevard,"

postCodeSTRING

Postcode of store

Example: "47400"

citySTRING

City of store

Example: "Petaling Jaya"

stateSTRING

State of store

Example: "Selangor"

countrySTRING

Country of store

Example: "Malaysia"

countryCodeSTRING

Country code of store contact number

Example: "60"

phoneNumberSTRING

Phone number of store

Example: "377334080"

geoLocationOBJECT

Geo Location (latitude and longitude) of store

Example: {"Lat": 3.1349857, "Lng": 101.6136659 }

statusSTRING

Current status of store

Example: "ACTIVE"

isDefaultBOOLEAN

Default store of merchant (first store created upon signup)

Example: true

createdAtDATETIME

Creation date time of store

Example: "2018-02-12T08:53:13Z"

updatedAtDATETIME

Last update date time of store

Example: "2018-02-12T08:53:13Z"

codeSTRING

Successfully call this endpoint. If fail, will return error code object (Refer Appendix 1: Error Codes)

Example: "SUCCESS"

metaOBJECT

Database object

countINTEGER

Current page record

Example: 1

totalINTEGER

Total record in database

Example: 1

cursorINTEGER

Optional, if pagination exists.

Example: 1