Regoria API docs

checkout.completed

A checkout session was paid: its session, order, subscription and customer together.

Sent as POST to each of your endpoints subscribed to checkout.completed. Verify X-Webhook-Signature before trusting the body; X-Webhook-Delivery is the same across retries of one event, so use it to deduplicate.

Headers

Header Value
X-Webhook-Signature t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with the endpoint secret>. Recompute over the raw body, compare in constant time and reject when |now - t| is above 300 seconds.
X-Webhook-Event The event type, the same as type in the body.
X-Webhook-Delivery The event id (evt_…), stable across retries and replays of the same event.

Payload

The body is the delivery envelope: id, type (checkout.completed), version, occurred_at, merchant_id and data.

Field Type Required Description
data.session_id string yes
data.order_id string yes
data.merchant_id string yes
data.buyer_email string yes
data.buyer_id string or null no
data.billing_address object yes
data.name string or null no
data.save_payment_method boolean no
data.subscription_id string or null no the subscription the paid session starts, reserved at Pay; null without a plan line
data.customer_id string or null no the customer's cus_ id; null when the session has no customer

Example

{
    "id": "evt_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
    "type": "checkout.completed",
    "version": 1,
    "occurred_at": "2026-10-21T14:05:00.000Z",
    "merchant_id": "mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
    "data": {
        "session_id": "cks_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "order_id": "ord_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "merchant_id": "mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "buyer_email": "buyer@example.test",
        "buyer_id": null,
        "billing_address": {
            "line1": "1 Main St",
            "city": "Austin",
            "state": "TX",
            "postal_code": "78701",
            "country": "US"
        },
        "name": "Jane Buyer",
        "save_payment_method": true,
        "subscription_id": "sub_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "customer_id": "cus_01HZX5Y3V8N2K7QJ4R9T6B3M1C"
    }
}

Verify the signature before trusting the body and deduplicate on X-Webhook-Delivery: see Webhooks.