Skip to main content
POST
Connect (or replace) a payment gateway

Errors

Errors use the standard envelope — see Errors.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Body

application/json
provider
enum<string>
required
Available options:
stripe,
razorpay
secret_key
string
required
mode
enum<string>
Available options:
test,
live
public_key
string

Razorpay key_id / Stripe publishable key (not secret).

webhook_secret
string

Optional; can be set later once the webhook URL is known.

Response

Connected.

data
object

Secret-free projection of a BYO gateway connection.