Get the fee workspace
Returns everything the fee workspace shows in one request: your home currency, whether you can save, the currencies you can use, and every marketplace with the calculation chain applied to each purpose.
GET /fee-workspace
Returns everything the fee workspace shows in one request: your home currency, whether you can save, the currencies you can use, and every marketplace with the calculation chain applied to each purpose.
- Each slot holds the platform's binding (
official) and yours (personal), each expanded at its bound revision, andapplied:personalwhile you have one and an active subscription, otherwiseofficialif the platform has one, otherwisenone. - A binding that cannot be applied (
available: false,reasondeprecatedormissing) is reported as it is; it is never silently replaced by the platform's. official_sequenceandpersonal_sequenceare the slots'sequencevalues to send back when you change them.personal_writableisfalsewithout an active subscription; reading stays available.
Usage
| Name | Description |
|---|---|
| Authentication | API key required |
| Credit cost | Free |
Responses
| Status | Description | Schema |
|---|---|---|
200 | Successful Response | Envelope_WorkspaceOut_ |
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 |
429 | Too many requests to this endpoint; retry later | ErrorEnvelope |
503 | The service is temporarily unavailable; retry later | ErrorEnvelope |
Models
ConvertOperatorGroupOut
A convert operator group: alternative conversions for the same currency pair, combined by a rule.
| Field | Type | Required | Description |
|---|---|---|---|
kind | "convert_operator_group" | Yes | Record type: always convert_operator_group. |
id | integer or null | Yes | Unique ID of the group. |
name | string | Yes | Display name. |
rule | string | Yes | How the result is picked from the members that convert successfully: min, max or avg. Values: min, max, avg. |
members | array of ConvertOperatorOut | Yes | The member convert operators, in order, fully expanded. |
owner_user_id | string or null | Yes | ID of the owning user; null for platform-owned records, which include every official record. |
is_official | boolean | Yes | Whether this is an official group published by the platform. Official records are read-only for users. |
is_searchable | boolean | Yes | Whether the owner shares this group, so other users can find, reference and fork it. |
ref_count | integer | Yes | How many times this group is referenced (by calculation chain steps) or has been forked. Informational only. |
forked_from | integer or null | Yes | ID of the group this one was forked from; null if it was created from scratch. |
is_deleted | boolean | Yes | Whether the group is deleted. Deleted records are never returned again, so this is true only in a delete response. |
revision | integer or null | Yes | Current revision of the group: 1 when created, one more with every saved change. null only for an inline record. |
sequence | integer or null | Yes | Change counter of the group: rises with every saved revision and every change of sharing or lifecycle. Send it back as expected_sequence to detect concurrent changes. |
ConvertOperatorOut
A convert operator: converts the running amount from one currency to another.
| Field | Type | Required | Description |
|---|---|---|---|
kind | "convert" | Yes | Record type: always convert. |
id | integer or null | Yes | Unique ID of the convert operator. |
name | string | Yes | Display name. |
from | CurrencyOut | Yes | Source currency (fixed at creation). |
to | CurrencyOut | Yes | Target currency (fixed at creation). |
mode | string | Yes | auto converts through both currencies' usd_rate; fixed multiplies by rate. Values: auto, fixed. |
rate | string or null | Yes | Units of the target currency per one unit of the source currency, as a decimal string; used in fixed mode. |
owner_user_id | string or null | Yes | ID of the owning user; null for platform-owned records, which include every official record. |
is_official | boolean | Yes | Whether this is an official convert operator published by the platform. Official records are read-only for users. |
is_searchable | boolean | Yes | Whether the owner shares this convert operator, so other users can find, reference and fork it. |
ref_count | integer | Yes | How many times this convert operator is referenced (by calculation chain steps and group memberships) or has been forked. Informational only. |
forked_from | integer or null | Yes | ID of the convert operator this one was forked from; null if it was created from scratch. |
is_deleted | boolean | Yes | Whether the convert operator is deleted. Deleted records are never returned again, so this is true only in a delete response. |
revision | integer or null | Yes | Current revision of the convert operator: 1 when created, one more with every saved change. null only for an inline record. |
sequence | integer or null | Yes | Change counter of the convert operator: rises with every saved revision and every change of sharing or lifecycle. Send it back as expected_sequence to detect concurrent changes. |
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_WorkspaceOut_
| Field | Type | Required | Description |
|---|---|---|---|
data | WorkspaceOut | 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.
FeeOperatorOut
A fee operator: one arithmetic step applied to the running amount.
| Field | Type | Required | Description |
|---|---|---|---|
kind | "fee" | Yes | Record type: always fee. |
id | integer or null | Yes | Unique ID of the fee operator. |
name | string | Yes | Display name. |
operator | string | Yes | Arithmetic applied to the running amount: add, sub, mul or div. Values: add, sub, mul, div. |
value | string | Yes | Operand of the arithmetic, as a decimal string. |
currency_code | string or null | Yes | Currency of the amount for add and sub; null for mul and div. |
owner_user_id | string or null | Yes | ID of the owning user; null for platform-owned records, which include every official record. |
is_official | boolean | Yes | Whether this is an official fee operator published by the platform. Official records are read-only for users. |
is_searchable | boolean | Yes | Whether the owner shares this fee operator, so other users can find, reference and fork it. |
ref_count | integer | Yes | How many times this fee operator is referenced (by calculation chain steps) or has been forked. Informational only. |
forked_from | integer or null | Yes | ID of the fee operator this one was forked from; null if it was created from scratch. |
is_deleted | boolean | Yes | Whether the fee operator is deleted. Deleted records are never returned again, so this is true only in a delete response. |
revision | integer or null | Yes | Current revision of the fee operator: 1 when created, one more with every saved change. null only for an inline record. |
sequence | integer or null | Yes | Change counter of the fee operator: rises with every saved revision and every change of sharing or lifecycle. Send it back as expected_sequence to detect concurrent changes. |
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. |
WorkspaceChainOut
A chain bound to a slot, at the bound revision.
| Field | Type | Required | Description |
|---|---|---|---|
calculation_chain_id | integer | Yes | ID of the bound chain. |
revision | integer or null | Yes | The bound revision. |
name | string or null | Yes | Display name in that revision. |
input_auto | boolean | Yes | input_auto of that revision. |
output_auto | boolean | Yes | output_auto of that revision. |
start_currency | string or null | Yes | Currency the revision expects its input in, if any. |
available | boolean | Yes | Whether the binding can be applied. A binding that cannot stays where it is: it is reported, never silently replaced. |
reason | string or null | Yes | Why the binding cannot be applied: deprecated or missing; null when available. Values: deprecated, missing. |
steps | array of FeeOperatorOut or ConvertOperatorOut or ConvertOperatorGroupOut | Yes | The revision's steps, each expanded to its operator's current revision (with id and revision). |
WorkspaceOut
Everything the fee workspace shows, in one response.
| Field | Type | Required | Description |
|---|---|---|---|
home_currency | string | Yes | Currency code results are shown in: your account's base currency, USD by default. |
personal_writable | boolean | Yes | Whether you can save: true while you have an active subscription. |
currencies | array of CurrencyOut | Yes | The official currencies plus your own. |
websites | array of WorkspaceWebsiteOut | Yes | Every marketplace with its slots, by code. |
WorkspaceSlotOut
One purpose of one marketplace: both bindings and the one applied.
| Field | Type | Required | Description |
|---|---|---|---|
official | WorkspaceChainOut or null | Yes | The platform's binding; null if none. |
personal | WorkspaceChainOut or null | Yes | Your own binding, which overrides the platform's while your subscription is active; null if none. |
applied | string | Yes | Which binding your prices use: personal when you have one and an active subscription, else official when the platform has one, else none. Values: official, personal, none. |
official_sequence | integer | Yes | The platform slot's sequence (0 if never written). |
personal_sequence | integer or null | No | Your slot's sequence (0 if never written). |
WorkspaceSlotsOut
The three purposes of one marketplace.
| Field | Type | Required | Description |
|---|---|---|---|
deposit | WorkspaceSlotOut | Yes | Deposits. |
sale | WorkspaceSlotOut | Yes | Sales. |
withdraw | WorkspaceSlotOut | Yes | Withdrawals. |
WorkspaceWebsiteOut
A marketplace and its three slots.
| Field | Type | Required | Description |
|---|---|---|---|
code | string | Yes | Marketplace code. |
name | string | Yes | Display name. |
url | string or null | Yes | Marketplace homepage, if known. |
category | string | Yes | Marketplace category. |
countryCode | string or null | Yes | Two-letter country code of the company operating the marketplace; null when not stated. |
is_deprecated | boolean | Yes | Whether the marketplace is no longer supported. |
slots | WorkspaceSlotsOut | Yes | The slot of each purpose. |