Validate Stripe Credentials
Stripe Configuration
Validate Stripe Credentials
Validate Stripe API credentials by making a test API call
POST
Validate Stripe Credentials
Validate Stripe API credentials before saving them to your configuration. This endpoint makes a test API call to Stripe to verify the credentials are valid and have the necessary permissions.
Authentication
This endpoint requires developer authentication via OAuth2 Bearer Token. You must own the project.
Path Parameters
The unique identifier of the project
Request Body
The Stripe secret key to validate (starts with
sk_test_ or sk_live_)Whether this is a test mode key. Set to
false for live keys.Response
Whether the credentials are valid
Validation result message
Example Request
Validate a test mode secret key:Successful Validation
Failed Validation
Validation Flow
Common Validation Errors
Best Practices
1
Validate Before Saving
Always validate credentials before calling Update Stripe Config.
2
Test Both Modes
Validate test and live keys separately before going to production.
3
Check Mode Matching
Ensure
is_test_mode matches the key type (sk_test_ vs sk_live_).Error Responses
Related Pages
Update Stripe Config
Save validated credentials
Get Stripe Config
View current configuration
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Body
application/json

