v61

latestOpenAPI 3.1.0Apache 2.0raw.githubusercontent.com2026-08-018131,3812.6 MB
OpenMeter Customers

Update credit grant external settlement status

Pre-release Endpoint This endpoint is currently in beta and is subject to change.

Update the payment settlement status of an externally funded credit grant.

Use this endpoint to synchronize the payment state of an external payment with the system so that revenue recognition and credit availability work as expected.

post/v3/openmeter/customers/{customerId}/credits/grants/{creditGrantId}/settlement/external

Path parameters

customerIdstring required

ULID (Universally Unique Lexicographically Sortable Identifier).

Example:01G65Z755AFWAKHE12NY0CQ9FH
creditGrantIdstring required

ULID (Universally Unique Lexicographically Sortable Identifier).

Example:01G65Z755AFWAKHE12NY0CQ9FH

Request body

status'pending' | 'authorized' | 'settled' required

The new payment settlement status.

Response

CreditGrant updated response.

idstring required

ULID (Universally Unique Lexicographically Sortable Identifier).

namestring required

Display name of the resource.

Between 1 and 256 characters.

descriptionstring

Optional description of the resource.

Maximum 1024 characters.

labelsLabels

Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.

Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".

created_atstring date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_atstring date-time required

An ISO-8601 timestamp representation of entity last update date.

deleted_atstring date-time

An ISO-8601 timestamp representation of entity deletion date.

funding_method'none' | 'invoice' | 'external' required

Funding method of the grant.

currencystring required

Fiat or custom currency code.

amountstring required

Granted credit amount.

priorityinteger

Draw-down priority of the grant. Lower values have higher priority.

effective_atstring date-time

The timestamp when the credit grant becomes effective.

Defaults to the current date and time.

keystring

Idempotency key for the credit grant creation request.

When provided, reusing the same key returns an HTTP 409 Conflict instead of creating a duplicate grant, which makes create requests safe to retry.

expires_atstring date-time

The timestamp when the credit grant expires.

Calculated from the grant effective time and expires_after if provided.

voided_atstring date-time

Timestamp when the grant was voided.

status'pending' | 'active' | 'expired' | 'voided' required

Current lifecycle status of the grant.

Example response

{
  "id": "01G65Z755AFWAKHE12NY0CQ9FH",
  "labels": {
    "env": "test"
  },
  "created_at": "2023-01-01T01:01:01.001Z",
  "updated_at": "2023-01-01T01:01:01.001Z",
  "deleted_at": "2023-01-01T01:01:01.001Z",
  "currency": "USD",
  "purchase": {
    "currency": "USD"
  },
  "tax_config": {
    "tax_code": {
      "id": "01G65Z755AFWAKHE12NY0CQ9FH"
    }
  },
  "invoice": {
    "id": "01G65Z755AFWAKHE12NY0CQ9FH",
    "line": {
      "id": "01G65Z755AFWAKHE12NY0CQ9FH"
    }
  },
  "filters": {
    "features": [
      "input_tokens",
      "output_tokens"
    ]
  },
  "effective_at": "2023-01-01T01:01:01.001Z",
  "key": "019ae40f-4258-7f15-9491-842f42a7d6ac",
  "expires_at": "2023-01-01T01:01:01.001Z",
  "voided_at": "2023-01-01T01:01:01.001Z"
}