SX Digital Pay
  1. Webhooks
SX Digital Pay
  • Getting started
  • Authentication/Webhook Validation
  • PaymentLinks
    • Create single-use payment link
      POST
    • List single-use payment links
      GET
    • Get link details
      GET
  • Webhooks
    • Link created
    • Link status changed
    • Link paymentStatus changed
  • Schemas
    • PaymentLinkStatus
    • PaymentLinkPaymentStatus
    • PaymentStatus
    • PaymentMethod
    • PaymentLinkBase
    • PaymentLinkSummary
    • PaymentLinkWithWebhook
    • PaymentLinkWithPayments
    • PaymentLinkCreated
    • PaymentsSummary
    • CreatePaymentLinkRequest
    • PaymentCustomer
    • PaymentQuote
    • Payment
    • Pagination
    • Error
    • WebhookLinkPayload
    • WebhookPaymentPayload
    • WebhookLinkEventData
    • WebhookLinkPaymentStatusEventData
    • WebhookEvent
  1. Webhooks

Link status changed

Webhook
POST
payment_link.status_changed
Sent when a link status changes (e.g., ACTIVE -> INACTIVE or EXPIRED).

Request

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://your-api-server.com' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": "7b1e3e7f-1a23-4c55-8ef1-b12cd3fae7c1",
    "type": "payment_link.status_changed",
    "createdAt": "2024-12-05T18:32:12.000Z",
    "data": {
        "id": "pl_123",
        "externalReference": "annual-plan-2025",
        "status": "INACTIVE",
        "previousStatus": "ACTIVE",
        "isMultiUse": false,
        "amount": 129.9,
        "currency": "USD",
        "url": "https://app.sxdigitalpay.com/quote/[merchantShortName]/[paymentLinkId]",
        "shortUrl": "https://sxpay.me/[paymentLinkShortId]"
    }
}'
Response Response Example
{}
Modified at 2025-12-06 23:52:32
Previous
Link created
Next
Link paymentStatus changed
Built with