VipterHelp Center

Receive events in your system (webhooks)

Get a signed notice on your server for every sale, refund, subscription or new customer, with automatic retries and a delivery history.

Admin or OwnerAll plansVerified on Nov 18, 2026

A webhook is an address in your system that Vipter calls when something happens in the store: an approved sale, a refund, a cancelled subscription. Each call is a POST with the data in JSON and a signature that proves it came from Vipter. This page is for whoever will code the receiving end, or for you to pass on to them. Everything it does in the dashboard can also be done in code, under Webhook endpoints in the API.

Before you start

  • An https:// address in your system that accepts POST and answers with a 2xx code within 10 seconds.
  • The Admin or Owner role in the Vipter project.

Step 1: add the endpoint

  1. In the Vipter dashboard, open GeneralIntegrationsAutomationsWebhooks.
  2. Click Add endpoint.
  3. Fill in the numbered fields:
Add endpoint form with URL, description and the list of event types numbered
#FieldWhat to paste
1Endpoint URLRequiredThe address that will receive the events. It must start with https://.
2DescriptionOptionalA reminder for you, such as "Store ERP". Up to 200 characters.
3Event typesOptionalTick only the events your system uses. With none ticked, the endpoint receives all of them, including any created in the future.
  1. Choose the Event version. There are two options, and each one is a different catalog of names:

    • 2026-09-01: the 23 events with Vipter's original names (order.paid, subscription.renewed), which this page lists below.
    • 2026-11-01: Stripe-style names (invoice.paid, customer.subscription.updated) and the events of checkout sessions created through the API (checkout.session.completed). The objects come in the same format as the API. It is the recommended version for a new integration. See the 2026-11-01 catalog.

    An endpoint receives only the events of its version's catalog, and the version does not change after creation. A system that already receives the original events keeps receiving them; to move to the other catalog, create a new endpoint.

  2. Click Create endpoint.

An endpoint's events cannot be edited from the dashboard. To change the list, create a new endpoint and remove the old one, or change enabled_events through the API, under Update an endpoint.

In an endpoint's type list, a wildcard also works: order.* means every event that starts with order., and * means all of them, the same as ticking none. The filter compares each event with the ticked types and with the wildcards in the list.

Step 2: store the signing secret

Right after you create it, Vipter shows Your signing secret: a value that starts with whsec_. Store it now. It is shown only once; you can rotate it later.

Copy the secret and store it in your system, for example in an environment variable. Once you close the window, the endpoint only shows the end of the secret.

Treat the secret like a password

Anyone with the secret can forge events that pass verification. Do not put the secret in source code or send it by e-mail. If it leaks, generate a new one with the Rotate secret button.

Step 3: verify the signature

Each call carries these headers:

HeaderContent
Vipter-Signaturet=<Unix time in seconds>,v1=<signature>. During a secret rotation, a second v1= is included.
Vipter-Event-IdThe event ID, such as evt_….
Vipter-Event-TypeThe event type, such as order.paid.
User-AgentVipter-Webhooks/1.0

The signature is a hex-encoded HMAC SHA-256, computed with your secret over the text <t>.<body>: the value of t, a dot and the request body exactly as it arrived. To check it:

  1. Read the raw body, before any conversion to JSON. A reformatted body produces a different signature.
  2. Recompute the HMAC with your secret and compare it with each v1= in the header. One match is enough.
  3. Reject calls with a t that is too old. The example below accepts up to 5 minutes of difference.

The same code appears in the dashboard, under Verification snippet (Node.js):

import { createHmac, timingSafeEqual } from 'node:crypto';

export function verifyVipterSignature(rawBody, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')));
  const t = Number(parts.t);
  if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
  const expected = createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  return header.split(',').filter((p) => p.startsWith('v1=')).some((p) => {
    const given = Buffer.from(p.slice(3), 'hex');
    return given.length === expected.length / 2 && timingSafeEqual(given, Buffer.from(expected, 'hex'));
  });
}

An Express example that takes the raw body and answers right away:

import express from 'express';

const app = express();

app.post('/webhooks/vipter', express.raw({ type: 'application/json' }), (req, res) => {
  const raw = req.body.toString('utf8');
  if (!verifyVipterSignature(raw, req.get('Vipter-Signature') ?? '', process.env.VIPTER_WEBHOOK_SECRET)) {
    return res.status(400).send('invalid signature');
  }
  const event = JSON.parse(raw);
  // Store event.id and skip it if it was already processed.
  res.sendStatus(200);
  // Process event.type and event.data.object after responding.
});

Step 4: send a test event

  1. With the endpoint active, click Send test event on its card.
  2. You see Test event queued. and the delivery shows up under Recent deliveries.

The test is a customer.created event with a fictitious customer and "test": true inside data.object. It reaches that endpoint only, in the format of its version, even if customer.created is not among the ticked events; the other endpoints do not receive it. It does not trigger automations, e-mails or invoices. Ask your developer to discard events with "test": true before storing anything. In code, the same test is POST /v1/webhook_endpoints/{id}/test; see Send a test event.

It worked if

The delivery shows up under Recent deliveries with the status succeeded and the HTTP code your system answered, and your system accepted the signature.

Event format

Every event has the same envelope. The object in data.object depends on the type.

{
  "id": "evt_4f1c2a9b0d3e5f6a7b8c9d0e",
  "object": "event",
  "type": "order.paid",
  "created": 1790000000,
  "livemode": true,
  "api_version": "2026-09-01",
  "data": {
    "object": {
      "object": "order",
      "id": "…",
      "status": "…",
      "total_amount": 19700,
      "currency": "BRL"
    }
  }
}
  • id is unique per event. Use it to ignore repeats: a resent delivery arrives with the same id.
  • Money amounts come in cents, such as 19700 for R$ 197.00.
  • Order ("object": "order"): id, customer_id, customer_email, subscription_id, status, total_amount, currency, refunded_amount, order_type, recurrence, offer_id, payment_method, provider_slug, paid_at, items, external_order_id, status_source, quick_link, composition_status, created_at, updated_at. On order.paid, also downloads, with the buyer's download links when the product has files. On quick link orders, quick_link carries the link's id, code and title, and composition_status says whether the order is waiting to be composed (pending) or already has its products (composed); on every other order both are null. On order.shipped and order.delivered, also the shipment: fulfillment_status, shipped_at, delivered_at, carrier, tracking_code, tracking_url and fulfillment_source (who reported it: team, carrier or erp). In stores with the affiliate program, affiliate carries the id, code and source of who brought the sale, or null.
  • Subscription ("object": "subscription"): id, customer_id, customer_email, customer_name, status, current_offer_id, offer_name, product_id, product_name, billing_cycle, currency, current_amount, current_period_start, current_period_end, next_billing_at, trial_start, trial_end, cycles_completed, cycle_limit, cancel_at_period_end, cancelled_at, cancellation_reason, payment_instrument_id, created_at, updated_at.
  • Customer ("object": "customer"): id, email, name, phone, document_type, metadata, created_at, updated_at.
  • Abandoned checkout ("object": "checkout_abandonment"): the buyer (customer), the offer, the product, the quantity and the amount.

Event list

These are the events of version 2026-09-01. The names of version 2026-11-01, and the mapping between the two, are in Event catalog.

EventWhen it is sent
order.paidA payment was approved. This also covers subscription renewals, with recurrence: "subsequent", and sales marked as paid by the team, with status_source: "manual".
order.failedA charge was declined.
order.refundedAn order was refunded.
order.partially_refundedPart of an order was refunded.
order.charged_backThe buyer disputed the purchase with their bank (chargeback).
order.composedThe team said which products a quick link order sold. The order comes with the new lines in items. See Compose a quick link order.
order.shippedAn order with delivery was marked as shipped, with the carrier and the tracking code. A new shipment of the same order, with another tracking code, generates another event. See Mark shipping and delivery.
order.deliveredThe shipped order was marked as delivered.
subscription.createdA subscription was created.
subscription.renewedA subscription was renewed.
subscription.dunningThe renewal charge failed and the subscription is in dunning.
subscription.reactivatedA subscription became active again.
subscription.upgradedThe subscriber moved to a more expensive plan.
subscription.downgradedThe subscriber moved to a cheaper plan.
subscription.payment_method_changedThe subscription's card was changed.
subscription.pausedThe subscription was paused.
subscription.resumedThe paused subscription resumed.
subscription.cancelledThe subscription was cancelled.
subscription.expiredThe subscription ended.
customer.createdA new customer was added.
customer.updatedA customer's details changed.
checkout.abandonedThe buyer filled in their details at checkout and did not pay. It is sent after a period with no activity, and only if they did not buy in the meantime.
checkout.recoveredAn abandoned checkout ended in a purchase.
affiliate.appliedSomeone asked to join the affiliate program.
affiliate.approvedAn affiliate became active.
commission.createdAn affiliate's order was paid and the commission came to exist.
commission.releasedThe commission passed the release period and is owed for the first time.
commission.paidThe store recorded the payment of the commission.
commission.reversedA refund or chargeback took the commission back, in full or in part.
commission.reinstatedA reversed or cancelled commission counts again.
commission.cancelledThe store cancelled the commission.

Deliveries and retries

A delivery succeeds when your system answers with a 2xx code within 10 seconds. Any other response, including redirects, or no response at all counts as a failure.

After a failure, Vipter tries again, up to 8 attempts in total. The wait between them is 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 24 hours and 48 hours. After the eighth attempt, the delivery gets the status exhausted.

Under Recent deliveries, each row shows the Event, the Status with the HTTP code and the error, the Attempts and the Last attempt. Deliveries that did not succeed have the Resend button, which restarts the attempts from zero. In code, each endpoint's deliveries are under GET /v1/webhook_endpoints/{id}/deliveries, and an event can be resent with POST /v1/events/{id}/resend; see Events in the API reference.

Endpoint turned off automatically

If 20 deliveries in a row run out of attempts, Vipter turns the endpoint off and shows the reason on its card. A successful delivery resets that count. Fix your system and turn the endpoint back on with the Active switch.

While an endpoint is off, new events are not kept for it. Use the orders and subscriptions lists in the dashboard to check what happened during that period.

Rotate the secret or remove the endpoint

  • Rotate secret: generates a new secret and shows it only once. Rotate the secret? The previous one keeps working for 24 hours. During that period, each call carries both signatures, so your system can switch secrets without losing events.
  • Remove: Remove this endpoint and its delivery history?

Through the API, they are POST /v1/webhook_endpoints/{id}/rotate_secret and DELETE /v1/webhook_endpoints/{id}.

Common problems

  • Enter an https:// URL

    The address does not start with https:// or has a typo. http:// addresses are not accepted.

  • The signature never matches

    The body was converted to JSON before verification, or the secret belongs to another endpoint. Verify the raw body and check the end of the secret on the endpoint's card.

  • Deliveries fail with timeout

    Your system takes more than 10 seconds to answer. Answer 200 as soon as you validate the signature and process the event afterwards.

  • The test button is disabled

    The endpoint is disabled. Turn on its Active switch.

What to do next

  • For the full format of each event, the envelope and the ordering and repeat rules, see the Developers section.
  • To send sales to an ad platform instead of your own system, see how conversion tracking works.
  • Connect a ready-made member area, such as MemberKit, with no coding.
Was this page helpful?

On this page

Language