Sequence diagram of a request between systemsflow-sequence-diagram
Use in Plus UI
npx shadcn@latest add https://blocks.plusui.com/r/flow-sequence-diagram.jsonProduct showcase · 8 variants
← → to step through · + on a thumbnail to compare side by side (up to 3)
/preview/flow-sequence-diagram
Open ↗Default content
{
"eyebrow": "What happens in 1.4 seconds",
"title": "One card payment, from your checkout to your webhook",
"description": "Every arrow is a request you can see in the dashboard, with the same ID from the first call to the last event. Nothing happens off the record.",
"actors": [
{
"name": "Your app",
"icon": "laptop",
"detail": "checkout"
},
{
"name": "Lodestrand",
"icon": "zap",
"detail": "Payments API",
"highlight": true
},
{
"name": "Card network",
"icon": "globe",
"detail": "authorisation"
},
{
"name": "Issuing bank",
"icon": "institution",
"detail": "cardholder's bank"
}
],
"messages": [
{
"from": 0,
"to": 1,
"label": "POST /v1/payments",
"detail": "amount, currency, payment method token",
"time": "0 ms"
},
{
"from": 1,
"to": 2,
"label": "authorise",
"detail": "risk score 12 · 3-D Secure not needed",
"time": "+38 ms"
},
{
"from": 2,
"to": 3,
"label": "authorise",
"detail": "routed to the issuer",
"time": "+61 ms"
},
{
"from": 3,
"to": 1,
"label": "approved",
"detail": "auth code 4F2K91",
"time": "+812 ms"
},
{
"from": 1,
"to": 0,
"label": "201 Created",
"detail": "status: succeeded",
"time": "+840 ms"
},
{
"from": 1,
"to": 0,
"label": "payment.succeeded",
"detail": "signed webhook to your endpoint",
"time": "+1.4 s"
}
],
"note": "Median for card payments in the EU over the last 30 days. The same payment ID, pay_9QmT4x, appears in every step.",
"link": {
"label": "Read the payments guide",
"href": "#"
},
"controls": {
"play": "Play",
"replay": "Replay"
}
}