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

Discover named customer accounts for platform financial administration

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

GET /api/v1/platform/customer-accounts

Explicit platform administration only, independent of ordinary company membership. Named companies and their current currency balance summaries; companies without accounts have an empty accounts array. No payment references, transactions, customer request content, Provider costs or credentials. Shares customer balance arithmetic: available equals posted balance plus approved credit minus outstanding request liability. Approval is not a cash receipt. UUID references are routing-only, never display labels. Company UUID keyset order; limit defaults to 50, maximum 100 companies. Pass next_after unchanged as after; missing cursor returns 409. Each page has one bounded read snapshot, separate pages do not share it; concurrent inserts before the cursor require refreshing. No funds, accounts or policies are created. Cache-Control no-store.

Operation: listPlatformCustomerAccounts.

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/platform/customer-accounts" \
-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 account page

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data",
"next_after"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"organization_id",
"organization_name",
"accounts"
],
"properties": {
"organization_id": {
"type": "string",
"format": "uuid"
},
"organization_name": {
"type": "string"
},
"accounts": {
"type": "array",
"items": {
"type": "object",
"required": [
"currency",
"balance_nanos",
"reserved_nanos",
"outstanding_nanos",
"available_nanos",
"credit_limit_nanos",
"policy_revision",
"warning_threshold_nanos",
"low_balance",
"posted_credit_exhausted"
],
"properties": {
"currency": {
"type": "string"
},
"balance_nanos": {
"type": "string"
},
"reserved_nanos": {
"type": "string"
},
"outstanding_nanos": {
"type": "string"
},
"available_nanos": {
"type": "string"
},
"credit_limit_nanos": {
"type": "string"
},
"policy_revision": {
"type": "string"
},
"warning_threshold_nanos": {
"type": [
"string",
"null"
]
},
"low_balance": {
"type": "boolean"
},
"posted_credit_exhausted": {
"type": "boolean"
}
}
}
}
}
}
},
"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. Named companies and their current currency balance summaries; companies without accounts have an empty accounts array. No payment references, transactions, customer request content, Provider costs or credentials. Shares customer balance arithmetic: available equals posted balance plus approved credit minus outstanding request liability. Approval is not a cash receipt. UUID references are routing-only, never display labels. Company UUID keyset order; limit defaults to 50, maximum 100 companies. Pass next_after unchanged as after; missing cursor returns 409. Each page has one bounded read snapshot, separate pages do not share it; concurrent inserts before the cursor require refreshing. No funds, accounts or policies are created. Cache-Control no-store.

Supported scope: implemented