Regoria API docs

payment_method.updated

A saved card was updated (expiry or account updater).

Sent as POST to each of your endpoints subscribed to payment_method.updated. 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 (payment_method.updated), version, occurred_at, merchant_id and data.

Field Type Required Description
data.payment_method_id string yes
data.merchant_id string yes
data.buyer_id string or null no
data.customer_ref string or null no
data.buyer_email string or null no
data.brand string yes
data.bin string yes
data.last4 string yes
data.exp_month integer yes
data.exp_year integer yes
data.initial_txn_id string or null no
data.agreements array of string (recurring, unscheduled) no
data.recurring_consent_acceptance_id string or null no
data.unscheduled_consent_acceptance_id string or null no
data.status string (active, replaced, deleted) yes
data.replaces_id string or null no

Example

{
    "id": "evt_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
    "type": "payment_method.updated",
    "version": 1,
    "occurred_at": "2026-10-21T14:05:00.000Z",
    "merchant_id": "mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
    "data": {
        "payment_method_id": "pm_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "merchant_id": "mer_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "buyer_id": "buy_01HZX5Y3V8N2K7QJ4R9T6B3M1C",
        "buyer_email": "buyer@example.test",
        "brand": "visa",
        "bin": "411111",
        "last4": "1111",
        "exp_month": 12,
        "exp_year": 2030,
        "initial_txn_id": "12649462316",
        "status": "active",
        "replaces_id": null
    }
}

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