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

List named companies for customer-specific promotions

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

GET /api/v1/pricing/customers

Explicit platform administration only, independent of ordinary company membership. Includes companies without workspaces or currency accounts. Names, company creation timestamps for distinguishing repeated names, and routing-only company references; no balances, payment details, request content, Provider costs or credentials. UUID keyset order; default 50, maximum 100 companies. Pass next_after unchanged; missing cursor returns 409. Each page shares one bounded read snapshot; separate pages do not, so refresh for concurrent inserts before the cursor. No organization, workspace, account or policy is created. Discovery is not selling or spending authorization. Cache-Control no-store.

Operation: listRetailCustomerTargets.

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/pricing/customers" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN"

Location: query. Optional.

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

Location: query. Optional.

JSON
{
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
}

No request body is declared.

Named company page without financial data

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data",
"next_after"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"organization_id",
"organization_name",
"created_at"
],
"properties": {
"organization_id": {
"type": "string",
"format": "uuid"
},
"organization_name": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time",
"description": "Company creation time; not a billing or eligibility event."
}
}
}
},
"next_after": {
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}

Invalid query or page size

Authentication required

Platform administration required

Missing company cursor

Explicit platform administration only, independent of ordinary company membership. Includes companies without workspaces or currency accounts. Names, company creation timestamps for distinguishing repeated names, and routing-only company references; no balances, payment details, request content, Provider costs or credentials. UUID keyset order; default 50, maximum 100 companies. Pass next_after unchanged; missing cursor returns 409. Each page shares one bounded read snapshot; separate pages do not, so refresh for concurrent inserts before the cursor. No organization, workspace, account or policy is created. Discovery is not selling or spending authorization. Cache-Control no-store.

Supported scope: implemented