OpenMeter Customers
Update customer billing data
Changed onUpdate billing data while preserving the current profile selection when billing_profile is omitted or null. Use the dedicated billing profile endpoint to remove the selection.
put/v3/openmeter/customers/{customerId}/billing
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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"
},
"effective_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 response property
became nullable for the status - info
the request property
became nullable - info
added the required property
to the response with the status
- breaking
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking