Products

Get all products

GET /stores/{store_id}/products?

This endpoint lets you get all products for a store.

Headers

Header
Type
Description

Authorization

string

Bearer token.

Response

{
    "success": true,
    "message": "Products retrieved successfully",
    "data": {
        "products": [
            {
                "inventory": {
                    "trackQuantity": false,
                    "quantity": 0,
                    "allowBackorder": false
                },
                "_id": "69259344f67aff7e9fe0bb2e",
                "name": "Hi-Fi DAC",
                "description": "resolution digital-to-analog converter with headphone amp. Supports 32-bit/384kHz and DSD256.",
                "brand": "AudioPhile",
                "country": "US",
                "currency": "USD",
                "storeName": "My Awesome Store",
                "featured": true,
                "userStore": "692565f432118c6197abf2ec",
                "ships_to_countries": [],
                "category": null,
                "subcategory": null,
                "pros": [],
                "cons": [],
                "keywords": [],
                "imageEmbedding": [],
                "textEmbedding": [],
                "slug": "hi-fi-dac",
                "variants": [
                    {
                        "color": "Black",
                        "stock": 15,
                        "sku": "DAC-AMP-BLK"
                    },
                    {
                        "color": "Silver",
                        "stock": 10,
                        "sku": "DAC-AMP-SLV"
                    }
                ],
                "price": 249.99,
                "storeOrder": 0,
                "priceHistory": [
                    {
                        "price": 249.99,
                        "date": "2025-11-25T11:30:12.805Z",
                        "_id": "69259344f67aff7e9fe0bb2f"
                    }
                ],
                "discountPercentage": 0,
                "discount": 0,
                "discountVal": 0,
                "status": "active",
                "averageRating": 0,
                "reviewCount": 0,
                "tags": [],
                "published_at": "2025-11-25T11:30:12.805Z",
                "last_updated": "2025-11-25T11:54:20.473Z",
                "source": "agora-store-builder",
                "images": [
                    "https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=800"
                ],
                "url": "/products/hi-fi-dac-amplifier",
                "isActive": true,
                "creator": {
                    "_id": "692560a0f3b17397ede28cae",
                    "firstname": "Hanzala",
                    "lastname": "Javed",
                    "email": "[email protected]",
                    "id": "692560a0f3b17397ede28cae"
                },
                "available": true,
                "viewCount": 0,
                "orderCount": 0,
                "options": [],
                "metafields": [],
                "__v": 0,
                "createdAt": "2025-11-25T11:30:12.825Z",
                "updatedAt": "2025-11-27T10:04:35.241Z"
            }
        ],
        "pagination": {
            "currentPage": 1,
            "totalPages": 1,
            "totalProducts": 1,
            "hasNextPage": false,
            "hasPrevPage": false
        }
    }
}

Get specific product

GET /stores/{store_id}/products/{product_id}

This endpoint lets you get information about a specific product.

Headers

Header
Type
Description

Authorization

string

Bearer token.

Response

Create product

POST /stores/{store_id}/products

This endpoint lets you create a new product.

Headers

Header
Type
Description

Authorization

string

Bearer token.

Request body

Response

Update product

PUT /stores/{store_id}/products/{product_id}

This endpoint lets you update a product.

Headers

Header
Type
Description

Authorization

string

Bearer token.

Body request

Response

Delete product

DEL /stores/{store_id}/products/{product_id}

This endpoint lets you delete a product.

Headers

Header
Type
Description

Authorization

string

Bearer token.

Response

Last updated

Was this helpful?