{
"success": true,
"paymentLink": {
"id": "pl_123",
"externalReference": "annual-plan-2025",
"title": "Premium subscription",
"description": "Annual plan invoice",
"amount": 129.9,
"currency": "USD",
"status": "ACTIVE",
"isMultiUse": false,
"isActive": true,
"isExpired": false,
"expiresAt": "2025-01-31T23:59:59.000Z",
"url": "https://app.sxdigitalpay.com/quote/[merchantShortName]/[paymentLinkId]",
"shortUrl": "https://sxpay.me/[paymentLinkShortId]",
"metadata": {
"plan": "premium"
},
"webhookUrl": "https://merchant.com/webhooks/sxpay",
"paymentStatus": "PENDING",
"paymentsSummary": {
"total": 2,
"byStatus": {
"PENDING": 1,
"COMPLETED": 1
}
},
"payments": [
{
"id": "pay_001",
"status": "PENDING",
"createdAt": "2024-12-05T18:25:00.000Z",
"completedAt": null,
"availableAt": null,
"customer": {
"name": "Jane Doe",
"email": "jane@example.com"
},
"quote": {
"amount": 129.9,
"currency": "USD",
"paymentMethod": "CREDIT_CARD",
"installments": 1,
"totalBRL": 658.35
}
},
{
"id": "pay_000",
"status": "COMPLETED",
"createdAt": "2024-12-05T18:15:00.000Z",
"completedAt": "2024-12-05T18:18:00.000Z",
"availableAt": "2024-12-07T12:00:00.000Z",
"customer": null,
"quote": {
"amount": 129.9,
"currency": "USD",
"paymentMethod": "PIX",
"installments": 1,
"totalBRL": 658.35
}
}
],
"createdAt": "2024-12-05T18:20:00.000Z"
}
}