Ideal House
Passa al contenuto

Elenco prodotti#

Restituisce i prodotti del negozio suddivisi in pagine. I prodotti inattivi o esauriti restano inclusi. I prodotti con status: invalid, compresi quelli eliminati logicamente, sono esclusi.

http
GET https://sdkapi.ideal.house/product-import/products?shopId=<SHOP_ID>&page=1&pageSize=20

Parametri della query#

CampoTipoObbligatorioVincoliDescrizione
shopIdstringMassimo 64 caratteriID negozio fornito da Ideal House. (Shop ID)
pagenumberNoIntero maggiore o uguale a 1Numero di pagina. Il valore predefinito è 1.
pageSizenumberNoIntero da 1 a 100Prodotti per pagina. Il valore predefinito è 20.

Esempio cURL#

bash
curl --request GET \
  'https://sdkapi.ideal.house/product-import/products?shopId=shop_123&page=1&pageSize=20' \
  --header 'X-Client-Id: <YOUR_CLIENT_ID>' \
  --header 'X-Client-Secret: <YOUR_CLIENT_SECRET>'

Risposta#

json
{
  "items": [
    {
      "id": "product_123",
      "shopId": "shop_123",
      "sku": "SKU-10001",
      "productCode": "SKU-10001",
      "externalProductId": "SKU-10001",
      "groupId": "mirror-series-01",
      "collectionId": null,
      "name": "Gold Wall Mirror",
      "title": "Gold Wall Mirror",
      "brand": "Example Brand",
      "productType": "Wall Art",
      "normalizedProductType": "wall_decors",
      "category": "Mirror",
      "style": null,
      "color": "Gold",
      "availability": "active",
      "imageUrl": "https://cdn.ideal.house/products/product_123.png",
      "previewImageUrl": "https://cdn.ideal.house/products/product_123-preview.png",
      "productUrl": "https://www.example.com/products/SKU-10001",
      "attributes": {
        "size": {
          "width": "24.0 in",
          "height": "36.0 in",
          "thickness": "2.0 in"
        }
      },
      "status": "active",
      "createdAt": "2026-07-21T06:30:00.000Z",
      "updatedAt": "2026-07-21T06:30:08.000Z"
    }
  ],
  "total": 1,
  "page": 1,
  "pageSize": 20
}

Usare sempre total, page e pageSize per scorrere le pagine fino a recuperare tutti i prodotti. Non presumere che una singola risposta contenga l’intero catalogo.