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

Read Provider business profile

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

GET /api/v1/providers/{provider}

Requires platform management permission. Returns business display metadata and an integer profile revision. Optional descriptive text and URLs are represented as empty strings when unset. Does not return credentials, procurement prices or qualification evidence. Internal identity is for routing, not display.

Operation: getProviderProfile.

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 GET "$NIU_ORIGIN/api/v1/providers/{provider}" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN"

Location: path. Required.

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

Location: path. Required.

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

No request body is declared.

Saved Provider profile

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"name",
"description",
"website_url",
"logo_url",
"id",
"revision",
"slug"
],
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"website_url": {
"type": "string"
},
"logo_url": {
"type": "string"
},
"id": {
"type": "string",
"format": "uuid"
},
"revision": {
"type": "integer",
"format": "int64"
},
"slug": {
"type": "string",
"maxLength": 48,
"pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
"description": "Stable readable slug for product URLs. Renaming preserves it."
}
}
}
}
}

Invalid identifier

Authentication required

Platform management permission required

Provider missing or deleted

Storage unavailable

Requires platform management permission. Returns business display metadata and an integer profile revision. Optional descriptive text and URLs are represented as empty strings when unset. Does not return credentials, procurement prices or qualification evidence. Internal identity is for routing, not display.

Supported scope: implemented