curl --request POST \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/payment-links \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{"product_id":"8f0c2a8e-1b7d-4a55-9a3e-1c2d3e4f5a6b"}'
{
"status": "approval_required",
"approval_id": "0e9d8c7b-6a5f-4e3d-9c2b-1a0f9e8d7c6b",
"expires_at": "2026-11-06T18:40:00Z",
"message": "Autorize no DoglyTdc Pay › Integrações › MCP."
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: write, payments." }
API reference
Create Payment Link
Requests a payment link for one of your products.
POST
/
functions
/
v1
/
doglytdc-pay
/
v1
/
payment-links
curl --request POST \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/payment-links \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{"product_id":"8f0c2a8e-1b7d-4a55-9a3e-1c2d3e4f5a6b"}'
{
"status": "approval_required",
"approval_id": "0e9d8c7b-6a5f-4e3d-9c2b-1a0f9e8d7c6b",
"expires_at": "2026-11-06T18:40:00Z",
"message": "Autorize no DoglyTdc Pay › Integrações › MCP."
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: write, payments." }
Scope
write payments
What it does
Requests a payment link for one of your products. Returns202; the link becomes ready after your approval.
Use cases
- Generate links per campaign
- Sell via chat or through an AI
Response
Errors
| Status | Description |
|---|---|
400 | invalid_product. |
404 | Product does not exist in this account. |
401 | Invalid or revoked key. |
403 | Missing scopes (insufficient_scope). |
429 | Rate limit exceeded (rate_limited). |
curl --request POST \
--url https://ucsyxzpdbnuyehizezvb.supabase.co/functions/v1/doglytdc-pay/v1/payment-links \
-u "$DPAY_CLIENT_ID:$DPAY_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{"product_id":"8f0c2a8e-1b7d-4a55-9a3e-1c2d3e4f5a6b"}'
{
"status": "approval_required",
"approval_id": "0e9d8c7b-6a5f-4e3d-9c2b-1a0f9e8d7c6b",
"expires_at": "2026-11-06T18:40:00Z",
"message": "Autorize no DoglyTdc Pay › Integrações › MCP."
}
{ "error": "unauthorized", "message": "Chave de API inválida." }
{ "error": "insufficient_scope", "message": "Esta chave precisa dos escopos: write, payments." }

