curl --request GET \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/products \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
{
"data": [
{
"id": "8f0c2a8e-1b7d-4a55-9a3e-1c2d3e4f5a6b",
"name": "Curso de ejemplo",
"description": "Acceso vitalicio",
"price_cents": 1990,
"currency": "BRL",
"billing_type": "one_time",
"billing_interval": null,
"status": "active",
"created_at": "2026-11-06T18:00:00Z"
}
]
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, products." }
Referencia de la API
Listar productos
Retorna los productos de tu cuenta (hasta 200), del más nuevo al más antiguo.
GET
/
functions
/
v1
/
doglytdc-pay
/
v1
/
products
curl --request GET \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/products \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
{
"data": [
{
"id": "8f0c2a8e-1b7d-4a55-9a3e-1c2d3e4f5a6b",
"name": "Curso de ejemplo",
"description": "Acceso vitalicio",
"price_cents": 1990,
"currency": "BRL",
"billing_type": "one_time",
"billing_interval": null,
"status": "active",
"created_at": "2026-11-06T18:00:00Z"
}
]
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, products." }
Alcance
read products
Qué hace
Retorna los productos de tu cuenta (hasta 200), del más nuevo al más antiguo.Casos de uso
- Armar una vitrina o catálogo
- Sincronizar precios con tu sistema
- Encontrar el
idpara crear un enlace de pago
Respuesta
Errores
| Estado | Descripción |
|---|---|
401 | Clave inválida o revocada. |
403 | Faltan alcances (insufficient_scope). |
429 | Límite de solicitudes (rate_limited). |
curl --request GET \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/products \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
{
"data": [
{
"id": "8f0c2a8e-1b7d-4a55-9a3e-1c2d3e4f5a6b",
"name": "Curso de ejemplo",
"description": "Acceso vitalicio",
"price_cents": 1990,
"currency": "BRL",
"billing_type": "one_time",
"billing_interval": null,
"status": "active",
"created_at": "2026-11-06T18:00:00Z"
}
]
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, products." }

