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

Revoke the current Provider business qualification

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

POST /api/v1/providers/{provider}/qualification/revoke

Platform administration required. Appends an immutable reason digest and audit, clears the current business review, and pauses all Provider offers while clearing their current reviews atomically. Missing/deleted Provider or absence of a current review conflicts, including repeated revocation. Does not erase historical reviews or change existing request charges or earnings.

Operation: revokeProviderBusinessQualification.

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/providers/{provider}/qualification/revoke" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN" \
-H 'Content-Type: application/json' \
--data @request.json

Location: path. Required.

JSON
{
"type": "string",
"format": "uuid"
}

Required.

JSON
{
"type": "object",
"additionalProperties": false,
"required": [
"reason_sha256"
],
"properties": {
"reason_sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$",
"description": "SHA-256 digest of independently reviewed evidence; lowercase hexadecimal. Evidence content is not uploaded by this operation."
}
}
}

Qualification transaction committed.

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"qualification_status"
],
"properties": {
"qualification_status": {
"type": "string",
"enum": [
"revoked"
]
}
}
}
}
}

Invalid path UUID, malformed JSON, evidence digest, expiry or review metadata.

Missing or invalid administrator authentication.

Authenticated principal lacks platform management permission.

Missing resource or qualification/revision prerequisites no longer hold.

Request is not JSON.

JSON has missing, unknown or incorrectly typed fields.

Unexpected internal persistence failure.

Persistence temporarily unavailable; no successful qualification is confirmed.

Platform administration required. Appends an immutable reason digest and audit, clears the current business review, and pauses all Provider offers while clearing their current reviews atomically. Missing/deleted Provider or absence of a current review conflicts, including repeated revocation. Does not erase historical reviews or change existing request charges or earnings.

Supported scope: implemented