Connect a provider, or replace its signing secret
PUT/ v1/ projects/ {project}/ payment-providers/ {provider}
Saves the provider's webhook signing secret, sealed. Stripe's starts with whsec_; Razorpay's is the secret set on the webhook; Dodo's is the webhook's signing secret, whsec_ and base64.
Path parameters
project
The project's id (
prj_…).provider
The payment provider.
striperazorpaydodoBody
webhook_secret
The provider's webhook signing secret.
Responses
The signing secret was replaced.
project_id
A prefixed ULID; the prefix names the kind (
prj_… a project, org_… an organization).provider
striperazorpaydodoconnected
Whether a signing secret is saved.
webhook_url
The URL to add as the webhook endpoint in the provider's dashboard.
events
The provider's events to send to the URL.
payments_received
Payments the provider reported.
payments_tied
Of those, payments tied to a visitor and counted as revenue.
last_payment_at
When the last payment arrived; null before the first.
connected_at
When the provider was connected; null while it isn't.
updated_at
When the signing secret was last saved; null while not connected.
Example response
1{2"project_id": "prj_01JD8Q2M4W9XK3T7B5",3"provider": "stripe",4"connected": true,5"webhook_url": "https://us.api.vk.viabio.me/v1/projects/prj_01JD7Q8ZK3V5M2N4P6R8T0W1XY/payment-providers/stripe/webhook",6"events": [7"checkout.session.completed",8"payment_intent.succeeded"9],10"payments_received": 1,11"payments_tied": 1,12"last_payment_at": "2026-11-21T09:30:00Z",13"connected_at": "2026-11-21T09:30:00Z",14"updated_at": "2026-11-21T09:30:00Z"15}
Errors
Every error has the same shape: error.code, a message for people and details.
| Status | Code |
|---|---|
not_found | |
validation_error | |
provider_not_configured |