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

# Get a contact's products

Get a contact's products formatted as a list.

# Error cases

## Contact does not exist (404)

```json
{
    "status": 404,
    "errors": [
        {
            "error_key": "id",
            "error": "wrong_value",
            "error_description": "Record not found for id {ee}."
        }
    ]
}
```

# 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/contacts/{id}/products": {
      "get": {
        "summary": "Get a contact's products",
        "description": "Get a contact's products formatted as a list.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Individual external identifier.",
            "schema": {
              "type": "string",
              "pattern": ".+"
            }
          },
          {
            "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' and 'price'",
            "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"
                    ]
                  },
                  "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."
          },
          "404": {
            "description": "Contact not found.",
            "content": {
              "application/json": {
                "examples": {
                  "response": {
                    "value": {
                      "status": 404,
                      "errors": [
                        {
                          "error_key": "id",
                          "error": "wrong_value",
                          "error_description": "Contact not found for given identifier."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Contact"
        ],
        "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"
      }
    }
  }
}
```