FlowEvents
Payment link events
What data you get for payment_link.created and payment_link.updated.
payment_link.createdfires when you create a payment link.payment_link.updatedfires when you update one, and when a link with a limit turns itself off after its last sale.
Each event arrives as an event object.
data.object is the payment link.
{
"id": "plink_01J9ABCDEFGHJKMNPQRSTV",
"object": "payment_link",
"active": false,
"inactive_message": "Sold out",
"url": "https://pay.paycose.com/buy?link=Hk3x9QbLm2Vt7Rz4Pw8Yc1Nd",
"currency": "THB",
"allow_promotion_codes": false,
"payment_method_types": null,
"after_completion": { "type": "hosted_confirmation", "hosted_confirmation": { "custom_message": "Thanks!" } },
"customer_creation": "if_required",
"restrictions": { "completed_sessions": { "count": 100, "limit": 100 } }
}