---
agentTools:
  projectIndex: https://atendare.readme.io/llms.txt
---

# Listar produtos da tabela de preço

Retorna a lista dos produtos presentes na tabela de preço.

```json JSON
GET - 200

{
"total": 3,
"page_index": 0,
"page_size": 15,
"results": [
{
"product": {
	"id": 1,
	"name": "Nome do produto",
	"type": 0,
	"reference": null
},
"pricetable": null,
"creation_date": "2023-12-21T17:20:13Z",
"update_date": "2023-12-21T17:20:13Z",
"author_id": 1,
"author": {
	"id": 1,
	"detail": "Nome do autor",
	"type": 1,
	"user_id": 1,
	"automation_id": null,
	"form_id": null,
	"import_id": null,
	"user_uid": 1
},
"id": 2,
"product_id": 2,
"pricetable_id": 3,
"unit_price": "Preço unitário",
"max_discount": "Máximo de desconto"
},
{
"product": {
	"id": 2,
	"name": "Nome do produto",
	"type": 0,
	"reference": null
},
"pricetable": null,
"creation_date": "2023-12-21T18:30:57Z",
"update_date": "2023-12-21T18:30:57Z",
"author_id": 1,
	"author": {
	"id": 1,
	"detail": "Nome do autor",
	"type": 1,
	"user_id": 1,
	"automation_id": null,
	"form_id": null,
	"import_id": null,
	"user_uid": 1
},
"id": 2,
"product_id": 222,
"pricetable_id": 3,
"unit_price": "Preço unitário",
"max_discount": "Desconto máximo"
},
{
"product": {
	"id": 3,
	"name": "Nome do produto",
	"type": 0,
	"reference": null
},
"pricetable": null,
"creation_date": "2023-12-22T16:48:12Z",
"update_date": "2023-12-22T16:56:55Z",
"author_id": 1,
"author": {
	"id": 1,
	"detail": "Nome do autor",
	"type": 1,
	"user_id": 1,
	"automation_id": null,
	"form_id": null,
	"import_id": null,
	"user_uid": 1
},
"id": 3,
"product_id": 203,
"pricetable_id": 3,
"unit_price": "Preço unitário",
"max_discount": "Desconto máximo"
},
]
}

```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Atendare API - v2",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.atendare.com/v2"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/pricetables/{id}/products": {
      "get": {
        "summary": "Listar produtos da tabela de preço",
        "description": "Retorna a lista dos produtos presentes na tabela de preço.",
        "operationId": "list-pricetables-products",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID da tabela de preço",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "required": true
          },
          {
            "name": "Access-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61f3f7309a3abf0010b92516:658c2ece5443d7002d54bff4"
}
```