Get a marketplace's official fee schedule
Returns the fees the platform currently publishes for one marketplace, one slot per purpose: deposit, sale and withdraw.
GET /websites/{code}/fee-schedule
Returns the fees the platform currently publishes for one marketplace, one slot per purpose: deposit, sale and withdraw.
- Each published slot carries the fully expanded official calculation chain at the
revisionthe platform applies for that purpose: every fee operator, convert operator and convert operator group with its values, currencies and currentrevision, so one request is enough to reproduce the platform's calculation. Every operator of an official chain is itself official. - A slot whose chain has
id0is explicitly free: the platform charges nothing for that purpose, and the chain has no steps. - A slot is
nullwhen the platform has no official calculation chain published for that purpose: the fee is unknown, or the marketplace does not offer it.nullnever means free. - Each chain states its
start_currency: the currency a price must be in for the chain to apply (null: any currency);input_autoandoutput_autosay whether a price in another currency, and the result, are meant to be converted around it. - Ownership and management fields are not included.
A 404 means no marketplace has this code.
Usage
| Name | Description |
|---|---|
| Authentication | No authentication |
| Credit cost | Free |
| Recommended interval | 300 seconds |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
code | path | string | Yes | Marketplace code, as listed by GET /websites. |
Responses
| Status | Description | Schema |
|---|---|---|
200 | Successful Response | Envelope_FeeScheduleOut_ |
404 | The requested resource does not exist | 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. |
Envelope_FeeScheduleOut_
| Field | Type | Required | Description |
|---|---|---|---|
data | FeeScheduleOut | 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.
FeeScheduleOut
The official fees the platform currently publishes for one marketplace, per purpose. A purpose is null when no official chain is published for it.
| Field | Type | Required | Description |
|---|---|---|---|
website_code | string | Yes | Marketplace code. |
slots | FeeScheduleSlotsOut | Yes | The published official chain for each purpose. |
FeeScheduleSlotOut
The official chain published for one purpose.
| Field | Type | Required | Description |
|---|---|---|---|
purpose | string | Yes | Purpose: deposit, sale or withdraw. Values: deposit, sale, withdraw. |
calculation_chain | PublicCalculationChainOut | Yes | The official calculation chain for this purpose. |
FeeScheduleSlotsOut
The published official chains of one marketplace, by purpose.
| Field | Type | Required | Description |
|---|---|---|---|
deposit | FeeScheduleSlotOut or null | Yes | Fees on deposits; null if none is published. |
sale | FeeScheduleSlotOut or null | Yes | Fees on sales; null if none is published. |
withdraw | FeeScheduleSlotOut or null | Yes | Fees on withdrawals; null if none is published. |
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. |
PublicCalculationChainOut
An official calculation chain as published in a fee schedule.
| Field | Type | Required | Description |
|---|---|---|---|
id | integer or null | Yes | Unique ID of the calculation chain. 0 is the built-in no-fee chain: the platform charges nothing for this purpose. |
name | string or null | Yes | Display name, if set. |
start_currency | string or null | Yes | Currency the chain expects the price in; null when it applies to any currency. A price in another currency is not covered by it. |
revision | integer or null | Yes | The revision of the chain the platform applies for this purpose; a newer one is not in effect until it is applied here. |
input_auto | boolean | Yes | Whether a price in another currency is first converted into start_currency (through the official US dollar values). |
output_auto | boolean | Yes | Whether the result is meant to be converted into the viewer's home currency after the last step. |
steps | array of PublicFeeOperatorOut or PublicConvertOperatorOut or PublicConvertOperatorGroupOut | Yes | Steps in execution order, discriminated by kind. |
PublicConvertOperatorGroupOut
A group of alternative conversions in a published fee schedule.
| Field | Type | Required | Description |
|---|---|---|---|
kind | "convert_operator_group" | Yes | Step 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 PublicConvertOperatorOut | Yes | The member conversions, in order. |
revision | integer or null | Yes | Current revision of the group. |
PublicConvertOperatorOut
A currency conversion step of a published fee schedule.
| Field | Type | Required | Description |
|---|---|---|---|
kind | "convert" | Yes | Step type: always convert. |
id | integer or null | Yes | Unique ID of the convert operator. |
name | string | Yes | Display name. |
from | PublicCurrencyOut | Yes | Source currency. |
to | PublicCurrencyOut | Yes | Target currency. |
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. |
revision | integer or null | Yes | Current revision of the convert operator. |
PublicCurrencyOut
A currency as used by a published fee schedule.
| 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 in US dollars, as a decimal string. |
PublicFeeOperatorOut
A fee step of a published fee schedule.
| Field | Type | Required | Description |
|---|---|---|---|
kind | "fee" | Yes | Step 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. |
revision | integer or null | Yes | Current revision of the fee operator. |