# Obter informações de um produto do catálogo

POST /business/catalog/info

Retorna os detalhes disponíveis de um produto do catálogo. Use o ID obtido
na listagem de produtos para abrir ou revisar um item.


## Autenticação

```json
[
  {
    "token": []
  }
]
```

```json
{
  "token": {
    "name": "token",
    "type": "apiKey",
    "in": "header"
  }
}
```

## Corpo da requisição

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "jid": {
            "type": "string",
            "description": "JID do catálogo a consultar",
            "example": "5511999999999@s.whatsapp.net"
          },
          "id": {
            "type": "string",
            "description": "O ID do produto."
          }
        },
        "required": [
          "jid",
          "id"
        ]
      }
    }
  }
}
```

## Respostas

```json
{
  "200": {
    "description": "Informações do produto recuperadas com sucesso",
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "response"
          ],
          "properties": {
            "response": {
              "$ref": "#/components/schemas/BusinessProduct"
            }
          }
        }
      }
    }
  },
  "400": {
    "description": "Requisição inválida",
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "error": {
              "type": "string",
              "description": "Mensagem de erro de validação do payload ou JID",
              "example": "invalid payload"
            }
          }
        }
      }
    }
  },
  "401": {
    "description": "Token inválido ou expirado",
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "error": {
              "type": "string",
              "description": "Mensagem de erro de autenticação",
              "example": "client not found"
            }
          }
        }
      }
    }
  },
  "500": {
    "description": "Erro interno do servidor ao recuperar as informações do produto",
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "error": {
              "type": "string",
              "description": "Mensagem detalhando o erro encontrado"
            }
          }
        }
      }
    }
  }
}
```

## #/components/schemas/BusinessProduct

```json
{
  "type": "object",
  "required": [
    "id",
    "name",
    "price",
    "currency",
    "is_hidden",
    "is_sanctioned",
    "media",
    "status_info"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "retailer_id": {
      "type": "string"
    },
    "belongs_to": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "price": {
      "type": "string",
      "description": "Valor em milésimos da moeda (19990 = R$ 19,99)."
    },
    "currency": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "shimmed_url": {
      "type": "string"
    },
    "is_hidden": {
      "type": "boolean"
    },
    "is_sanctioned": {
      "type": "boolean"
    },
    "max_available": {
      "type": "integer"
    },
    "product_availability": {
      "type": "string"
    },
    "compliance_category": {
      "type": "string"
    },
    "compliance_info": {
      "type": "object",
      "properties": {
        "country_code_origin": {
          "type": "string"
        },
        "importer_name": {
          "type": "string"
        },
        "importer_address": {
          "type": "object",
          "properties": {
            "street1": {
              "type": "string"
            },
            "street2": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "region": {
              "type": "string"
            },
            "postal_code": {
              "type": "string"
            },
            "country_code": {
              "type": "string"
            }
          }
        }
      }
    },
    "media": {
      "type": "object",
      "properties": {
        "images": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "original_image_url": {
                "type": "string"
              },
              "request_image_url": {
                "type": "string"
              }
            }
          }
        },
        "videos": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "original_video_url": {
                "type": "string"
              },
              "thumbnail_url": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "sale_price": {
      "type": "object",
      "required": [
        "price"
      ],
      "properties": {
        "price": {
          "type": "string"
        },
        "start_date": {
          "type": "string"
        },
        "end_date": {
          "type": "string"
        }
      }
    },
    "status_info": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string"
        },
        "can_appeal": {
          "type": "boolean"
        }
      }
    },
    "variant_info": {
      "type": "object",
      "properties": {
        "listing_details": {
          "type": "object",
          "properties": {
            "description": {
              "type": "string"
            },
            "lowest_price": {
              "type": "string"
            },
            "multi_price": {
              "type": "string"
            }
          }
        },
        "availability": {
          "type": "object",
          "additionalProperties": true
        },
        "types": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "variant_properties": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "name",
              "value"
            ],
            "properties": {
              "name": {
                "type": "string"
              },
              "value": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## Guias relacionados

[Autenticação](/docs/authentication) · [Erros e retries](/docs/errors-and-retries) · [Server URL](/docs/server-url)
