Stripe
Update Stripe Configuration
Create or update Stripe configuration. Requires organization owner role. Creates or rotates the webhook endpoint in Stripe and stores encrypted secrets.
Authorization
bearerAuth AuthorizationBearer <token>
Use your secret API key as the bearer token
In: header
Request Body
application/json
secretKey*string
Stripe secret key (must start with sk_*)
Match
^sk_[A-Za-z0-9]+publicKey*string
Stripe publishable key (must start with pk_*)
Match
^pk_[A-Za-z0-9]+Response Body
application/json
application/json
application/json
curl -X POST "https://api.getlumen.dev/v1/stripe/config" \ -H "Content-Type: application/json" \ -d '{ "secretKey": "string", "publicKey": "string" }'{
"message": "Stripe configuration updated successfully",
"id": "stripe_3yJQYvdr5X6b2F4T9aLk",
"webhook": {
"id": "we_1PNop8SH4avV0Gsw6DrdSXL9",
"url": "https://api.getlumen.dev/v1/public/webhook/mer_7X2FxYk1zv3p4LqB0sDn",
"secret": "whsec_****************abcd"
}
}{
"error": "Insufficient permissions. Required role: owner. Your role: member"
}{
"error": "Failed to update Stripe configuration: Invalid API Key provided: sk_live_bad"
}