curl --request GET \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/orders/5b1e9c3a-7d2f-4e8a-b6c4-0a1b2c3d4e5f \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
{
"data": {
"id": "5b1e9c3a-7d2f-4e8a-b6c4-0a1b2c3d4e5f",
"product_id": "8f0c2a8e-1b7d-4a55-9a3e-1c2d3e4f5a6b",
"amount_cents": 1990,
"currency": "BRL",
"status": "paid",
"method": "pix",
"customer_email": "buyer@example.com",
"customer_name": "Ana Souza",
"created_at": "2026-11-06T18:05:00Z"
}
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, orders." }
API reference
Get Order
Returns an order from your account by ID.
GET
/
functions
/
v1
/
doglytdc-pay
/
v1
/
orders
/
{id}
curl --request GET \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/orders/5b1e9c3a-7d2f-4e8a-b6c4-0a1b2c3d4e5f \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
{
"data": {
"id": "5b1e9c3a-7d2f-4e8a-b6c4-0a1b2c3d4e5f",
"product_id": "8f0c2a8e-1b7d-4a55-9a3e-1c2d3e4f5a6b",
"amount_cents": 1990,
"currency": "BRL",
"status": "paid",
"method": "pix",
"customer_email": "buyer@example.com",
"customer_name": "Ana Souza",
"created_at": "2026-11-06T18:05:00Z"
}
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, orders." }
Scope
read orders
What it does
Returns an order from your account by ID.Use cases
- Validate a sale before granting access
- Assist the buyer in support
Response
Errors
| Status | Description |
|---|---|
404 | Order not found or belongs to another account. |
401 | Invalid or revoked key. |
403 | Missing scopes (insufficient_scope). |
429 | Rate limit exceeded (rate_limited). |
curl --request GET \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/orders/5b1e9c3a-7d2f-4e8a-b6c4-0a1b2c3d4e5f \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET"
{
"data": {
"id": "5b1e9c3a-7d2f-4e8a-b6c4-0a1b2c3d4e5f",
"product_id": "8f0c2a8e-1b7d-4a55-9a3e-1c2d3e4f5a6b",
"amount_cents": 1990,
"currency": "BRL",
"status": "paid",
"method": "pix",
"customer_email": "buyer@example.com",
"customer_name": "Ana Souza",
"created_at": "2026-11-06T18:05:00Z"
}
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: read, orders." }

