Advanced: fees

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, and applied: personal while you have one and an active subscription, otherwise official if the platform has one, otherwise none.
  • A binding that cannot be applied (available: false, reason deprecated or missing) is reported as it is; it is never silently replaced by the platform's.
  • official_sequence and personal_sequence are the slots' sequence values to send back when you change them.
  • personal_writable is false without an active subscription; reading stays available.

Usage

NameDescription
AuthenticationAPI key required
Credit costFree

Responses

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

Models

ConvertOperatorGroupOut

A convert operator group: alternative conversions for the same currency pair, combined by a rule.

FieldTypeRequiredDescription
kind"convert_operator_group"YesRecord type: always convert_operator_group.
idinteger or nullYesUnique ID of the group.
namestringYesDisplay name.
rulestringYesHow the result is picked from the members that convert successfully: min, max or avg. Values: min, max, avg.
membersarray of ConvertOperatorOutYesThe member convert operators, in order, fully expanded.
owner_user_idstring or nullYesID of the owning user; null for platform-owned records, which include every official record.
is_officialbooleanYesWhether this is an official group published by the platform. Official records are read-only for users.
is_searchablebooleanYesWhether the owner shares this group, so other users can find, reference and fork it.
ref_countintegerYesHow many times this group is referenced (by calculation chain steps) or has been forked. Informational only.
forked_frominteger or nullYesID of the group this one was forked from; null if it was created from scratch.
is_deletedbooleanYesWhether the group is deleted. Deleted records are never returned again, so this is true only in a delete response.
revisioninteger or nullYesCurrent revision of the group: 1 when created, one more with every saved change. null only for an inline record.
sequenceinteger or nullYesChange 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.

FieldTypeRequiredDescription
kind"convert"YesRecord type: always convert.
idinteger or nullYesUnique ID of the convert operator.
namestringYesDisplay name.
fromCurrencyOutYesSource currency (fixed at creation).
toCurrencyOutYesTarget currency (fixed at creation).
modestringYesauto converts through both currencies' usd_rate; fixed multiplies by rate. Values: auto, fixed.
ratestring or nullYesUnits of the target currency per one unit of the source currency, as a decimal string; used in fixed mode.
owner_user_idstring or nullYesID of the owning user; null for platform-owned records, which include every official record.
is_officialbooleanYesWhether this is an official convert operator published by the platform. Official records are read-only for users.
is_searchablebooleanYesWhether the owner shares this convert operator, so other users can find, reference and fork it.
ref_countintegerYesHow many times this convert operator is referenced (by calculation chain steps and group memberships) or has been forked. Informational only.
forked_frominteger or nullYesID of the convert operator this one was forked from; null if it was created from scratch.
is_deletedbooleanYesWhether the convert operator is deleted. Deleted records are never returned again, so this is true only in a delete response.
revisioninteger or nullYesCurrent revision of the convert operator: 1 when created, one more with every saved change. null only for an inline record.
sequenceinteger or nullYesChange 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.

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_WorkspaceOut_

FieldTypeRequiredDescription
dataWorkspaceOutYesThe 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.

FeeOperatorOut

A fee operator: one arithmetic step applied to the running amount.

FieldTypeRequiredDescription
kind"fee"YesRecord type: always fee.
idinteger or nullYesUnique ID of the fee operator.
namestringYesDisplay name.
operatorstringYesArithmetic applied to the running amount: add, sub, mul or div. Values: add, sub, mul, div.
valuestringYesOperand of the arithmetic, as a decimal string.
currency_codestring or nullYesCurrency of the amount for add and sub; null for mul and div.
owner_user_idstring or nullYesID of the owning user; null for platform-owned records, which include every official record.
is_officialbooleanYesWhether this is an official fee operator published by the platform. Official records are read-only for users.
is_searchablebooleanYesWhether the owner shares this fee operator, so other users can find, reference and fork it.
ref_countintegerYesHow many times this fee operator is referenced (by calculation chain steps) or has been forked. Informational only.
forked_frominteger or nullYesID of the fee operator this one was forked from; null if it was created from scratch.
is_deletedbooleanYesWhether the fee operator is deleted. Deleted records are never returned again, so this is true only in a delete response.
revisioninteger or nullYesCurrent revision of the fee operator: 1 when created, one more with every saved change. null only for an inline record.
sequenceinteger or nullYesChange 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.

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.

WorkspaceChainOut

A chain bound to a slot, at the bound revision.

FieldTypeRequiredDescription
calculation_chain_idintegerYesID of the bound chain.
revisioninteger or nullYesThe bound revision.
namestring or nullYesDisplay name in that revision.
input_autobooleanYesinput_auto of that revision.
output_autobooleanYesoutput_auto of that revision.
start_currencystring or nullYesCurrency the revision expects its input in, if any.
availablebooleanYesWhether the binding can be applied. A binding that cannot stays where it is: it is reported, never silently replaced.
reasonstring or nullYesWhy the binding cannot be applied: deprecated or missing; null when available. Values: deprecated, missing.
stepsarray of FeeOperatorOut or ConvertOperatorOut or ConvertOperatorGroupOutYesThe revision's steps, each expanded to its operator's current revision (with id and revision).

WorkspaceOut

Everything the fee workspace shows, in one response.

FieldTypeRequiredDescription
home_currencystringYesCurrency code results are shown in: your account's base currency, USD by default.
personal_writablebooleanYesWhether you can save: true while you have an active subscription.
currenciesarray of CurrencyOutYesThe official currencies plus your own.
websitesarray of WorkspaceWebsiteOutYesEvery marketplace with its slots, by code.

WorkspaceSlotOut

One purpose of one marketplace: both bindings and the one applied.

FieldTypeRequiredDescription
officialWorkspaceChainOut or nullYesThe platform's binding; null if none.
personalWorkspaceChainOut or nullYesYour own binding, which overrides the platform's while your subscription is active; null if none.
appliedstringYesWhich 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_sequenceintegerYesThe platform slot's sequence (0 if never written).
personal_sequenceinteger or nullNoYour slot's sequence (0 if never written).

WorkspaceSlotsOut

The three purposes of one marketplace.

FieldTypeRequiredDescription
depositWorkspaceSlotOutYesDeposits.
saleWorkspaceSlotOutYesSales.
withdrawWorkspaceSlotOutYesWithdrawals.

WorkspaceWebsiteOut

A marketplace and its three slots.

FieldTypeRequiredDescription
codestringYesMarketplace code.
namestringYesDisplay name.
urlstring or nullYesMarketplace homepage, if known.
categorystringYesMarketplace category.
countryCodestring or nullYesTwo-letter country code of the company operating the marketplace; null when not stated.
is_deprecatedbooleanYesWhether the marketplace is no longer supported.
slotsWorkspaceSlotsOutYesThe slot of each purpose.

Download the public OpenAPI schema