---
title: "Update customer billing data"
method: PUT
path: "/v3/openmeter/customers/{customerId}/billing"
tags: ["OpenMeter Customers"]
---

# Update customer billing data

`PUT /v3/openmeter/customers/{customerId}/billing`

## Path parameters

- `customerId` string, required — ULID (Universally Unique Lexicographically Sortable Identifier).

## Request body

- UpsertCustomerBillingDataRequest — CustomerBillingData upsert request.
  - `billing_profile` object — The billing profile for the customer. If not provided, the default billing profile will be used.
    - `id` string, required — The ID of the billing profile.
  - `app_data` object — App customer data.
    - `stripe` object — Used if the customer has a linked Stripe app.
      - `customer_id` string — The Stripe customer ID used.
      - `default_payment_method_id` string — The Stripe default payment method ID.
      - `labels` object — Labels for this Stripe integration on the customer.
    - `external_invoicing` object — Used if the customer has a linked external invoicing app.
      - `labels` object — Labels for this external invoicing integration on the customer.

## Response `200`

CustomerBillingData upsert response.

- BillingCustomerData — Billing customer data.
  - `billing_profile` object — The billing profile for the customer. If not provided, the default billing profile will be used.
    - `id` string, required — The ID of the billing profile.
  - `app_data` object — App customer data.
    - `stripe` object — Used if the customer has a linked Stripe app.
      - `customer_id` string — The Stripe customer ID used.
      - `default_payment_method_id` string — The Stripe default payment method ID.
      - `labels` object — Labels for this Stripe integration on the customer.
    - `external_invoicing` object — Used if the customer has a linked external invoicing app.
      - `labels` object — Labels for this external invoicing integration on the customer.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `410` — Gone

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/revisions/b576ea92fca2/schema)
