OpenMeter Customers
post/v3/openmeter/customers

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Request body

CreateCustomerRequest required

Customer create request.

name, string required

Display name of the resource.

Between 1 and 256 characters.

description, string

Optional description of the resource.

Maximum 1024 characters.

labels, Labels

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 "_".

key, string required

ExternalResourceKey is a unique string that is used to identify a resource in an external system.

usage_attribution, object

Mapping to attribute metered usage to the customer by the event subject.

primary_email, string

The primary email address of the customer.

currency, string

Currency of the customer. Used for billing, tax and invoicing.

billing_address, object

The billing address of the customer. Used for tax and invoicing.

Example request

{
  "labels": {
    "env": "test"
  },
  "key": "019ae40f-4258-7f15-9491-842f42a7d6ac",
  "currency": "USD",
  "billing_address": {
    "country": "US"
  }
}

Response

Customer created response.

BillingCustomer required

Customers can be individuals or organizations that can subscribe to plans and have access to features.

id, string required

ULID (Universally Unique Lexicographically Sortable Identifier).

name, string required

Display name of the resource.

Between 1 and 256 characters.

description, string

Optional description of the resource.

Maximum 1024 characters.

labels, Labels

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_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

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

deleted_at, string date-time

An ISO-8601 timestamp representation of entity deletion date.

key, string required

ExternalResourceKey is a unique string that is used to identify a resource in an external system.

usage_attribution, object

Mapping to attribute metered usage to the customer by the event subject.

primary_email, string

The primary email address of the customer.

currency, string

Currency of the customer. Used for billing, tax and invoicing.

billing_address, object

The billing address of the customer. Used for tax and invoicing.

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",
  "key": "019ae40f-4258-7f15-9491-842f42a7d6ac",
  "currency": "USD",
  "billing_address": {
    "country": "US"
  }
}

Changes

    • breaking

      added to the invalid_parameters/items response property oneOf list for the response status

    • warning

      added the new key_invalid enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status

    • warning

      added the new unique enum value to the invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule response property for the response status