Expired Payment Link
Process payment_link.expired webhooks and update expired payment links.
Handle payment_link.expired Events
payment_link.expired EventsUse the payment_link.expired webhook to identify payment links that have reached their expiration time.
Amwal sends this event when a payment link reaches its configured expiry_date. Use it to update the related order or payment-link record in your system.
Process the event
- Read the payment link
idandorder_idfrom the payload. - Find the related order or payment-link record in your system.
- Update the record to show that the payment link has expired.
- Return HTTP
200after your system accepts the event.
Example payload
The following example uses dummy data. Do not include real customer details, merchant IDs, or callback URLs in documentation.
{
"id": "11111111-2222-4333-8444-555555555555",
"event": "payment_link.expired",
"title": null,
"amount": "389.00000",
"status": "Expired",
"order_id": "ORDER-1001",
"single_use": true,
"description": null,
"expiry_date": "2026-03-30T13:21:36.274000+00:00",
"merchant_id": "aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee",
"callback_url": "https://store.example.com/payment/callback",
"client_email": "[email protected]",
"client_last_name": "Customer",
"environment_type": "SANDBOX",
"client_first_name": "Example",
"client_phone_number": "+966500000000"
}Updated 1 day ago
Did this page help you?
