API Reference/Payment links
GET
Retrieve a payment link
Retrieve a payment link. See the request, response and integration notes.
GET
/v1/payment-links/{linkId}https://integrate.api.kyvopay.com.br
cURL
curl -X GET https://integrate.api.kyvopay.com.br/v1/payment-links/{linkId} \
-H "X-API-Key: ky_XXXXX-XXXXX-XXXXX"Resposta200 OK
{
"data": {
"amount_centavos": "4990",
"checkouts_started": 0,
"collect_customer_data": false,
"description": "Pedido #12345",
"expires_at": "2026-01-01T12:30:00Z",
"id": "01HZ8K3M5N",
"max_sales": "string",
"min_amount_centavos": "4990",
"name": "Cliente Exemplo",
"revenue_centavos": "4990",
"sales_count": 0,
"slug": "string",
"starts_at": "2026-01-01T12:00:00Z",
"status": "pending",
"visits": 0
},
"error": {
"code": "string",
"details": {},
"message": "string"
},
"request_id": "req_01HZ8K3M5N"
}Authentication
X-API-Keystring · headerrequiredUse the ky_... key created under Integrations → API Keys in the KyvoPay dashboard.
Use this endpoint to retrieve a payment link.
Request
Note
Private endpoints require the X-API-Key header. Keep credentials on your backend and log the response request_id for diagnostics.
Response
Implementation notes
- Validate required input before sending the request.
- Store returned public identifiers without assuming their format.
- Treat 4xx validation errors as non-retryable until the request is corrected.
- Retry timeouts, 429 and temporary 5xx responses with exponential backoff.