---
updatedAt: 2026-06-23T08:14:20.000Z
agentTools:
  projectIndex: https://dev-scp.splio.com/llms.txt
---

# List products

Get the list of products.

# Error cases

## Wrong type in query param (400)

```json
{
    "status": 400,
    "errors": [
        {
            "error_key": "per_page",
            "error": "wrong_type",
            "error_description": "This value should be of type numeric."
        },
        {
            "error_key": "per_page",
            "error": "wrong_value",
            "error_description": "This value should be greater than 0."
        }
    ]
}
```

## Wrong operator in search (400)

```json
{
    "status": 400,
    "errors": [
        {
            "error_key": "operator",
            "error": "wrong_value",
            "error_description": "Operator \"trytest\" is invalid. Allowed operators : equal, is, greater, lower, after, before, notequal, isnot, contains, ends, starts, like."
        }
    ]
}
```

## Wrong field in search (400)

```json
{
    "status": 400,
    "errors": [
        {
            "error_key": "fields.0.key",
            "error": "wrong_value",
            "error_description": "Field \"test\" is invalid. Recognized fields : external_id, ext_id, name, brand, price."
        }
    ]
}
```

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-origin": [
    {
      "url": "https://api.splio.com/doc.json",
      "format": "swagger",
      "version": "2.0",
      "converter": {
        "url": "https://github.com/mermade/oas-kit",
        "version": "7.0.8"
      }
    }
  ],
  "info": {
    "title": "Splio Customer Platform",
    "description": "API Documentation for Splio Customer Platform",
    "version": "1.0.0"
  },
  "paths": {
    "/data/v1/products": {
      "get": {
        "summary": "List products",
        "description": "Get the list of products.",
        "parameters": [
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "description": "Number of items displayed per page.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 50
            }
          },
          {
            "name": "page_number",
            "in": "query",
            "required": false,
            "description": "Page number.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1
            }
          },
          {
            "name": "fields",
            "in": "query",
            "required": false,
            "description": "Use a combination of field, operator and searched value. It will return products that matched your search. Fields available on search in products are 'external_id', 'name', 'brand', 'price' and custom fields numbers (0, 1, 2, ...)",
            "style": "form",
            "explode": false,
            "schema": {
              "type": "array",
              "items": {
                "example": [
                  {
                    "key": "name",
                    "operator": "equal",
                    "value": "Gloss"
                  }
                ],
                "properties": {
                  "key": {
                    "description": "search fields, in contacts",
                    "type": "string",
                    "enum": [
                      "external_id",
                      "name",
                      "brand",
                      "price",
                      "c0",
                      "c1"
                    ]
                  },
                  "operator": {
                    "description": "operator for search operators are limited by the type of value expected",
                    "type": "string",
                    "enum": [
                      "is",
                      "after",
                      "before",
                      "contains",
                      "ends",
                      "equal",
                      "greater",
                      "isnot",
                      "lower",
                      "notequal",
                      "starts"
                    ]
                  },
                  "value": {
                    "type": "string"
                  }
                },
                "type": "object"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Products retrieval is successful.",
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "count_element": 1,
                      "current_page": 1,
                      "per_page": 50,
                      "sort": {
                        "id": "desc"
                      },
                      "elements": [
                        {
                          "external_id": "1",
                          "name": "Product Name",
                          "description": "Description",
                          "brand": "Brand",
                          "category": "Product category",
                          "price": 20,
                          "created_at": "2019-02-15 12:55:00",
                          "updated_at": "2019-02-22 17:12:15",
                          "custom_fields": [
                            {
                              "id": 0,
                              "name": "custom field 0",
                              "value": "Valeur 0",
                              "data_type": "text"
                            },
                            {
                              "id": 1,
                              "name": "custom field 1",
                              "value": "",
                              "data_type": "double"
                            }
                          ]
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request validation failed.",
            "x-readme": "BODYBODY",
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "status": 400,
                      "errors": [
                        {
                          "error_key": "field_1",
                          "error": "wrong_value",
                          "error_description": "The request was malformed and it is unable to be processed. Please review and try again."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed."
          },
          "403": {
            "description": "Forbidden."
          }
        },
        "tags": [
          "Sales data"
        ],
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api.splio.com"
    },
    {
      "url": "http://api.splio.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "Bearer": {
        "description": "For accessing the API a valid JWT token must be passed in all requests in\nthe 'Authorization' header.\n\n\nA valid JWT token is generated by the Authorization API and returned as answer of a call\nto the route /authenticate giving a valid user, password & universe.\n\n\nThe following syntax must be used in the 'Authorization' header :\n\n    Bearer xxxxxx.yyyyyyy.zzzzzz\n",
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}
```