GET
/shop/listList Shops
List Shops
Implementation Notes:
This endpoint retrieves details of all the review shops created by the user. It also allows you to configure the following:
- shopsPerPage: Specifies the number of shops to display per page. This setting helps limit the number of records fetched at a time.
- pageNumber: Determines which page of results to view.
GET
/shop/listParameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
shopsPerPage | query | integer | Optional | The number of items to display in a page |
pageNumber | query | integer | Optional | Indicates the current page number |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | shop details display | |
| 400 | Bad Request | Bad Request | None |
| 401 | Unauthorized | Authorization Failed | None |
| 429 | Too Many Requests | Too Many Requests | None |
| 500 | Internal Server Error | Internal Server Error | None |
Example Request
# You can also use wget
curl -X GET http://localhost:3000/shop/list \
-H 'Accept: application/json' \
-H 'Authorization: API_KEY'
Example responses
200 Response
[
{
"totalRecords": 2,
"fetchedRecords": 2,
"totalPages": 1,
"currentPage": 1,
"pageSize": 10,
"shops": [
{
"shopId": 20,
"hotelCodes": [
1,
123
],
"sourceCodes": [
1,
283
],
"shopName": "Abc",
"userId": 1,
"userName": "reviews@ai.com",
"createdDate": "2019-08-24T14:15:22Z",
"modifiedDate": "2019-08-24T14:15:22Z",
"status": 1,
"shopType": 1
}
]
}
]
Need Support?
Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.