Create Fee

Creates a fee on a cash account of the account. The fee is returned with status created.

reference is your identifier of the fee and is unique across all your fees. A second fee with the same reference fails with the status 409, also when the request is the same. To retry a request safely, send an Idempotency-Key.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

An account identifier.

Body Params

A fee that lemon.markets collects from the customer on your behalf.

string
required
length ≤ 255

A cash account identifier. You can discover the cash accounts belonging to a customer account through the cash_account field returned by the securities accounts endpoints. It identifies the cash account the fee is charged on. See the Fees guide for how to find it.

string
enum
required

The type of the fee:

  • agio: a one-off fee on a pay-in of the customer, e.g. a percentage of the deposit.
Allowed:
string
required

The amount of the fee, with at most 2 decimal places.

string
required
length between 3 and 3

An ISO 4217 three-letter currency code. Its value represents the currency for the amount listed here. The only currently available currency is "EUR".

string
required
^[A-Za-z0-9-]{1,64}$

Your identifier of the charge, 1 to 64 letters, digits and dashes. It is unique across all your fees, without expiry.

Headers
string
required
string
required
string
length ≤ 100

An optional idempotency key to safely retry requests without creating duplicate resources. Pass a unique string (UUID recommended, max 100 characters). Retrying with the same key returns the response of the first request. Use GET /accounts/{account_id}/fees/{fee_id} to get the current status. Keys expire after 24 hours. For full details see the Idempotency guide.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json