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

List issued noncash gifts and corrections

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

GET /api/v1/organizations/{organization}/billing/accounts/{currency}/grants/issued

Platform-only immutable gift history, including gifts predating durable preparation. Original issuance remains unchanged; correction is separate. Ordered by immutable creation time and reference. Follow next_before; no mutation or automatic retry. Reasons and actor labels remain platform-only. Internal references are routing metadata, never product labels.

Operation: listIssuedCustomerBalanceGrants.

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/organizations/{organization}/billing/accounts/{currency}/grants/issued" \
-H "Authorization: Bearer $NIU_BEARER_TOKEN"

Location: path. Required.

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

Location: path. Required.

JSON
{
"type": "string",
"pattern": "^[A-Z]{3}$"
}

Location: query. Optional.

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

Location: query. Optional.

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

No request body is declared.

Issued gifts and their correction, if any

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data",
"next_before"
],
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"amount_nanos",
"reason",
"created_at",
"currency",
"correction"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"amount_nanos": {
"type": "string",
"pattern": "^[1-9][0-9]{0,18}$"
},
"reason": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"currency": {
"type": "string"
},
"correction": {
"type": [
"object",
"null"
],
"required": [
"id",
"amount_nanos",
"reason",
"created_at",
"actor_kind",
"actor_label"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"amount_nanos": {
"type": "string",
"pattern": "^[1-9][0-9]{0,18}$"
},
"reason": {
"type": "string"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"actor_kind": {
"type": "string",
"enum": [
"installation",
"operator"
]
},
"actor_label": {
"type": "string"
}
}
}
}
}
},
"next_before": {
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}

Invalid currency or page size

Authentication required

Platform administration required

Cursor is unavailable or out of scope

Platform-only immutable gift history, including gifts predating durable preparation. Original issuance remains unchanged; correction is separate. Ordered by immutable creation time and reference. Follow next_before; no mutation or automatic retry. Reasons and actor labels remain platform-only. Internal references are routing metadata, never product labels.

Supported scope: implemented