Advanced: fees

List fee operators

Returns the fee operators you can use in your calculation chains.

GET /fee-operators

Returns the fee operators you can use in your calculation chains. A fee operator is one arithmetic step (add, sub, mul or div by a fixed value) applied to the running amount; add and sub carry the currency_code of their amount.

  • Without owner the list holds every fee operator you can see: your own, official ones and those other users share. owner (mine, official or public) narrows it.
  • search filters by a case-insensitive substring of the name; sort orders by name (default, official records first), ref_count or updated_at.
  • Without page the whole list is returned; with page (and page_size, at most 100) one page with the total.

Deleted fee operators are never returned.

Usage

NameDescription
AuthenticationAPI key required
Credit costFree

Parameters

NameInTypeRequiredDescription
ownerquerystring or nullNoWhich records to list. Omit for everything you can see. official: the platform's official records. public: records users share. mine: your own. Values: official, public, mine.
searchquerystring or nullNoCase-insensitive substring to match against the name.
sortquerystring or nullNoSort order: name (default; official records first), ref_count (most used first) or updated_at (most recently changed first). Values: name, ref_count, updated_at.
pagequeryinteger or nullNoPage number, from 1. When given, the response is a page (items, total, page, page_size) instead of the full list.
page_sizequeryintegerNoRecords per page (1 to 100); used with page. Default: 20.

Responses

StatusDescriptionSchema
200Successful ResponseEnvelope_Union_list_FeeOperatorOut___PageOut_FeeOperatorOut___
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

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_Union_list_FeeOperatorOut___PageOut_FeeOperatorOut___

FieldTypeRequiredDescription
dataarray of FeeOperatorOut or PageOut_FeeOperatorOut_YesThe 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.

PageOut_FeeOperatorOut_

FieldTypeRequiredDescription
itemsarray of FeeOperatorOutYesThe records on this page.
totalintegerYesNumber of matching records on all pages.
pageintegerYesThis page's number, from 1.
page_sizeintegerYesRecords per page.

Download the public OpenAPI schema