Skip to main content
PUT
/
api
/
v1
/
payments
/
stripe
/
projects
/
{project_id}
/
config
Update Stripe Configuration
curl --request PUT \
  --url https://api.devkit4ai.com/api/v1/payments/stripe/projects/{project_id}/config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "test_secret_key": "<string>",
  "test_publishable_key": "<string>",
  "test_webhook_secret": "<string>",
  "live_secret_key": "<string>",
  "live_publishable_key": "<string>",
  "live_webhook_secret": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_active": true,
  "has_test_credentials": true,
  "has_live_credentials": true,
  "created_at": "2023-11-07T05:31:56Z",
  "test_secret_key_masked": "<string>",
  "test_publishable_key_masked": "<string>",
  "test_webhook_secret_masked": "<string>",
  "live_secret_key_masked": "<string>",
  "live_publishable_key_masked": "<string>",
  "live_webhook_secret_masked": "<string>",
  "test_configured_at": "2023-11-07T05:31:56Z",
  "live_configured_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

project_id
string<uuid>
required

Body

application/json

Request to create/update Stripe configuration.

test_secret_key
string | null
test_publishable_key
string | null
test_webhook_secret
string | null
live_secret_key
string | null
live_publishable_key
string | null
live_webhook_secret
string | null

Response

Successful Response

Stripe configuration response with masked credentials.

id
string<uuid>
required
project_id
string<uuid>
required
is_active
boolean
required
has_test_credentials
boolean
required
has_live_credentials
boolean
required
created_at
string<date-time>
required
test_secret_key_masked
string | null
test_publishable_key_masked
string | null
test_webhook_secret_masked
string | null
live_secret_key_masked
string | null
live_publishable_key_masked
string | null
live_webhook_secret_masked
string | null
test_configured_at
string<date-time> | null
live_configured_at
string<date-time> | null
updated_at
string<date-time> | null