curl --location --request POST 'https://your-api-server.com' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "5e3d2c6a-1d40-4a54-9e1c-1a2b3c4d5e6f",
"type": "payment_link.created",
"createdAt": "2024-12-05T18:31:00.000Z",
"data": {
"id": "pl_123",
"title": "Premium subscription",
"description": "Annual plan invoice",
"externalReference": "annual-plan-2025",
"status": "ACTIVE",
"previousStatus": null,
"isMultiUse": false,
"amount": 129.9,
"currency": "USD",
"url": "https://app.sxdigitalpay.com/quote/[merchantShortName]/[paymentLinkId]",
"shortUrl": "https://sxpay.me/[paymentLinkShortId]",
"metadata": {
"plan": "premium"
}
}
}'