Advanced: fees

Get marketplace chain bindings

Returns which calculation chain revision applies to a marketplace for each purpose: deposit, sale and withdraw.

GET /website-calculation-chain-bindings

Returns which calculation chain revision applies to a marketplace for each purpose: deposit, sale and withdraw.

  • For each purpose, your own binding wins over the platform default; source says which one you got. A purpose with neither is null.
  • Each slot names the bound calculation_chain_revision (its name and step count are that revision's), the slot sequence (yours) and whether the binding can be applied (available, reason).
  • 404 if the marketplace code is unknown.

[!note] The officially published fees of a marketplace are also available without authentication from GET /websites/{code}/fee-schedule.

Usage

NameDescription
AuthenticationAPI key required
Credit costFree

Parameters

NameInTypeRequiredDescription
websitequerystringYesMarketplace code whose bindings to return.

Responses

StatusDescriptionSchema
200Successful ResponseEnvelope_WebsiteCalculationChainBindingsOut_
401Authentication is missing or invalidErrorEnvelope
403The credential is valid but not allowed to call this operationErrorEnvelope
404The requested resource does not existErrorEnvelope
422A parameter or the request body is invalidErrorEnvelope
429Too many requests to this endpoint; retry laterErrorEnvelope
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.

Envelope_WebsiteCalculationChainBindingsOut_

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

WebsiteCalculationChainBindingSlotOut

The calculation chain that applies to one marketplace and purpose.

FieldTypeRequiredDescription
purposestringYesPurpose: deposit, sale or withdraw. Values: deposit, sale, withdraw.
calculation_chain_idintegerYesID of the bound chain.
calculation_chain_revisionintegerYesThe bound revision of the chain: the one that applies.
calculation_chain_namestring or nullYesDisplay name of the bound chain in that revision, if set.
sourcestringYesuser if this is your own binding, platform if it is the platform default. Values: user, platform.
calculation_chain_is_officialbooleanYesWhether the bound chain is official.
calculation_chain_is_searchablebooleanYesWhether the bound chain is shared by its owner.
calculation_chain_owner_user_idstring or nullYesID of the bound chain's owner; null for a platform chain.
is_deprecatedbooleanYesWhether the bound chain is deprecated. Only bindings from before deprecation became final can show true; such a slot is available: false.
ref_countintegerYesHow many times the bound chain is bound or has been forked.
step_countintegerYesNumber of steps in the bound revision of the chain.
sequenceintegerYesYour slot's sequence: send it back as expected_sequence.
availablebooleanYesWhether the binding can be applied; see reason.
reasonstring or nullYesWhy the binding cannot be applied: deprecated (the chain is deprecated) or missing (the chain is gone); null when available. Values: deprecated, missing.

WebsiteCalculationChainBindingsOut

The effective calculation chain of one marketplace for each purpose.

FieldTypeRequiredDescription
depositWebsiteCalculationChainBindingSlotOut or nullYesChain applied to deposits; null if nothing is bound.
saleWebsiteCalculationChainBindingSlotOut or nullYesChain applied to sales; null if nothing is bound.
withdrawWebsiteCalculationChainBindingSlotOut or nullYesChain applied to withdrawals; null if nothing is bound.

Download the public OpenAPI schema