Get all the needed information for main page of the shop
Query parameters
-
key string
GET /v2/public/shops/{shopId}/main
curl \
-X GET https://dev.sellpass.io/v2/public/shops/{shopId}/main \
-H "Authorization: $API_KEY"
Response examples (200)
{
"data": {
"shop": {
"title": "string",
"description": "string",
"buttonText": "string",
"disableButton": true,
"disableTitle": true,
"disableDescription": true,
"statistics": {
"rating": 42.0,
"totalFeedbacks": 42,
"totalProductsSold": 42,
"customersCount": 42
}
},
"feedbacks": [
{
"rating": 42,
"comment": "string",
"sellerReply": "string",
"createdAt": "2023-05-04T09:42:00+00:00",
"updatedAt": "2023-05-04T09:42:00+00:00"
}
],
"announcements": [
{
"id": 42,
"path": "string",
"title": "string",
"shortDescription": "string",
"buttonText": "string",
"buttonLink": "string",
"createdAt": "2023-05-04T09:42:00+00:00"
}
],
"listings": [
{
"id": 42,
"path": "string",
"searchWordsMeta": "string",
"position": 42,
"minPriceDetails": {
"amount": 42.0,
"currency": "string"
},
"seo": {
"metaTitle": "string",
"metaDescription": "string",
"metaCfImageId": "string"
},
"visibility": 0,
"type": 0,
"product": {
"id": 42,
"title": "string",
"shortDescription": "string",
"thumbnailCfImageId": "string",
"statistics": {
"rating": 42.0,
"totalFeedbacks": 42,
"totalProductsSold": 42,
"customersCount": 42
},
"groupId": 42,
"isInstantDelivery": true,
"isInStock": true,
"onHold": true,
"unlisted": true,
"private": true
},
"group": {
"id": 42,
"title": "string",
"description": "string",
"cfImageId": "string",
"listings": [
{}
],
"type": 0
}
}
],
"categories": [
{
"id": 42,
"name": "string",
"listingIds": [
42
]
}
]
},
"message": "string",
"errors": [
"string"
],
"log": "string"
}
Response examples (200)
{
"data": {
"shop": {
"title": "string",
"description": "string",
"buttonText": "string",
"disableButton": true,
"disableTitle": true,
"disableDescription": true,
"statistics": {
"rating": 42.0,
"totalFeedbacks": 42,
"totalProductsSold": 42,
"customersCount": 42
}
},
"feedbacks": [
{
"rating": 42,
"comment": "string",
"sellerReply": "string",
"createdAt": "2024-05-04T09:42:00+00:00",
"updatedAt": "2024-05-04T09:42:00+00:00"
}
],
"announcements": [
{
"id": 42,
"path": "string",
"title": "string",
"shortDescription": "string",
"buttonText": "string",
"buttonLink": "string",
"createdAt": "2024-05-04T09:42:00+00:00"
}
],
"listings": [
{
"id": 42,
"path": "string",
"searchWordsMeta": "string",
"position": 42,
"minPriceDetails": {
"amount": 42.0,
"currency": "string"
},
"seo": {
"metaTitle": "string",
"metaDescription": "string",
"metaCfImageId": "string"
},
"visibility": 0,
"type": 0,
"product": {
"id": 42,
"title": "string",
"shortDescription": "string",
"thumbnailCfImageId": "string",
"statistics": {
"rating": 42.0,
"totalFeedbacks": 42,
"totalProductsSold": 42,
"customersCount": 42
},
"groupId": 42,
"isInstantDelivery": true,
"isInStock": true,
"onHold": true,
"unlisted": true,
"private": true
},
"group": {
"id": 42,
"title": "string",
"description": "string",
"cfImageId": "string",
"listings": [
{}
],
"type": 0
}
}
],
"categories": [
{
"id": 42,
"name": "string",
"listingIds": [
42
]
}
]
},
"message": "string",
"errors": [
"string"
],
"log": "string"
}