viakite
Dashboard

API/Goals and settings/Where the provider sends its payment webhooks

Where the provider sends its payment webhooks

POST/v1/projects/{project}/payment-providers/{provider}/webhook

Public: checked against the connected provider's signing secret (Stripe-Signature, X-Razorpay-Signature, or Dodo's Standard Webhooks headers webhook-id, webhook-timestamp and webhook-signature, within 5 minutes).

Payments are recorded once per payment: Stripe's checkout.session.completed (when paid), payment_intent.succeeded (not an invoice's) and invoice.paid (a subscription's invoices, so every renewal), Razorpay's payment.captured and order.paid, and Dodo's payment.succeeded. When the payment's metadata (Stripe, Dodo; for an invoice, its subscription's) or notes (Razorpay: the payment's or its order's) carry viakite_user_id, the user id the site passed to identify(), or it renews a subscription that did, it becomes a Payment event with the revenue, on the visit that user was last seen in within 30 days.

Subscription changes (Stripe's customer.subscription.created, .updated and .deleted, Dodo's subscription.*) are kept for MRR and churn, with the source of the subscriber's last visit before the subscription started.

Other events are accepted and ignored.

No key neededus.api.vk.viabio.me

Path parameters

projectstringrequired
The project's id (prj_…).
providerstringrequired
The payment provider.
striperazorpaydodo

Body

No fields.

Responses

Done; nothing to return.

No body.

Errors

Every error has the same shape: error.code, a message for people and details.

StatusCode
401invalid_signature
404not_found
422validation_error
413payload_too_large