OpenMeter Customers

Update customer billing data

Changed on
put/openmeter/customers/{customerId}/billing

Request

  • Base URL: http://localhost:8888/api/v3
  • URL: http://localhost:8888/api/v3/openmeter/customers/{customerId}/billing
  • Auth: none declared

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"
      }
    }
  }
}

Changes

    • breaking

      the ///// request property type changed from no type to object

    • breaking

      the ///// request property type changed from no type to object

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the ///// response's property type changed from no type to object for status

    • breaking

      the ///// response's property type changed from no type to object for status

    • info

      the request property ///// became nullable

    • info

      the request property ///// became nullable