Advanced: fees

List your currencies

Returns the custom currencies you created, with the USD exchange rates you set for them.

GET /me/currencies

Returns the custom currencies you created, with the USD exchange rates you set for them. Official currencies are not included unless you ask for owner=official; see also GET /currencies.

  • Deleted currencies are omitted.
  • Results are ordered by code unless sort says otherwise.
  • search narrows the list to codes containing the given text (case-insensitive).
  • Without page the whole list is returned; with page (and page_size, at most 100) one page with the total.
  • ref_count is the number of your convert operators that currently use the currency.

Usage

NameDescription
AuthenticationAPI key required
Credit costFree

Parameters

NameInTypeRequiredDescription
searchquerystring or nullNoCase-insensitive substring match on the currency code. Omit to list every currency.
ownerquerystring or nullNomine (default): your own currencies. official: the official catalogue. Values: official, mine.
sortquerystring or nullNoSort order: name (default; by code), ref_count (most used first) or updated_at (most recently changed first). Values: name, ref_count, updated_at.
pagequeryinteger or nullNoPage number, from 1. When given, the response is a page (items, total, page, page_size) instead of the full list.
page_sizequeryintegerNoRecords per page (1 to 100); used with page. Default: 20.

Responses

StatusDescriptionSchema
200Successful ResponseEnvelope_Union_list_CurrencyOut___PageOut_CurrencyOut___
401Authentication is missing or invalidErrorEnvelope
403The credential is valid but not allowed to call this operationErrorEnvelope
422A parameter or the request body is invalidErrorEnvelope
503The service is temporarily unavailable; retry laterErrorEnvelope

Models

CreditMeta

Credit accounting for a billable request.

FieldTypeRequiredDescription
costintegerYesCredits this request costs.
remainingintegerYesEstimated credit balance left after this request. A hint rather than a ledger: concurrent requests can make it slightly off.

CurrencyOut

A currency and its US dollar value.

FieldTypeRequiredDescription
idinteger or nullYesUnique ID of the currency.
codestringYesCurrency code, e.g. USD.
namestring or nullYesDisplay name.
kindstringYesCurrency kind, e.g. fiat.
usd_ratestringYesValue of one unit of this currency in US dollars, as a decimal string. Used by auto conversions.
owner_user_idstring or nullYesID of the owning user; null for platform currencies, which include every official currency.
is_officialbooleanYesWhether the currency belongs to the official catalog maintained by the platform.
ref_countintegerYesNumber of convert operators that use this currency.
is_deletedbooleanYesWhether the currency is deleted. Deleted currencies are never listed, so this is true only in a delete response.

Envelope_Union_list_CurrencyOut___PageOut_CurrencyOut___

FieldTypeRequiredDescription
dataarray of CurrencyOut or PageOut_CurrencyOut_YesThe endpoint payload.
metaMetaYesRequest metadata.

ErrorBody

Details of a failed request.

FieldTypeRequiredDescription
codestringYesStable machine-readable error code. Branch on this value, not on message.
messagestringYesHuman-readable explanation. The wording may change.
detailsobject or nullNoOptional structured context, such as the list of validation errors or, for credit_insufficient, the required and remaining credits.

ErrorEnvelope

Error response: the error in error plus request metadata in meta.

FieldTypeRequiredDescription
errorErrorBodyYesWhat went wrong.
metaMetaYesRequest metadata.

Meta

Request metadata included in every enveloped response.

FieldTypeRequiredDescription
request_idstringYesUnique identifier of this request, identical to the X-Request-ID response header. Quote it when contacting support.
billableboolean or nullNoWhether the request is billed in credits. Present only on metered endpoints; false means the request is free, for example because it costs nothing or your subscription covers it.
creditCreditMeta or nullNoCost of the request and your estimated remaining balance. Present only when billable is true.
pagePageMeta or nullNoPaging state. Present only on a response that lists a page.

PageMeta

Where a paged list stands after this page.

FieldTypeRequiredDescription
limitintegerYesPage size actually applied to this request.
has_nextbooleanYesWhether another page follows.
next_cursorstring or nullYesPass it back unchanged as cursor to get the next page; null once the list is complete.

PageOut_CurrencyOut_

FieldTypeRequiredDescription
itemsarray of CurrencyOutYesThe records on this page.
totalintegerYesNumber of matching records on all pages.
pageintegerYesThis page's number, from 1.
page_sizeintegerYesRecords per page.

Download the public OpenAPI schema