Advanced: fees

Unbind a calculation chain from a marketplace

Removes your binding for one marketplace and purpose; for that purpose the platform default applies to you again, if there is one.

DELETE /website-calculation-chain-bindings/{website_code}/{purpose}

Removes your binding for one marketplace and purpose; for that purpose the platform default applies to you again, if there is one. Returns the slot's new sequence.

  • expected_sequence: your slot's sequence as you last read it. expected_official_sequence: the platform slot's, so that you restore the official binding you saw. 409 if either changed since.
  • 404 if you have no binding for that slot.
  • The chain itself is not affected.

Usage

NameDescription
AuthenticationAPI key required
Credit costFree

Parameters

NameInTypeRequiredDescription
website_codepathstringYesMarketplace code of the binding.
purposepathstringYesWhat the bound chain prices on this marketplace: deposit, sale or withdraw. Values: deposit, sale, withdraw.
expected_sequencequeryinteger or nullNoThe sequence of your slot you last read; a mismatch is a 409 conflict and nothing changes. Omit to skip the check.
expected_official_sequencequeryinteger or nullNoThe platform slot's sequence you last read (0 if it was never written). Restoring the official binding is refused with 409 if the platform's binding changed since.

Responses

StatusDescriptionSchema
200Successful ResponseEnvelope_WebsiteCalculationChainBindingUnboundOut_
401Authentication is missing or invalidErrorEnvelope
403The credential is valid but not allowed to call this operationErrorEnvelope
404The requested resource does not existErrorEnvelope
409The request conflicts with the current state of a resourceErrorEnvelope
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_WebsiteCalculationChainBindingUnboundOut_

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

WebsiteCalculationChainBindingUnboundOut

Confirmation that a binding was removed.

FieldTypeRequiredDescription
website_codestringYesMarketplace code of the removed binding.
purposestringYesPurpose of the removed binding. Values: deposit, sale, withdraw.
unboundbooleanYesAlways true: the binding was removed.
sequenceintegerYesThe slot's new sequence.

Download the public OpenAPI schema