Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

Check the configured Stripe account

Generated from the checked-in source. Do not edit this reference by hand.

POST /api/v1/platform/payments/stripe/verification

Installation administrator write permission required. Performs a bounded read-only Stripe account check and persists evidence for the current configuration for ten minutes. Does not create checkout, charge money, or assert callback verification. Transient check failure preserves prior evidence only until its original expiry; credential rejection or disabled charges revokes it immediately. Mock mode is excluded. Merchant errors are sanitized.

Operation: verifyStripeAccount.

Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.

JSON
[
{
"bearerAuth": []
}
]

Set NIU_ORIGIN to your installation origin (without /v1). Replace path, query and header placeholders with the required values. Query examples use curl 7.87 or newer to encode values with --url-query. Use the credential scope described above; a bearer token must have the authority required by this operation.

Shell
curl --fail-with-body -X POST "$NIU_ORIGIN/api/v1/platform/payments/stripe/verification" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN"

No path, query, or header parameters are declared.

No request body is declared.

Account check result

Content type: application/json.

JSON
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"result": {
"type": "string",
"enum": [
"account_enabled",
"account_disabled",
"credentials_rejected",
"check_unavailable"
]
}
}
}
}
}

Real Stripe checkout is not configured

Installation administrator required

Installation administrator write permission required. Performs a bounded read-only Stripe account check and persists evidence for the current configuration for ten minutes. Does not create checkout, charge money, or assert callback verification. Transient check failure preserves prior evidence only until its original expiry; credential rejection or disabled charges revokes it immediately. Mock mode is excluded. Merchant errors are sanitized.

Supported scope: implemented