Skip to main content
GET
/
products
/
{hash}
Consultar Produto
curl --request GET \
  --url https://api.example.com/products/{hash}
{
  "200": {},
  "401": {},
  "404": {},
  "500": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.klivopay.com.br/llms.txt

Use this file to discover all available pages before exploring further.

Visão Geral

Este endpoint retorna todos os detalhes de um produto específico, incluindo suas ofertas associadas.

Endpoint

GET https://api.klivopay.com.br/api/public/v1/products/{hash}

Parâmetros

hash
string
required
Hash identificador único do produto
api_token
string
required
Seu token de autenticação da API KlivoPay

Exemplo de Requisição

curl -X GET 'https://api.klivopay.com.br/api/public/v1/products/prod123abc?api_token=seu_token_aqui'

Resposta de Sucesso

200 OK
{
  "success": true,
  "data": {
    "hash": "prod123abc",
    "title": "Curso de Marketing Digital",
    "cover": "https://cdn.klivopay.com.br/products/cover123.jpg",
    "sale_page": "https://meucurso.com.br/marketing",
    "product_type": "digital",
    "delivery_type": "email",
    "payment_type": 1,
    "amount": 29900,
    "category": {
      "id": 5,
      "name": "Educação"
    },
    "offers": [
      {
        "hash": "offer123",
        "title": "Oferta Especial",
        "amount": 19900,
        "cover": "https://cdn.klivopay.com.br/offers/offer123.jpg"
      }
    ],
    "created_at": "2025-01-15T10:00:00Z",
    "updated_at": "2025-01-15T10:00:00Z"
  }
}

Códigos de Resposta

200
OK
Produto encontrado e retornado com sucesso
401
Unauthorized
Token de API inválido ou ausente
404
Not Found
Produto não encontrado
500
Internal Server Error
Erro interno do servidor