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

# Buscar produto

[block:code]
{
  "codes": [
    {
      "code": "{\n  \"success\": true,\n  \"data\": {\n    \"description\": \"Descrição do produto\", \n    \"image\": \"https://image-url/image.png\",\n    \"image_min\": \"https://image-url/image.png\",\n    \"status\": 1,\n    \"cost_price\": 1000.12,\n    \"edit_costprice\": true,\n    \"edit_unitprice\": true,\n    \"ignore_in_goals\": true,\n    \"max_discount\": 80,\n    \"unit_price\": 2000.12,\n    \"currency_id\": 1,\n    \"currency\": {\n      \"id\": 1,\n      \"name\": \"Brazilian real\",\n      \"symbol\": \"R$\",\n      \"territory\": \"Brazil\",\n      \"iso_code\": \"BRL\",\n      \"is_default\": false,\n      \"thousands\": \".\",\n      \"decimal\": \",\",\n      \"precision\": 3\n    },\n    \"category_id\": 1,\n    \"category\": {\n      \"id\": 1,\n      \"name\": \"Nome da categoria\"\n    },\n    \"measuringunit_id\": 1,\n    \"measuringunit\": {\n      \"id\": 1,\n      \"name\": \"Unidade (metros)\",\n      \"unit\": \"M\"\n    },\n    \"supplier_id\": 1,\n    \"supplier\": {\n      \"id\": 1,\n      \"name\": \"Nome do fornecedor\",\n      \"full_name\": \"Nome completo do fornecedor\",\n      \"image\": \"https://image-url/image.png\",\n      \"image_min\": \"https://image-url/image.png\",\n      \"show_name\": \"Nome exibido do fornecedor\"\n    },\n    \"suppliers\": [\n      {\n        \"id\": 1,\n        \"name\": \"Nome do fornecedor\",\n        \"full_name\": \"Nome completo do fornecedor\",\n        \"image\": \"https://image-url/image.png\",\n        \"image_min\": \"https://image-url/image.png\",\n        \"show_name\": \"Nome exibido do fornecedor\"\n      }\n    ],\n    \"creation_date\": \"2020-12-01T17:12:02Z\",\n    \"update_date\": \"2022-06-02T17:37:55Z\",\n    \"author_id\": 1,\n    \"author\": {\n      \"id\": 1,\n      \"detail\": \"Nome do autor\",\n      \"type\": 1,\n      \"user_id\": 1,\n      \"automation_id\": 1,\n      \"form_id\": 1,\n      \"import_id\": 1,\n      \"user_uid\": 1\n    },\n    \"tags\": [\n      {\n        \"id\": 1,\n        \"name\": \"Nome da Tag\",\n        \"color\": \"#ffffff\"\n      }\n    ],\n    \"id\": 1,\n    \"name\": \"Nome do produto\",\n    \"type\": 2,\n    \"reference\": \"Nome da refêrencia\"\n  }\n}\n",
      "language": "json"
    }
  ]
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Atendare API - v2",
    "version": "2.0"
  },
  "servers": [
    {
      "url": "https://api.atendare.com/v2"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/products/{id}": {
      "get": {
        "summary": "Buscar produto",
        "description": "",
        "operationId": "search-products",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID do produto",
            "schema": {
              "type": "integer",
              "format": "int64"
            },
            "required": true
          },
          {
            "name": "Access-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"success\": true,\n  \"data\": {\n    \"description\": \"Descrição do produto\", \n    \"image\": \"https://image-url/image.png\",\n    \"image_min\": \"https://image-url/image.png\",\n    \"status\": 1,\n    \"cost_price\": 1000.12,\n    \"edit_costprice\": true,\n    \"edit_unitprice\": true,\n    \"ignore_in_goals\": true,\n    \"max_discount\": 80,\n    \"unit_price\": 2000.12,\n    \"currency_id\": 1,\n    \"currency\": {\n      \"id\": 1,\n      \"name\": \"Brazilian real\",\n      \"symbol\": \"R$\",\n      \"territory\": \"Brazil\",\n      \"iso_code\": \"BRL\",\n      \"is_default\": false,\n      \"thousands\": \".\",\n      \"decimal\": \",\",\n      \"precision\": 3\n    },\n    \"category_id\": 1,\n    \"category\": {\n      \"id\": 1,\n      \"name\": \"Nome da categoria\"\n    },\n    \"measuringunit_id\": 1,\n    \"measuringunit\": {\n      \"id\": 1,\n      \"name\": \"Unidade (metros)\",\n      \"unit\": \"M\"\n    },\n    \"supplier_id\": 1,\n    \"supplier\": {\n      \"id\": 1,\n      \"name\": \"Nome do fornecedor\",\n      \"full_name\": \"Nome completo do fornecedor\",\n      \"image\": \"https://image-url/image.png\",\n      \"image_min\": \"https://image-url/image.png\",\n      \"show_name\": \"Nome exibido do fornecedor\"\n    },\n    \"suppliers\": [\n      {\n        \"id\": 1,\n        \"name\": \"Nome do fornecedor\",\n        \"full_name\": \"Nome completo do fornecedor\",\n        \"image\": \"https://image-url/image.png\",\n        \"image_min\": \"https://image-url/image.png\",\n        \"show_name\": \"Nome exibido do fornecedor\"\n      }\n    ],\n    \"creation_date\": \"2020-12-01T17:12:02Z\",\n    \"update_date\": \"2022-06-02T17:37:55Z\",\n    \"author_id\": 1,\n    \"author\": {\n      \"id\": 1,\n      \"detail\": \"Nome do autor\",\n      \"type\": 1,\n      \"user_id\": 1,\n      \"automation_id\": 1,\n      \"form_id\": 1,\n      \"import_id\": 1,\n      \"user_uid\": 1\n    },\n    \"tags\": [\n      {\n        \"id\": 1,\n        \"name\": \"Nome da Tag\",\n        \"color\": \"#ffffff\"\n      }\n    ],\n    \"id\": 1,\n    \"name\": \"Nome do produto\",\n    \"type\": 2,\n    \"reference\": \"Nome da refêrencia\"\n  }\n}\n"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "description": {
                          "type": "string",
                          "example": "Descrição do produto"
                        },
                        "image": {
                          "type": "string",
                          "example": "https://image-url/image.png"
                        },
                        "image_min": {
                          "type": "string",
                          "example": "https://image-url/image.png"
                        },
                        "status": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "cost_price": {
                          "type": "number",
                          "example": 1000.12,
                          "default": 0
                        },
                        "edit_costprice": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "edit_unitprice": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "ignore_in_goals": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "max_discount": {
                          "type": "integer",
                          "example": 80,
                          "default": 0
                        },
                        "unit_price": {
                          "type": "number",
                          "example": 2000.12,
                          "default": 0
                        },
                        "currency_id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "currency": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "name": {
                              "type": "string",
                              "example": "Brazilian real"
                            },
                            "symbol": {
                              "type": "string",
                              "example": "R$"
                            },
                            "territory": {
                              "type": "string",
                              "example": "Brazil"
                            },
                            "iso_code": {
                              "type": "string",
                              "example": "BRL"
                            },
                            "is_default": {
                              "type": "boolean",
                              "example": false,
                              "default": true
                            },
                            "thousands": {
                              "type": "string",
                              "example": "."
                            },
                            "decimal": {
                              "type": "string",
                              "example": ","
                            },
                            "precision": {
                              "type": "integer",
                              "example": 3,
                              "default": 0
                            }
                          }
                        },
                        "category_id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "category": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "name": {
                              "type": "string",
                              "example": "Nome da categoria"
                            }
                          }
                        },
                        "measuringunit_id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "measuringunit": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "name": {
                              "type": "string",
                              "example": "Unidade (metros)"
                            },
                            "unit": {
                              "type": "string",
                              "example": "M"
                            }
                          }
                        },
                        "supplier_id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "supplier": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "name": {
                              "type": "string",
                              "example": "Nome do fornecedor"
                            },
                            "full_name": {
                              "type": "string",
                              "example": "Nome completo do fornecedor"
                            },
                            "image": {
                              "type": "string",
                              "example": "https://image-url/image.png"
                            },
                            "image_min": {
                              "type": "string",
                              "example": "https://image-url/image.png"
                            },
                            "show_name": {
                              "type": "string",
                              "example": "Nome exibido do fornecedor"
                            }
                          }
                        },
                        "suppliers": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Nome do fornecedor"
                              },
                              "full_name": {
                                "type": "string",
                                "example": "Nome completo do fornecedor"
                              },
                              "image": {
                                "type": "string",
                                "example": "https://image-url/image.png"
                              },
                              "image_min": {
                                "type": "string",
                                "example": "https://image-url/image.png"
                              },
                              "show_name": {
                                "type": "string",
                                "example": "Nome exibido do fornecedor"
                              }
                            }
                          }
                        },
                        "creation_date": {
                          "type": "string",
                          "example": "2020-12-01T17:12:02Z"
                        },
                        "update_date": {
                          "type": "string",
                          "example": "2022-06-02T17:37:55Z"
                        },
                        "author_id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "author": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "detail": {
                              "type": "string",
                              "example": "Nome do autor"
                            },
                            "type": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "user_id": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "automation_id": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "form_id": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "import_id": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            },
                            "user_uid": {
                              "type": "integer",
                              "example": 1,
                              "default": 0
                            }
                          }
                        },
                        "tags": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Nome da Tag"
                              },
                              "color": {
                                "type": "string",
                                "example": "#ffffff"
                              }
                            }
                          }
                        },
                        "id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "name": {
                          "type": "string",
                          "example": "Nome do produto"
                        },
                        "type": {
                          "type": "integer",
                          "example": 2,
                          "default": 0
                        },
                        "reference": {
                          "type": "string",
                          "example": "Nome da refêrencia"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "403": {
            "description": "403",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": ""
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61f3f7309a3abf0010b92516:6267e4f043623601b496b6eb"
}
```