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.
Authentication
Section titled “Authentication”Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.
[ { "bearerAuth": [] }]HTTP request
Section titled “HTTP request”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.
curl --fail-with-body -X GET "$NIU_ORIGIN/api/v1/organizations/{organization}/billing/accounts/{currency}/grants/issued" \ -H "Authorization: Bearer $NIU_BEARER_TOKEN"Parameters
Section titled “Parameters”organization
Section titled “organization”Location: path. Required.
{ "type": "string", "format": "uuid"}currency
Section titled “currency”Location: path. Required.
{ "type": "string", "pattern": "^[A-Z]{3}$"}before
Section titled “before”Location: query. Optional.
{ "type": "string", "format": "uuid"}Location: query. Optional.
{ "type": "integer", "minimum": 1, "maximum": 100, "default": 25}Request body
Section titled “Request body”No request body is declared.
Responses
Section titled “Responses”HTTP 200
Section titled “HTTP 200”Issued gifts and their correction, if any
Content type: application/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" } }}HTTP 400
Section titled “HTTP 400”Invalid currency or page size
HTTP 401
Section titled “HTTP 401”Authentication required
HTTP 403
Section titled “HTTP 403”Platform administration required
HTTP 409
Section titled “HTTP 409”Cursor is unavailable or out of scope
Behavior and supported scope
Section titled “Behavior and supported 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