OpenMeter Billing Settings
Update a billing profile
Changed onUpdate a billing profile.
put/openmeter/profiles/{id}
Request
- Base URL: http://localhost:8888/api/v3
- URL: http://localhost:8888/api/v3/openmeter/profiles/{id}
- Auth: none declared
Path parameters
idstring required
ULID (Universally Unique Lexicographically Sortable Identifier).
Example:01G65Z755AFWAKHE12NY0CQ9FH
Request body
Example request
{
"labels": {
"env": "test"
},
"supplier": {
"key": "019ae40f-4258-7f15-9491-842f42a7d6ac",
"addresses": {
"billing_address": {
"country": "US"
}
}
},
"workflow": {
"collection": {
"alignment": {
"recurring_period": {
"anchor": "2023-01-01T01:01:01.001Z",
"interval": "P1Y"
}
},
"interval": "P1D"
},
"invoicing": {
"draft_period": "P1D"
},
"payment": {
"due_after": "P30D"
},
"tax": {
"default_tax_config": {
"stripe": {
"code": "txcd_10000000"
},
"tax_code_id": "01G65Z755AFWAKHE12NY0CQ9FH",
"tax_code": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
}
}
}
}Response
BillingProfile updated response.
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",
"supplier": {
"key": "019ae40f-4258-7f15-9491-842f42a7d6ac",
"addresses": {
"billing_address": {
"country": "US"
}
}
},
"workflow": {
"collection": {
"alignment": {
"recurring_period": {
"anchor": "2023-01-01T01:01:01.001Z",
"interval": "P1Y"
}
},
"interval": "P1D"
},
"invoicing": {
"draft_period": "P1D"
},
"payment": {
"due_after": "P30D"
},
"tax": {
"default_tax_config": {
"stripe": {
"code": "txcd_10000000"
},
"tax_code_id": "01G65Z755AFWAKHE12NY0CQ9FH",
"tax_code": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
}
}
},
"apps": {
"tax": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"invoicing": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
},
"payment": {
"id": "01G65Z755AFWAKHE12NY0CQ9FH"
}
}
}Changes
- info
added the new optional request property
/////// - info
added the optional property
///////to the response with the status
- info
- info
api tag
OpenMeter Billing Settingsadded - info
api tag
OpenMeter Billingremoved
- info