Links de pagamento
Liste links de pagamento
Consulte os links da empresa com paginação.
cURL
curl --fail-with-body --request GET \
'https://api.sinnu.com.br/api/payment-links' \
--header "Authorization: Bearer $SINNU_API_KEY"const apiKey = process.env.SINNU_API_KEY;
if (!apiKey) throw new Error("Configure SINNU_API_KEY no servidor.");
const response = await fetch("https://api.sinnu.com.br/api/payment-links", {
method: "GET",
headers: {
Authorization: `Bearer ${apiKey}`,
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(response.status === 204 ? null : await response.json());{
"data": [
{
"id": "00000000-0000-4000-8000-000000000003",
"slug": "Exemplo1",
"title": "Consultoria inicial",
"priceMode": "fixed",
"amountCents": 9900,
"methods": [
"pix",
"credit_card"
],
"maxInstallments": 1,
"description": "Sessão de consultoria",
"imageUrl": null,
"minAmountCents": null,
"maxAmountCents": null,
"maxPayments": null,
"interestMode": "absorb",
"status": "active",
"threeDsMode": "always",
"tags": [],
"redirectUrl": null,
"linkedCustomerId": null,
"companyId": null,
"companyName": "Empresa de exemplo",
"sellerEmail": "vendedor@example.com",
"createdAt": "2026-09-01T12:00:00.000Z",
"updatedAt": "2026-09-01T12:00:00.000Z"
}
],
"total": 1,
"page": 1,
"pageSize": 20
}Use
page e pageSize. No SDK, a operação corresponde a sinnu.links.list().Autorizações
Parâmetros de consulta
Resposta
⌘I
cURL
curl --fail-with-body --request GET \
'https://api.sinnu.com.br/api/payment-links' \
--header "Authorization: Bearer $SINNU_API_KEY"const apiKey = process.env.SINNU_API_KEY;
if (!apiKey) throw new Error("Configure SINNU_API_KEY no servidor.");
const response = await fetch("https://api.sinnu.com.br/api/payment-links", {
method: "GET",
headers: {
Authorization: `Bearer ${apiKey}`,
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(response.status === 204 ? null : await response.json());{
"data": [
{
"id": "00000000-0000-4000-8000-000000000003",
"slug": "Exemplo1",
"title": "Consultoria inicial",
"priceMode": "fixed",
"amountCents": 9900,
"methods": [
"pix",
"credit_card"
],
"maxInstallments": 1,
"description": "Sessão de consultoria",
"imageUrl": null,
"minAmountCents": null,
"maxAmountCents": null,
"maxPayments": null,
"interestMode": "absorb",
"status": "active",
"threeDsMode": "always",
"tags": [],
"redirectUrl": null,
"linkedCustomerId": null,
"companyId": null,
"companyName": "Empresa de exemplo",
"sellerEmail": "vendedor@example.com",
"createdAt": "2026-09-01T12:00:00.000Z",
"updatedAt": "2026-09-01T12:00:00.000Z"
}
],
"total": 1,
"page": 1,
"pageSize": 20
}