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'ssequenceas 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
| Name | Description |
|---|---|
| Authentication | API key required |
| Credit cost | Free |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
website_code | path | string | Yes | Marketplace code of the binding. |
purpose | path | string | Yes | What the bound chain prices on this marketplace: deposit, sale or withdraw. Values: deposit, sale, withdraw. |
expected_sequence | query | integer or null | No | The sequence of your slot you last read; a mismatch is a 409 conflict and nothing changes. Omit to skip the check. |
expected_official_sequence | query | integer or null | No | The 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
| Status | Description | Schema |
|---|---|---|
200 | Successful Response | Envelope_WebsiteCalculationChainBindingUnboundOut_ |
401 | Authentication is missing or invalid | ErrorEnvelope |
403 | The credential is valid but not allowed to call this operation | ErrorEnvelope |
404 | The requested resource does not exist | ErrorEnvelope |
409 | The request conflicts with the current state of a resource | 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
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_WebsiteCalculationChainBindingUnboundOut_
| Field | Type | Required | Description |
|---|---|---|---|
data | WebsiteCalculationChainBindingUnboundOut | 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.
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. |
WebsiteCalculationChainBindingUnboundOut
Confirmation that a binding was removed.
| Field | Type | Required | Description |
|---|---|---|---|
website_code | string | Yes | Marketplace code of the removed binding. |
purpose | string | Yes | Purpose of the removed binding. Values: deposit, sale, withdraw. |
unbound | boolean | Yes | Always true: the binding was removed. |
sequence | integer | Yes | The slot's new sequence. |