Get custom currency
Changed onPre-release Endpoint This endpoint is currently in beta and is subject to change.
Get a custom 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).
Response
CurrencyCustom response.
Describes custom currency.
The type of the currency.
The name of the currency. It should be a human-readable string that represents the name of the currency, such as "US Dollar" or "Euro".
The symbol of the currency. It should be a string that represents the symbol of the currency, such as "$" for US Dollar or "€" for Euro.
The precision of the currency. It should be a number that represents the number of decimal places used for the currency, such as 2 for US Dollar or Euro.
The decimal mark for the currency. It should be a string that represents the decimal mark of the currency, such as "." for US Dollar or "," for Euro.
The thousand separator for the currency. It should be a string that represents the thousand separator of the currency, such as "," for US Dollar or "." for Euro.
ULID (Universally Unique Lexicographically Sortable Identifier).
Custom currency code. It should be a unique code but not conflicting with any existing fiat currency codes.
An ISO-8601 timestamp representation of the custom currency creation date.
The list of active and scheduled cost bases for the custom currency. Expired and deleted cost bases are excluded.
Example response
{
"id": "01G65Z755AFWAKHE12NY0CQ9FH",
"created_at": "2023-01-01T01:01:01.001Z",
"cost_basis": [
{
"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