Create a new billing profile
Changed onCreate a new billing profile.
Billing profiles contain the settings for billing and controls invoice generation. An organization can have multiple billing profiles defined. A billing profile is linked to a specific app. This association is established during the billing profile's creation and remains immutable.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Request body
BillingProfile create request.
Display name of the resource.
Between 1 and 256 characters.
Optional description of the resource.
Maximum 1024 characters.
Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
The name and contact information for the supplier this billing profile represents
The billing workflow settings for this profile
The applications used by this billing profile.
Whether this is the default profile.
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": "P1M"
}
},
"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"
}
}
}Response
BillingProfile created response.
Billing profiles contain the settings for billing and controls invoice generation.
ULID (Universally Unique Lexicographically Sortable Identifier).
Display name of the resource.
Between 1 and 256 characters.
Optional description of the resource.
Maximum 1024 characters.
Labels store metadata of an entity that can be used for filtering an entity list or for searching across entity types.
Keys must be of length 1-63 characters, and cannot start with "kong", "konnect", "mesh", "kic", or "_".
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity last update date.
An ISO-8601 timestamp representation of entity deletion date.
The name and contact information for the supplier this billing profile represents
The billing workflow settings for this profile
The applications used by this billing profile.
Whether this is the default profile.
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": "P1M"
}
},
"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
- breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status - warning
added the new
uniqueenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
- breaking