Create cost basis
Changed onPre-release Endpoint This endpoint is currently in beta and is subject to change.
Create a cost basis for a currency.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
ULID (Universally Unique Lexicographically Sortable Identifier).
Request body
CostBasis create request.
The fiat currency code for the cost basis.
The cost rate for the currency.
An ISO-8601 timestamp representation of the date from which the cost basis is effective. If not provided, it will be effective immediately and will be set to now by the system.
An ISO-8601 timestamp representation of the date until which the cost basis is effective. If provided, it must be later than effective_from. If not provided, it remains effective until superseded.
Example request
{
"fiat_code": "USD",
"effective_from": "2023-01-01T01:01:01.001Z",
"effective_to": "2023-01-01T01:01:01.001Z"
}Response
CostBasis created response.
Describes currency basis supported by billing system.
ULID (Universally Unique Lexicographically Sortable Identifier).
The fiat currency code for the cost basis.
The cost rate for the currency.
An ISO-8601 timestamp representation of the date from which the cost basis is effective. If not provided, it will be effective immediately and will be set to now by the system.
An ISO-8601 timestamp representation of the date until which the cost basis is effective. If provided, it must be later than effective_from. If not provided, it remains effective until superseded.
An ISO-8601 timestamp representation of entity creation date.
Example response
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"fiat_code": "USD",
"effective_from": "2023-01-01T01:01:01.001Z",
"effective_to": "2023-01-01T01:01:01.001Z",
"created_at": "2023-01-01T01:01:01.001Z"
}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