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
codeunlesssortsays otherwise. searchnarrows the list to codes containing the given text (case-insensitive).- Without
pagethe whole list is returned; withpage(andpage_size, at most 100) one page with thetotal. ref_countis the number of your convert operators that currently use the currency.
Usage
| Name | Description |
|---|---|
| Authentication | API key required |
| Credit cost | Free |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
search | query | string or null | No | Case-insensitive substring match on the currency code. Omit to list every currency. |
owner | query | string or null | No | mine (default): your own currencies. official: the official catalogue. Values: official, mine. |
sort | query | string or null | No | Sort order: name (default; by code), ref_count (most used first) or updated_at (most recently changed first). Values: name, ref_count, updated_at. |
page | query | integer or null | No | Page number, from 1. When given, the response is a page (items, total, page, page_size) instead of the full list. |
page_size | query | integer | No | Records per page (1 to 100); used with page. Default: 20. |
Responses
| Status | Description | Schema |
|---|---|---|
200 | Successful Response | Envelope_Union_list_CurrencyOut___PageOut_CurrencyOut___ |
401 | Authentication is missing or invalid | ErrorEnvelope |
403 | The credential is valid but not allowed to call this operation | ErrorEnvelope |
422 | A parameter or the request body is invalid | ErrorEnvelope |
503 | The service is temporarily unavailable; retry later | ErrorEnvelope |
Models
CreditMeta
Credit accounting for a billable request.
| Field | Type | Required | Description |
|---|---|---|---|
cost | integer | Yes | Credits this request costs. |
remaining | integer | Yes | Estimated 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.
| Field | Type | Required | Description |
|---|---|---|---|
id | integer or null | Yes | Unique ID of the currency. |
code | string | Yes | Currency code, e.g. USD. |
name | string or null | Yes | Display name. |
kind | string | Yes | Currency kind, e.g. fiat. |
usd_rate | string | Yes | Value of one unit of this currency in US dollars, as a decimal string. Used by auto conversions. |
owner_user_id | string or null | Yes | ID of the owning user; null for platform currencies, which include every official currency. |
is_official | boolean | Yes | Whether the currency belongs to the official catalog maintained by the platform. |
ref_count | integer | Yes | Number of convert operators that use this currency. |
is_deleted | boolean | Yes | Whether the currency is deleted. Deleted currencies are never listed, so this is true only in a delete response. |
Envelope_Union_list_CurrencyOut___PageOut_CurrencyOut___
| Field | Type | Required | Description |
|---|---|---|---|
data | array of CurrencyOut or PageOut_CurrencyOut_ | Yes | The endpoint payload. |
meta | Meta | Yes | Request metadata. |
ErrorBody
Details of a failed request.
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Stable machine-readable error code. Branch on this value, not on message. |
message | string | Yes | Human-readable explanation. The wording may change. |
details | object or null | No | Optional 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.
Meta
Request metadata included in every enveloped response.
| Field | Type | Required | Description |
|---|---|---|---|
request_id | string | Yes | Unique identifier of this request, identical to the X-Request-ID response header. Quote it when contacting support. |
billable | boolean or null | No | Whether 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. |
credit | CreditMeta or null | No | Cost of the request and your estimated remaining balance. Present only when billable is true. |
page | PageMeta or null | No | Paging state. Present only on a response that lists a page. |
PageMeta
Where a paged list stands after this page.
| Field | Type | Required | Description |
|---|---|---|---|
limit | integer | Yes | Page size actually applied to this request. |
has_next | boolean | Yes | Whether another page follows. |
next_cursor | string or null | Yes | Pass it back unchanged as cursor to get the next page; null once the list is complete. |
PageOut_CurrencyOut_
| Field | Type | Required | Description |
|---|---|---|---|
items | array of CurrencyOut | Yes | The records on this page. |
total | integer | Yes | Number of matching records on all pages. |
page | integer | Yes | This page's number, from 1. |
page_size | integer | Yes | Records per page. |