v52

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-03101355448.4 KB
OpenMeter Customers

Update customer billing data

put/openmeter/customers/{customerId}/billing

Path parameters

customerIdstring required

ULID (Universally Unique Lexicographically Sortable Identifier).

Example:01G65Z755AFWAKHE12NY0CQ9FH

Request body

Example request

{
  "billing_profile": {
    "id": "01G65Z755AFWAKHE12NY0CQ9FH"
  },
  "app_data": {
    "stripe": {
      "customer_id": "cus_1234567890",
      "default_payment_method_id": "pm_1234567890",
      "labels": {
        "env": "test"
      }
    },
    "external_invoicing": {
      "labels": {
        "env": "test"
      }
    }
  }
}

Response

CustomerBillingData upsert response.

Example response

{
  "billing_profile": {
    "id": "01G65Z755AFWAKHE12NY0CQ9FH"
  },
  "app_data": {
    "stripe": {
      "customer_id": "cus_1234567890",
      "default_payment_method_id": "pm_1234567890",
      "labels": {
        "env": "test"
      }
    },
    "external_invoicing": {
      "labels": {
        "env": "test"
      }
    }
  }
}