{
"success": true,
"paymentLink": {
"id": "01KDKKVSH6NDQPBZ5E1F54G8Q6",
"externalReference": "1b4db7eb-4057-5ddf-91e0-36dec72071f5",
"title": "Payment Title",
"description": "Payment Description",
"amount": 129.9,
"currency": "USD",
"status": "INACTIVE",
"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": null,
"callbackUrl": "https://merchant.com/checkout/success",
"webhookUrl": "https://merchant.com/webhooks/sxpay",
"paymentStatus": "COMPLETED",
"paymentsSummary": {
"total": 2,
"byStatus": {
"PENDING": 1,
"COMPLETED": 1
}
},
"payments": [
{
"id": "01KDKKX5W57ZJGR0RAVERADSZ4",
"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": "01KDKKXTCFV7KVJV14XBM9ASEG",
"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"
}
}