{"openapi":"3.1.0","info":{"title":"lemon.markets Brokerage API 🍋","version":"0.1.0"},"x-readme":{"proxy-enabled":false,"samples-languages":["shell","python","go"]},"servers":[{"url":"https://sandbox.api.lemon.markets/v1","description":"Sandbox"}],"tags":[{"name":"Accounts: General"},{"name":"Product Contracts","description":"Product contracts are the certified products (e.g. Altersvorsorgedepot contracts) a partner can offer to its customers. Use them to find the contract identifier required when creating a retirement product.\n"},{"name":"Accounts: ID+V"},{"name":"Securities Accounts"},{"name":"Cash Accounts"},{"name":"Businesses"},{"name":"Persons"},{"name":"Subsidy Applications","description":"A subsidy application represents application for the government subsidy (Zulage) of a retirement product.  See the <a href=\"https://developer.lemon.markets/docs/subsidy-applications\" target=\"_blank\">Subsidy Applications guide</a> for the order of the API calls and the statuses.\n"},{"name":"Money + Positions"},{"name":"Batch Orders"},{"name":"Corporate Actions"},{"name":"Orders"},{"name":"Trades"},{"name":"Treasury Mandates"},{"name":"Payment Instrument Mandates","description":"A payment instrument mandate is the customer's authorization to collect SEPA Direct Debits from one of their bank accounts.  A mandate is created with status <code>created</code> and must be confirmed by the customer, using Strong Customer Authentication where required, before it can be used for collections.  When the customer revokes the mandate, cancel it.\n\n<strong>Preview:</strong> These endpoints are a preview API and may change without a deprecation period.  They are only available if you are enabled for SEPA Direct Debit; otherwise the request is rejected with a <code>404</code>.\n"},{"name":"Asset Transfers","description":"An asset transfer is a request to move a customer's assets from their previous provider to lemon.markets. The <code>type</code> field determines the kind of asset transfer and its fields:\n<ul> <li><code>retirement</code>: a provider switch (Anbieterwechsel) of a Riester or Altersvorsorgedepot contract into a retirement product. </ul>\nAn asset transfer is created with status <code>created</code> and must be confirmed by the customer, using Strong Customer Authentication where required.\n"},{"name":"Fees","description":"A fee is a charge that you calculate and that lemon.markets collects from a cash account of the customer on your behalf.  See the <a href=\"https://developer.lemon.markets/docs/fees\" target=\"_blank\">Fees guide</a> for how to find the cash account and the order of the API calls.\n"},{"name":"Taxes"},{"name":"Documents"},{"name":"Instruments"},{"name":"Events + Webhooks"},{"name":"Workflows","description":"Use workflows to perform repetitive tasks automatically."},{"name":"Cash Settlement"}],"paths":{"/accounts":{"post":{"tags":["Accounts: General"],"summary":"Create Account","operationId":"create_account","parameters":[{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountRequest"},"example":{"accepted_agreements":[{"accepted_at":"2023-06-29T14:39:29Z","agreement_id":"agr_9902271f791d413aad781763c61b9bb0"},{"accepted_at":"2023-06-29T14:39:29Z","agreement_id":"agr_8ec894e1ec764a339e172292dff9aeff"}],"customer":{"date_of_birth":"1964-08-13","email":"erika.mustermann@example.com","employment":{"annual_salary":"gte_50k_lt_75k_eur","sector":"public_sector","status":"employed"},"firstname":"Erika","gender":"female","lastname":"Mustermann","marital_status":"married","nationalities":["DE"],"phone_number":"+49172997318","place_of_birth":{"city":"Berlin","country":"DE"},"registered_address":{"city":"Köln","country":"DE","line_1":"Heidestraße 17","postal_code":"51147"},"tax_residencies":[{"country":"DE","tax_identification_number":"123/456/78901"}]},"declaration_of_acting_on_own_account":true,"metadata":{"origin_id":"origin_example","reference_account":"REF123"}}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerAccountResponse"},"example":{"id":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","cash_account":null,"customer":{"id":"pers_8e3c698265484edbaca82ae52c9fabd7","date_of_birth":"1964-08-13","email":"erika.mustermann@example.com","employment":{"annual_salary":"gte_50k_lt_75k_eur","sector":"public_sector","status":"employed"},"firstname":"Erika","gender":"female","lastname":"Mustermann","marital_status":"married","nationalities":["DE"],"phone_number":"+49172997318","place_of_birth":{"city":"Berlin","country":"DE"},"registered_address":{"city":"Köln","country":"DE","line_1":"Heidestraße 17","line_2":null,"postal_code":"51147"},"tax_residencies":[{"country":"DE","tax_identification_number":"123/456/78901"}]},"declaration_of_acting_on_own_account":true,"history":[{"status":"created","timestamp":"2023-06-29T14:43:03.937676+00:00"}],"securities_account":null,"status":"created","metadata":{"origin_id":"origin_example","reference_account":"REF123"},"agreements":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"pers_8e3c698265484edbaca82ae52c9fabd7"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"pers_8e3c698265484edbaca82ae52c9fabd7"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"List Accounts","operationId":"list_accounts","tags":["Accounts: General"],"parameters":[{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"exclusiveMinimum":0,"type":"integer","default":100},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"status","required":false,"schema":{"$ref":"#/components/schemas/CustomerAccountStatus"},"in":"query","description":"Provide an account status to filter results on a single account status.\n"},{"name":"person_customer","in":"query","required":false,"schema":{"type":"boolean","default":false},"description":"If set to `true`, returns a simplified person customer object containing only the type and person ID, instead of the full customer details. The parameter will be **deprecated in a future version** of this API. Once deprecated, all responses will behave as if `person_customer=true`.\n"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CustomerAccountResponse_"},"examples":{"full_customer":{"summary":"Full customer details (default)","value":{"data":[{"cash_account":{"bic":"BYLADEM1001","iban":"DE02120300000000202051","account_number":"0000202051"},"customer":{"date_of_birth":"1950-01-01","email":"john.doe@example.com","employment":{"annual_salary":"lt_50k_eur","sector":"agriculture","status":"apprenticeship"},"firstname":"John","gender":"male","lastname":"Doe","marital_status":"single","nationalities":["DE"],"phone_number":"+49123123123","place_of_birth":{"city":"Berlin","country":"DE"},"registered_address":{"city":"Berlin","country":"DE","line_1":"Kottbusser Damn 79","line_2":null,"postal_code":"12345"},"tax_residencies":[{"country":"DE","tax_identification_number":"123123123"}]},"declaration_of_acting_on_own_account":true,"history":[{"status":"created","timestamp":"2023-06-12T17:23:16.975969+00:00"}],"id":"cusa_20323d55bb264d42b0b225d293591049","securities_account":{"number":"000000044"},"status":"created","agreements":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"}]}]}},"simplified_person":{"summary":"Simplified person customer (person_customer=true)","value":{"data":[{"cash_account":{"bic":"BYLADEM1001","iban":"DE02120300000000202051","account_number":"0000202051"},"customer":{"type":"person","id":"pers_f1e3a7f504414b5e99041ebc1c0f55cd","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},"declaration_of_acting_on_own_account":true,"history":[{"status":"created","timestamp":"2023-06-12T17:23:16.975969+00:00"}],"id":"cusa_20323d55bb264d42b0b225d293591049","securities_account":{"number":"000000044"},"status":"created","agreements":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"}]}]}},"business_customer":{"summary":"Business customer account","value":{"data":[{"cash_account":{"bic":"BYLADEM1001","iban":"DE02120300000000202051","account_number":"0000202051"},"customer":{"type":"business","id":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","business":"le_3a0baf04657b4fb9bcaa03d8120b5e9e"},"declaration_of_acting_on_own_account":true,"history":[{"status":"created","timestamp":"2023-06-12T17:23:16.975969+00:00"}],"id":"cusa_20323d55bb264d42b0b225d293591049","securities_account":{"number":"000000044"},"status":"created","agreements":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"}]}]}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}":{"get":{"summary":"Get Account","operationId":"get_account","tags":["Accounts: General"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"},{"name":"person_customer","in":"query","required":false,"schema":{"type":"boolean","default":false},"description":"If set to `true`, returns a simplified person customer object containing only the type and person ID, instead of the full customer details. The parameter will be **deprecated in a future version** of this API. Once deprecated, all responses will behave as if `person_customer=true`.\n"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerAccountResponse"},"examples":{"full_customer":{"summary":"Full customer details (default)","value":{"cash_account":{"bic":"BYLADEM1001","iban":"DE02120300000000202051","account_number":"0000202051"},"customer":{"date_of_birth":"1950-01-01","email":"john.doe@example.com","employment":{"annual_salary":"lt_50k_eur","sector":"agriculture","status":"apprenticeship"},"firstname":"John","gender":"male","lastname":"Doe","marital_status":"single","nationalities":["DE"],"phone_number":"+49123123123","place_of_birth":{"city":"Berlin","country":"DE"},"registered_address":{"city":"Berlin","country":"DE","line_1":"Kottbusser Damn 79","line_2":null,"postal_code":"12345"},"tax_residencies":[{"country":"DE","tax_identification_number":"123123123"}]},"declaration_of_acting_on_own_account":true,"history":[{"status":"created","timestamp":"2023-06-12T17:23:16.975969+00:00"}],"id":"cusa_20323d55bb264d42b0b225d293591049","securities_account":{"number":"000000044"},"status":"created","agreements":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"}]}},"simplified_person":{"summary":"Simplified person customer (person_customer=true)","value":{"cash_account":{"bic":"BYLADEM1001","iban":"DE02120300000000202051","account_number":"0000202051"},"customer":{"type":"person","id":"pers_f1e3a7f504414b5e99041ebc1c0f55cd","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},"declaration_of_acting_on_own_account":true,"history":[{"status":"created","timestamp":"2023-06-12T17:23:16.975969+00:00"}],"id":"cusa_20323d55bb264d42b0b225d293591049","securities_account":{"number":"000000044"},"status":"created","agreements":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"}]}},"business_customer":{"summary":"Business customer account","value":{"cash_account":{"bic":"BYLADEM1001","iban":"DE02120300000000202051","account_number":"0000202051"},"customer":{"type":"business","id":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","business":"le_3a0baf04657b4fb9bcaa03d8120b5e9e"},"declaration_of_acting_on_own_account":true,"history":[{"status":"created","timestamp":"2023-06-12T17:23:16.975969+00:00"}],"id":"cusa_20323d55bb264d42b0b225d293591049","securities_account":{"number":"000000044"},"status":"created","agreements":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"}]}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/accept_agreement":{"post":{"summary":"Accept Agreement","operationId":"accept_agreement","tags":["Accounts: General"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptAgreementRequest"},"example":{"person":"pers_8ec894e1ec764a339e172292dff9aeff","agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptAgreementResponse"},"examples":{"person_customer":{"summary":"Person customer account","value":{"cash_account":{"bic":"BYLADEM1001","iban":"DE02120300000000202051"},"customer":{"type":"person","id":"pers_8ec894e1ec764a339e172292dff9aeff","person":"pers_8ec894e1ec764a339e172292dff9aeff"},"declaration_of_acting_on_own_account":true,"history":[{"status":"created","timestamp":"2023-06-12T17:23:16.975969+00:00"}],"id":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","securities_account":{"number":"000000044"},"status":"created","agreements":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"pers_8ec894e1ec764a339e172292dff9aeff"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"pers_8ec894e1ec764a339e172292dff9aeff"}]}},"business_customer":{"summary":"Business customer account","value":{"cash_account":{"bic":"BYLADEM1001","iban":"DE02120300000000202051"},"customer":{"type":"business","id":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","business":"le_3a0baf04657b4fb9bcaa03d8120b5e9e"},"declaration_of_acting_on_own_account":true,"history":[{"status":"created","timestamp":"2023-06-12T17:23:16.975969+00:00"}],"id":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","securities_account":{"number":"000000044"},"status":"created","agreements":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"le_3a0baf04657b4fb9bcaa03d8120b5e9e"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"le_3a0baf04657b4fb9bcaa03d8120b5e9e"}]}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/close":{"post":{"summary":"Close Account","operationId":"close_account","tags":["Accounts: General"],"description":"Initiates closure of a customer account. Closure runs asynchronously: a successful call starts the offboarding process and returns the account with its current status (still `opened`); the status transitions to `closed` once offboarding completes.\n\nIf the account has open blockers (active positions, a remaining cash balance, or overdue fees), it remains `opened` with offboarding checks in `action_required` and does **not** close until those are resolved. The outstanding actions are available as offboarding checks on the account.\n\nThe endpoint is idempotent: calling it again while a closure is in progress, or on an already `closed` account, returns `200` without starting a new closure.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloseAccountRequest"},"example":{"reason":"customer_request"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerAccountResponse"},"example":{"cash_account":{"bic":"BYLADEM1001","iban":"DE02120300000000202051","account_number":"0000202051"},"customer":{"type":"person","id":"pers_f1e3a7f504414b5e99041ebc1c0f55cd","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},"declaration_of_acting_on_own_account":true,"history":[{"status":"created","timestamp":"2023-06-12T17:23:16.975969+00:00"}],"id":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","securities_account":{"number":"000000044"},"status":"opened","agreements":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/products":{"post":{"summary":"Create Product","operationId":"create_product","tags":["Accounts: General"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":100,"title":"Idempotency Key"},"description":"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 product created by the first request. For full details see the [Idempotency guide](/docs/idempotency).\n"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductRequest"},"examples":{"retirement":{"summary":"Create retirement product with a contract number","value":{"type":"retirement","product_contract":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","payout_age":25,"accepted_agreements":[{"agreement_id":"agr_id1","accepted_at":"2026-01-01T00:12:00Z"}],"contract_number":"TMR786448152866"}},"retirement_generated":{"summary":"Create retirement product with a generated contract number","value":{"type":"retirement","product_contract":"pcon_2b9e4f61c3a84d0e8f7a5c1b6d3e9f20","payout_age":30,"accepted_agreements":[{"agreement_id":"agr_id1","accepted_at":"2026-01-01T00:12:00Z"}]}},"brokerage":{"summary":"Create brokerage account","value":{"type":"brokerage","accepted_agreements":[{"agreement_id":"agr_id1","accepted_at":"2026-01-01T00:12:00Z"}]}}}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProductResponse"},"examples":{"retirement":{"summary":"Retirement account product","value":{"id":"ret_ac_123","type":"retirement","status":"created","payout_age":25,"product_contract":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","contract":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","contract_number":"TMR786448152866","accepted_agreements":[{"agreement":"agr_id1","accepted_at":"2026-01-01T00:12:00Z","person":"pers_123425"}]}},"brokerage":{"summary":"Brokerage account product","value":{"id":"brok_c4ad0c3244bb4a7d97ee760290627dc2","type":"brokerage","status":"created","accepted_agreements":[{"agreement":"agr_id1","accepted_at":"2026-01-01T00:12:00Z","person":"pers_123425"}]}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"List Products","operationId":"list_products","tags":["Accounts: General"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"type","required":false,"schema":{"type":"string","enum":["retirement"],"title":"Product Type"},"in":"query","example":"retirement","description":"Filter products by type. Currently only `retirement` is supported.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"exclusiveMinimum":0,"type":"integer","default":100},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_GetProductResponse_"},"examples":{"retirement":{"summary":"List of retirement products","value":{"data":[{"id":"ret_ac_123","type":"retirement","status":"created","payout_age":25,"product_contract":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","contract":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","contract_number":"INV813558797342","accepted_agreements":[{"agreement":"agr_id1","accepted_at":"2026-01-01T00:12:00Z","person":"pers_123425"}]},{"id":"ret_ac_456","type":"retirement","status":"created","payout_age":30,"product_contract":"pcon_2b9e4f61c3a84d0e8f7a5c1b6d3e9f20","contract":"pcon_2b9e4f61c3a84d0e8f7a5c1b6d3e9f20","contract_number":"GI654436598122","accepted_agreements":[{"agreement":"agr_id2","accepted_at":"2026-01-02T00:12:00Z","person":"pers_678910"}]}],"pagination":{"next_cursor":null}}},"brokerage":{"summary":"List of brokerage products","value":{"data":[{"id":"brok_c4ad0c3244bb4a7d97ee760290627dc2","type":"brokerage","status":"created","accepted_agreements":[{"agreement":"agr_id1","accepted_at":"2026-01-01T00:12:00Z","person":"pers_123425"}]},{"id":"brok_456","type":"brokerage","status":"created","accepted_agreements":[{"agreement":"agr_id2","accepted_at":"2026-01-02T00:12:00Z","person":"pers_678910"}]}],"pagination":{"next_cursor":null}}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/products/{id}":{"get":{"summary":"Get Product","operationId":"get_product","tags":["Accounts: General"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"id","required":true,"schema":{"title":"Product Identifier","type":"string"},"in":"path","example":"ret_ac_123","description":"A product identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetProductResponse"},"examples":{"retirement":{"summary":"Retirement account product","value":{"id":"ret_ac_123","type":"retirement","status":"created","payout_age":25,"product_contract":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","contract":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","contract_number":"TMR000558754259","accepted_agreements":[{"agreement":"agr_id1","accepted_at":"2026-01-01T00:12:00Z","person":"pers_123425"}]}},"brokerage":{"summary":"Brokerage account product","value":{"id":"brok_c4ad0c3244bb4a7d97ee760290627dc2","type":"brokerage","status":"created","accepted_agreements":[{"agreement":"agr_id1","accepted_at":"2026-01-01T00:12:00Z","person":"pers_123425"}]}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/subsidy_applications":{"post":{"summary":"Create Subsidy Application","operationId":"create_subsidy_application","tags":["Subsidy Applications"],"description":"Create application for the government subsidy (Zulage) of a retirement product. The application includes the customer's eligibility, the spouse, and the children information. The subsidy application refers to the spouse and the children as persons. Use <a href=\"https://developer.lemon.markets/reference/create_person-1\" target=\"_blank\">Person API</a> to register the person information.  The persons must have the role <code>subsidy_application.spouse</code> (spouse) or <code>subsidy_application.child</code> (child).  When a referenced person does not exist, belongs to another partner, or does not have the matching role, the request fails with the status 422.\n\nThe retirement product must be provided by lemon.markets, and the customer must have a validated tax identification number.  Otherwise, the request fails with the status 422.\n\nBy creating subsidy application the customer gives us the authorization (Vollmacht) to apply for the government subsidy. The request gives the authorization, and the time of the request is the date of the authorization and of the signature.\n\nEach request creates a new version of the application, with the status <code>created</code>.  For the order of the API calls and how versions change status, see the <a href=\"https://developer.lemon.markets/docs/subsidy-applications\" target=\"_blank\">Subsidy Applications guide</a>.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateSubsidyApplicationRequest"},"examples":{"indirectly_eligible":{"summary":"Indirectly eligible customer with spouse and child","value":{"product":"ret_123","eligibility_type":"indirectly_eligible","other_provider_claim":false,"spouse":{"person":"pers_5b1d7e3a9c2f4a6e8d0b1c3e5f7a9b2d","type":"person"},"children":[{"person":"pers_8e2a4c6b1d3f4e5a9b7c0d2e4f6a8b1c","type":"person","child_benefit_number":"123FK456789"}]}},"directly_eligible":{"summary":"Directly eligible customer with a child subsidy assigned to another person (no child information attached)","value":{"product":"ret_123","eligibility_type":"statutory_pension","other_provider_claim":false}}}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubsidyApplicationResponse"},"examples":{"indirectly_eligible":{"summary":"First version of an application","value":{"id":"sapp_7c1e9b2a4d6f4e0b8a3c5d7e9f1a2b3c","product":"ret_123","eligibility_type":"indirectly_eligible","other_provider_claim":false,"spouse":{"person":"pers_5b1d7e3a9c2f4a6e8d0b1c3e5f7a9b2d","type":"person"},"children":[{"person":"pers_8e2a4c6b1d3f4e5a9b7c0d2e4f6a8b1c","type":"person","child_benefit_number":"123FK456789"}],"history":[{"status":"created","timestamp":"2026-11-02T10:15:03.481920+00:00"}]}},"directly_eligible":{"summary":"New version after the situation changed","value":{"id":"sapp_456b2e8f1c3a4d5e9f0a1b2c3d4e5f60","product":"ret_123","eligibility_type":"statutory_pension","other_provider_claim":false,"children":[],"history":[{"status":"created","timestamp":"2026-12-01T09:00:02.119384+00:00"}]}}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Error in 'body': spouse is only allowed for eligibility_type=indirectly_eligible"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"product_not_retirement_product":{"summary":"The product is not a retirement product","value":{"message":"Product is not a retirement product"}},"product_not_provided_by_lemon_markets":{"summary":"The product's contract is not provided by lemon.markets","value":{"message":"Product is not provided by lemon.markets"}},"customer_without_validated_tin":{"summary":"The customer has no validated tax identification number","value":{"message":"Customer has no validated tax identification number"}},"person_not_found":{"summary":"The person does not exist or belongs to another partner","value":{"message":"Person pers_5b1d7e3a9c2f4a6e8d0b1c3e5f7a9b2d not found"}},"person_role_mismatch":{"summary":"The person does not have the matching role","value":{"message":"Person pers_8e2a4c6b1d3f4e5a9b7c0d2e4f6a8b1c does not have the role subsidy_application.child"}}}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"List Subsidy Applications","operationId":"list_subsidy_applications","tags":["Subsidy Applications"],"description":"Lists the versions of the account's subsidy applications, from the oldest to the newest.  Use <code>product</code> to list only the versions of one retirement product.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"product","required":false,"schema":{"title":"Product Identifier","type":"string","maxLength":255},"in":"query","example":"ret_123","description":"A retirement product identifier.  Only the versions of this product are returned.  Without it, the versions of all retirement products of the account are returned.\n"},{"name":"status","required":false,"schema":{"title":"Status","type":"string","enum":["created","active","superseded","canceled","*"]},"in":"query","example":"active","description":"Filter by subsidy application status.  Use `*` to return the versions regardless of their status.  Without this parameter, the versions of all statuses are returned.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"exclusiveMinimum":0,"type":"integer","default":100},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_SubsidyApplicationResponse_"},"example":{"data":[{"id":"sapp_7c1e9b2a4d6f4e0b8a3c5d7e9f1a2b3c","product":"ret_123","eligibility_type":"statutory_pension","other_provider_claim":false,"children":[],"history":[{"status":"superseded","timestamp":"2026-12-01T09:00:02.119384+00:00"},{"status":"created","timestamp":"2026-11-02T10:15:03.481920+00:00"}]},{"id":"sapp_456b2e8f1c3a4d5e9f0a1b2c3d4e5f60","product":"ret_123","eligibility_type":"statutory_pension","other_provider_claim":false,"children":[],"history":[{"status":"created","timestamp":"2026-12-01T09:00:02.119384+00:00"}]}],"pagination":{"next_cursor":null}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/subsidy_applications/{subsidy_application_id}":{"get":{"summary":"Get Subsidy Application","operationId":"get_subsidy_application","tags":["Subsidy Applications"],"description":"Retrieves one version of a subsidy application.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"subsidy_application_id","required":true,"schema":{"title":"Subsidy Application Identifier","type":"string"},"in":"path","example":"sapp_7c1e9b2a4d6f4e0b8a3c5d7e9f1a2b3c","description":"A subsidy application identifier.  Each version has its own identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubsidyApplicationResponse"},"example":{"id":"sapp_7c1e9b2a4d6f4e0b8a3c5d7e9f1a2b3c","product":"ret_123","eligibility_type":"indirectly_eligible","other_provider_claim":false,"spouse":{"person":"pers_5b1d7e3a9c2f4a6e8d0b1c3e5f7a9b2d","type":"person"},"children":[{"person":"pers_8e2a4c6b1d3f4e5a9b7c0d2e4f6a8b1c","type":"person","child_benefit_number":"123FK456789"}],"history":[{"status":"superseded","timestamp":"2026-12-01T09:00:02.119384+00:00"},{"status":"created","timestamp":"2026-11-02T10:15:03.481920+00:00"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/subsidy_applications/{subsidy_application_id}/cancel":{"post":{"summary":"Cancel Subsidy Application","operationId":"cancel_subsidy_application","tags":["Subsidy Applications"],"description":"Cancels a <code>created</code> or <code>active</code> version of a subsidy application, when the customer revokes the authorization (Vollmacht).  The time of the request is the date of the revocation.  The subsidy application status will become <code>canceled</code>, which is final.  To start the authorization again, send a new application with <code>POST /accounts/{account_id}/subsidy_applications</code>.\n\nA <code>422</code> error is returned when the version is <code>superseded</code>.  Canceling a version that is already <code>canceled</code> does nothing: it returns the subsidy application unchanged.\n\nAn event with type <code>subsidy_application.canceled</code> will be created, except when the version was already <code>canceled</code>.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"subsidy_application_id","required":true,"schema":{"title":"Subsidy Application Identifier","type":"string"},"in":"path","example":"sapp_456b2e8f1c3a4d5e9f0a1b2c3d4e5f60","description":"A subsidy application identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubsidyApplicationResponse"},"example":{"id":"sapp_456b2e8f1c3a4d5e9f0a1b2c3d4e5f60","product":"ret_123","eligibility_type":"statutory_pension","other_provider_claim":false,"children":[],"history":[{"status":"canceled","timestamp":"2027-01-15T11:21:00.583914+00:00"},{"status":"active","timestamp":"2026-12-03T14:02:11.204518+00:00"},{"status":"created","timestamp":"2026-12-01T09:00:02.119384+00:00"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Subsidy application is not created or active"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/asset_transfers":{"post":{"summary":"Create Asset Transfer","operationId":"create_asset_transfer","tags":["Asset Transfers"],"description":"Creates a request to move the customer's assets from their previous provider to lemon.markets.  The <code>type</code> field determines the fields of the request.  The asset transfer is returned with status <code>created</code>.  It has no effect until the customer confirms it via <code>POST /accounts/{account_id}/asset_transfers/{asset_transfer_id}/confirm</code>.\n\nWhile the asset transfer is <code>created</code>, the response contains <code>sca</code>.  When <code>sca.required</code> is <code>true</code>, the customer must sign <code>sca.challenge</code> with a registered authenticator.  Send the signature when you confirm the asset transfer.\n\nFor <code>type</code> = <code>retirement</code>:\n<ul> <li>The assets of a Riester or Altersvorsorgedepot contract at the previous provider move into a retirement product of the account. <li>A product can have at most one <code>confirmed</code> asset transfer per <code>direction</code>.  A <code>created</code> asset transfer does not count.  When the product already has a <code>confirmed</code> asset transfer with the same <code>direction</code>, the request fails with the status 422. <li>The asset transfer does not change the status of the product. </ul>\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":100,"title":"Idempotency Key"},"description":"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, also when the asset transfer was confirmed after it.  Use <code>GET /accounts/{account_id}/asset_transfers/{asset_transfer_id}</code> to get the current status. Keys expire after 24 hours. For full details see the [Idempotency guide](/docs/idempotency).\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAssetTransferRequest"},"examples":{"riester":{"summary":"Riester contract at the previous provider","value":{"type":"retirement","direction":"inbound","product":"ret_123","contract":{"type":"riester","contract_number":"T123456701","provider_number":"0202000022","provider_name":"DWS Investment GmbH","certification_number":"012345","subsidy_eligible":true}}},"altersvorsorgedepot":{"summary":"Altersvorsorgedepot contract at the previous provider","value":{"type":"retirement","direction":"inbound","product":"ret_123","contract":{"type":"altersvorsorgedepot","contract_number":"T123456701","provider_number":"0202000022","provider_name":"DWS Investment GmbH","certification_number":"012345"}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTransferResponse"},"examples":{"sca_required":{"summary":"SCA required","value":{"id":"atr_3f9c1a7e5b2d4c6e8a0b1d3f5e7a9c2b","type":"retirement","direction":"inbound","product":"ret_123","contract":{"type":"riester","contract_number":"T123456701","provider_number":"0202000022","provider_name":"DWS Investment GmbH","certification_number":"012345","subsidy_eligible":true},"sca":{"required":true,"challenge":"K7_yR-7ZpTqgeWQ4-bx7Kg=="},"history":[{"status":"created","timestamp":"2026-11-18T10:00:00.481920+00:00"}]}},"sca_not_required":{"summary":"SCA not required","value":{"id":"atr_3f9c1a7e5b2d4c6e8a0b1d3f5e7a9c2b","type":"retirement","direction":"inbound","product":"ret_123","contract":{"type":"riester","contract_number":"T123456701","provider_number":"0202000022","provider_name":"DWS Investment GmbH","certification_number":"012345","subsidy_eligible":true},"sca":{"required":false},"history":[{"status":"created","timestamp":"2026-11-18T10:00:00.481920+00:00"}]}}}}}},"400":{"description":"Bad Request.  Returned when the request is not valid: a required field is missing, a field is not valid, the request has an unknown field, or a field such as <code>type</code> or <code>direction</code> has a value that is not supported.  Also returned when the idempotency key was already used with a different request payload or endpoint, or exceeds the maximum length.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"unknown_field":{"summary":"The request has an unknown field","value":{"message":"Error in 'body': status is not a permitted field"}},"idempotency_key_reused":{"summary":"The idempotency key was used with a different request","value":{"message":"Idempotency key already used with a different request payload"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found.  Returned when the account does not exist.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity.  Returned when the account does not have the status <code>opened</code>.  For <code>type</code> = <code>retirement</code>, also returned when <code>product</code> is not a retirement product of the account, when the product does not have the status <code>opened</code>, or when the product already has a <code>confirmed</code> asset transfer with the same <code>direction</code>.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"product_not_retirement_product":{"summary":"The product is not a retirement product of the account","value":{"message":"Product ret_123 is not a retirement product of the account"}},"account_not_opened":{"summary":"The account is not opened","value":{"message":"Account is not opened"}},"product_not_opened":{"summary":"The product is not opened","value":{"message":"Product is not opened"}},"confirmed_asset_transfer_exists":{"summary":"The product already has a confirmed asset transfer with the same direction","value":{"message":"Product already has a confirmed inbound asset transfer"}}}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"List Asset Transfers","operationId":"list_asset_transfers","tags":["Asset Transfers"],"description":"<strong>Preview:</strong> This endpoint is a preview API and may change without a deprecation period.\n\nLists the asset transfers of the account.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"status","required":false,"schema":{"title":"Status","anyOf":[{"$ref":"#/components/schemas/AssetTransferStatus"},{"type":"string","const":"*"}]},"in":"query","example":"confirmed","description":"Filter by the current status of the asset transfer.  Use <code>*</code> to return the asset transfers regardless of their status.  Without this parameter, the asset transfers of all statuses are returned.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"exclusiveMinimum":0,"type":"integer","default":100},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_AssetTransferResponse_"},"example":{"data":[{"id":"atr_8b2d4f6a1c3e4a5b9d7f0e2c4a6b8d1f","type":"retirement","direction":"inbound","product":"ret_123","contract":{"type":"altersvorsorgedepot","contract_number":"T123456701","provider_number":"0202000022","provider_name":"DWS Investment GmbH","certification_number":"012345","subsidy_eligible":false},"history":[{"status":"confirmed","timestamp":"2026-11-18T10:00:04.112730+00:00"},{"status":"created","timestamp":"2026-11-18T10:00:00.481920+00:00"}]}],"pagination":{"next_cursor":"eyJ2IjoiMSJ9"}}}}},"400":{"description":"Bad Request.  Returned when a filter value or the cursor is not valid, or when a filter is different from the filter in the cursor.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found.  Returned when the account does not exist.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/asset_transfers/{asset_transfer_id}":{"get":{"summary":"Get Asset Transfer","operationId":"get_asset_transfer","tags":["Asset Transfers"],"description":"<strong>Preview:</strong> This endpoint is a preview API and may change without a deprecation period.\n\nRetrieves an asset transfer, with its current history.  The response contains <code>sca</code> only while the asset transfer is <code>created</code>.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"asset_transfer_id","required":true,"schema":{"title":"Asset Transfer Identifier","type":"string","maxLength":255},"in":"path","example":"atr_3f9c1a7e5b2d4c6e8a0b1d3f5e7a9c2b","description":"An asset transfer identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTransferResponse"},"example":{"id":"atr_3f9c1a7e5b2d4c6e8a0b1d3f5e7a9c2b","type":"retirement","direction":"inbound","product":"ret_123","contract":{"type":"riester","contract_number":"T123456701","provider_number":"0202000022","provider_name":"DWS Investment GmbH","certification_number":"012345","subsidy_eligible":true},"history":[{"status":"confirmed","timestamp":"2026-11-18T10:00:04.112730+00:00"},{"status":"created","timestamp":"2026-11-18T10:00:00.481920+00:00"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found.  Returned when the account does not exist, or when the asset transfer does not exist for this account.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/asset_transfers/{asset_transfer_id}/confirm":{"post":{"summary":"Confirm Asset Transfer","operationId":"confirm_asset_transfer","tags":["Asset Transfers"],"description":"<strong>Preview:</strong> This endpoint is a preview API and may change without a deprecation period.\n\nConfirms an asset transfer.  On success, the asset transfer changes from <code>created</code> to <code>confirmed</code> and <code>sca</code> is no longer returned.  The timestamp of the <code>confirmed</code> status is the date of the customer's confirmation.\n\nWhen the asset transfer was created with <code>sca.required</code> = <code>true</code>, send the customer's signature over <code>sca.challenge</code> in <code>sca</code>.  Otherwise, send an empty object (<code>{}</code>).  When <code>sca.required</code> is <code>false</code>, we ignore <code>sca</code>.  When the signature does not verify the challenge, you can send the confirmation again with a new signature over the same challenge.\n\nFor <code>type</code> = <code>retirement</code>:\n<ul> <li>The confirmation is the customer's signature of the power of attorney (Vollmacht).  The timestamp of the <code>confirmed</code> status is the date of the signature. <li>A product can have at most one <code>confirmed</code> asset transfer per <code>direction</code>.  When the product already has a <code>confirmed</code> asset transfer with the same <code>direction</code>, the request fails with the status 422. </ul>\n\nConfirming an asset transfer that is already <code>confirmed</code> returns it unchanged, without verifying <code>sca</code> again.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"asset_transfer_id","required":true,"schema":{"title":"Asset Transfer Identifier","type":"string","maxLength":255},"in":"path","example":"atr_3f9c1a7e5b2d4c6e8a0b1d3f5e7a9c2b","description":"An asset transfer identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmAssetTransferRequest"},"examples":{"sca_required":{"summary":"SCA required","value":{"sca":{"client_credential_id":"cred_950eecf22d3b493b9fb47de80775ee16","signature":"MEUCIQ..."}}},"sca_not_required":{"summary":"SCA not required","value":{}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetTransferResponse"},"example":{"id":"atr_3f9c1a7e5b2d4c6e8a0b1d3f5e7a9c2b","type":"retirement","direction":"inbound","product":"ret_123","contract":{"type":"riester","contract_number":"T123456701","provider_number":"0202000022","provider_name":"DWS Investment GmbH","certification_number":"012345","subsidy_eligible":true},"history":[{"status":"confirmed","timestamp":"2026-11-18T10:00:04.112730+00:00"},{"status":"created","timestamp":"2026-11-18T10:00:00.481920+00:00"}]}}}},"400":{"description":"Bad Request.  Returned when the request is not valid, for example when <code>sca</code> has a missing field.  Also returned when an <code>Idempotency-Key</code> header is sent; this endpoint does not support one.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Idempotency key is not supported on this endpoint"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found.  Returned when the account does not exist, or when the asset transfer does not exist for this account.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity.  Returned when SCA is required but <code>sca</code> is missing, or when the signature does not verify the challenge or the credential is not the customer's.  For <code>type</code> = <code>retirement</code>, also returned when the product already has a <code>confirmed</code> asset transfer with the same <code>direction</code>.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"sca_missing":{"summary":"SCA is required but sca is missing","value":{"message":"SCA is required to confirm the asset transfer"}},"signature_not_verified":{"summary":"The signature does not verify the challenge","value":{"message":"Signature does not verify the challenge"}},"confirmed_asset_transfer_exists":{"summary":"The product already has a confirmed asset transfer with the same direction","value":{"message":"Product already has a confirmed inbound asset transfer"}}}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/fees":{"post":{"summary":"Create Fee","operationId":"create_fee","tags":["Fees"],"description":"Creates a fee on a cash account of the account.  The fee is returned with status <code>created</code>.\n\n<code>reference</code> is your identifier of the fee and is unique across all your fees.  A second fee with the same <code>reference</code> fails with the status 409, also when the request is the same.  To retry a request safely, send an <code>Idempotency-Key</code>.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":100,"title":"Idempotency Key"},"description":"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 <code>GET /accounts/{account_id}/fees/{fee_id}</code> to get the current status. Keys expire after 24 hours. For full details see the [Idempotency guide](/docs/idempotency).\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateFeeRequest"},"example":{"cash_account":"casha_2b1b6dd0e1514bf5bb1f382f249bfb35","type":"agio","amount":"20.00","currency":"EUR","reference":"AGIO-2026-000123"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeeResponse"},"example":{"id":"pfee_92e87fce676d44898353edc240cd78f6","cash_account":"casha_2b1b6dd0e1514bf5bb1f382f249bfb35","type":"agio","status":"created","amount":"20.00","currency":"EUR","reference":"AGIO-2026-000123","collected_amount":"0.00","open_amount":"20.00","history":[{"status":"created","timestamp":"2026-12-10T09:12:03.481920+00:00"}]}}}},"400":{"description":"Bad Request.  Returned when the request is not valid: a required field is missing, a field is not valid, the request has an unknown field, <code>amount</code> is not greater than 0 or has more than 2 decimal places, <code>currency</code> is not <code>EUR</code>, or <code>type</code> has a value that is not supported.  Also returned when the idempotency key was already used with a different request payload or endpoint, or exceeds the maximum length.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"not_eur":{"summary":"The currency is not EUR","value":{"message":"Error in 'body.currency': Only EUR currency is supported"}},"idempotency_key_reused":{"summary":"The idempotency key was used with a different request","value":{"message":"Idempotency key already used with a different request payload"}}}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found.  Returned when the account does not exist, or when <code>cash_account</code> is not a cash account of the account.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict.  Returned when you already used <code>reference</code> for another fee.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Reference 'AGIO-2026-000123' is already taken"}}}},"422":{"description":"Unprocessable Entity.  Returned when the account does not have the status <code>opened</code>.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Account is not opened"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"List Fees","operationId":"list_fees","tags":["Fees"],"description":"Lists the fees of the account, newest first.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"cash_account","required":false,"schema":{"title":"Cash Account","type":"string","maxLength":255},"in":"query","example":"casha_2b1b6dd0e1514bf5bb1f382f249bfb35","description":"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.  Use this parameter to limit results to fees for a specific cash account only.\n"},{"name":"type","required":false,"schema":{"$ref":"#/components/schemas/PartnerFeeType"},"in":"query","example":"agio","description":"Filter by the type of the fee.\n"},{"name":"status","required":false,"schema":{"title":"Status","anyOf":[{"$ref":"#/components/schemas/PartnerFeeStatus"},{"type":"string","const":"*"}]},"in":"query","example":"processing","description":"Filter by the current status of the fee.  Use <code>*</code> to return the fees regardless of their status.  Without this parameter, the fees of all statuses are returned.\n"},{"name":"reference","required":false,"schema":{"title":"Reference","type":"string","maxLength":64},"in":"query","example":"AGIO-2026-000123","description":"Filter by the <code>reference</code> of the fee, exact match.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"exclusiveMinimum":0,"type":"integer","default":100},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_FeeResponse_"},"example":{"data":[{"id":"pfee_dd873d76bdb54bbda89a4fa6920fcbc2","cash_account":"casha_2b1b6dd0e1514bf5bb1f382f249bfb35","type":"agio","status":"processing","amount":"30.00","currency":"EUR","reference":"AGIO-2026-000124","collected_amount":"10.00","open_amount":"20.00","history":[{"status":"processing","timestamp":"2026-12-11T09:00:02.112730+00:00"},{"status":"created","timestamp":"2026-12-11T09:00:00.481920+00:00"}]},{"id":"pfee_92e87fce676d44898353edc240cd78f6","cash_account":"casha_2b1b6dd0e1514bf5bb1f382f249bfb35","type":"agio","status":"processed","amount":"20.00","currency":"EUR","reference":"AGIO-2026-000123","collected_amount":"20.00","open_amount":"0.00","history":[{"status":"processed","timestamp":"2026-12-10T09:12:05.112730+00:00"},{"status":"processing","timestamp":"2026-12-10T09:12:04.112730+00:00"},{"status":"created","timestamp":"2026-12-10T09:12:03.481920+00:00"}]}],"pagination":{"next_cursor":"eyJ2IjoiMSJ9"}}}}},"400":{"description":"Bad Request.  Returned when a filter value or the cursor is not valid, or when a filter is different from the filter in the cursor.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found.  Returned when the account does not exist.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/fees/{fee_id}":{"get":{"summary":"Get Fee","operationId":"get_fee","tags":["Fees"],"description":"Retrieves a fee of the account, with its history.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"fee_id","required":true,"schema":{"title":"Fee Identifier","type":"string"},"in":"path","example":"pfee_92e87fce676d44898353edc240cd78f6","description":"A fee identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeeResponse"},"example":{"id":"pfee_92e87fce676d44898353edc240cd78f6","cash_account":"casha_2b1b6dd0e1514bf5bb1f382f249bfb35","type":"agio","status":"processing","amount":"20.00","currency":"EUR","reference":"AGIO-2026-000123","collected_amount":"5.00","open_amount":"15.00","history":[{"status":"processing","timestamp":"2026-12-10T09:12:05.112730+00:00"},{"status":"created","timestamp":"2026-12-10T09:12:03.481920+00:00"}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found.  Returned when the account does not exist, or when the fee does not exist for this account.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/authenticators":{"post":{"summary":"Create Authenticator","operationId":"create_authenticator","tags":["Accounts: General"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAuthenticatorRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthenticatorResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"List Authenticators","operationId":"list_authenticators","tags":["Accounts: General"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"exclusiveMinimum":0,"type":"integer","default":100},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_AuthenticatorResponse_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/batch_orders":{"post":{"summary":"Create Batch Order","tags":["Batch Orders"],"operationId":"create_batch_order","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string","description":"An account identifier.\n"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"},"in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBatchOrderRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOrderResponse"},"example":{"amount":"50.00","appropriateness_check":{"consent_confirmed_at":null,"consent_required":true},"created_at":"2023-07-14T16:35:19.203369+00:00","currency":"EUR","fee":"0.50","history":[{"status":"created","timestamp":"2023-07-14T16:35:19.203369+00:00"}],"id":"bord_0fef2e8b7962404d94454d8c47caa364","instrument":"IE00B441G979","quantity":null,"regulatory_disclosures":{"entry_costs":"0.50","entry_costs_pct":"1.00","estimated_price":"50.00","estimated_quantity":"0.67911","exit_costs":"0.50","exit_costs_pct":"1.00","impact_final_year":"0.50","impact_final_year_pct":"1.00","impact_first_year":"0.50","impact_first_year_pct":"1.00","impact_subsequent_year":"0.28","impact_subsequent_year_pct":"0.55","kid":"https://mocked.test/kid/IE00B441G979.pdf","product_costs":"0.28","product_costs_pct":"0.55","running_costs":"0.28","running_costs_pct":"0.55","service_costs_total":"0.50","service_costs_total_pct":"1.00","third_party_grants":"0.00","third_party_grants_pct":"0.00"},"sca":{"required":false,"challenge":"am9icy5sZW1vbi5tYXJrZXRz"},"side":"buy","status":"created"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"List Batch Orders","operationId":"list_batch_orders","tags":["Batch Orders"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"exclusiveMinimum":0,"type":"integer","default":100},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderStatus","title":"Status","description":"Use this parameter to filter for batch orders of one specific status.\n"}},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_BatchOrderResponse_"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/batch_orders/{order_id}":{"get":{"summary":"Get Batch Order","tags":["Batch Orders"],"operationId":"get_batch_order","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"order_id","required":true,"schema":{"type":"string","title":"Order Identifier"},"in":"path","example":"bord_0fef2e8b7962404d94454d8c47caa364","description":"A batch order identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOrderResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/batch_orders/{order_id}/confirm":{"post":{"summary":"Confirm Batch Order","tags":["Batch Orders"],"operationId":"confirm_batch_order","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"order_id","required":true,"schema":{"type":"string","title":"Order Identifier"},"in":"path","example":"bord_0fef2e8b7962404d94454d8c47caa364","description":"A batch order identifier.\n"},{"required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmBatchOrderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOrderResponse"},"example":{"amount":"50.00","appropriateness_check":{"consent_confirmed_at":"2023-07-14T17:31:00.495533+00:00","consent_required":true},"created_at":"2023-07-14T16:35:19.203369+00:00","currency":"EUR","fee":"0.50","history":[{"status":"confirmed","timestamp":"2023-07-14T17:31:00.467252+00:00"},{"status":"created","timestamp":"2023-07-14T16:35:19.203369+00:00"}],"id":"bord_0fef2e8b7962404d94454d8c47caa364","instrument":"IE00B441G979","quantity":null,"regulatory_disclosures":{"entry_costs":"0.50","entry_costs_pct":"1.00","estimated_price":"50.00","estimated_quantity":"0.67911","exit_costs":"0.50","exit_costs_pct":"1.00","impact_final_year":"0.50","impact_final_year_pct":"1.00","impact_first_year":"0.50","impact_first_year_pct":"1.00","impact_subsequent_year":"0.28","impact_subsequent_year_pct":"0.55","kid":"https://mocked.test/kid/IE00B441G979.pdf","product_costs":"0.28","product_costs_pct":"0.55","running_costs":"0.28","running_costs_pct":"0.55","service_costs_total":"0.50","service_costs_total_pct":"1.00","third_party_grants":"0.00","third_party_grants_pct":"0.00"},"sca":{"required":false,"challenge":"am9icy5sZW1vbi5tYXJrZXRz"},"side":"buy","status":"confirmed"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/batch_orders/{order_id}/cancel":{"post":{"summary":"Cancel Batch Order","tags":["Batch Orders"],"operationId":"cancel_batch_order","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"order_id","required":true,"schema":{"type":"string","title":"Order Identifier"},"in":"path","example":"bord_0fef2e8b7962404d94454d8c47caa364","description":"A batch order identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOrderResponse"},"example":{"amount":"500.00","appropriateness_check":{"consent_confirmed_at":null,"consent_required":false},"created_at":"2024-04-12T13:44:37.315658+00:00","currency":"EUR","fee":"1.00","history":[{"status":"canceling","timestamp":"2024-04-12T13:50:41.639338+00:00"},{"status":"accepted","timestamp":"2024-04-12T13:49:34.496380+00:00"},{"status":"confirmed","timestamp":"2024-04-12T13:49:33.266583+00:00"},{"status":"created","timestamp":"2024-04-12T13:44:37.315658+00:00"}],"id":"bord_61931714f0a44809bc423fccc82ccbbd","instrument":"IE00BYXYX521","quantity":null,"regulatory_disclosures":{"entry_costs":"1.00","entry_costs_pct":"0.20","estimated_amount":"500.00","estimated_price":"28.6399","estimated_quantity":"17.45816","exit_costs":"1.00","exit_costs_pct":"0.20","impact_final_year":"1.00","impact_final_year_pct":"0.20","impact_first_year":"1.00","impact_first_year_pct":"0.20","impact_subsequent_year":"0.95","impact_subsequent_year_pct":"0.19","kid":"https://kid.sandbox.lemon.markets/2023-11-17/IE00BYXYX521-5f534eec417153a5f638ad091f0a2962.pdf","product_costs":"0.95","product_costs_pct":"0.19","running_costs":"0.95","running_costs_pct":"0.19","service_costs_total":"1.15","service_costs_total_pct":"0.23","third_party_grants":"0.15","third_party_grants_pct":"0.03"},"sca":{"challenge":"b42BB63kg24UPKLFX5CiMA==","required":false},"side":"buy","status":"canceling"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/cash_accounts/{cash_account_id}":{"get":{"summary":"Get Cash Account","operationId":"get_cash_account_by_id","tags":["Cash Accounts"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"},"example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"cash_account_id","in":"path","required":true,"schema":{"type":"string","title":"Cash Account Identifier"},"example":"casha_f076cc37106d4bf7bf5749f423953f35","description":"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.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CashAccountResponse"},"example":{"account_number":"0000000006","iban":"DE58120700700000000006","bic":"DEUTDEFFVAC","name":"Deutsche Bank"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found.  Returned when the cash account does not exist or does not belong to the customer account.\n"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/checks":{"get":{"summary":"Get Account Checks","tags":["Accounts: General"],"operationId":"get_account_checks","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"exclusiveMinimum":0,"type":"integer","default":100},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"category","required":false,"schema":{"$ref":"#/components/schemas/CustomerAccountCheckCategory"},"in":"query","description":"Filter checks by category. Use `offboarding` to retrieve the outstanding actions blocking account closure.\n"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CustomerAccountCheckResponse_"},"example":{"data":[{"data":null,"history":[{"status":"action_required","timestamp":"2023-08-11T16:00:50.837846+00:00"}],"status":"action_required","type":"authenticator_enrollment"},{"data":null,"history":[{"status":"action_required","timestamp":"2023-06-29T14:43:03.937676+00:00"}],"status":"action_required","type":"identity_verification"},{"data":null,"history":[{"status":"processing","timestamp":"2023-06-29T14:43:03.937676+00:00"}],"status":"processing","type":"risk_assessment"}],"pagination":{"next_cursor":null}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/documents":{"get":{"summary":"List Documents","operationId":"list_documents_of_account","tags":["Documents"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"type","required":false,"schema":{"$ref":"#/components/schemas/DocumentType"},"in":"query"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_DocumentResponse_"},"example":{"data":[{"content_type":"application/pdf","context":null,"created_at":"2023-06-30T17:07:26.786573+00:00","id":"doc_8e2a16591a664df89551047d85436562","language":"de","name":"Datenschutzerklärung","type":"contractual","url":"https://sandbox-agreements.lemon.markets/test-document.pdf"}],"pagination":{"next_cursor":"nil"}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/documents/{document_id}":{"get":{"summary":"Get Document","operationId":"get_document","tags":["Documents"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"document_id","required":true,"schema":{"title":"Document Identifier","type":"string"},"in":"path","description":"A document identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/submit_document":{"post":{"summary":"Submit Document","operationId":"submit_document_upload","tags":["Documents"],"parameters":[{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"description":"Submit a document for either a person or a business. This endpoint returns a presigned upload URL that can be used to upload the document file.\n\nThe request must specify either a person document or a business document based on the `type` field. The response will contain a presigned `upload_location` URL that expires after a certain time.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PersonDocumentUploadRequest"},{"$ref":"#/components/schemas/BusinessDocumentUploadRequestV2"}],"discriminator":{"propertyName":"type","mapping":{"person.identification_bundle":"#/components/schemas/PersonDocumentUploadRequest","business.articles_of_association":"#/components/schemas/BusinessDocumentUploadRequestV2","business.commercial_register_extract":"#/components/schemas/BusinessDocumentUploadRequestV2","business.shareholder_list":"#/components/schemas/BusinessDocumentUploadRequestV2"}}},"examples":{"person_document":{"summary":"Person identification bundle","value":{"person":"pers_0453deb1c90448c99f24adaa833cfda9","type":"person.identification_bundle"}},"business_document":{"summary":"Business shareholder list","value":{"business":"le_8e2a16591a664df89551047d85436562","type":"business.shareholder_list"}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PersonDocumentUploadResponse"},{"$ref":"#/components/schemas/BusinessDocumentUploadResponseV2"}],"discriminator":{"propertyName":"type","mapping":{"person.identification_bundle":"#/components/schemas/PersonDocumentUploadResponse","business.articles_of_association":"#/components/schemas/BusinessDocumentUploadResponseV2","business.commercial_register_extract":"#/components/schemas/BusinessDocumentUploadResponseV2","business.shareholder_list":"#/components/schemas/BusinessDocumentUploadResponseV2"}}},"examples":{"person_document":{"summary":"Person document upload response","value":{"person":"pers_0453deb1c90448c99f24adaa833cfda9","type":"person.identification_bundle","upload_location":"https://example.com/upload-person-document-12345","expires_at":"2024-11-18T13:36:09.478814+00:00"}},"business_document":{"summary":"Business document upload response","value":{"business":"le_8e2a16591a664df89551047d85436562","type":"business.shareholder_list","upload_location":"https://example.com/upload-business-document-12345","expires_at":"2024-11-18T13:36:09.478814+00:00"}}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/experience":{"post":{"summary":"Set Experience Profile","operationId":"set_experience_profile","tags":["Accounts: General"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceTransition-Input"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceTransition-Output"},"example":{"non_complex_products":{"experience":"none","knowledge":"none"},"structured_investment_products":null,"swap_based_ucits_and_alternative_investment_funds":null}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"Get Experience Profile","tags":["Accounts: General"],"operationId":"get_experience_profile","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceTransition-Output"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"patch":{"summary":"Update Knowledge","tags":["Accounts: General"],"operationId":"update_knowledge","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Id"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceTransitionKnowledge-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExperienceTransition-Output"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/financials":{"get":{"summary":"Get Financials","operationId":"get_financials_accounts__account_id__financials_get","tags":["Money + Positions"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"cash_account","in":"query","required":false,"schema":{"type":"string","maxLength":255,"title":"Cash Account"},"example":"casha_f076cc37106d4bf7bf5749f423953f35","description":"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.  Use this parameter to limit results to the financials of a specific cash account only.  When omitted, the financials are aggregated across all cash accounts of the customer account.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerAccountFinancialsResponse"},"example":{"balance":"1000.00","blocked":"100.00","buying_power":"950.00","currency":"EUR","funds_to_withdraw":"900.00","to_be_settled":"50.00"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found.  Returned when the account does not exist, or when `cash_account` is supplied and the cash account does not exist or does not belong to the customer account.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/identity_verification":{"post":{"summary":"Start Identity Verification","operationId":"start_identity_verification","tags":["Accounts: ID+V"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateKYCRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitiateKYCResponse"},"example":{"url":"https://example.com/video-ident?id=123456789","video_ident_id":"123456789"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/income_distributions":{"get":{"summary":"List Income Distributions","operationId":"list_income_distributions","tags":["Corporate Actions"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"},"example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"instrument","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument"},"description":"An ISIN (International Securities Identification Number) according to ISO 6166. Use this filter to restrict elements to a specific instrument.\n"},{"name":"cursor","in":"query","required":false,"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","schema":{"type":"string","title":"Cursor"}},{"name":"limit","in":"query","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_IncomeDistributionResponse_"},"example":{"data":[{"amount":"100.01","currency":"EUR","direction":"credit","id":"ca_am_9550285db6174488b3ddcb9e7ce5c95b","instrument":"IE000CNSFAR2","payable_date":"2025-02-24","taxes":[{"amount":"2.20","direction":"debit","type":"church"},{"amount":"1.34","direction":"debit","type":"solidarity_surcharge"},{"amount":"24.45","direction":"debit","type":"capital_gains"}]}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/income_distributions/{income_distribution_id}":{"get":{"summary":"Get Income Distribution","operationId":"get_income_distribution","tags":["Corporate Actions"],"parameters":[{"name":"income_distribution_id","in":"path","required":true,"schema":{"type":"string","title":"Income Distribution Identifier"},"description":"An Income Distribution Identifier\n"},{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"},"example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncomeDistributionResponse"},"example":{"amount":"100.01","currency":"EUR","direction":"credit","id":"ca_am_9550285db6174488b3ddcb9e7ce5c95b","instrument":"IE000CNSFAR2","payable_date":"2025-02-24","taxes":[{"amount":"2.20","direction":"debit","type":"church"},{"amount":"1.34","direction":"debit","type":"solidarity_surcharge"},{"amount":"24.45","direction":"debit","type":"capital_gains"}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/corporate_actions":{"get":{"summary":"List Corporate Actions (Account-level)","operationId":"list_corporate_actions","tags":["Corporate Actions"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"},"example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CorporateActionType"},"description":"Filter corporate actions by type. Available values are `cash_dividend` and `income_distribution`.\n"},{"name":"instrument","in":"query","required":false,"schema":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument"},"description":"An ISIN (International Securities Identification Number) according to ISO 6166. Use this filter to restrict elements to a specific instrument.\n"},{"name":"securities_account","in":"query","required":false,"schema":{"type":"string","title":"Securities Account"},"description":"Filter corporate actions by securities account.\n","example":"sec_acc_654asdh5bb2ys45g42b0bgtjd2tjt566w41"},{"name":"cursor","in":"query","required":false,"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","schema":{"type":"string","title":"Cursor"}},{"name":"limit","in":"query","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_CorporateActionResponseUnion_"},"example":{"data":[{"id":"ca_cusa__f076cc37106d4bf7bf5749f423953f35","securities_account":"sec_ac_50f9103fbba44a6080658bce20629d39","instrument":"DE0009848119","type":"income_distribution","direction":"credit","payable_date":"2026-06-04","amount":"0.21","currency":"EUR","taxes":[{"type":"church","amount":"0.00","direction":"debit"},{"type":"solidarity_surcharge","amount":"0.00","direction":"debit"},{"type":"capital_gains","amount":"0.05","direction":"debit"}]},{"id":"ca_cusa__b042d117bc254fcba9d845800c413695","securities_account":"sec_ac_50f9103fbba44a6080658bce20629d39","instrument":"DE0005909006","type":"cash_dividend","ex_date":"2026-05-19","record_date":"2026-05-18","payable_date":"2026-05-21","amount_per_share":"2.80","amount_per_share_currency":"EUR","amount":"3278.80","currency":"EUR","shares_on_ex_date":"1171.00000","taxes":[{"type":"church","amount":"0.00","direction":"debit"},{"type":"solidarity_surcharge","amount":"45.08","direction":"debit"},{"type":"capital_gains","amount":"819.70","direction":"debit"}]}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/corporate_actions/{corporate_action_id}":{"get":{"summary":"Get Corporate Action (Account-level)","operationId":"get_corporate_action","tags":["Corporate Actions"],"parameters":[{"name":"corporate_action_id","in":"path","required":true,"schema":{"type":"string","title":"Corporate Action Identifier"},"description":"A corporate action identifier.\n"},{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"},"example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CorporateActionResponseUnion"},"examples":{"cash_dividend":{"summary":"Cash Dividend","value":{"id":"ca_cusa__b042d117bc254fcba9d845800c413695","securities_account":"sec_ac_50f9103fbba44a6080658bce20629d39","instrument":"DE0005909006","type":"cash_dividend","ex_date":"2026-05-19","record_date":"2026-05-18","payable_date":"2026-05-21","amount_per_share":"2.80","amount_per_share_currency":"EUR","amount":"3278.80","currency":"EUR","shares_on_ex_date":"1171.00000","taxes":[{"type":"church","amount":"0.00","direction":"debit"},{"type":"solidarity_surcharge","amount":"45.08","direction":"debit"},{"type":"capital_gains","amount":"819.70","direction":"debit"}]}},"income_distribution":{"summary":"Income Distribution","value":{"id":"ca_cusa__f076cc37106d4bf7bf5749f423953f35","securities_account":"sec_ac_50f9103fbba44a6080658bce20629d39","instrument":"DE0009848119","type":"income_distribution","direction":"credit","payable_date":"2026-06-04","amount":"0.21","currency":"EUR","taxes":[{"type":"church","amount":"0.00","direction":"debit"},{"type":"solidarity_surcharge","amount":"0.00","direction":"debit"},{"type":"capital_gains","amount":"0.05","direction":"debit"}]}}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/corporate_actions":{"get":{"summary":"List Corporate Actions (Instrument-level)","operationId":"list_corporate_actions_general","tags":["Corporate Actions"],"parameters":[{"name":"instrument","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$"},"title":"Instrument"},"description":"One or more ISINs (International Securities Identification Numbers) according to ISO 6166. Use this filter to restrict elements to specific instruments.\n"},{"name":"status","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/CorporateActionStatus"},"title":"Status"},"description":"Filter corporate actions by status.\n"},{"name":"cursor","in":"query","required":false,"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","schema":{"type":"string","title":"Cursor"}},{"name":"limit","in":"query","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_InstrumentLevelCorporateActionResponseUnion_"},"example":{"data":[{"id":"ca_f076cc37106d4bf7bf5749f423953f35","type":"income_distribution","instrument":"DE0009848119","payable_date":"2026-06-04","daily_factors":[{"date":"2026-06-01","factor":"0.000123"},{"date":"2026-06-02","factor":"0.000124"}],"currency":"EUR","history":[{"status":"created","timestamp":"2026-05-20T10:00:00.000000+00:00"},{"status":"processed","timestamp":"2026-06-04T08:30:00.000000+00:00"}]},{"id":"ca_b042d117bc254fcba9d845800c413695","type":"cash_dividend","instrument":"DE0005909006","announcement_date":"2026-05-10","ex_date":"2026-05-19","record_date":"2026-05-18","payable_date":"2026-05-21","amount_per_share":"2.80","currency":"EUR","history":[{"status":"created","timestamp":"2026-05-10T12:00:00.000000+00:00"},{"status":"processed","timestamp":"2026-05-21T09:00:00.000000+00:00"}]},{"id":"ca_a91e4c82d3f74a1cbb7d0e6f5a812c49","type":"instrument_name_change","instrument":"DE0007100000","effective_date":"2026-07-01","new_title":"MERCEDES-BENZ GRP","new_title_extended":"MERCEDES-BENZ GROUP AG","old_title":"DAIMLER AG","old_title_extended":"DAIMLER AKTIENGESELLSCHAFT","history":[{"status":"created","timestamp":"2026-06-15T08:00:00.000000+00:00"},{"status":"processed","timestamp":"2026-07-01T06:00:00.000000+00:00"}]}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/corporate_actions/{corporate_action_id}":{"get":{"summary":"Get Corporate Action (Instrument-level)","operationId":"get_corporate_action_general","tags":["Corporate Actions"],"parameters":[{"name":"corporate_action_id","in":"path","required":true,"schema":{"type":"string","title":"Corporate Action Identifier"},"description":"A corporate action identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstrumentLevelCorporateActionResponseUnion"},"examples":{"cash_dividend":{"summary":"Cash Dividend","value":{"id":"ca_b042d117bc254fcba9d845800c413695","type":"cash_dividend","instrument":"DE0005909006","announcement_date":"2026-05-10","ex_date":"2026-05-19","record_date":"2026-05-18","payable_date":"2026-05-21","amount_per_share":"2.80","currency":"EUR","history":[{"status":"created","timestamp":"2026-05-10T12:00:00.000000+00:00"},{"status":"processed","timestamp":"2026-05-21T09:00:00.000000+00:00"}]}},"income_distribution":{"summary":"Income Distribution","value":{"id":"ca_f076cc37106d4bf7bf5749f423953f35","type":"income_distribution","instrument":"DE0009848119","payable_date":"2026-06-04","daily_factors":[{"date":"2026-06-01","factor":"0.000123"},{"date":"2026-06-02","factor":"0.000124"}],"currency":"EUR","history":[{"status":"created","timestamp":"2026-05-20T10:00:00.000000+00:00"},{"status":"processed","timestamp":"2026-06-04T08:30:00.000000+00:00"}]}},"instrument_name_change":{"summary":"Instrument Name Change","value":{"id":"ca_a91e4c82d3f74a1cbb7d0e6f5a812c49","type":"instrument_name_change","instrument":"DE0007100000","effective_date":"2026-07-01","new_title":"MERCEDES-BENZ GRP","new_title_extended":"MERCEDES-BENZ GROUP AG","old_title":"DAIMLER AG","old_title_extended":"DAIMLER AKTIENGESELLSCHAFT","history":[{"status":"created","timestamp":"2026-06-15T08:00:00.000000+00:00"},{"status":"processed","timestamp":"2026-07-01T06:00:00.000000+00:00"}]}}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/orders":{"post":{"summary":"Create Order","operationId":"create_order","tags":["Orders"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":100,"title":"Idempotency Key"},"description":"An optional idempotency key to safely retry requests without creating duplicate resources. Pass a unique string (UUID recommended, max 100 characters). Keys expire after 24 hours. For full details see the [Idempotency guide](/docs/idempotency).\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"get":{"summary":"List Orders","operationId":"list_orders","tags":["Orders"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/OrderStatus","title":"Status"}},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}},{"name":"securities_account","in":"query","required":false,"schema":{"type":"string","title":"Securities Account","description":"A securities account identifier.  Use this to filter the results to the orders related to a specific securities account.\n"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_OrderResponse_"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/orders/{order_id}":{"get":{"summary":"Get Order","operationId":"get_order","tags":["Orders"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Identifier"},"description":"An order identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/orders/{order_id}/cancel":{"post":{"summary":"Cancel Order","operationId":"cancel_order","tags":["Orders"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Identifier"},"description":"An order identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/orders/{order_id}/confirm":{"post":{"summary":"Confirm Order","operationId":"confirm_order","tags":["Orders"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Identifier"},"description":"An order identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/payment_instrument_mandates":{"post":{"summary":"Create Payment Instrument Mandate","operationId":"create_payment_instrument_mandate","tags":["Payment Instrument Mandates"],"description":"<strong>Preview:</strong> This endpoint is a preview API and may change without a deprecation period.\n\nCreates a SEPA Direct Debit mandate for the customer's bank account (the debtor account).  The mandate is returned with status <code>created</code> and cannot be used for collections until it is confirmed via <code>POST /accounts/{account_id}/payment_instrument_mandates/{payment_instrument_mandate_id}/confirm</code>.\n\nlemon.markets assigns the <code>mandate_reference</code> and the <code>creditor</code> data.  Before confirmation, present the mandate to the customer together with the creditor and debtor data.\n\nWhile the mandate is <code>created</code>, the response contains <code>sca</code>.  When <code>sca.required</code> is <code>true</code>, the customer must sign <code>sca.challenge</code> with a registered authenticator and the signature must be sent when confirming the mandate.\n\nA customer account can have at most one <code>confirmed</code> mandate per debtor bank account.\n\nAn event with type <code>payment_instrument_mandate.created</code> will be created.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":100,"title":"Idempotency Key"},"description":"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 mandate created by the first request. For full details see the [Idempotency guide](/docs/idempotency).\n"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentInstrumentMandateRequest"},"example":{"type":"sepa_direct_debit","debtor":{"iban":"DE02120300000000202051","bic":"BYLADEM1001","account_holder_name":"Erika Mustermann"}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentInstrumentMandateResponse"},"example":{"id":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","type":"sepa_direct_debit","mandate_reference":"LM0A1B2C3D4E5F6G7H8J9K","debtor":{"iban":"DE02120300000000202051","bic":"BYLADEM1001","account_holder_name":"Erika Mustermann"},"creditor":{"identifier":"DE98ZZZ09999999999","name":"lemon.markets brokerage GmbH","address":{"line_1":"Prinzessinnenstrasse 19-20","postal_code":"10969","city":"Berlin","country":"DE"}},"sca":{"required":true,"challenge":"K7_yR-7ZpTqgeWQ4-bx7Kg=="},"history":[{"status":"created","timestamp":"2026-10-19T09:15:00.123456+00:00"}]}}}},"400":{"description":"Bad Request.  Returned when the idempotency key was already used with a different request payload or endpoint, or exceeds the maximum length.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Idempotency key already used with a different request payload"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity.  Returned when the debtor account cannot be used for this mandate, when a confirmed mandate already authorizes the same debtor account, or when mandate creation is disabled for this customer account.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"A confirmed mandate already authorizes this debtor account"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"List Payment Instrument Mandates","operationId":"list_payment_instrument_mandates","tags":["Payment Instrument Mandates"],"description":"<strong>Preview:</strong> This endpoint is a preview API and may change without a deprecation period.\n\nLists the payment instrument mandates of the customer account, newest first.  <code>canceled</code> and <code>rejected</code> mandates remain listed as history.  Filters can be combined.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/PaymentInstrumentMandateStatus"},{"type":"string","const":"*"}]},"description":"Only return mandates whose current status is the given one.  Set to <code>*</code> to return mandates of every status, the same as omitting this parameter.\n"},{"name":"type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PaymentInstrumentMandateType"},"description":"Only return mandates of the given payment method.\n"},{"name":"mandate_reference","in":"query","required":false,"schema":{"type":"string","maxLength":35,"title":"Mandate Reference"},"example":"LM0A1B2C3D4E5F6G7H8J9K","description":"Only return the mandate with the given mandate reference.  The comparison ignores case.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_PaymentInstrumentMandateResponse_"},"example":{"data":[{"id":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","type":"sepa_direct_debit","mandate_reference":"LM0A1B2C3D4E5F6G7H8J9K","debtor":{"iban":"DE02120300000000202051","bic":"BYLADEM1001","account_holder_name":"Erika Mustermann"},"creditor":{"identifier":"DE98ZZZ09999999999","name":"lemon.markets brokerage GmbH","address":{"line_1":"Prinzessinnenstrasse 19-20","postal_code":"10969","city":"Berlin","country":"DE"}},"history":[{"status":"confirmed","timestamp":"2026-10-19T09:16:00.654321+00:00"},{"status":"created","timestamp":"2026-10-19T09:15:00.123456+00:00"}]}],"pagination":{}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/payment_instrument_mandates/{payment_instrument_mandate_id}":{"get":{"summary":"Get Payment Instrument Mandate","operationId":"get_payment_instrument_mandate","tags":["Payment Instrument Mandates"],"description":"<strong>Preview:</strong> This endpoint is a preview API and may change without a deprecation period.\n\nRetrieves a payment instrument mandate of the customer account.  The current status is the latest entry in <code>history</code>.  <code>sca</code> is only present while the mandate awaits confirmation.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"payment_instrument_mandate_id","required":true,"schema":{"title":"Payment Instrument Mandate Identifier","type":"string"},"in":"path","example":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","description":"A payment instrument mandate identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentInstrumentMandateResponse"},"example":{"id":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","type":"sepa_direct_debit","mandate_reference":"LM0A1B2C3D4E5F6G7H8J9K","debtor":{"iban":"DE02120300000000202051","bic":"BYLADEM1001","account_holder_name":"Erika Mustermann"},"creditor":{"identifier":"DE98ZZZ09999999999","name":"lemon.markets brokerage GmbH","address":{"line_1":"Prinzessinnenstrasse 19-20","postal_code":"10969","city":"Berlin","country":"DE"}},"history":[{"status":"confirmed","timestamp":"2026-10-19T09:16:00.654321+00:00"},{"status":"created","timestamp":"2026-10-19T09:15:00.123456+00:00"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/payment_instrument_mandates/{payment_instrument_mandate_id}/confirm":{"post":{"summary":"Confirm Payment Instrument Mandate","operationId":"confirm_payment_instrument_mandate","tags":["Payment Instrument Mandates"],"description":"<strong>Preview:</strong> This endpoint is a preview API and may change without a deprecation period.\n\nConfirms a mandate the customer accepted, so that it can be used for collections.  On success, the mandate changes from <code>created</code> to <code>confirmed</code> and <code>sca</code> is no longer returned.  The timestamp of the <code>confirmed</code> status is the mandate signing date.\n\nWhen the mandate was created with <code>sca.required</code> = <code>true</code>, send the customer's signature over <code>sca.challenge</code> in <code>sca</code>.  Otherwise, send an empty object (<code>{}</code>).\n\nConfirming an already confirmed mandate returns it unchanged.\n\nAn event with type <code>payment_instrument_mandate.confirmed</code> will be created.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"payment_instrument_mandate_id","required":true,"schema":{"title":"Payment Instrument Mandate Identifier","type":"string"},"in":"path","example":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","description":"A payment instrument mandate identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmPaymentInstrumentMandateRequest"},"examples":{"sca_required":{"summary":"SCA required","value":{"sca":{"client_credential_id":"cred_950eecf22d3b493b9fb47de80775ee16","signature":"MEUCIQ..."}}},"sca_not_required":{"summary":"SCA not required","value":{}}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentInstrumentMandateResponse"},"example":{"id":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","type":"sepa_direct_debit","mandate_reference":"LM0A1B2C3D4E5F6G7H8J9K","debtor":{"iban":"DE02120300000000202051","bic":"BYLADEM1001","account_holder_name":"Erika Mustermann"},"creditor":{"identifier":"DE98ZZZ09999999999","name":"lemon.markets brokerage GmbH","address":{"line_1":"Prinzessinnenstrasse 19-20","postal_code":"10969","city":"Berlin","country":"DE"}},"history":[{"status":"confirmed","timestamp":"2026-10-19T09:16:00.654321+00:00"},{"status":"created","timestamp":"2026-10-19T09:15:00.123456+00:00"}]}}}},"400":{"description":"Bad Request.  Returned when an <code>Idempotency-Key</code> header is sent; this endpoint does not support one.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Idempotency key is not supported on this endpoint"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity.  Returned when SCA is required but <code>sca</code> is missing, when the signature does not verify the challenge, when the debtor account cannot be verified, when another mandate for the same debtor account was confirmed in the meantime, when mandate confirmation is disabled for this customer account, or when the mandate's current status does not allow confirmation.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Signature does not verify the challenge"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/payment_instrument_mandates/{payment_instrument_mandate_id}/cancel":{"post":{"summary":"Cancel Payment Instrument Mandate","operationId":"cancel_payment_instrument_mandate","tags":["Payment Instrument Mandates"],"description":"<strong>Preview:</strong> This endpoint is a preview API and may change without a deprecation period.\n\nCancels a mandate the customer revoked, so that no further collections use it.  A mandate with status <code>created</code> or <code>confirmed</code> can be canceled.  <code>canceled</code> is a terminal status: to collect from the same bank account again, create and confirm a new mandate.\n\nCanceling an already canceled mandate returns it unchanged.\n\nAn event with type <code>payment_instrument_mandate.canceled</code> will be created.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"payment_instrument_mandate_id","required":true,"schema":{"title":"Payment Instrument Mandate Identifier","type":"string"},"in":"path","example":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","description":"A payment instrument mandate identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentInstrumentMandateResponse"},"example":{"id":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","type":"sepa_direct_debit","mandate_reference":"LM0A1B2C3D4E5F6G7H8J9K","debtor":{"iban":"DE02120300000000202051","bic":"BYLADEM1001","account_holder_name":"Erika Mustermann"},"creditor":{"identifier":"DE98ZZZ09999999999","name":"lemon.markets brokerage GmbH","address":{"line_1":"Prinzessinnenstrasse 19-20","postal_code":"10969","city":"Berlin","country":"DE"}},"history":[{"status":"canceled","timestamp":"2026-11-02T12:00:00.987654+00:00"},{"status":"confirmed","timestamp":"2026-10-19T09:16:00.654321+00:00"},{"status":"created","timestamp":"2026-10-19T09:15:00.123456+00:00"}]}}}},"400":{"description":"Bad Request.  Returned when an <code>Idempotency-Key</code> header is sent; this endpoint does not support one.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Idempotency key is not supported on this endpoint"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity.  Returned when the mandate's current status does not allow cancellation, e.g. because it was <code>rejected</code>.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"The mandate's current state does not allow cancellation"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/positions":{"get":{"tags":["Money + Positions"],"summary":"Get Positions","operationId":"get_positions","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"securities_account","in":"query","required":false,"schema":{"type":"string","title":"Securities Account"},"description":"A securities account identifier.  Use this parameter to limit results to positions for a specific securities account only.\n"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_PositionsResponse_"},"example":{"data":[{"buy_in":"139.7589","currency":"EUR","instrument":{"isin":"DE0005933931","title":"iShares Core DAX UCITS ETF DE"},"latest_bid":"151.9200","latest_price":{"amount":"151.9200","type":"quote","updated_at":"2026-04-23T10:30:00+00:00"},"quantity":"7.95219"},{"buy_in":"224.2147","currency":"EUR","instrument":{"isin":"IE00B0M62X26","title":"iShs EO Inf.Li.Gov.Bd U.ETF(D)"},"latest_bid":"225.1401","latest_price":{"amount":"225.1401","type":"quote","updated_at":"2026-04-23T10:30:00+00:00"},"quantity":"0.89200"},{"buy_in":"74.0859","currency":"EUR","instrument":{"isin":"IE00B441G979","title":"iShsV-MSCI W.EUR Hgd U.ETF Acc"},"latest_bid":"87.3500","latest_price":{"amount":"87.3500","type":"quote","updated_at":"2026-04-23T10:30:00+00:00"},"quantity":"681.82608"},{"buy_in":"1.0000","currency":"EUR","instrument":{"isin":"IE0008643037","title":"DWS Dt.Gl.Liq.-Man. Euro"},"latest_price":{"amount":"1.0000","type":"nav","valuation_date":"2026-04-23"},"quantity":"280.67394"}],"pagination":{"next_cursor":null}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/securities_accounts":{"post":{"summary":"Create Securities Account","operationId":"create_securities_account","tags":["Securities Accounts"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"},"example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/broker__apps__api__endpoints__securities_accounts__SecuritiesAccountResponse"},"example":{"id":"sec_ac_00e49aeab85844c89de57929bcb0f76a","account_number":"LMM867947731","cash_account":"casha_f076cc37106d4bf7bf5749f423953f35","product":"brok_c4ad0c3244bb4a7d97ee760290627dc2","history":[{"status":"created","timestamp":"2025-07-14T11:36:27.530203+00:00"}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"get":{"summary":"List Securities Accounts","operationId":"list_securities_accounts","tags":["Securities Accounts"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"},"example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"default":100,"type":"integer"},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/SecuritiesAccountStatus","title":"Status"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_SecuritiesAccountResponse_"},"example":{"data":[{"id":"sec_ac_00e49aeab85844c89de57929bcb0f76a","account_number":"LMM867947731","cash_account":"casha_f076cc37106d4bf7bf5749f423953f35","product":"brok_c4ad0c3244bb4a7d97ee760290627dc2","history":[{"status":"opened","timestamp":"2025-07-14T11:36:28.157491+00:00"},{"status":"created","timestamp":"2025-07-14T11:36:27.530203+00:00"}]},{"id":"sec_ac_2f532772b8f84da9859215754a50f091","account_number":"LMM000000127","cash_account":"casha_2b1b6dd0e1514bf5bb1f382f249bfb35","product":"ret_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","history":[{"status":"opened","timestamp":"2023-07-14T16:14:22.645530+00:00"},{"status":"created","timestamp":"2023-07-14T16:10:50.160199+00:00"}]}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/securities_accounts/{securities_account_id}":{"get":{"summary":"Get Securities Account","operationId":"get_securities_account","tags":["Securities Accounts"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"},"example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"securities_account_id","in":"path","required":true,"schema":{"type":"string","title":"Securities Account Identifier"},"example":"sec_ac_00e49aeab85844c89de57929bcb0f76a","description":"A securities account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/broker__apps__api__endpoints__securities_accounts__SecuritiesAccountResponse"},"example":{"id":"sec_ac_00e49aeab85844c89de57929bcb0f76a","account_number":"LMM867947731","cash_account":"casha_f076cc37106d4bf7bf5749f423953f35","product":"brok_c4ad0c3244bb4a7d97ee760290627dc2","history":[{"status":"opened","timestamp":"2025-07-14T11:36:28.157491+00:00"},{"status":"created","timestamp":"2025-07-14T11:36:27.530203+00:00"}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/sweeps":{"get":{"summary":"List Balance Sweeps","tags":["Money + Positions"],"operationId":"list_sweeps","parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account ID"}},{"name":"cash_account","in":"query","required":false,"schema":{"type":"string","maxLength":255,"title":"Cash Account"},"example":"casha_f076cc37106d4bf7bf5749f423953f35","description":"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.  Use this parameter to limit results to balance sweeps for a specific cash account only.\n"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SweepResponse_"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/sweeps/{sweep_id}":{"get":{"summary":"Get Balance Sweep","tags":["Money + Positions"],"operationId":"get_sweep","parameters":[{"name":"sweep_id","in":"path","required":true,"schema":{"type":"string","title":"Sweep Id"}},{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account ID"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SweepResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/tax_exemption_orders":{"get":{"summary":"List Tax Exemption Orders","operationId":"list_tax_exemption_orders","tags":["Taxes"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"}},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TaxExemptionOrderStatus","title":"Status","description":"Use this parameter to filter for tax exemption orders of a specific status.\n"}},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n**NOTE:** Tax exemption usage will only be updated in a batch process.  It may take a while until tax exemption orders are considered.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_TaxExemptionOrderResponse_"},"example":{"data":[{"amount_total":"123.45","currency":"EUR","history":[{"status":"accepted","timestamp":"2024-11-27T12:27:27.369001+00:00"},{"status":"created","timestamp":"2024-11-27T12:27:26.162280+00:00"}],"id":"tax_ex_7ed656e0438b47e192469e162d158408","type":"individual","valid_from":"2024","valid_until":null}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"post":{"summary":"Create Tax Exemption Order","operationId":"create_tax_exemption_order","tags":["Taxes"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaxExemptionOrderRequest"},"example":{"amount_total":"123.45","currency":"EUR","type":"individual","valid_from":"2024"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxExemptionOrderResponse"},"example":{"amount_total":"123.45","currency":"EUR","history":[{"status":"created","timestamp":"2024-11-27T12:27:26.162280+00:00"}],"id":"tax_ex_7ed656e0438b47e192469e162d158408","type":"individual","valid_from":"2024","valid_until":null}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Error in 'body.amount_total': Decimal input should have no more than 2 decimal places"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Account has no tax identification number associated with it"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/tax_exemption_orders/{tax_exemption_order_id}":{"get":{"summary":"Get Tax Exemption Order","operationId":"get_tax_exemption_order","tags":["Taxes"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"}},{"name":"tax_exemption_order_id","in":"path","required":true,"schema":{"type":"string","title":"Identifier for Tax Exemption Order"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxExemptionOrderResponse"},"example":{"amount_total":"123.45","currency":"EUR","history":[{"status":"accepted","timestamp":"2024-11-27T12:27:27.369001+00:00"},{"status":"created","timestamp":"2024-11-27T12:27:26.162280+00:00"}],"id":"tax_ex_7ed656e0438b47e192469e162d158408","type":"individual","valid_from":"2024","valid_until":null}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/tax_exemption_orders/{tax_exemption_order_id}/cancel":{"post":{"summary":"Cancel Tax Exemption Order","operationId":"cancel_tax_exemption_order","tags":["Taxes"],"parameters":[{"name":"tax_exemption_order_id","in":"path","required":true,"schema":{"type":"string","title":"Tax Exemption Order Identifier"}},{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxExemptionOrderResponse"},"example":{"amount_total":"123.45","currency":"EUR","history":[{"status":"canceling","timestamp":"2024-11-27T13:21:21.537340+00:00"},{"status":"accepted","timestamp":"2024-11-27T12:27:27.369001+00:00"},{"status":"created","timestamp":"2024-11-27T12:27:26.162280+00:00"}],"id":"tax_ex_7ed656e0438b47e192469e162d158408","type":"individual","valid_from":"2024","valid_until":null}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/contribution_caps":{"get":{"summary":"List Contribution Caps","operationId":"list_contribution_caps","tags":["Accounts: General"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"},"example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"year","in":"query","required":false,"schema":{"type":"string","title":"Year"},"example":"2027","description":"Filter contribution caps by year.\n"},{"name":"product","in":"query","required":false,"schema":{"type":"string","maxLength":255,"title":"Product"},"example":"ret_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","description":"Filter contribution caps by the identifier of a retirement product. If omitted, contribution caps for all retirement products of the account are returned. Responds with `404` if the product is not a retirement product of the account.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ContributionCapResponse"}},"example":[{"year":"2027","product":"ret_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","amount_total":"6840.00","amount_used":"0.00","currency":"EUR"}]}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/tax_exemption_usages":{"get":{"summary":"List Tax Exemption Usages","operationId":"list_tax_exemption_usages","tags":["Taxes"],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","title":"Account Identifier"}},{"name":"year","in":"query","required":false,"schema":{"type":"string","title":"Year","description":"Use this parameter to filter for tax exemption usage of a specific year.\n"}},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_TaxExemptionUsageResponse_"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/trades":{"get":{"summary":"List Trades","tags":["Trades"],"operationId":"list_trades","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"instrument","in":"query","required":false,"schema":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. Use this filter to restrict the returned list to trades for a specific instrument.\n"},"example":"bord_0fef2e8b7962404d94454d8c47caa364"},{"name":"order","in":"query","required":false,"schema":{"type":"string","title":"Order","description":"An order identifier.  Use this to filter the results to the trades related to a specific order.\n"}},{"name":"securities_account","in":"query","required":false,"schema":{"type":"string","title":"Securities Account","description":"A securities account identifier.  Use this to filter the results to the trades related to a specific securities account.\n"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_TradeResponse_"},"example":{"data":[{"amount":"100.00","currency":"EUR","executed_at":"2023-06-29T14:39:29.927565+00:00","execution_venue":"XGAT","fee":"0.10","id":"tr_611041a7e62c4e7d82a8dd86f91e7277","instrument":"IE00B0M62X26","order":"bord_b088cafa88564670a4b7e1acc7e30b5b","price":"216.0199","quantity":"0.46292","side":"buy","taxes":[]}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/trades/{trade_id}":{"get":{"summary":"Get Trade","tags":["Trades"],"operationId":"get_trade","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"trade_id","in":"path","required":true,"description":"A trade identifier.\n","schema":{"type":"string","title":"Trade Identifier"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TradeResponse"},"example":{"amount":"100.00","currency":"EUR","executed_at":"2023-06-29T14:39:29+00:00","execution_venue":"XGAT","fee":"0.10","id":"tr_611041a7e62c4e7d82a8dd86f91e7277","instrument":"IE00B0M62X26","order":"bord_b088cafa88564670a4b7e1acc7e30b5b","price":"216.0199","quantity":"0.46292","side":"buy","taxes":[]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/deposits":{"get":{"summary":"List Deposits","operationId":"list_deposits","tags":["Money + Positions"],"description":"Lists the deposits of the customer account, newest first.  Bank transfers and SEPA Direct Debit deposits are listed together in the same shape; a SEPA Direct Debit deposit names its <code>payment_instrument_mandate</code> and <code>workflow</code>.  Filters can be combined.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/DepositStatus"},{"type":"string","const":"*"}]},"description":"Only return deposits whose current status is the given one.  Set to <code>*</code> to return deposits of every status, the same as omitting this parameter.\n"},{"name":"payment_instrument_mandate","in":"query","required":false,"schema":{"type":"string","maxLength":255,"title":"Payment Instrument Mandate"},"example":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","description":"Only return SEPA Direct Debit deposits collected under the given mandate.\n"},{"name":"workflow","in":"query","required":false,"schema":{"type":"string","maxLength":255,"title":"Workflow"},"example":"wf_7c1e4b2a9d3f4e8ab6c0d5e2f1a3b9c8","description":"Only return SEPA Direct Debit deposits collected by the given <code>deposit.collect_with_mandate</code> workflow.\n"},{"name":"creditor.iban","in":"query","required":false,"schema":{"type":"string","maxLength":255,"title":"Creditor IBAN"},"example":"DE85120700700460000001","description":"Only return deposits credited to the cash account with the given IBAN.\n"},{"name":"creditor.cash_account","in":"query","required":false,"schema":{"type":"string","maxLength":255,"title":"Creditor Cash Account"},"example":"casha_7c1e0a4f2b8d4c3e9a5b6d7e8f9a0b1c","description":"Only return deposits credited to the given cash account.\n"},{"name":"debtor.iban","in":"query","required":false,"schema":{"type":"string","maxLength":255,"title":"Debtor IBAN"},"example":"DE89370400440532013000","description":"Only return deposits debited from the bank account with the given IBAN.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_DepositResponse_"},"example":{"data":[{"id":"dep_1c8d3f0e9a2b4c5d6e7f8a9b0c1d2e3f","amount":"250.00","currency":"EUR","description":"Deposit for Trading","booking_date":"2026-10-21","creditor":{"cash_account":"casha_7c1e0a4f2b8d4c3e9a5b6d7e8f9a0b1c","iban":"DE85120700700460000001","bic":"DEUTDEFFXXX","bank_name":"Deutsche Bank"},"debtor":{"iban":"DE89370400440532013000","bic":"COBADEFFXXX","bank_name":"Commerzbank","account_holder_name":"Erika Mustermann"},"history":[{"status":"accepted","timestamp":"2026-10-21T09:16:00.654321+00:00"},{"status":"created","timestamp":"2026-10-21T09:15:00.123456+00:00"}]},{"id":"dep_9f8e7d6c5b4a39281716152413121110","payment_instrument_mandate":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","workflow":"wf_7c1e4b2a9d3f4e8ab6c0d5e2f1a3b9c8","amount":"50.00","currency":"EUR","description":"SEPA Direct Debit LM0A1B2C3D4E5F6G7H8J9K","creditor":{"cash_account":"casha_7c1e0a4f2b8d4c3e9a5b6d7e8f9a0b1c","iban":"DE85120700700460000001","bic":"DEUTDEFFXXX","bank_name":"Deutsche Bank"},"debtor":{"iban":"DE02120300000000202051","bic":"BYLADEM1001","account_holder_name":"Erika Mustermann"},"history":[{"status":"created","timestamp":"2026-10-19T09:15:00.123456+00:00"}]}],"pagination":{}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/deposits/{deposit_id}":{"get":{"summary":"Get Deposit","operationId":"get_deposit","tags":["Money + Positions"],"description":"Retrieves a deposit of the customer account.  The current status is the latest entry in <code>history</code>.\n","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","description":"An account identifier.\n"},{"name":"deposit_id","required":true,"schema":{"title":"Deposit Identifier","type":"string","maxLength":255},"in":"path","example":"dep_1c8d3f0e9a2b4c5d6e7f8a9b0c1d2e3f","description":"A deposit identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositResponse"},"example":{"id":"dep_1c8d3f0e9a2b4c5d6e7f8a9b0c1d2e3f","amount":"250.00","currency":"EUR","description":"Deposit for Trading","booking_date":"2026-10-21","creditor":{"cash_account":"casha_7c1e0a4f2b8d4c3e9a5b6d7e8f9a0b1c","iban":"DE85120700700460000001","bic":"DEUTDEFFXXX","bank_name":"Deutsche Bank"},"debtor":{"iban":"DE89370400440532013000","bic":"COBADEFFXXX","bank_name":"Commerzbank","account_holder_name":"Erika Mustermann"},"history":[{"status":"accepted","timestamp":"2026-10-21T09:16:00.654321+00:00"},{"status":"created","timestamp":"2026-10-21T09:15:00.123456+00:00"}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/transactions":{"get":{"tags":["Money + Positions"],"summary":"Get Transactions","operationId":"get_transactions","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Transaction_"},"example":{"data":[{"components":[{"amount":"1000.00","currency":"EUR","direction":"credit","type":"cash"}],"history":[{"status":"created","timestamp":"2023-08-14T12:47:43.891794+00:00"}],"id":"txn_e74d790e92ee4cc0935bc65c9fe20c68","source":"de_5ed37b6e25ca466b86e3ced62f78fbbe","status":"created","type":"deposit"}],"pagination":{"next_cursor":null}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{account_id}/transactions/{transaction_id}":{"get":{"summary":"Get Transaction","operationId":"get_transaction_by_id","tags":["Money + Positions"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"transaction_id","in":"path","required":true,"schema":{"type":"string","title":"Transaction Identifier"},"description":"The identifier of the transaction to be fetched.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Transaction"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/treasury_financials":{"get":{"summary":"Get Treasury Financials","operationId":"get_treasury_financials","tags":["Treasury Mandates"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerAccountTreasuryFinancialsResponse"},"example":{"available_balance":"0.00","currency":"EUR","portfolio_balance":"1250.00","unsettled_deposits":"1250.00","unsettled_withdrawals":"0.00"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/treasury_mandates":{"post":{"summary":"Create Treasury Mandate","operationId":"create_treasury_mandate","tags":["Treasury Mandates"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTreasuryMandateRequest"},"example":{"instrument":"IE0008643037","widget_styling":{"background_color":"#FFFFFF","text_color":"#000000","button_background_color":"#007AFF","button_text_color":"#FFFFFF"},"redirect_failure":"my-app:/failure","redirect_success":"my-app:/success"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreasuryMandateCreationResponse"},"example":{"id":"trs_mand_bb176dfbabe14c6c9bb35eaf3342d223","instrument":"IE0008643037","widget_styling":{"background_color":"#FFFFFF","text_color":"#000000","button_background_color":"#007AFF","button_text_color":"#FFFFFF","button_position_style":"sticky"},"redirect_failure":"my-app:/failure","redirect_success":"my-app:/success","history":[{"status":"created","timestamp":"2025-05-08T15:59:20.701735+00:00"}],"widget_url":"https://lemon-markets.example.com/?..."}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"get":{"summary":"List Treasury Mandates","operationId":"list_treasury_mandates","tags":["Treasury Mandates"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TreasuryMandateStatus"}},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_TreasuryMandateResponse_"},"example":{"data":[{"history":[{"status":"created","timestamp":"2025-05-08T15:59:20.701735+00:00"}],"id":"trs_mand_bb176dfbabe14c6c9bb35eaf3342d223","instrument":"IE0008643037","redirect_failure":"my-app:/failure","redirect_success":"my-app:/success"}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/treasury_mandates/{mandate_id}":{"get":{"summary":"Get Treasury Mandate","operationId":"get_treasury_mandate","tags":["Treasury Mandates"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"mandate_id","in":"path","required":true,"schema":{"type":"string","title":"Treasury Mandate Identifier"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreasuryMandateResponse"},"example":{"id":"trs_mand_bb176dfbabe14c6c9bb35eaf3342d223","instrument":"IE0008643037","redirect_failure":"my-app:/failure","redirect_success":"my-app:/success","history":[{"status":"created","timestamp":"2025-05-08T15:59:20.701735+00:00"}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/treasury_mandates/{mandate_id}/cancel":{"post":{"summary":"Cancel Treasury Mandate","description":"Cancel a treasury mandate","operationId":"cancel_treasury_mandate","tags":["Treasury Mandates"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"mandate_id","in":"path","required":true,"schema":{"type":"string","title":"Mandate Id"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreasuryMandateResponse"},"example":{"id":"trs_mand_bb176dfbabe14c6c9bb35eaf3342d223","instrument":"IE0008643037","redirect_failure":"my-app:/failure","redirect_success":"my-app:/success","history":[{"status":"canceled","timestamp":"2025-05-08T16:10:04.321121+00:00"},{"status":"created","timestamp":"2025-05-08T15:59:20.701735+00:00"}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/treasury_transfers":{"post":{"summary":"Create Treasury Transfer","operationId":"create_treasury_transfer","tags":["Treasury Mandates"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTreasuryTransferRequest"},"example":{"amount":"1250.00","currency":"EUR","treasury_mandate":"trs_mand_a2fb6c7579f14ad4970271bf19416e30","type":"deposit"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreasuryTransferResponse"},"example":{"id":"trs_tfr_20d4e52ec6a74986a31efca9b6a2567d","treasury_mandate":"trs_mand_a2fb6c7579f14ad4970271bf19416e30","type":"deposit","amount":"1250.00","currency":"EUR","history":[{"status":"created","timestamp":"2025-05-14T14:18:47.520025+00:00"}],"order":"bord_f5f53afa402a45df9a79b868da2c18b9"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"get":{"summary":"List Treasury Transfers","operationId":"list_treasury_transfers","tags":["Treasury Mandates"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/TreasuryTransferStatus","title":"Status"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_TreasuryTransferResponse_"},"example":{"data":[{"amount":"1250.00","currency":"EUR","history":[{"status":"created","timestamp":"2025-05-14T14:18:47.520025+00:00"}],"id":"trs_tfr_20d4e52ec6a74986a31efca9b6a2567d","treasury_mandate":"trs_mand_a2fb6c7579f14ad4970271bf19416e30","order":"bord_f5f53afa402a45df9a79b868da2c18b9","type":"deposit"}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/treasury_transfers/{treasury_transfer_id}":{"get":{"summary":"Get Treasury Transfer","operationId":"get_treasury_transfer","tags":["Treasury Mandates"],"parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"treasury_transfer_id","in":"path","required":true,"schema":{"type":"string","title":"Treasury Transfer Identifier"},"description":"A treasury transfer identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreasuryTransferResponse"},"example":{"amount":"1250.00","currency":"EUR","history":[{"status":"created","timestamp":"2025-05-14T14:18:47.520025+00:00"}],"id":"trs_tfr_20d4e52ec6a74986a31efca9b6a2567d","treasury_mandate":"trs_mand_a2fb6c7579f14ad4970271bf19416e30","order":"bord_f5f53afa402a45df9a79b868da2c18b9","type":"deposit"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/withdrawals":{"get":{"summary":"List Withdrawals","tags":["Money + Positions"],"operationId":"list_withdrawals","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"cash_account","in":"query","required":false,"schema":{"type":"string","maxLength":255,"title":"Cash Account"},"example":"casha_f076cc37106d4bf7bf5749f423953f35","description":"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.  Use this parameter to limit results to withdrawals for a specific cash account only.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_WithdrawalResponse_"},"example":{"data":[{"amount":"12.34","cash_account":"casha_f076cc37106d4bf7bf5749f423953f35","created_at":"2023-08-31T16:41:01.825087+00:00","currency":"EUR","history":[{"status":"confirmed","timestamp":"2023-08-31T16:41:30.636649+00:00"},{"status":"created","timestamp":"2023-08-31T16:41:01.825087+00:00"}],"id":"wtd_50d0271f9fd143adb4d6e3af8962ed4d","receiving_account":{"bic":"COBADEFFXXX","iban":"DE89370400440532013000"},"sca":{"challenge":"idpMw_UsyU31awFi81Atyw==","required":true},"status":"confirmed"}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"post":{"summary":"Create Withdrawal","tags":["Money + Positions"],"operationId":"create_withdrawal","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWithdrawalRequest"},"example":{"amount":"12.34","cash_account":"casha_f076cc37106d4bf7bf5749f423953f35"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalResponse"},"example":{"amount":"12.34","cash_account":"casha_f076cc37106d4bf7bf5749f423953f35","created_at":"2023-08-31T16:41:01.825087+00:00","currency":"EUR","history":[{"status":"created","timestamp":"2023-08-31T16:41:01.825087+00:00"}],"id":"wtd_50d0271f9fd143adb4d6e3af8962ed4d","receiving_account":{"bic":"COBADEFFXXX","iban":"DE89370400440532013000"},"sca":{"challenge":"idpMw_UsyU31awFi81Atyw==","required":false},"status":"created"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found.  Among other reasons, returned when `cash_account` is supplied and the cash account does not exist or does not belong to the customer account.\n"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/withdrawals/{withdrawal_id}":{"get":{"summary":"Get Withdrawal","tags":["Money + Positions"],"operationId":"get_withdrawal","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"withdrawal_id","in":"path","required":true,"schema":{"type":"string","title":"Withdrawal Identifier","description":"A withdrawal identifier.\n"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalResponse"},"example":{"amount":"12.34","cash_account":"casha_f076cc37106d4bf7bf5749f423953f35","created_at":"2023-08-31T16:41:01.825087+00:00","currency":"EUR","history":[{"status":"confirmed","timestamp":"2023-08-31T16:41:30.636649+00:00"},{"status":"created","timestamp":"2023-08-31T16:41:01.825087+00:00"}],"id":"wtd_50d0271f9fd143adb4d6e3af8962ed4d","receiving_account":{"bic":"COBADEFFXXX","iban":"DE89370400440532013000"},"sca":{"challenge":"idpMw_UsyU31awFi81Atyw==","required":false},"status":"confirmed"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/withdrawals/{withdrawal_id}/confirm":{"post":{"summary":"Confirm Withdrawal","tags":["Money + Positions"],"operationId":"confirm_withdrawal","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"withdrawal_id","in":"path","required":true,"schema":{"type":"string","title":"Withdrawal Identifier","description":"A withdrawal identifier.\n"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmWithdrawalRequest"},"example":{}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalResponse"},"example":{"amount":"12.34","cash_account":"casha_f076cc37106d4bf7bf5749f423953f35","created_at":"2023-08-31T16:41:01.825087+00:00","currency":"EUR","history":[{"status":"confirmed","timestamp":"2023-08-31T16:41:30.636649+00:00"},{"status":"created","timestamp":"2023-08-31T16:41:01.825087+00:00"}],"id":"wtd_50d0271f9fd143adb4d6e3af8962ed4d","receiving_account":{"bic":"COBADEFFXXX","iban":"DE89370400440532013000"},"sca":{"challenge":"idpMw_UsyU31awFi81Atyw==","required":false},"status":"confirmed"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/workflows":{"post":{"tags":["Workflows"],"summary":"Create Workflow","operationId":"create_workflow","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"unified_orders","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unified Orders"},"description":"Use new unified `order` API instead of the `batch_order` API.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCustomerWorkflowRequest"},"examples":{"savings_plan":{"summary":"Scheduled order (savings plan)","value":{"action":{"type":"order.create_and_confirm","order":{"amount":"1.25","currency":"EUR","fees":{"base_amount":"0.00"},"instrument":"LU0290358497","side":"buy","type":"batch"}},"trigger":{"cadence":"monthly","type":"schedule"}}},"savings_plan_percentage_fee":{"summary":"Scheduled order (savings plan) with a percentage fee","value":{"action":{"type":"order.create_and_confirm","order":{"amount":"50.00","currency":"EUR","fees":{"pct":"0.20"},"instrument":"LU0290358497","side":"buy","type":"batch"}},"trigger":{"cadence":"monthly","type":"schedule"}}},"invest_available_cash":{"summary":"Invest available cash across allocations","value":{"action":{"type":"invest_with_allocations","invest_with_allocations":{"securities_account":"sec_20323d55bb264d42b0b225d293591049","allocations":[{"isin":"LU0290358497","allocation_pct":"60"},{"isin":"IE00B4L5Y983","allocation_pct":"40"}]}},"trigger":{"type":"buying_power_available"}}},"repeating_collection":{"summary":"Collect a fixed amount with a SEPA Direct Debit mandate","value":{"action":{"type":"deposit.collect_with_mandate","deposit":{"payment_instrument_mandate":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","creditor_cash_account":"casha_5d0b9e2c7a1f4e3b8c6d2a9f0e1b7c43","amount":"50.00","currency":"EUR"}},"trigger":{"type":"schedule","cadence":"monthly","day_of_month":15}}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerWorkflowResponse"},"examples":{"savings_plan":{"summary":"Scheduled order (savings plan)","value":{"action":{"type":"order.create_and_confirm","order":{"amount":"1.25","currency":"EUR","fees":{"base_amount":"0.00"},"instrument":"LU0290358497","side":"buy","type":"batch"}},"appropriateness_consent":{"required":false},"history":[{"status":"created","timestamp":"2024-04-23T11:00:12.152244+00:00"}],"id":"wf_f2aa90bcc16a43ddb2098c8a5da9f55b","regulatory_disclosures":{"acquisition_costs":"0.00","acquisition_costs_pct":"0.00","custody_costs":"0.00","custody_costs_pct":"0.00","entry_costs":"0.00","entry_costs_pct":"0.00","estimated_amount":"1.25","estimated_price":"141.3099","estimated_quantity":"0.00885","exit_costs":"0.00","exit_costs_pct":"0.00","impact_final_year":"0.00","impact_final_year_pct":"0.00","impact_first_year":"0.00","impact_first_year_pct":"0.00","impact_subsequent_year":"0.00","impact_subsequent_year_pct":"0.10","kid":"https://kid.sandbox.lemon.markets/2023-11-17/LU0290358497-ac81558ef3e50c8eb4a01f7a68800963.pdf","product_costs":"0.00","product_costs_pct":"0.10","recurring_impact_total":"19.05","recurring_impact_total_pct":"25.40","recurring_impact_year_1":"0.81","recurring_impact_year_1_pct":"5.40","recurring_impact_year_2":"2.31","recurring_impact_year_2_pct":"7.70","recurring_impact_year_3":"3.81","recurring_impact_year_3_pct":"8.47","recurring_impact_year_4":"5.31","recurring_impact_year_4_pct":"8.85","recurring_impact_year_5":"6.81","recurring_impact_year_5_pct":"9.08","running_costs":"0.00","running_costs_pct":"0.10","service_costs_total":"0.00","service_costs_total_pct":"0.03","third_party_grants":"0.00","third_party_grants_pct":"0.03"},"sca":{"challenge":"pVz8_N6cNdepukvaApmdww==","required":false},"trigger":{"cadence":"monthly","type":"schedule"}}},"invest_available_cash":{"summary":"Invest available cash across allocations","value":{"action":{"type":"invest_with_allocations","invest_with_allocations":{"securities_account":"sec_20323d55bb264d42b0b225d293591049","allocations":[{"isin":"LU0290358497","allocation_pct":"60","regulatory_disclosures":{"acquisition_costs":"0.00","acquisition_costs_pct":"0.00","custody_costs":"0.00","custody_costs_pct":"0.00","entry_costs":"0.00","entry_costs_pct":"0.00","estimated_price":"141.3099","estimated_quantity":"0.70767","estimated_amount":"100.00","exit_costs":"0.00","exit_costs_pct":"0.00","impact_final_year":"0.10","impact_final_year_pct":"0.10","impact_first_year":"0.10","impact_first_year_pct":"0.10","impact_subsequent_year":"0.10","impact_subsequent_year_pct":"0.10","kid":"https://kid.sandbox.lemon.markets/2023-11-17/LU0290358497-ac81558ef3e50c8eb4a01f7a68800963.pdf","product_costs":"0.10","product_costs_pct":"0.10","running_costs":"0.10","running_costs_pct":"0.10","service_costs_total":"0.00","service_costs_total_pct":"0.00","third_party_grants":"0.00","third_party_grants_pct":"0.00"}},{"isin":"IE00B4L5Y983","allocation_pct":"40","regulatory_disclosures":{"acquisition_costs":"0.00","acquisition_costs_pct":"0.00","custody_costs":"0.00","custody_costs_pct":"0.00","entry_costs":"0.00","entry_costs_pct":"0.00","estimated_price":"95.4000","estimated_quantity":"1.04821","estimated_amount":"100.00","exit_costs":"0.00","exit_costs_pct":"0.00","impact_final_year":"0.20","impact_final_year_pct":"0.20","impact_first_year":"0.20","impact_first_year_pct":"0.20","impact_subsequent_year":"0.20","impact_subsequent_year_pct":"0.20","kid":"https://kid.sandbox.lemon.markets/2023-11-17/IE00B4L5Y983-3f1c9d2e7a4b4f0c8d5e6a7b9c0d1e2f.pdf","product_costs":"0.20","product_costs_pct":"0.20","running_costs":"0.20","running_costs_pct":"0.20","service_costs_total":"0.00","service_costs_total_pct":"0.00","third_party_grants":"0.00","third_party_grants_pct":"0.00"}}]}},"appropriateness_consent":{"required":false},"history":[{"status":"created","timestamp":"2024-04-23T11:00:12.152244+00:00"}],"id":"wf_a1b2c3d4e5f64789a0b1c2d3e4f5a6b7","sca":{"challenge":"pVz8_N6cNdepukvaApmdww==","required":false},"trigger":{"type":"buying_power_available"}}},"repeating_collection":{"summary":"Collect a fixed amount with a SEPA Direct Debit mandate","value":{"action":{"type":"deposit.collect_with_mandate","deposit":{"payment_instrument_mandate":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","creditor_cash_account":"casha_5d0b9e2c7a1f4e3b8c6d2a9f0e1b7c43","amount":"50.00","currency":"EUR"}},"appropriateness_consent":{"required":false},"history":[{"status":"created","timestamp":"2026-10-28T09:20:31.402518+00:00"}],"id":"wf_7c1e4b2a9d3f4e8ab6c0d5e2f1a3b9c8","sca":{"challenge":"Qm3x_V8pLrTz2wYk9HcN4A==","required":true},"trigger":{"type":"schedule","cadence":"monthly","day_of_month":15}}}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Error in 'body.action.deposit.currency': Currency must be EUR"}}},"description":"Bad Request.  Returned when the request fails validation, including when the trigger and action types are not paired as described in <code>CreateCustomerWorkflowRequest</code>.  For a <code>deposit.collect_with_mandate</code> action, also returned when the <code>deposit</code> object is missing or another action's object is sent next to it, when <code>amount</code> is not greater than 0 or has more than two decimal places, when <code>currency</code> is not <code>EUR</code>, and, outside the sandbox, when the trigger's <code>cadence</code> is <code>daily</code>.\n"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Payment instrument mandate does not exist"}}},"description":"Not Found.  For a <code>deposit.collect_with_mandate</code> action, returned when <code>payment_instrument_mandate</code> does not exist or does not belong to the customer account, and when <code>creditor_cash_account</code> is not one of the customer account's cash accounts.\n"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Amount exceeds the limit of 2500.00 EUR in total across the account's active collections"}}},"description":"Unprocessable Entity.  For a <code>deposit.collect_with_mandate</code> action, returned when the customer account is not opened or belongs to a business customer, when direct-debit collections are not enabled for you, when the payment instrument mandate is not <code>confirmed</code>, and when <code>amount</code> exceeds the limit per collection or the total limit across the customer account's active collection workflows.\n"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"get":{"tags":["Workflows"],"summary":"List Workflows","operationId":"list_workflows","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"status","in":"query","required":false,"schema":{"$ref":"#/components/schemas/CustomerWorkflowStatus"}},{"name":"unified_orders","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unified Orders"},"description":"Use new unified `order` API instead of the `batch_order` API.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_CustomerWorkflowResponse_"},"example":{"data":[{"action":{"type":"order.create_and_confirm","order":{"amount":"5.00","currency":"EUR","fees":{"base_amount":"0.10"},"instrument":"IE00BYXYX521","side":"buy","type":"batch"}},"history":[{"status":"confirmed","timestamp":"2024-04-19T07:49:22.783350+00:00"},{"status":"created","timestamp":"2024-04-19T07:34:37.359894+00:00"}],"id":"wf_acb4235bf09342b6a3b3d1401ae7576f","trigger":{"cadence":"monthly","type":"schedule","start_after":"2024-04-18","next_run_date":"2024-05-02"}},{"action":{"type":"order.create_and_confirm","order":{"amount":"5.00","currency":"EUR","fees":{"base_amount":"0.00"},"instrument":"IE00BYXYX521","side":"buy","type":"batch"}},"appropriateness_consent":{"required":false},"history":[{"status":"created","timestamp":"2024-04-19T07:33:57.802570+00:00"}],"id":"wf_41bfe60078764fca9bef7c3ed7d04c0d","regulatory_disclosures":{"acquisition_costs":"0.00","acquisition_costs_pct":"0.00","custody_costs":"0.00","custody_costs_pct":"0.00","entry_costs":"0.00","entry_costs_pct":"0.00","estimated_amount":"5.00","estimated_price":"28.3988","estimated_quantity":"0.17606","exit_costs":"0.00","exit_costs_pct":"0.00","impact_final_year":"0.00","impact_final_year_pct":"0.00","impact_first_year":"0.00","impact_first_year_pct":"0.00","impact_subsequent_year":"0.01","impact_subsequent_year_pct":"0.19","kid":"https://kid.sandbox.lemon.markets/2023-11-17/IE00BYXYX521-5f534eec417153a5f638ad091f0a2962.pdf","product_costs":"0.01","product_costs_pct":"0.19","recurring_impact_total":"144.90","recurring_impact_total_pct":"48.30","recurring_impact_year_1":"6.18","recurring_impact_year_1_pct":"10.30","recurring_impact_year_2":"17.58","recurring_impact_year_2_pct":"14.65","recurring_impact_year_3":"28.98","recurring_impact_year_3_pct":"16.10","recurring_impact_year_4":"40.38","recurring_impact_year_4_pct":"16.83","recurring_impact_year_5":"51.78","recurring_impact_year_5_pct":"17.26","running_costs":"0.01","running_costs_pct":"0.19","service_costs_total":"0.00","service_costs_total_pct":"0.03","third_party_grants":"0.00","third_party_grants_pct":"0.03"},"sca":{"challenge":"FxvVWk3iLDqiz3QJaxPLQg==","required":false},"trigger":{"cadence":"monthly","type":"schedule","start_after":"2024-04-30"}},{"action":{"type":"invest_with_allocations","invest_with_allocations":{"securities_account":"sec_20323d55bb264d42b0b225d293591049","allocations":[{"isin":"LU0290358497","allocation_pct":"60"},{"isin":"IE00B4L5Y983","allocation_pct":"40"}]}},"appropriateness_consent":{"required":false},"history":[{"status":"confirmed","timestamp":"2026-09-21T09:12:41.118503+00:00"},{"status":"created","timestamp":"2026-09-21T09:10:02.502718+00:00"}],"id":"wf_a1b2c3d4e5f64789a0b1c2d3e4f5a6b7","trigger":{"type":"buying_power_available"}},{"action":{"type":"deposit.collect_with_mandate","deposit":{"payment_instrument_mandate":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","creditor_cash_account":"casha_5d0b9e2c7a1f4e3b8c6d2a9f0e1b7c43","amount":"50.00","currency":"EUR"}},"appropriateness_consent":{"required":false},"history":[{"status":"created","timestamp":"2026-10-28T09:20:31.402518+00:00"}],"id":"wf_7c1e4b2a9d3f4e8ab6c0d5e2f1a3b9c8","sca":{"challenge":"Qm3x_V8pLrTz2wYk9HcN4A==","required":true},"trigger":{"type":"schedule","cadence":"monthly","day_of_month":15}}],"pagination":{}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/workflows/{workflow_id}":{"get":{"tags":["Workflows"],"summary":"Get Workflow","operationId":"get_workflow","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"unified_orders","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unified Orders"},"description":"Use new unified `order` API instead of the `batch_order` API.\n"},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Identifier"},"description":"A workflow identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerWorkflowResponse"},"examples":{"savings_plan":{"summary":"Scheduled order (savings plan)","value":{"action":{"type":"order.create_and_confirm","order":{"amount":"5.00","currency":"EUR","fees":{"base_amount":"0.00"},"instrument":"IE00BYXYX521","side":"buy","type":"batch"}},"appropriateness_consent":{"required":false},"history":[{"status":"created","timestamp":"2024-04-19T07:33:57.802570+00:00"}],"id":"wf_41bfe60078764fca9bef7c3ed7d04c0d","regulatory_disclosures":{"acquisition_costs":"0.00","acquisition_costs_pct":"0.00","custody_costs":"0.00","custody_costs_pct":"0.00","entry_costs":"0.00","entry_costs_pct":"0.00","estimated_amount":"5.00","estimated_price":"28.3988","estimated_quantity":"0.17606","exit_costs":"0.00","exit_costs_pct":"0.00","impact_final_year":"0.00","impact_final_year_pct":"0.00","impact_first_year":"0.00","impact_first_year_pct":"0.00","impact_subsequent_year":"0.01","impact_subsequent_year_pct":"0.19","kid":"https://kid.sandbox.lemon.markets/2023-11-17/IE00BYXYX521-5f534eec417153a5f638ad091f0a2962.pdf","product_costs":"0.01","product_costs_pct":"0.19","recurring_impact_total":"144.90","recurring_impact_total_pct":"48.30","recurring_impact_year_1":"6.18","recurring_impact_year_1_pct":"10.30","recurring_impact_year_2":"17.58","recurring_impact_year_2_pct":"14.65","recurring_impact_year_3":"28.98","recurring_impact_year_3_pct":"16.10","recurring_impact_year_4":"40.38","recurring_impact_year_4_pct":"16.83","recurring_impact_year_5":"51.78","recurring_impact_year_5_pct":"17.26","running_costs":"0.01","running_costs_pct":"0.19","service_costs_total":"0.00","service_costs_total_pct":"0.03","third_party_grants":"0.00","third_party_grants_pct":"0.03"},"sca":{"challenge":"FxvVWk3iLDqiz3QJaxPLQg==","required":false},"trigger":{"cadence":"monthly","type":"schedule","start_after":"2024-04-30"}}},"invest_available_cash":{"summary":"Invest available cash across allocations","value":{"action":{"type":"invest_with_allocations","invest_with_allocations":{"securities_account":"sec_20323d55bb264d42b0b225d293591049","allocations":[{"isin":"LU0290358497","allocation_pct":"60"},{"isin":"IE00B4L5Y983","allocation_pct":"40"}]}},"appropriateness_consent":{"required":false},"history":[{"status":"confirmed","timestamp":"2026-09-21T09:12:41.118503+00:00"},{"status":"created","timestamp":"2026-09-21T09:10:02.502718+00:00"}],"id":"wf_a1b2c3d4e5f64789a0b1c2d3e4f5a6b7","trigger":{"type":"buying_power_available"}}},"repeating_collection":{"summary":"Collect a fixed amount with a SEPA Direct Debit mandate","value":{"action":{"type":"deposit.collect_with_mandate","deposit":{"payment_instrument_mandate":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","creditor_cash_account":"casha_5d0b9e2c7a1f4e3b8c6d2a9f0e1b7c43","amount":"50.00","currency":"EUR"}},"appropriateness_consent":{"required":false},"history":[{"status":"created","timestamp":"2026-10-28T09:20:31.402518+00:00"}],"id":"wf_7c1e4b2a9d3f4e8ab6c0d5e2f1a3b9c8","sca":{"challenge":"Qm3x_V8pLrTz2wYk9HcN4A==","required":true},"trigger":{"type":"schedule","cadence":"monthly","day_of_month":15}}}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/workflows/{workflow_id}/cancel":{"post":{"tags":["Workflows"],"summary":"Cancel Workflow","operationId":"cancel_workflow","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"unified_orders","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unified Orders"},"description":"Use new unified `order` API instead of the `batch_order` API.\n"},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Identifier"},"description":"A workflow identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerWorkflowResponse"},"example":{"action":{"type":"order.create_and_confirm","order":{"amount":"1.25","currency":"EUR","fees":{"base_amount":"0.00"},"instrument":"LU0290358497","side":"buy","type":"batch"}},"history":[{"status":"canceled","timestamp":"2024-04-23T11:30:20.434025+00:00"},{"status":"created","timestamp":"2024-04-23T11:00:12.152244+00:00"}],"id":"wf_f2aa90bcc16a43ddb2098c8a5da9f55b","trigger":{"cadence":"monthly","type":"schedule"}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/accounts/{account_id}/workflows/{workflow_id}/confirm":{"post":{"tags":["Workflows"],"summary":"Confirm Workflow","operationId":"confirm_workflow","parameters":[{"name":"account_id","required":true,"schema":{"title":"Account Identifier","type":"string"},"in":"path","example":"cusa_20323d55bb264d42b0b225d293591049","description":"An account identifier.\n"},{"name":"unified_orders","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unified Orders"},"description":"Use new unified `order` API instead of the `batch_order` API.\n"},{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","title":"Workflow Identifier"},"description":"A workflow identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmCustomerWorkflowRequest"},"example":{"appropriateness_consent":true,"sca":{"client_credential_id":"local_authenticator_id","signature":"<base64>"}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerWorkflowResponse"},"example":{"action":{"type":"order.create_and_confirm","order":{"amount":"5.00","currency":"EUR","fees":{"base_amount":"0.10"},"instrument":"IE00BYXYX521","side":"buy","type":"batch"}},"history":[{"status":"confirmed","timestamp":"2024-04-19T07:49:22.783350+00:00"},{"status":"created","timestamp":"2024-04-19T07:34:37.359894+00:00"}],"id":"wf_acb4235bf09342b6a3b3d1401ae7576f","trigger":{"cadence":"monthly","type":"schedule","start_after":"2024-04-18","next_run_date":"2024-05-02"}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/agreements":{"get":{"tags":["Documents"],"summary":"Get Latest Agreements","description":"When opening an account, the user has to agree to accept certain types of contractual documents, like privacy policy or terms and conditions.\n","operationId":"get_agreements","parameters":[{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"scope","required":false,"schema":{"$ref":"#/components/schemas/AgreementScope"},"in":"query","description":"Filter agreements by their scope.\n<ul> <li><code>platform</code>: return only platform-wide agreements (those that apply regardless of product). <li><code>product</code>: return only agreements tied to a specific product.  Requires the\n    <code>product</code> parameter to be set.\n</ul>\nCombining <code>scope=platform</code> with a <code>product</code> value is invalid and results in a <code>400</code> response.\n"},{"name":"product","required":false,"schema":{"$ref":"#/components/schemas/ProductType"},"in":"query","description":"Filter agreements by the product they are tied to, e.g. <code>brokerage</code> or <code>retirement_account</code>.  This parameter is only valid together with <code>scope=product</code>; supplying it on its own or alongside <code>scope=platform</code> results in a <code>400</code> response.\n"},{"name":"acceptance","required":false,"schema":{"$ref":"#/components/schemas/AgreementAcceptance"},"in":"query","description":"Filter agreements by whether the customer must actively accept them.\n<ul> <li><code>required</code>: return only agreements that require active acceptance. <li><code>not_required</code>: return only informational agreements that do not require acceptance. </ul>\nCan be combined with the <code>scope</code> (and <code>product</code>) filters.\n"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_AgreementResponse_"},"example":{"data":[{"id":"agr_9902271f791d413aad781763c61b9bb0","language":"de","name":"Datenschutzerklärung","type":"privacy_policy","url":"https://sandbox-agreements.lemon.markets/test-document.pdf","scope":"platform","product":null,"acceptance":"required","effective_at":"2024-01-15T09:30:00.000000+00:00"},{"id":"agr_8ec894e1ec764a339e172292dff9aeff","language":"de","name":"Allgemeine Geschäftsbedingungen","type":"terms_and_conditions","url":"https://sandbox-agreements.lemon.markets/test-document.pdf","scope":"platform","product":null,"acceptance":"required","effective_at":"2024-01-15T09:30:00.000000+00:00"}],"pagination":{"next_cursor":null}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/businesses":{"get":{"summary":"List Businesses","operationId":"list_businesses","tags":["Businesses"],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string","title":"Cursor"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"},"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_BusinessResponse_"},"example":{"data":[{"currency":"EUR","expected_annual_revenue":"123456.78","fatca_relevant":false,"id":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","industry":{"nace_rev":"2.1","code":"T.96.22"},"legal_entity_identifier":null,"name":"Beeswax UG (haftungsbeschränkt)","nfe_type":"active","registered_address":{"city":"Musterstadt","country":"DE","line_1":"Mustergasse 1a","line_2":null,"postal_code":"12345"},"registration":{"court":"Musterstadt","id":"HRB 123456","incorporation_country":"DE","incorporation_date":"2024-01-02","legal_form":"ug"},"single_tier_ownership":true,"taxation_countries":[{"country":"DE","business_identification_number":null,"tax_number":"123/456/78901","vat_id":"DE0815"}]}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"post":{"summary":"Create Business","operationId":"create_business","tags":["Businesses"],"parameters":[{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessRequest"},"example":{"currency":"EUR","expected_annual_revenue":"123456.78","fatca_relevant":false,"industry":{"nace_rev":"2.1","code":"T.96.22"},"name":"Beeswax UG (haftungsbeschränkt)","nfe_type":"active","registered_address":{"city":"Musterstadt","country":"DE","line_1":"Mustergasse 1a","postal_code":"12345"},"registration":{"court":"Musterstadt","id":"HRB 123456","incorporation_country":"DE","incorporation_date":"2024-01-02","legal_form":"ug"},"single_tier_ownership":true,"taxation_countries":[{"country":"DE","business_identification_number":null,"tax_number":"123/456/78901","vat_id":"DE0815"}]}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessResponse"},"example":{"currency":"EUR","expected_annual_revenue":"123456.78","fatca_relevant":false,"id":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","industry":{"nace_rev":"2.1","code":"T.96.22"},"legal_entity_identifier":null,"name":"Beeswax UG (haftungsbeschränkt)","nfe_type":"active","registered_address":{"city":"Musterstadt","country":"DE","line_1":"Mustergasse 1a","line_2":null,"postal_code":"12345"},"registration":{"court":"Musterstadt","id":"HRB 123456","incorporation_country":"DE","incorporation_date":"2024-01-02","legal_form":"ug"},"single_tier_ownership":true,"taxation_countries":[{"country":"DE","business_identification_number":null,"tax_number":"123/456/78901","vat_id":"DE0815"}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/businesses/{business_id}":{"get":{"summary":"Get Business","operationId":"get_business","tags":["Businesses"],"parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Identifier"},"description":"A business identifier.\n","example":"le_3a0baf04657b4fb9bcaa03d8120b5e9e"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessResponse"},"example":{"currency":"EUR","expected_annual_revenue":"123456.78","fatca_relevant":false,"id":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","industry":{"nace_rev":"2.1","code":"T.96.22"},"legal_entity_identifier":null,"name":"Beeswax UG (haftungsbeschränkt)","nfe_type":"active","registered_address":{"city":"Musterstadt","country":"DE","line_1":"Mustergasse 1a","line_2":null,"postal_code":"12345"},"registration":{"court":"Musterstadt","id":"HRB 123456","incorporation_country":"DE","incorporation_date":"2024-01-02","legal_form":"ug"},"single_tier_ownership":true,"taxation_countries":[{"country":"DE","business_identification_number":null,"tax_number":"123/456/78901","vat_id":"DE0815"}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/businesses/{business_id}/beneficial_owners":{"get":{"summary":"List Beneficial Owners","operationId":"list_beneficial_owners","tags":["Businesses"],"parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Identifier"},"description":"A business identifier.\n"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","title":"Cursor"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"},"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_BeneficialOwnerResponse_"},"example":{"data":[{"id":"ubo_ea20564620af48a4af367aca2ade4d91","shares_pct":"100","voting_rights_pct":"100","person":"pers_310212a629b2429cacfdc09d212fa87a","type":"real"}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"post":{"summary":"Add Beneficial Owner","operationId":"add_beneficial_owner","tags":["Businesses"],"parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Identifier","description":"A business identifier.\n"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BeneficialOwnerRequest"},"example":{"shares_pct":"100","voting_rights_pct":"100","person":"pers_310212a629b2429cacfdc09d212fa87a","type":"real"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BeneficialOwnerResponse"},"example":{"id":"ubo_ea20564620af48a4af367aca2ade4d91","shares_pct":"100","voting_rights_pct":"100","person":"pers_310212a629b2429cacfdc09d212fa87a","nature":"real"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/businesses/{business_id}/submit_document":{"post":{"summary":"Submit Document","deprecated":true,"operationId":"submit_document","tags":["Businesses"],"description":"**⚠️ DEPRECATED**: This endpoint is deprecated. Please use the new unified `/submit_document` endpoint instead, which supports both person and business documents through a discriminated union approach.\n\nSee [Submit Document](/reference/submit_document_upload) for the replacement endpoint.\n","parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Identifier","description":"A business identifier.\n"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessDocumentUploadRequest"},"example":{"document":"shareholder_list"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BusinessDocumentUploadResponse"},"example":{"expires_at":"2024-11-18T13:36:09.478814+00:00","document":"shareholder_list","upload_url":"https://example.com/upload-document-url-12345"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/businesses/{business_id}/legal_representatives":{"get":{"summary":"List Legal Representatives","operationId":"list_legal_representatives","tags":["Businesses"],"parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Identifier","description":"A business identifier.\n"}},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"default":100,"type":"integer"},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_LegalRepresentativeResponse_"},"example":{"data":[{"id":"rep_b4831949b797401bbc037a03f9a64d79","person":"pers_310212a629b2429cacfdc09d212fa87a","representation_rule":"sole_representation"}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"post":{"summary":"Add Legal Representative","operationId":"add_legal_representative","tags":["Businesses"],"parameters":[{"name":"business_id","in":"path","required":true,"schema":{"type":"string","title":"Business Identifier","description":"A business identifier.\n"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalRepresentativeRequest"},"example":{"person":"pers_310212a629b2429cacfdc09d212fa87a","representation_rule":"sole_representation"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalRepresentativeResponse"},"example":{"id":"rep_b4831949b797401bbc037a03f9a64d79","person":"pers_310212a629b2429cacfdc09d212fa87a","representation_rule":"sole_representation"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/events":{"get":{"summary":"Get Events","operationId":"list_events","tags":["Events + Webhooks"],"parameters":[{"name":"context.account","description":"An account identifier.  Specify one to restrict responses to events with a matching `account` in their `context` object.\n","required":false,"schema":{"title":"Context.Account","type":"string"},"in":"query"},{"name":"context.asset_transfer","in":"query","required":false,"schema":{"type":"string","title":"Asset Transfer","maxLength":255},"description":"An asset transfer identifier.  Specify one to restrict responses to events with a matching `asset_transfer` in their `context` object.\n"},{"name":"context.batch_order","required":false,"schema":{"type":"string","title":"Batch Order"},"in":"query","description":"A batch order identifier.  Specify one to restrict responses to events with a matching `batch_order` in their `context` object.\n"},{"name":"context.cash_account","in":"query","required":false,"schema":{"type":"string","title":"Cash Account"},"description":"A cash account identifier.  Specify one to restrict responses to events with a matching `cash_account` in their `context` object.\n"},{"name":"context.identification","in":"query","required":false,"schema":{"type":"string","title":"Identification"},"description":"A person identification identifier.  Specify one to restrict responses to events with a matching `identification` in their `context` object.\n"},{"name":"context.order","in":"query","required":false,"schema":{"type":"string","title":"Order"},"description":"An order identifier.  Specify one to restrict the responses to events with a matching `order` in their `context` object.\n"},{"name":"context.person","in":"query","required":false,"schema":{"type":"string","title":"Person"},"description":"A person identifier.  Specify one to restrict responses to events with a matching `person` in their `context` object.\n"},{"name":"context.securities_account","in":"query","required":false,"schema":{"type":"string","title":"Securities Account","description":"A securities account identifier.  Specify one to restrict responses to events with a matching `securities_account` in their `context` object.\n"}},{"name":"context.securities_transfer","in":"query","required":false,"schema":{"type":"string","title":"Securities Transfer"},"description":"A securities transfer identifier.  Specify one to restrict responses to events with a matching `securities_transfer` in their `context` object.\n"},{"name":"context.subsidy_application","in":"query","required":false,"schema":{"type":"string","title":"Subsidy Application"},"description":"A subsidy application identifier.  Specify one to restrict responses to events with a matching `subsidy_application` in their `context` object.\n"},{"name":"context.sweep","in":"query","required":false,"schema":{"type":"string","title":"Trade"},"description":"A sweep identifier.  Specify one to restrict responses to events with a matching `sweep` in their `context` object.\n"},{"name":"context.tax_exemption_order","in":"query","required":false,"schema":{"type":"string","title":"Tax Exemption Order"},"description":"A tax exemption order identifier.  Specify one to restrict responses to events with a matching `tax_exemption_order` in their `context` object.\n"},{"name":"context.trade","in":"query","required":false,"schema":{"type":"string","title":"Trade"},"description":"A trade identifier.  Specify one to restrict responses to events with a matching `trade` in their `context` object.\n"},{"name":"context.transaction","in":"query","required":false,"schema":{"type":"string","title":"Transaction"},"description":"A transaction identifier.  Specify one to restrict responses to events with a matching `transaction` in their `context` object.\n"},{"name":"context.treasury_mandate","in":"query","required":false,"schema":{"type":"string","title":"Treasury Mandate"},"description":"A treasury mandate identifier.  Specify one to restrict responses to events with a matching `treasury_mandate` in their `context` object.\n"},{"name":"context.treasury_transfer","in":"query","required":false,"schema":{"type":"string","title":"Treasury Transfer"},"description":"A treasury transfer identifier.  Specify one to restrict responses to events with a matching `treasury_transfer` in their `context` object.\n"},{"name":"context.update","in":"query","required":false,"schema":{"type":"string","title":"Update"},"description":"A person data update request identifier.  Specify one to restrict responses to events with a matching `update` in their `context` object.\n"},{"name":"context.workflow","in":"query","required":false,"schema":{"type":"string","title":"Workflow"},"description":"A workflow identifier.  Specify one to restruct responses to events with a matching `workflow` in their `context` object.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"since","required":false,"schema":{"title":"Since","type":"string","format":"date-time"},"in":"query","description":"A timestamp in the past.  Specify `since` to avoid getting results for events that have happened before the specified timestamp.\n"},{"name":"sort","required":false,"schema":{"$ref":"#/components/schemas/Ordering","default":"desc"},"in":"query"},{"name":"type","required":false,"schema":{"$ref":"#/components/schemas/EventType"},"in":"query"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_EventExternal_"},"example":{"data":[{"context":{"identification":"ident_0cf8491900844c72ae0eba07837c4530","person":"pers_3f9a108f2bd64f199955b873946a853b"},"created_at":"2024-05-22T13:06:13.013816+00:00","id":"evt_49561262373149c9be83e4786c39f50b","type":"identification.started"},{"context":{"identification":"ident_0cf8491900844c72ae0eba07837c4530","person":"pers_3f9a108f2bd64f199955b873946a853b"},"created_at":"2024-05-22T13:06:12.877783+00:00","id":"evt_d20f212305e3470589e65d3f5cfce696","type":"identification.created"},{"context":{"account":"cusa_66231c41af6c448381e69285e108a4ff"},"created_at":"2024-05-22T13:06:12.271243+00:00","id":"evt_8b333b0a316a4c66a71f1e5c950236e4","type":"account.created"},{"context":{"account":"cusa_adf929a0011643d1a5a58f71eb107f4b","tax_exemption_order":"tax_ex_7ed656e0438b47e192469e162d158408"},"created_at":"2024-11-27T13:21:22.409930+00:00","id":"evt_00d4cf1730f64dde9ba6316e2b343bca","type":"tax_exemption_order.canceled"},{"context":{"account":"cusa_adf929a0011643d1a5a58f71eb107f4b","tax_exemption_order":"tax_ex_7ed656e0438b47e192469e162d158408"},"created_at":"2024-11-27T13:21:21.657421+00:00","id":"evt_974d824d86bc4692b489c1f2b82f8252","type":"tax_exemption_order.canceling"},{"context":{"account":"cusa_adf929a0011643d1a5a58f71eb107f4b","tax_exemption_order":"tax_ex_7ed656e0438b47e192469e162d158408"},"created_at":"2024-11-27T12:27:27.518451+00:00","id":"evt_f89c654e046b4ba4845dcaebb5f51e28","type":"tax_exemption_order.accepted"},{"context":{"account":"cusa_adf929a0011643d1a5a58f71eb107f4b","tax_exemption_order":"tax_ex_7ed656e0438b47e192469e162d158408"},"created_at":"2024-11-27T12:27:26.387829+00:00","id":"evt_7d5745e3d91a461ab1d81270e42f5213","type":"tax_exemption_order.created"},{"context":{"account":"cusa_adf929a0011643d1a5a58f71eb107f4b","instrument":"DE0005933931","tax":"taxev_99e8ad3241b344749774958047dbd07b","transaction":"txn_b19b4f23183143ea848c9e6f130607e2"},"created_at":"2024-11-27T15:27:26.387829+00:00","id":"evt_d4852dd6fc494303bf10ca82a693f25e","type":"tax.canceled"},{"context":{"account":"cusa_adf929a0011643d1a5a58f71eb107f4b","instrument":"DE0005933931","tax":"taxev_99e8ad3241b344749774958047dbd07b","transaction":"txn_b19b4f23183143ea848c9e6f130607e2"},"created_at":"2024-11-27T15:27:26.387829+00:00","id":"evt_7d5745e3d91a461ab1d81270e42f5213","type":"tax.created"},{"context":{"account":"cusa_adf929a0011643d1a5a58f71eb107f4b","instrument":"DE0005933931","tax":"taxev_99e8ad3241b344749774958047dbd07b","transaction":"txn_b19b4f23183143ea848c9e6f130607e2"},"created_at":"2024-11-27T14:27:26.387829+00:00","id":"evt_efcdc62360014f2a8aecb879aad9f336","type":"tax.processed"}],"pagination":{"next_cursor":null}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/instruments":{"get":{"summary":"List Instruments","operationId":"list_instruments","description":"Returns a paginated list of instruments available to your account.\n","tags":["Instruments"],"parameters":[{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"type","required":false,"schema":{"$ref":"#/components/schemas/InstrumentType"},"in":"query"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_InstrumentResponse_"},"example":{"data":[{"fund_profit_model":"accumulating","isin":"IE00B441G979","title":"iShares MSCI World EUR Hedged UCITS ETF","regulatory_information":{"kid":"https://mocked.test/kid/IE00B441G979.pdf"},"total_expense_ratio_pct":"0.55","type":"etf","complexity":"non_complex","knowledge_and_experience_profile":"basic","product_category":"non_complex_products","days_to_settle":2,"trading":[{"order_type":"batch","venue":"TGAT","minimum_quantity":"0.00001","batch_cutoff":{"time":"15:30:00","timezone":"Europe/Berlin"}},{"order_type":"market","venue":"TGAT","minimum_quantity":"1"}]},{"isin":"US0378331005","title":"Apple Inc.","regulatory_information":{},"type":"stock","complexity":"non_complex","knowledge_and_experience_profile":"basic","product_category":"non_complex_products","days_to_settle":2,"trading":[{"order_type":"batch","venue":"TGAT","minimum_quantity":"0.00001","batch_cutoff":{"time":"15:30:00","timezone":"Europe/Berlin"}}],"active_trading_halts":[{"valid_from":"2024-01-15T09:30:00.000000+00:00","valid_to":null,"side":"buy"}]}],"pagination":{"next_cursor":null}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/instruments/{isin}":{"get":{"summary":"Get Instrument","operationId":"get_instrument","description":"Returns details for a specific instrument identified by its ISIN.\n<strong>Test ISINs for Trading Halts</strong>\nYou can use the following static ISINs to test different predetermined scenarios regarding Trading Halts. The test ISINs are not enabled on our side and are only available in the Sandbox environment.\n<ul> <li><code>XF0000000046</code> - <strong>Buy-side halt</strong>: Returns an instrument with an active trading halt on buy orders only <li><code>XF0000000053</code> - <strong>Sell-side halt</strong>: Returns an instrument with an active trading halt on sell orders only <li><code>XF0000000061</code> - <strong>Both-sides halt</strong>: Returns an instrument with an active trading halt on both buy and sell orders </ul>\n<strong>Note:</strong>\n<ul> <li>These test ISINs are only available on this endpoint. They will not appear in the <code>GET /instruments</code> listing endpoint. <li>The Sandbox behavior of <code>POST /accounts/{account_id}/orders</code> takes these predefined Trading Halts into account: it will thus return a 422 Error when attempting to create an order that would be Halted. </ul>\n<strong>Test ISINs for Trading Data</strong>\nYou can use the following static ISINs to test different <code>trading</code> configurations. They are only available in the Sandbox environment and will not appear in the <code>GET /instruments</code> listing endpoint.\n<ul> <li><code>XF0000000111</code> - <strong>No trading</strong>: Returns an empty <code>trading</code> list, signalling that orders are currently not supported. <li><code>XF0000000129</code> - <strong>Batch and market</strong>: Returns both a <code>batch</code> and a <code>market</code> entry. <li><code>XF0000000137</code> - <strong>Market, fractional off</strong>: A single <code>market</code> entry with an integer <code>minimum_quantity</code> (<code>\"1\"</code>). <li><code>XF0000000145</code> - <strong>Market, fractional on</strong>: A single <code>market</code> entry with a fractional <code>minimum_quantity</code> (<code>\"0.00001\"</code>). <li><code>XF0000000152</code> - <strong>Fund with cutoffs</strong>: A fund with a single <code>batch</code> entry that includes both <code>batch_cutoff</code> and <code>prefunding_cutoff</code>. </ul>\n","tags":["Instruments"],"parameters":[{"name":"isin","required":true,"schema":{"title":"ISIN","type":"string","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument.\n"},"in":"path"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstrumentResponse"},"example":{"isin":"LU0290358497","title":"Xtrackers II EUR Overnight Rate Swap UCITS ETF","type":"fund","regulatory_information":{"kid":"https://mocked.test/kid/LU0290358497.pdf"},"complexity":"complex","knowledge_and_experience_profile":"extended","product_category":"swap_based_ucits_and_alternative_investment_funds","days_to_settle":0,"trading":[{"order_type":"batch","venue":"AFND","minimum_quantity":"0.00001","batch_cutoff":{"time":"15:00:00","timezone":"Europe/Berlin"},"prefunding_cutoff":{"time":"14:30:00","timezone":"Europe/Berlin"}}]}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/instruments/{isin}/prices":{"get":{"summary":"Get Prices","operationId":"get_prices","tags":["Instruments"],"parameters":[{"name":"isin","in":"path","required":true,"schema":{"type":"string","title":"ISIN","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument.\n"}},{"name":"type","in":"query","required":false,"schema":{"$ref":"#/components/schemas/PriceType"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/InstrumentPriceResponse"}},"example":[{"ask_price":"28.7707","ask_size":"900","bid_price":"28.6751","bid_size":"1200","currency":"EUR","instrument":"IE00BYXYX521","type":"quote","updated_at":"2024-06-20T14:47:02.733000+00:00"},{"currency":"EUR","instrument":"DE000A2QK5D4","price":"95.6500","type":"nav","valuation_date":"2024-06-20"}]}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/instruments/{instrument}/yield":{"get":{"tags":["Instruments"],"summary":"Get Latest Monthly Yield","description":"Returns the latest monthly annualized yield available for the specified instrument.\n\n**Sandbox Test ISINs**\n\nYou can use the following static ISINs to test different scenarios with predetermined responses. The test ISINs do not need to be enabled on our side and are only available on this endpoint in the Sandbox environment.\n- `XF0000000012` - **Success case**: Returns predictable yield data (0.30% monthly, 3.60% annualized)\n- `XF0000000020` - **No yield data**: Returns a 404 error: \"No yield data available for instrument XF0000000020\"\n- `XF0000000038` - **Non-distributing fund**: Returns a 400 error: \"Profit model of instrument XF0000000038 is not distributing\"\n","operationId":"get_latest_yield","parameters":[{"required":true,"schema":{"title":"Instrument","type":"string"},"name":"instrument","in":"path","description":"Specify the ISIN of the instrument.\n","example":"IE0008643037"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"type":"string"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"type":"string"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/YieldResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"Instrument IE0008643036 is not a Money Market Fund"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"No API key found in request"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"detail":"No yield data available for instrument"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"example":{"message":"An unexpected error occurred"}}}}}}},"/persons":{"get":{"summary":"List Persons","description":"<strong>Preview:</strong> The <code>role</code> filter and the fields <code>roles</code>, <code>gender</code>, <code>birth_name</code> and <code>social_security_number</code> in the response are a preview API and may change without a deprecation period.\n","operationId":"list_persons","tags":["Persons"],"parameters":[{"name":"role","required":false,"schema":{"$ref":"#/components/schemas/PersonRole"},"in":"query","description":"Only return the persons with this role.  If not set, all persons are returned, with and without roles.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"schema":{"title":"Limit","maximum":100,"minimum":1,"default":100,"type":"integer"},"in":"query","description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_PersonResponse_"},"example":{"data":[{"date_of_birth":"1964-08-13","email":"erika.mustermann@example.com","firstname":"Erika","gender":"female","id":"pers_9aa38d16cb1e436baf48381906057964","lastname":"Mustermann","nationalities":["DE"],"phone_number":"+49172997318","place_of_birth":{"city":"Berlin","country":"DE"},"registered_address":{"city":"Köln","country":"DE","line_1":"Heidestraße 17","line_2":null,"postal_code":"51147"},"roles":[],"tax_residencies":[{"country":"DE","tax_identification_number":null}]}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"post":{"summary":"Create Person","description":"<strong>Preview:</strong> The subsidy application roles and the fields <code>roles</code>, <code>gender</code>, <code>birth_name</code> and <code>social_security_number</code> are a preview API and may change without a deprecation period.\n\nCreate a person.  A person can be the customer of an individual account, a beneficial owner or legal representative of a business, or the spouse or a child in a subsidy application.\n\nUse <code>roles</code> to say what the person is created for.  The required fields depend on the roles:\n<ul> <li>No roles: <code>registered_address</code> is required.  If your account configuration requires agreements, <code>accepted_agreements</code> must contain the latest privacy policy. <li><code>subsidy_application.spouse</code>: <code>place_of_birth</code> with <code>city</code>, and a <code>tax_residencies</code> entry with a <code>tax_identification_number</code> are required. <code>place_of_birth.country</code> is optional and can be omitted. <code>registered_address</code> is not required. <li><code>subsidy_application.child</code>: a <code>tax_residencies</code> entry with a <code>tax_identification_number</code> is required.  <code>registered_address</code> is not required. </ul>\nA person with more than one role needs the required fields of all its roles.  Persons with only subsidy application roles cannot accept agreements, so a request with <code>accepted_agreements</code> is rejected with a <code>400</code>.  Roles can only be set when the person is created.  If an existing person needs another role, create a new person.\n","operationId":"create_person","tags":["Persons"],"parameters":[{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonRequest"},"examples":{"customer":{"summary":"Person without roles, for example the customer of an individual account","value":{"date_of_birth":"1964-08-13","email":"erika.mustermann@example.com","firstname":"Erika","gender":"female","lastname":"Mustermann","nationalities":["DE"],"phone_number":"+49172997318","place_of_birth":{"city":"Berlin","country":"DE"},"registered_address":{"city":"Köln","country":"DE","line_1":"Heidestraße 17","postal_code":"51147"},"tax_residencies":[{"country":"DE"}]}},"subsidy_application_spouse":{"summary":"Spouse in a subsidy application","value":{"birth_name":"Schmidt","date_of_birth":"1966-03-21","firstname":"Max","gender":"male","lastname":"Mustermann","social_security_number":"65210366S011","place_of_birth":{"city":"Hamburg"},"roles":["subsidy_application.spouse"],"tax_residencies":[{"country":"DE","tax_identification_number":"12345678901"}]}},"subsidy_application_child":{"summary":"Child in a subsidy application","value":{"date_of_birth":"2015-06-02","firstname":"Mia","lastname":"Mustermann","roles":["subsidy_application.child"],"tax_residencies":[{"country":"DE","tax_identification_number":"98765432109"}]}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/broker__apps__api__endpoints__persons__PersonResponse"},"example":{"date_of_birth":"1964-08-13","email":"erika.mustermann@example.com","firstname":"Erika","gender":"female","id":"pers_9aa38d16cb1e436baf48381906057964","lastname":"Mustermann","nationalities":["DE"],"phone_number":"+49172997318","place_of_birth":{"city":"Berlin","country":"DE"},"registered_address":{"city":"Köln","country":"DE","line_1":"Heidestraße 17","line_2":null,"postal_code":"51147"},"roles":[],"tax_residencies":[{"country":"DE","tax_identification_number":null}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/persons/{person_id}":{"get":{"summary":"Get Person","description":"<strong>Preview:</strong> The fields <code>roles</code>, <code>gender</code>, <code>birth_name</code> and <code>social_security_number</code> in the response are a preview API and may change without a deprecation period.\n","operationId":"get_person","tags":["Persons"],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Identifier"},"example":"pers_0453deb1c90448c99f24adaa833cfda9","description":"A person identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/broker__apps__api__endpoints__persons__PersonResponse"},"example":{"date_of_birth":"1964-08-13","email":"erika.mustermann@example.com","firstname":"Erika","gender":"female","id":"pers_9aa38d16cb1e436baf48381906057964","lastname":"Mustermann","nationalities":["DE"],"phone_number":"+49172997318","place_of_birth":{"city":"Berlin","country":"DE"},"registered_address":{"city":"Köln","country":"DE","line_1":"Heidestraße 17","line_2":null,"postal_code":"51147"},"roles":[],"tax_residencies":[{"country":"DE","tax_identification_number":null}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/persons/{person_id}/identifications/{identification_id}":{"get":{"tags":["Accounts: ID+V"],"summary":"Get Person Identification","operationId":"get_person_identification","description":"Get information about the identification process for a person.\n","parameters":[{"name":"identification_id","required":true,"schema":{"type":"string","title":"Identification Identifier"},"in":"path","example":"ident_baeab6ad40434217900615f5c64b1cd7","description":"An identifier referring to a person identification process.\n"},{"name":"person_id","required":true,"schema":{"title":"Person Identifier","type":"string"},"in":"path","example":"pers_0453deb1c90448c99f24adaa833cfda9","description":"A person identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentificationResponse"},"example":{"history":[{"status":"started","timestamp":"2024-05-22T11:46:43.650535+00:00"},{"status":"created","timestamp":"2024-05-22T11:46:43.650535+00:00"}],"id":"ident_baeab6ad40434217900615f5c64b1cd7","method":"kyc_reliance","person":{"id":"pers_0453deb1c90448c99f24adaa833cfda9","type":"customer"},"status":"started"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/persons/{person_id}/identifications/{identification_id}/submit":{"post":{"summary":"Submit Identification Payload","operationId":"submit_identification_payload","tags":["Accounts: ID+V"],"parameters":[{"name":"identification_id","required":true,"schema":{"type":"string","title":"Identification Identifier"},"in":"path","example":"ident_baeab6ad40434217900615f5c64b1cd7","description":"An identifier referring to a person identification process.\n"},{"name":"person_id","required":true,"schema":{"title":"Person Identifier","type":"string"},"in":"path","example":"pers_0453deb1c90448c99f24adaa833cfda9","description":"A person identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitKycRelianceDataRequest"},"example":{"completed_at":"2024-05-22T11:24:56.000Z","id_document":{"expiry_date":"2024-05-22","issuing_country":"DE","number":"ID123ABC","type":"id_card"},"politically_exposed_person":false,"reference":"ID+V_0123456"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentificationResponse"},"example":{"history":[{"status":"succeeded","timestamp":"2024-05-22T11:49:44.912978+00:00"},{"status":"started","timestamp":"2024-05-22T11:46:43.650535+00:00"},{"status":"created","timestamp":"2024-05-22T11:46:43.650535+00:00"}],"id":"ident_baeab6ad40434217900615f5c64b1cd7","method":"kyc_reliance","person":{"id":"pers_0453deb1c90448c99f24adaa833cfda9","type":"customer"},"status":"succeeded"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/persons/{person_id}/updates":{"post":{"summary":"Create Person Data Update Request","description":"<strong>Preview:</strong> The types <code>social_security_number</code> and <code>birth_name</code> are a preview API and may change without a deprecation period.\n\nRequest a change to one data point of a person.  We process the request asynchronously and send the <code>update.created</code>, <code>update.succeeded</code> and <code>update.failed</code> events.\n\nFor the customer of an individual account, the account must be <code>opened</code>.  A person with only subsidy application roles has no account.  For this person, only the types <code>social_security_number</code> and <code>birth_name</code> are accepted.  Other types are rejected with a <code>422</code>.\n\nYou can replace a <code>social_security_number</code> or <code>birth_name</code> that is set, but you cannot remove it.\n","operationId":"create_person_data_update","tags":["Persons"],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Identifier"},"example":"pers_0453deb1c90448c99f24adaa833cfda9","description":"A person identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonDataUpdateRequest"},"examples":{"email":{"summary":"Update email","value":{"type":"email","email":"newemail@example.com"}},"phone_number":{"summary":"Update phone number","value":{"type":"phone_number","number":"+49172997319"}},"registered_address":{"summary":"Update registered address","value":{"type":"registered_address","line_1":"Neue Straße 1","line_2":null,"postal_code":"10115","city":"Berlin","country":"DE"}},"employment":{"summary":"Update employment","value":{"type":"employment","status":"employed","annual_salary":"gte_50k_lt_75k_eur","sector":"public_sector"}},"tax_residencies":{"summary":"Update tax residencies","value":{"type":"tax_residencies","residencies":[{"country":"DE","tax_identification_number":"12345"},{"country":"NL","tax_identification_number":"67890"}]}},"social_security_number":{"summary":"Update social security number or Zulagenummer","value":{"type":"social_security_number","social_security_number":"65210366S011"}},"birth_name":{"summary":"Update birth name","value":{"type":"birth_name","birth_name":"Schmidt"}}}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonDataUpdateAnnotatedResponse"},"example":{"id":"upd_4ffa7b6928e6466ba8c13badb49f8add","type":"email","email":"newemail@example.com","history":[{"status":"created","timestamp":"2024-10-07T10:00:00.000000+00:00"}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}},"get":{"summary":"List Person Data Update Requests","operationId":"list_person_data_updates","tags":["Persons"],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Identifier"},"example":"pers_0453deb1c90448c99f24adaa833cfda9","description":"A person identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_PersonDataUpdateAnnotatedResponse_"},"example":{"data":[{"id":"upd_4ffa7b6928e6466ba8c13badb49f8add","type":"email","email":"newemail@example.com","history":[{"status":"success","timestamp":"2024-10-07T10:05:00.000000+00:00"},{"status":"processing","timestamp":"2024-10-07T10:01:00.000000+00:00"},{"status":"created","timestamp":"2024-10-07T10:00:00.000000+00:00"}]}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/persons/{person_id}/updates/{update_id}":{"get":{"summary":"Get Person Data Update Request","operationId":"get_person_data_update","tags":["Persons"],"parameters":[{"name":"person_id","in":"path","required":true,"schema":{"type":"string","title":"Person Identifier"},"example":"pers_0453deb1c90448c99f24adaa833cfda9","description":"A person identifier.\n"},{"name":"update_id","in":"path","required":true,"schema":{"type":"string","title":"Update Identifier"},"example":"upd_4ffa7b6928e6466ba8c13badb49f8add","description":"A person data update request identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonDataUpdateAnnotatedResponse"},"example":{"id":"upd_4ffa7b6928e6466ba8c13badb49f8add","type":"email","email":"newemail@example.com","history":[{"status":"success","timestamp":"2024-10-07T10:05:00.000000+00:00"},{"status":"processing","timestamp":"2024-10-07T10:01:00.000000+00:00"},{"status":"created","timestamp":"2024-10-07T10:00:00.000000+00:00"}]}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/product_contracts":{"get":{"tags":["Product Contracts"],"summary":"List Product Contracts","description":"Returns the active product contracts available to you, together with the instruments eligible under each contract. Draft and retired contracts are not returned.\n","operationId":"list_product_contracts","parameters":[{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"type","required":false,"schema":{"$ref":"#/components/schemas/ProductContractType"},"in":"query","description":"Filter product contracts by the type of product they belong to, e.g. <code>retirement</code>.  An unknown value results in a <code>400</code> response.\n"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_ProductContractResponse_"},"example":{"data":[{"id":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","type":"retirement","contract_name":"Altersvorsorgedepot Standard","contract_type":"standarddepot","certification_number":"AVD-2026-000123","provider_number":"PRV001","provider_name":"Example Provider GmbH","provider_model":"external","status":"active","valid_from":"2026-01-01T00:00:00+00:00","valid_until":null,"fee_annual_payin_aum_pct":"1.00","fee_annual_payout_aum_pct":"1.00","fee_provider_switch_amount":"0.00","fee_transaction_buy_amount":"0.00","fee_transaction_sell_amount":"0.00","instruments":[{"instrument":"IE00B4L5Y983","risk_class":4},{"instrument":"IE00BK5BQT80","risk_class":4}]}],"pagination":{"next_cursor":null}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/product_contracts/{contract_id}":{"get":{"tags":["Product Contracts"],"summary":"Get Product Contract","description":"Returns a single active product contract, together with the instruments eligible under it.  Draft, retired and unknown contracts result in a <code>404</code> response.\n","operationId":"get_product_contract","parameters":[{"name":"contract_id","required":true,"schema":{"title":"Product Contract Identifier","type":"string"},"in":"path","example":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","description":"A product contract identifier.\n"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductContractResponse"},"example":{"id":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57","type":"retirement","contract_name":"Altersvorsorgedepot Standard","contract_type":"standarddepot","certification_number":"AVD-2026-000123","provider_number":"PRV001","provider_name":"Example Provider GmbH","provider_model":"external","status":"active","valid_from":"2026-01-01T00:00:00+00:00","valid_until":null,"fee_annual_payin_aum_pct":"1.00","fee_annual_payout_aum_pct":"1.00","fee_provider_switch_amount":"0.00","fee_transaction_buy_amount":"0.00","fee_transaction_sell_amount":"0.00","instruments":[{"instrument":"IE00B4L5Y983","risk_class":4},{"instrument":"IE00BK5BQT80","risk_class":4}]}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/product_contracts/{contract_id}/information":{"post":{"tags":["Product Contracts"],"summary":"Get Product Contract Information","operationId":"get_product_contract_information","description":"Calculates and returns contract information for a retirement product contract, based on the customer's date of birth, chosen payout age, contribution plan, and portfolio allocation. This includes the accumulation period, projected performance scenarios, and a summary of contributions and subsidies.\n\nAll calculated figures (performance scenarios, contribution and subsidy totals) cover the entire full term of the retirement account, i.e. from contract start until the selected payout start date - not just a single year or period.\n\nUse `is_final=true` when the returned information will be presented to the customer as the final basis for contract conclusion (e.g. right before signing). This persists the result and returns it with a non-null `id` and a `pdf` URL to the product information sheet. Use `is_final=false` (the default) for earlier, exploratory calculations (e.g. while the customer is still adjusting their inputs) - in this case the response is a preview only, before the customer has accepted the product information, and `id` is always `null` and `pdf` is omitted.\n\n<strong>Note:</strong> `firstname`, `lastname` and `accepted_agreements` are only required when `is_final=true`; providing any of them when `is_final=false` is rejected with a 400.\n\n<strong>Note:</strong> `performance_scenarios` and all figures derived from them (e.g. the `payin_projections` of each scenario) are projections, not guarantees. They are calculated using assumed rates of return and can differ from the contract's actual future performance depending on market conditions.\n","parameters":[{"name":"contract_id","required":true,"schema":{"title":"Product Contract Identifier","type":"string"},"in":"path","example":"pcon_26f4db49dd6b425080064c842bd28130","description":"A product contract identifier.\n"},{"name":"is_final","required":false,"schema":{"title":"Is Final","type":"boolean","default":false},"in":"query","description":"Whether the calculated contract information is final, i.e. will be used as the basis for concluding the contract, as opposed to a preliminary, exploratory preview before the customer has accepted the product information. Set to `true` to persist the result and receive it back with a non-null `id`.\n"},{"name":"LMG-Data-Privacy-Access-Principal","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"in":"header"},{"name":"LMG-Data-Privacy-Access-Justification","required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductContractInformationRequest"},"example":{"date_of_birth":"1962-05-01","payout_start_age_years":65,"payout_end_age_years":85,"children":[{"date_of_birth":"2016-03-01","until_age":25},{"date_of_birth":"2019-11-15","has_disability":true}],"subsidy_eligibility":"direct","contributions":[{"type":"initial","amount":"10","currency":"EUR"},{"type":"monthly","amount":"1","currency":"EUR"},{"type":"transfer_in","amount":"0","currency":"EUR"}],"portfolio_allocations":{"type":"percentage_based","allocations":[{"instrument":"IE00BFMXXD54","allocation_pct":"50"},{"instrument":"LU1437015735","allocation_pct":"50"}]}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductContractInformationResponse"},"example":{"id":"pi_31c35f190dd942049d8f13e6bb61f0ec","children":[{"date_of_birth":"2016-03-01","until_age":25},{"date_of_birth":"2019-11-15","has_disability":true}],"subsidy_eligibility":"direct","payout_age_years":65,"contract_start_date":"2026-10-20","accumulation_period":{"years_to_mature":0,"months_to_mature":8,"selected_payout_start_date":"2027-05-01","selected_payout_end_date":"2029-05-01","earliest_payout_date":"2027-05-01","latest_payout_date":"2032-05-01"},"portfolio_allocations":{"type":"percentage_based","portfolio_risk_class":1,"allocations":[{"instrument":"IE00BFMXXD54","allocation_pct":"50.00"},{"instrument":"LU1437015735","allocation_pct":"50.00"}]},"performance_scenarios":[{"return_scenario":"optimistic","currency":"EUR","annual_rate_of_return_pct":"3.00","projected_amount":"18.22","payin_projections":[{"year":2026,"contribution":"13.00","basic_subsidy":"0.00","child_subsidy":"0.00","young_person_subsidy":"0.00","total_subsidies":"0.00","appreciation":"0.06","capital":"13.06"},{"year":2027,"contribution":"18.00","basic_subsidy":"0.00","child_subsidy":"0.00","young_person_subsidy":"0.00","total_subsidies":"0.00","appreciation":"0.22","capital":"18.22"}]},{"return_scenario":"moderate","currency":"EUR","annual_rate_of_return_pct":"2.00","projected_amount":"18.13","payin_projections":[{"year":2026,"contribution":"13.00","basic_subsidy":"0.00","child_subsidy":"0.00","young_person_subsidy":"0.00","total_subsidies":"0.00","appreciation":"0.04","capital":"13.04"},{"year":2027,"contribution":"18.00","basic_subsidy":"0.00","child_subsidy":"0.00","young_person_subsidy":"0.00","total_subsidies":"0.00","appreciation":"0.13","capital":"18.13"}]},{"return_scenario":"pessimistic","currency":"EUR","annual_rate_of_return_pct":"1.50","projected_amount":"18.09","payin_projections":[{"year":2026,"contribution":"13.00","basic_subsidy":"0.00","child_subsidy":"0.00","young_person_subsidy":"0.00","total_subsidies":"0.00","appreciation":"0.04","capital":"13.04"},{"year":2027,"contribution":"18.00","basic_subsidy":"0.00","child_subsidy":"0.00","young_person_subsidy":"0.00","total_subsidies":"0.00","appreciation":"0.09","capital":"18.09"}]},{"return_scenario":"stress","currency":"EUR","annual_rate_of_return_pct":"1.00","projected_amount":"18.02","payin_projections":[{"year":2026,"contribution":"13.00","basic_subsidy":"0.00","child_subsidy":"0.00","young_person_subsidy":"0.00","total_subsidies":"0.00","appreciation":"0.02","capital":"13.02"},{"year":2027,"contribution":"18.00","basic_subsidy":"0.00","child_subsidy":"0.00","young_person_subsidy":"0.00","total_subsidies":"0.00","appreciation":"0.02","capital":"18.02"}]}],"contribution_summary":{"currency":"EUR","subsidies":[{"type":"basic","amount":"0.00"},{"type":"child","amount":"0.00"},{"type":"young_person","amount":"0.00"}],"total_subsidies":"0.00","contributions":[{"type":"initial","amount":"10.00","currency":"EUR"},{"type":"monthly","amount":"1.00","currency":"EUR"},{"type":"transfer_in","amount":"0.00","currency":"EUR"}],"total_contributions":"18.00","total_contributions_and_subsidies":"18.00"},"effective_cost_pct":"0.42","fees":{"currency":"EUR","annual_payin_fees":{"pct":"0.50"},"annual_payout_fees":{"pct":"0.50"},"transaction_buy_fees":{"base_amount":"0.00"},"transaction_sell_fees":{"base_amount":"0.00"},"provider_switch_fees":{"base_amount":"49.00"},"portfolio_fee":[{"instrument":"IE00BFMXXD54","total_expense_ratio_pct":"0.07","transaction_cost_pct":"0.00"},{"instrument":"LU1437015735","total_expense_ratio_pct":"0.00","transaction_cost_pct":"0.00"}]},"pdf":"https://sandbox-documents.lemon.markets/pcon_26f4db49dd6b425080064c842bd28130/product-information-sheet.pdf"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/settlement_accounts":{"get":{"summary":"List Settlement Accounts","operationId":"list_settlement_accounts","tags":["Cash Settlement"],"parameters":[{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_SettlementAccountResponse_"},"example":{"data":[{"balance":"-60963.74","currency":"EUR","id":"psa_5d97d141935e4176aab4233a9311fdd2","inpayment_bank_account":{"bic":"DEUTDEFFVAC","iban":"DE58120700700000000006","name":"Deutsche Bank"},"name":"Default","withdrawals_in_progress":"0.00"}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/settlement_accounts/{settlement_account_id}/settlements":{"get":{"summary":"List Settlements","operationId":"list_settlements","tags":["Cash Settlement"],"parameters":[{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"settlement_account_id","in":"path","required":true,"schema":{"type":"string","title":"Settlement Account Identifier","description":"A settlement account identifier\n"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_SettlementResponse_"},"example":{"data":[{"amount":"200.28","currency":"EUR","cutoff_timestamp":"2025-05-22T10:00:00+00:00","direction":"credit","id":"cst_1sell"},{"amount":"1500.00","currency":"EUR","cutoff_timestamp":"2025-05-22T10:00:00+00:00","direction":"debit","id":"cst_1buy"}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/settlement_accounts/{settlement_account_id}/settlements/{settlement_id}":{"get":{"summary":"Get Settlement","operationId":"get_settlement","tags":["Cash Settlement"],"parameters":[{"name":"settlement_account_id","in":"path","required":true,"schema":{"type":"string","title":"Settlement Account Identifier","description":"A settlement account identifier\n"}},{"name":"settlement_id","in":"path","required":true,"schema":{"type":"string","title":"Settlement Identifier"},"description":"A settlement identifier.\n"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettlementResponse"},"example":{"amount":"200.28","currency":"EUR","cutoff_timestamp":"2025-05-22T10:00:00+00:00","direction":"credit","id":"cst_1"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/settlement_accounts/{settlement_account_id}/settlements/{settlement_id}/items":{"get":{"summary":"List Settlement Items","operationId":"list_settlement_items","tags":["Cash Settlement"],"parameters":[{"name":"settlement_id","in":"path","required":true,"schema":{"type":"string","title":"Settlement Identifier"},"description":"A settlement identifier.\n"},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"name":"settlement_account_id","in":"path","required":true,"schema":{"type":"string","title":"Settlement Account Identifier","description":"A settlement account identifier\n"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_SettlementItemResponse_"},"example":{"data":[{"account":"cusa_1","amount":"100.20","currency":"EUR","direction":"credit","id":"sti_1sell","source":"tr_1","type":"trade"},{"account":"cusa_2","amount":"80.02","currency":"EUR","direction":"credit","id":"sti_2sell","source":"tr_2","type":"trade"},{"account":"cusa_2","amount":"20.06","currency":"EUR","direction":"credit","id":"sti_1income","source":"ca_am_1","type":"income_distribution"},{"id":"sti_1buy","account":"cusa_1","amount":"1000.00","currency":"EUR","direction":"debit","source":"bord_1","type":"order"},{"id":"sti_2buy","account":"cusa_2","amount":"500.00","currency":"EUR","direction":"debit","source":"bord_2","type":"order"}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/settlement_accounts/{settlement_account_id}/transactions":{"get":{"summary":"List Settlement Accounts Transactions","operationId":"list_settlement_accounts_transactions","tags":["Cash Settlement"],"parameters":[{"name":"settlement_account_id","in":"path","required":true,"schema":{"type":"string","title":"Settlement Account Identifier","description":"A settlement account identifier\n"}},{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_SettlementAccountTransactionResponse_"},"example":{"data":[{"amount":"100.00","created_at":"2025-05-13T12:27:25.171589+00:00","currency":"EUR","direction":"debit","id":"ptx_911c879585f94d5c81cc4ff0b65782d0","payment_details":null,"settlement":"cst_b0c44db064994579873cfbef49521425","type":"settlement"}],"pagination":{"next_cursor":null}}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/treasury_fees":{"get":{"summary":"List Treasury Fees","operationId":"list_treasury_fees","tags":["Treasury Mandates"],"description":"Retrieves a paginated list of monthly aggregated treasury fees owned by the requesting partner. Optionally filter by instrument or billing month range.","parameters":[{"name":"instrument","in":"query","required":false,"description":"An ISIN (International Securities Identification Number) conforming to ISO 6166. This value uniquely identifies the instrument.","schema":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument"}},{"name":"from_month","in":"query","required":false,"description":"Start of the billing period (inclusive), in format YYYY-MM (e.g., 2025-01).","schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$","title":"From Month"}},{"name":"to_month","in":"query","required":false,"description":"End of the billing period (inclusive), in format YYYY-MM (e.g., 2025-06).","schema":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$","title":"To Month"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","title":"Cursor"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is no need to specify both the `cursor` and any other filter parameter.\n"},{"name":"limit","in":"query","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Paginated list of treasury fees","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_PartnerTreasuryFeesResponse_"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request (e.g., invalid instrument, from_month, or to_month formats)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/treasury_fees/{fee_id}":{"get":{"summary":"Get Treasury Fee By Id","operationId":"get_treasury_fee","tags":["Treasury Mandates"],"description":"Retrieves treasury fee details for the given fee ID belonging to the requesting partner.\n","parameters":[{"name":"fee_id","in":"path","required":true,"description":"Unique identifier of a treasury fee.","schema":{"type":"string","title":"Fee Identifier"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnerTreasuryFeesResponse"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"No treasury fee was found for the given fee_id, owned by the requesting partner."},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/treasury_fees/{fee_id}/customer_fees":{"get":{"summary":"Get Customer Fee Composition for a Treasury Fee","operationId":"list_customer_fees","tags":["Treasury Mandates"],"description":"Retrieves a paginated breakdown of individual customer fees that contribute to the given aggregated treasury fee.\n","parameters":[{"name":"fee_id","in":"path","required":true,"description":"Unique identifier of the partner treasury fee.","schema":{"type":"string","title":"Fee Id"}},{"name":"cursor","in":"query","required":false,"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is no need to specify both the `cursor` and any other filter parameter.\n","schema":{"type":"string","title":"Cursor"}},{"name":"limit","in":"query","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"LMG-Data-Privacy-Access-Principal","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Principal"}},{"name":"LMG-Data-Privacy-Access-Justification","in":"header","required":true,"schema":{"type":"string","title":"Lmg-Data-Privacy-Access-Justification"}}],"responses":{"200":{"description":"Paginated list of customer fees","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncodedPaginatedCollectionResponse_CustomerTreasuryFeeResponse_"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unauthorized"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Not Found"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Unprocessable Entity"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Server Error"}}}},"/webhooks":{"post":{"summary":"Create Webhook","operationId":"create_webhook","tags":["Events + Webhooks"],"parameters":[{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookRequest"},"example":{"events":["account.created","account.opened","account.rejected"],"url":"https://httpbin.org/status/503"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"},"example":{"events":["account.created","account.opened","account.rejected"],"id":"wbh_0953534cf20f414098533680abd6b1c6","signature_secret":"78147840b851c1532382bc311147e52c4756ba67be1edc48a5daf504c886ac64","url":"https://httpbin.org/status/503"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"summary":"List Webhooks","operationId":"list_webhooks","tags":["Events + Webhooks"],"parameters":[{"name":"cursor","required":false,"schema":{"title":"Cursor","type":"string"},"description":"A pagination cursor.  When you receive a paginated response containing the property `pagination.next_cursor`, you can pass its value here to get the next page of results for your query.\nA cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.\n","in":"query"},{"name":"limit","required":false,"description":"In order to customize the number of elements returned, you can provide a limit here.  The service will not return more elements than specified.\n","schema":{"title":"Limit","maximum":100,"minimum":1,"type":"integer","default":100},"in":"query"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Page_Webhook_"},"example":{"data":[{"events":["account.created","account.opened","account.rejected"],"id":"wbh_0953534cf20f414098533680abd6b1c6","signature_secret":"78147840b851c1532382bc311147e52c4756ba67be1edc48a5daf504c886ac64","url":"https://httpbin.org/status/503"}],"pagination":{"next_cursor":null}}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/webhooks/{webhook_id}":{"delete":{"summary":"Delete Webhook","operationId":"delete_webhook","tags":["Events + Webhooks"],"parameters":[{"required":true,"schema":{"title":"Webhook Identifier","type":"string"},"name":"webhook_id","in":"path","example":"wbh_0953534cf20f414098533680abd6b1c7","description":"A webhook identifier.\n"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Principal","type":"string"},"name":"LMG-Data-Privacy-Access-Principal","in":"header"},{"required":true,"schema":{"title":"Lmg-Data-Privacy-Access-Justification","type":"string"},"name":"LMG-Data-Privacy-Access-Justification","in":"header"}],"responses":{"204":{"description":"Successful Response"},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"5XX":{"description":"Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"AccountEventContext":{"title":"AccountEventContext","description":"An object representing the context of an event.\n","required":["account"],"type":"object","properties":{"account":{"title":"Account","type":"string","description":"An account identifier. This field represents the account associated with an event.\n"}}},"AssetTransferEventContext":{"title":"AssetTransferEventContext","description":"An object representing the context of an event.\n","required":["account","asset_transfer"],"additionalProperties":false,"type":"object","properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"product":{"type":"string","title":"Product","description":"A product identifier. This field represents the <code>product</code> of the asset transfer.  Only present when the asset transfer has a <code>product</code>.\n"},"asset_transfer":{"type":"string","title":"Asset Transfer","description":"An asset transfer identifier. This field represents the asset transfer associated with an event.\n"}}},"Action":{"title":"Action","description":"An object representing an action that either needs to be performed or that needed to be performed in the past.\n","oneOf":[{"$ref":"#/components/schemas/CompleteIdentificationAction"},{"$ref":"#/components/schemas/EnrollSCAAuthenticatorAction"},{"$ref":"#/components/schemas/InitiateIdentityVerificationAction"},{"$ref":"#/components/schemas/PendingCheckAction"},{"$ref":"#/components/schemas/ProvideSCARecoveryCodeAction"},{"$ref":"#/components/schemas/SubmitDocumentAction"}],"discriminator":{"propertyName":"type","mapping":{"complete_identification":"#/components/schemas/CompleteIdentificationAction","enroll_sca_authenticator":"#/components/schemas/EnrollSCAAuthenticatorAction","initiate_identity_verification":"#/components/schemas/InitiateIdentityVerificationAction","proof_of_address":"#/components/schemas/PendingCheckAction","provide_recovery_code":"#/components/schemas/ProvideSCARecoveryCodeAction","submit_document":"#/components/schemas/SubmitDocumentAction","tax_identification":"#/components/schemas/PendingCheckAction"}}},"ActionDataRequest":{"properties":{"type":{"$ref":"#/components/schemas/ActionType"},"order":{"$ref":"#/components/schemas/OrderDataRequest"},"invest_with_allocations":{"$ref":"#/components/schemas/InvestWithAllocationsDataRequest"},"deposit":{"$ref":"#/components/schemas/CollectWithMandateDataRequest"}},"type":"object","required":["type"],"description":"An object representing a workflow action.  The nested object matching <code>type</code> is required: <code>order</code> for an <code>order.create_and_confirm</code> action, <code>invest_with_allocations</code> for an <code>invest_with_allocations</code> action, or <code>deposit</code> for a <code>deposit.collect_with_mandate</code> action.  Sending the object of another action type is rejected with a 400.\n","title":"ActionDataRequest"},"ActionDataResponse":{"properties":{"type":{"$ref":"#/components/schemas/ActionType"},"order":{"$ref":"#/components/schemas/OrderDataResponse"},"invest_with_allocations":{"$ref":"#/components/schemas/InvestWithAllocationsDataResponse"},"deposit":{"$ref":"#/components/schemas/CollectWithMandateDataResponse"}},"type":"object","required":["type"],"description":"An object representing a workflow action.  The nested object matching <code>type</code> is present: <code>order</code> for an <code>order.create_and_confirm</code> action, <code>invest_with_allocations</code> for an <code>invest_with_allocations</code> action, or <code>deposit</code> for a <code>deposit.collect_with_mandate</code> action.\n","title":"ActionDataResponse"},"ActionType":{"type":"string","enum":["order.create_and_confirm","invest_with_allocations","deposit.collect_with_mandate"],"title":"ActionType","description":"A category representing a workflow action type:\n<ul> <li><code>order.create_and_confirm</code> <li><code>invest_with_allocations</code>: Invest the available cash on the cash account mapped to the securities account across a set of instruments by the configured percentages. <li><code>deposit.collect_with_mandate</code>: Collect a fixed EUR amount by SEPA Direct Debit with a confirmed payment instrument mandate into one of the customer account's cash accounts, on a weekly or monthly schedule. </ul>\n"},"CollectWithMandateDataRequest":{"properties":{"payment_instrument_mandate":{"type":"string","title":"Payment Instrument Mandate Identifier","example":"pinst_mand_f3a42ba00cb84618a549d975662c90b3","description":"A payment instrument mandate identifier.  The SEPA Direct Debit mandate to collect with.  It must belong to the customer account, otherwise the request is rejected with a 404, and it must be <code>confirmed</code>, otherwise the request is rejected with a 422.  See [Create Payment Instrument Mandate](/reference/create_payment_instrument_mandate) and [Confirm Payment Instrument Mandate](/reference/confirm_payment_instrument_mandate).\n"},"creditor_cash_account":{"type":"string","title":"Creditor Cash Account Identifier","example":"casha_5d0b9e2c7a1f4e3b8c6d2a9f0e1b7c43","description":"A cash account identifier.  The cash account that receives the collected amount.  It must be one of the customer account's own cash accounts, otherwise the request is rejected with a 404.  See [Get Cash Account](/reference/get_cash_account_by_id).\n"},"amount":{"type":"string","format":"number","exclusiveMinimum":0,"title":"Amount","description":"The fixed amount to collect each time, with at most two decimal places.  An amount that is not greater than 0 or has more than two decimal places is rejected with a 400.  The amount is subject to a limit per collection and a total limit across the customer account's active collection workflows, described above.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code.  Its value represents the currency of <code>amount</code>.  The only currently available currency is <code>\"EUR\"</code>; any other value is rejected with a 400.\n"}},"type":"object","required":["payment_instrument_mandate","creditor_cash_account","amount","currency"],"description":"An object describing a repeating SEPA Direct Debit collection: a fixed EUR amount, collected with the customer's confirmed payment instrument mandate into one of the customer account's own cash accounts, on the schedule of the workflow's trigger.\n\n<strong>Trigger:</strong> This action requires a <code>schedule</code> trigger with a <code>weekly</code> or <code>monthly</code> cadence.  On the sandbox, a <code>daily</code> cadence is also accepted for testing; elsewhere it is rejected with a 400.  A <code>buying_power_available</code> trigger is rejected with a 400.  <code>start_after</code>, <code>day_of_month</code> and <code>day_of_week</code> are accepted and validated as for savings plans.  Collections follow the TARGET2 calendar instead of trading days: a scheduled day that is not a TARGET2 business day moves to the next one, and the trigger's <code>next_run_date</code> is the collection date, the day the amount is collected from the customer's bank account.\n\n<strong>Limits:</strong> Currently, <code>amount</code> can be at most 1000.00 EUR per collection.  In addition, the amounts of all of the customer account's collection workflows in status <code>created</code> or <code>confirmed</code>, including the new one, can add up to at most 2500.00 EUR.  The total adds up the amounts as they are, whatever the cadence.  A collection workflow counts toward the total from its creation, even before it is confirmed, until it is canceled.  Exceeding either limit is rejected with a 422 whose message names the limit.\n\n<strong>Confirmation:</strong> Like other workflows, a collection workflow is created with status <code>created</code> and must be confirmed with <code>POST /accounts/{account_id}/workflows/{workflow_id}/confirm</code>, with Strong Customer Authentication where <code>sca.required</code> is <code>true</code>.  No appropriateness consent is required, and the response has no <code>regulatory_disclosures</code>.  Collection workflows are retrieved, listed and canceled like other workflows.\n\n<strong>Preview:</strong> This action is a preview API and may change without a deprecation period.\n\n<strong>Availability:</strong> Direct-debit collections are available on request and are enabled per partner.  Until they are enabled for you, creating a workflow with this action is rejected with a 422.  To enable them, contact your partner manager.\n","title":"CollectWithMandateDataRequest"},"CollectWithMandateDataResponse":{"properties":{"payment_instrument_mandate":{"type":"string","title":"Payment Instrument Mandate Identifier","description":"The identifier of the payment instrument mandate the collection uses.\n"},"creditor_cash_account":{"type":"string","title":"Creditor Cash Account Identifier","description":"The identifier of the cash account that receives the collected amount.\n"},"amount":{"type":"string","format":"number","title":"Amount","description":"The fixed amount to collect each time.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code.  Its value represents the currency of <code>amount</code>.\n"}},"type":"object","required":["payment_instrument_mandate","creditor_cash_account","amount","currency"],"description":"An object describing a repeating SEPA Direct Debit collection.  See <code>CollectWithMandateDataRequest</code> for the rules that apply.\n","title":"CollectWithMandateDataResponse"},"InvestmentAllocation":{"properties":{"isin":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166.  The ISIN specifies the instrument that receives this share of each investment.\n"},"allocation_pct":{"type":"string","format":"number","pattern":"^([1-9][0-9]?|100)$","minimum":1,"maximum":100,"title":"Allocation Percentage","description":"The share of each investment allocated to this instrument, in whole percentage points from <code>\"1\"</code> to <code>\"100\"</code> (<code>\"60\"</code> means 60%).  The <code>allocation_pct</code> values of all allocations must sum to exactly 100.\n"}},"type":"object","required":["isin","allocation_pct"],"title":"InvestmentAllocation","description":"The share of each investment allocated to a single instrument.\n"},"InvestmentAllocationResponse":{"properties":{"isin":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166.  The ISIN specifies the instrument that receives this share of each investment.\n"},"allocation_pct":{"type":"string","format":"number","pattern":"^([1-9][0-9]?|100)$","minimum":1,"maximum":100,"title":"Allocation Percentage","description":"The share of each investment allocated to this instrument, in whole percentage points (<code>\"60\"</code> means 60%).\n"},"regulatory_disclosures":{"$ref":"#/components/schemas/broker__apps__api__types__RegulatoryDisclosureResponse"}},"type":"object","required":["isin","allocation_pct"],"title":"InvestmentAllocationResponse","description":"The share of each investment allocated to a single instrument.  While the workflow is in the <code>created</code> state, it also carries the <code>regulatory_disclosures</code> of the instrument: its KID (<code>kid</code>, if the instrument requires one) and the ex-ante costs for an illustrative investment amount (for example, EUR 100) in the instrument, so that the KID and the costs can be shown to the customer before the allocation is confirmed.  The property is omitted once the workflow is no longer in the <code>created</code> state.\n"},"InvestWithAllocationsDataRequest":{"properties":{"securities_account":{"type":"string","title":"Securities Account Identifier","description":"A securities account identifier.  Use this property to specify the securities account the allocation applies to.  If the customer has only one securities account, this property is optional.  If the customer has more than one securities account, this property is required.  The securities account must belong to a retirement product with an active product contract; otherwise the request is rejected with a 422.\n"},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/InvestmentAllocation"},"minItems":1,"title":"Allocations","description":"The instruments and their percentage shares of each investment.  ISINs must be unique and the <code>allocation_pct</code> values must sum to exactly 100.  Every ISIN must be an active instrument of the securities account's product contract; otherwise the request is rejected with a 422 listing the ISINs that are not available.\n"}},"type":"object","required":["allocations"],"description":"An object describing how the available cash on the cash account mapped to the securities account is invested across a set of instruments.\n","title":"InvestWithAllocationsDataRequest"},"InvestWithAllocationsDataResponse":{"properties":{"securities_account":{"type":"string","title":"Securities Account Identifier","description":"The securities account identifier the allocation applies to.\n"},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/InvestmentAllocationResponse"},"minItems":1,"title":"Allocations","description":"The current instruments and their percentage shares of each investment.  While the workflow is in the <code>created</code> state, every item also carries the <code>regulatory_disclosures</code> of its instrument.\n"}},"type":"object","required":["securities_account","allocations"],"description":"An object describing how the available cash on the cash account mapped to the securities account is invested across a set of instruments.\n","title":"InvestWithAllocationsDataResponse"},"CloseAccountRequest":{"title":"CloseAccountRequest","required":["reason"],"type":"object","properties":{"reason":{"title":"Reason","type":"string","enum":["customer_request"],"description":"The reason the account is being closed. Currently only `customer_request` is supported.\n","example":"customer_request"}},"description":"A request to initiate closure of a customer account.\n"},"AcceptAgreementRequest":{"title":"AcceptAgreementRequest","required":["person","agreement","accepted_at"],"type":"object","properties":{"person":{"title":"Person Identifier","type":"string","description":"A person identifier specifying the individual accepting the agreement.\n","example":"pers_8ec894e1ec764a339e172292dff9aeff"},"agreement":{"title":"Agreement Identifier","type":"string","description":"An agreement identifier specifying which agreement is being accepted.\n","example":"agr_8ec894e1ec764a339e172292dff9aeff"},"accepted_at":{"title":"Accepted At","type":"string","format":"date-time","description":"The timestamp when the agreement was accepted.\n","example":"2023-06-29T14:39:29Z"}},"description":"A request to record acceptance of an agreement by a person for an account.\n"},"AcceptedAgreementResponse":{"title":"AcceptedAgreementResponse","required":["agreement","accepted_at","person"],"type":"object","properties":{"agreement":{"title":"Agreement Identifier","type":"string","description":"An agreement identifier. This value identifies the agreement that a customer has accepted.\n","example":"agr_9902271f791d413aad781763c61b9bb0"},"accepted_at":{"title":"Accepted At","type":"string","format":"date-time","description":"A point in time. This value specifies the point in time at which the agreement was accepted.\n","example":"2023-06-29T14:39:29Z"},"person":{"title":"Person Identifier","type":"string","description":"A person identifier. This value identifies the person who accepted the agreement (either customer or legal representative).\n","example":"per_3a0baf04657b4fb9bcaa03d8120b5e9e"}},"description":"An object representing a currently signed and valid record of an accepted agreement.\n"},"AcceptAgreementResponse":{"title":"AcceptAgreementResponse","required":["id","status","history","declaration_of_acting_on_own_account","customer","agreements"],"type":"object","properties":{"id":{"title":"Identifier","type":"string","description":"A value identifiying the individual user's account.\n","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f"},"cash_account":{"$ref":"#/components/schemas/BankAccountResponse"},"customer":{"oneOf":[{"$ref":"#/components/schemas/PersonCustomerResponse"},{"$ref":"#/components/schemas/BusinessCustomerResponse"}],"title":"Customer","description":"A simplified object containing customer type and identifier.\n"},"declaration_of_acting_on_own_account":{"title":"Declaration Of Acting On Own Account","type":"boolean","description":"An boolean value indicating whether the user has explicitly stated that they are acting on their own account and not in someone else's name.\n"},"history":{"title":"History","type":"array","items":{"$ref":"#/components/schemas/StatusChange_CustomerAccountStatus_"},"description":"A history of the status changes for the user's account.\n","example":[{"status":"created","timestamp":"2023-06-23T07:29:55.465000+00:00"}]},"reference_account":{"$ref":"#/components/schemas/BankAccountResponse"},"securities_account":{"$ref":"#/components/schemas/broker__apps__api__endpoints__accounts__SecuritiesAccountResponse"},"status":{"$ref":"#/components/schemas/CustomerAccountStatus"},"metadata":{"title":"Metadata","type":"object","description":"Optional metadata for the account as key-value pairs.\n","additionalProperties":{"type":"string"}},"agreements":{"title":"Accepted Agreements","type":"array","items":{"$ref":"#/components/schemas/AcceptedAgreementResponse"},"description":"A list of agreements that have been signed and currently valid for this account.\n","example":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"per_3a0baf04657b4fb9bcaa03d8120b5e9e"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"per_3a0baf04657b4fb9bcaa03d8120b5e9e"}]}},"description":"The customer account response after accepting an agreement, containing either PersonCustomerResponse or BusinessCustomerResponse.\n"},"ActorRequest":{"properties":{"type":{"type":"string","const":"person","title":"Type","description":"The actor type.  For the time being, the only valid value is `\"person\"`.\n"},"person":{"type":"string","title":"Person Identifier","description":"A person identifier.  This identifier specifies the individual performing an action (e.g. create/confirm order).\n"}},"type":"object","required":["type","person"],"title":"ActorRequest","description":"An object describing the individual performing an action.\n"},"ActorResponse":{"properties":{"type":{"type":"string","const":"person","title":"Type","description":"The actor type.  For the time being, the only valid value is `\"person\"`.\n"},"person":{"type":"string","title":"Person Identifier","description":"A person identifier.  This identifier specifies the individual performing an action (e.g. create/confirm order).\n"}},"type":"object","required":["type","person"],"title":"ActorResponse","description":"An object describing the individual performing an action.\n"},"Address":{"title":"Address","description":"A residential address.\n","required":["line_1","postal_code","city","country"],"type":"object","properties":{"line_1":{"title":"Line 1","maxLength":128,"type":"string","example":"Heidestraße 17","description":"The first line of the address. For most German addresses, this will be the street name and house number. If there is only a street name or a house number, provide that one without the other.\n"},"line_2":{"title":"Line 2","maxLength":128,"type":"string","example":null,"description":"The second line of the address. This field is optional, and it won't be needed for most German addresses. For care-of addresses (℅) like the following, this is likely to be the actual street name and house number: <br/>\n* Erika Mustermann<br/>℅ Max Müller<br/>**Mustergasse 14**<br/>12345 Musterstadt<br/>Germany\n"},"postal_code":{"title":"Postal Code","maxLength":50,"type":"string","example":"51147","description":"The postal code for the address.\n"},"city":{"title":"City","maxLength":150,"type":"string","example":"Köln","description":"The city/municipality of the address.\n"},"country":{"title":"Country","maxLength":2,"minLength":2,"type":"string","example":"DE","description":"An ISO 3166-1 alpha-2 code, representing the country of the address.\n"}}},"AddressRequest":{"properties":{"line_1":{"type":"string","maxLength":128,"minLength":1,"title":"Line 1","example":"Heidestraße 17","description":"The first line of the address. For most German addresses, this will be the street name and house number. If there is only a street name or a house number, provide that one without the other.\n"},"line_2":{"type":"string","maxLength":128,"minLength":1,"title":"Line 2","example":null,"description":"The second line of the address. This field is optional, and it won't be needed for most German addresses. For care-of addresses (℅) like the following, this is likely to be the actual street name and house number: <br/>\n* Erika Mustermann<br/>℅ Max Müller<br/>**Mustergasse 14**<br/>12345 Musterstadt<br/>Germany\n"},"postal_code":{"type":"string","maxLength":50,"minLength":1,"title":"Postal Code","example":"51147","description":"The postal code for the address.\n"},"city":{"type":"string","maxLength":150,"minLength":1,"title":"City","example":"Köln","description":"The city/municipality of the address.\n"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","example":"DE","description":"An ISO 3166-1 alpha-2 code, representing the country of the address.\n"}},"type":"object","required":["line_1","postal_code","city","country"],"title":"AddressRequest"},"broker__apps__api__endpoints__accounts__AgreementAcceptanceRequest":{"title":"AgreementAcceptance","description":"An object representing the user's acceptance of a legal agreement at a specific point in time.\n","required":["agreement_id","accepted_at"],"type":"object","properties":{"agreement_id":{"title":"Agreement Identifier","maxLength":255,"type":"string","example":"agr_9902271f791d413aad781763c61b9bb0","description":"An agreement identifier. This value identifies the agreement that a customer has accepted at a certain point in time.\n"},"accepted_at":{"title":"Accepted At","type":"string","format":"date-time","example":"2023-06-29T14:39:29Z","description":"A point in time.  This value specifies the point in time at which the user accepted the agreement referenced by `agreement_id`.\n"},"legal_representative":{"type":"string","title":"Legal Representative","maxLength":255,"example":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","description":"An legal representative identifier.  This value identifies the legal representative who has accepted the agreement.\n"}}},"broker__apps__api__endpoints__agreements__AgreementAcceptanceRequest":{"title":"AgreementAcceptance","description":"An object representing the user's acceptance of a legal agreement at a specific point in time.\n","required":["agreement_id","accepted_at"],"type":"object","properties":{"agreement_id":{"title":"Agreement Identifier","maxLength":255,"type":"string","example":"agr_9902271f791d413aad781763c61b9bb0","description":"An agreement identifier. This value identifies the agreement that a customer has accepted at a certain point in time.\n"},"accepted_at":{"title":"Accepted At","type":"string","format":"date-time","example":"2023-06-29T14:39:29Z","description":"A point in time.  This value specifies the point in time at which the user accepted the agreement referenced by `agreement_id`.\n"}}},"AgreementResponse":{"title":"AgreementResponse","required":["id","type","url","language","name","scope","acceptance","effective_at"],"type":"object","properties":{"id":{"title":"Agreement Identifier","type":"string","description":"The identifier for this document.  This will be later used as a value for the property `agreements[].agreement_id` for account creation.\n"},"type":{"$ref":"#/components/schemas/AgreementType"},"url":{"title":"Download URL","type":"string","format":"url","description":"A reference to the actual document. You can use this URL to present the document to the user. It can be accessed without special headers like `Authorization` or the `LMG-Data-Privacy-*` ones, so you have full flexibility for presentation and you can choose among:\n<ol><!-- redocly preview doesn't support markdown lists --> <li>Showing the document using an In-App Browser. <li>Showing the document using an external Browser App. <li>Provide the user with your own options to download or forward the document. </ol>\n"},"language":{"title":"Language","type":"string","description":"The (natural) language for the document.  This will can either be a pure language code like `\"de\"` or `\"pl\"` or a regional language code like `\"en_GB\"` or `\"de_CH\"`.\n<ul> <li><strong>Pure language code</strong> in this case is an ISO 639-1 alpha-2 code. <li><strong>Regional language code</strong> in this case is the concatenation of an ISO 639-1 alpha-2 code for a language\n    joined using the underscore character (<code>_</code>) with an ISO 3166-1 alpha-2 code for a country.\n</ul>\nWhen determining which one to prefer for display, we recommend to implement one of following strategies:\n<ol> <li>If you have a list of preferred languages for the user, such as iOS's\n    <a href=\"https://developer.apple.com/documentation/foundation/locale/2293155-preferredlanguages\"><code>Locale.preferredLanguages</code></a>,\n    iterate that list until you find the first language that has a document provided.\n<li>If you don't have a list of preferred languages, try to detect the regional language preference from\n    the environment (e.g. <code>\"de_AT\"</code>).  If there is a document for that one, present it to the\n     user. If not, try presenting one for the language-part only (in case of <code>\"de_AT\"</code>, that\n     would be <code>\"de\"</code>).\n</ol>\nIn either case, if there is no match with these lists, we recommend you pick a value that will match your application's default. A German version (<code>\"de\"</code>) will always be provided.\n"},"name":{"title":"Name","type":"string","description":"The localized name of the document. Use this value to reference to that document in the user interface.\n"},"scope":{"$ref":"#/components/schemas/AgreementScope"},"product":{"anyOf":[{"$ref":"#/components/schemas/ProductType"},{"type":"null"}],"title":"Product","description":"The product this agreement is tied to.  This is <code>null</code> for platform-wide agreements, i.e. whenever <code>scope</code> is <code>platform</code>.\n"},"acceptance":{"$ref":"#/components/schemas/AgreementAcceptance"},"effective_at":{"title":"Effective At","type":"string","format":"date-time","description":"The point in time from which this version of the document is effective.\n","example":"2024-01-15T09:30:00.000000+00:00"}}},"AgreementType":{"title":"AgreementType","enum":["pricing_table","privacy_policy","terms_and_conditions"],"type":"string","description":"This property describes the underlying type of a document.\n<ul> <li><code>pricing_table</code>: The pricing table for the lemon.markets brokerage account. <li><code>privacy_policy</code>: The privacy policy regarding the data processing in the context of a\n    lemon.markets brokerage account.\n<li><code>terms_and_conditions</code>: The general terms and conditions for the lemon.markets brokerage account. </ul>\nIn a list, you can use this value to select a different icon for eahc category or make sure, you always present those documents in a fixed order irrespective of the actual translation of the document title.\n"},"AgreementScope":{"title":"AgreementScope","enum":["platform","product"],"type":"string","description":"Describes whether an agreement applies platform-wide or is tied to a specific product.\n<ul> <li><code>platform</code>: the agreement applies regardless of product (for example the privacy policy or\n    terms and conditions).\n<li><code>product</code>: the agreement is tied to a specific product, which is exposed via the\n    <code>product</code> property.\n</ul>\n"},"AgreementAcceptance":{"title":"AgreementAcceptance","enum":["required","not_required"],"type":"string","description":"Describes whether the customer must actively accept an agreement.\n<ul> <li><code>required</code>: the customer must actively accept this agreement. <li><code>not_required</code>: the agreement is informational and does not require active acceptance. </ul>\n"},"ProductContractType":{"title":"ProductContractType","enum":["brokerage","retirement"],"type":"string","description":"The type of product a contract belongs to.\n<ul> <li><code>brokerage</code>: the lemon.markets brokerage product. <li><code>retirement</code>: the lemon.markets retirement account (Altersvorsorgedepot) product. </ul>\n"},"ProductContractInstrumentResponse":{"title":"ProductContractInstrumentResponse","required":["instrument","risk_class"],"type":"object","properties":{"instrument":{"title":"Instrument","type":"string","description":"The ISIN of an instrument that is eligible under the contract.\n","example":"IE00B4L5Y983"},"risk_class":{"title":"Risk Class","type":"integer","minimum":1,"maximum":7,"description":"The risk class of the instrument within the contract, from <code>1</code> (lowest) to <code>7</code> (highest).\n","example":4}}},"ProductContractResponse":{"title":"ProductContractResponse","required":["id","type","contract_name","contract_type","certification_number","provider_number","provider_name","provider_model","status","valid_from","valid_until","fee_annual_payin_aum_pct","fee_annual_payout_aum_pct","fee_provider_switch_amount","fee_transaction_buy_amount","fee_transaction_sell_amount","instruments"],"type":"object","properties":{"id":{"title":"Product Contract Identifier","type":"string","description":"The product contract identifier.  Pass it as <code>contract</code> when creating a retirement product via <code>POST /accounts/{account_id}/products</code>.\n","example":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57"},"type":{"$ref":"#/components/schemas/ProductContractType"},"contract_name":{"title":"Contract Name","type":"string","description":"The name of the contract.\n","example":"Altersvorsorgedepot Standard"},"contract_type":{"title":"Contract Type","type":"string","enum":["standarddepot","self_directed"],"description":"The type of the contract.\n<ul> <li><code>standarddepot</code>: a standard depot contract. <li><code>self_directed</code>: a self-directed contract. </ul>\n","example":"standarddepot"},"certification_number":{"title":"Certification Number","type":"string","description":"The certification number of the contract.\n","example":"AVD-2026-000123"},"provider_number":{"title":"Provider Number","type":"string","description":"The number of the contract provider.\n","example":"PRV001"},"provider_name":{"title":"Provider Name","type":"string","description":"The name of the contract provider.\n","example":"Example Provider GmbH"},"provider_model":{"title":"Provider Model","type":"string","enum":["external","lmb"],"description":"Who provides the contract.\n<ul> <li><code>external</code>: an external provider. <li><code>lmb</code>: lemon.markets. </ul>\n","example":"external"},"status":{"title":"Status","type":"string","enum":["active"],"description":"The status of the contract.  Only active contracts are returned.\n","example":"active"},"valid_from":{"title":"Valid From","type":"string","format":"date-time","description":"The time from which the contract is valid.\n","example":"2026-01-01T00:00:00+00:00"},"valid_until":{"title":"Valid Until","type":"string","format":"date-time","nullable":true,"description":"The time until which the contract is valid, or <code>null</code> if it has no end date.\n","example":null},"fee_annual_payin_aum_pct":{"title":"Annual AUM Fee (percentage) for payin phase","type":"string","format":"number","description":"The annual fee charged on assets under management, as a percentage (<code>1.00</code> is 1%) for payin phase.\n","example":"1.00"},"fee_annual_payout_aum_pct":{"title":"Annual AUM Fee (percentage) for payout phase","type":"string","format":"number","description":"The annual fee charged on assets under management, as a percentage (<code>1.00</code> is 1%) for payout phase.\n","example":"1.00"},"fee_provider_switch_amount":{"title":"Fee charged for switching providers.","type":"string","format":"number","description":"The one time fee for switching depot providers, in EUR.\n","example":"0.00"},"fee_transaction_buy_amount":{"title":"Buy Transaction Fee","type":"string","format":"number","description":"The fee charged per buy transaction, in EUR.\n","example":"0.00"},"fee_transaction_sell_amount":{"title":"Sell Transaction Fee","type":"string","format":"number","description":"The fee charged per sell transaction, in EUR.\n","example":"0.00"},"instruments":{"title":"Instruments","type":"array","description":"The instruments eligible under the contract.\n","items":{"$ref":"#/components/schemas/ProductContractInstrumentResponse"}}}},"EncodedPaginatedCollectionResponse_ProductContractResponse_":{"title":"Page of ProductContractResponse","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","type":"array","description":"The elements of the response.\n","items":{"$ref":"#/components/schemas/ProductContractResponse"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"SubsidyEligibility":{"type":"string","enum":["direct","indirect","not_eligible"],"title":"Subsidy Eligibility","description":"The subsidy status of the customer under the capital-market pension framework, which controls their government subsidy tiers:\n<ul> <li><code>direct</code> - Qualifies on their own. Gets the full basic subsidy and full child subsidies.</li> <li><code>indirect</code> - Qualifies through a spouse's <code>direct</code> eligibility. Gets only a reduced basic subsidy and full child subsidies.</li> <li><code>not_eligible</code> - Gets no subsidies at all.</li> </ul>\n"},"ProductContractContributionType":{"type":"string","enum":["initial","monthly","transfer_in","spouse_savings"],"title":"Contribution Type","description":"The kind of contribution made towards a retirement product contract.\n<ul> <li><code>initial</code>: a one-off contribution made when the contract starts.</li> <li><code>monthly</code>: a recurring contribution made every month for the term of the contract.</li> <li><code>transfer_in</code>: a one-off contribution transferred in from an existing retirement contract.</li> <li><code>spouse_savings</code>: not an actual contribution towards this contract, but the spouse's own savings amount, required when <code>subsidy_eligibility=indirect</code> to determine the applicable subsidy.</li> </ul>\n"},"ProductContractSubsidyType":{"type":"string","enum":["basic","child","young_person"],"title":"Subsidy Type","description":"A category representing the type of retirement subsidy being applied:\n<ul> <li><code>basic</code> - a government subsidy based on the customer's contributions. <li><code>child</code> - yearly, 100.00% of eligible contributions. <li><code>young_person</code> - a one-off bonus, only available when <code>subsidy_eligibility=direct</code>. </ul>\n"},"ReturnScenario":{"type":"string","enum":["optimistic","moderate","pessimistic","stress"],"title":"Return Scenario","description":"A category representing a performance projection scenario, as used in the PRIIPs Key Information Document (KID) methodology.\n<ul> <li><code>optimistic</code>: a favorable market performance scenario.</li> <li><code>moderate</code>: an expected, middle-of-the-road market performance scenario.</li> <li><code>pessimistic</code>: an unfavorable market performance scenario.</li> <li><code>stress</code>: an extreme, adverse market performance scenario.</li> </ul>\n"},"ProductContractContribution":{"properties":{"type":{"$ref":"#/components/schemas/ProductContractContributionType"},"amount":{"type":"string","format":"number","title":"Amount","description":"The contribution amount, represented as a decimal string.  In responses, this is formatted with two decimal places.\n","example":"10.00"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. The only currently available currency is `\"EUR\"`.\n","example":"EUR"}},"type":"object","required":["type","amount","currency"],"title":"ProductContractContribution","description":"A single contribution made towards a retirement product contract.\n"},"ProductContractAllocationEntry":{"properties":{"instrument":{"type":"string","maxLength":255,"title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166, identifying the instrument allocated within the portfolio.  Must be an active instrument of the product contract.\n","example":"IE00BFMXXD54"},"allocation_pct":{"type":"string","format":"number","minimum":0,"maximum":100,"title":"Allocation Percentage","description":"The share of the portfolio allocated to this instrument, represented as a decimal string between `\"0.00\"` and `\"100.00\"`.  In responses, this is formatted with two decimal places. The `allocation_pct` values of all allocations must sum to exactly `100`.\n","example":"50.00"}},"type":"object","required":["instrument","allocation_pct"],"title":"ProductContractAllocationEntry"},"ProductContractPortfolioAllocations":{"properties":{"type":{"type":"string","enum":["percentage_based"],"title":"Portfolio Allocation Type","default":"percentage_based","description":"The strategy used to allocate the portfolio across instruments.  Currently only `percentage_based` is supported, where each instrument is allocated a fixed percentage share.\n"},"allocations":{"title":"Allocations","description":"The instruments and their percentage shares of the portfolio.  Every instrument must be unique and eligible under the product contract.\n","type":"array","items":{"$ref":"#/components/schemas/ProductContractAllocationEntry"},"minItems":1}},"type":"object","required":["type","allocations"],"title":"ProductContractPortfolioAllocations"},"ProductContractPortfolioAllocationsResponse":{"properties":{"type":{"type":"string","enum":["percentage_based"],"title":"Portfolio Allocation Type","description":"The strategy used to allocate the portfolio across instruments.\n"},"portfolio_risk_class":{"type":"integer","minimum":1,"maximum":7,"title":"Portfolio Risk Class","description":"The risk classification assigned to the portfolio, based on its chosen allocations. Ranges from `1` (lowest risk) to `7` (highest risk).\n","example":1},"allocations":{"title":"Allocations","description":"The instruments and their percentage shares of the portfolio.\n","type":"array","items":{"$ref":"#/components/schemas/ProductContractAllocationEntry"}}},"type":"object","required":["type","portfolio_risk_class","allocations"],"title":"ProductContractPortfolioAllocationsResponse"},"ProductContractChild":{"properties":{"date_of_birth":{"type":"string","format":"date","title":"Date of Birth","description":"The child's date of birth.\n","example":"2016-03-01"},"until_age":{"type":"integer","minimum":1,"maximum":25,"title":"Until Age","description":"The age up to which this child is eligible for the child subsidy.  Exactly one of `until_age` or `has_disability` must be given; providing both or neither is rejected with a 400.\n","example":25},"has_disability":{"type":"boolean","title":"Has Disability","description":"Whether the child has a disability.  Children with a disability remain eligible for the child subsidy indefinitely, instead of up to a fixed age.  Exactly one of `until_age` or `has_disability` must be given; providing both or neither is rejected with a 400.\n","example":false}},"type":"object","required":["date_of_birth"],"title":"ProductContractChild","description":"A child eligible for the child subsidy.\n"},"ProductContractInformationRequest":{"properties":{"firstname":{"title":"First Name","maxLength":100,"type":"string","example":"Erika","description":"The customer's first name.  Only required when `is_final=true`; providing it when `is_final=false` is rejected with a 400.\n"},"lastname":{"title":"Last Name","maxLength":100,"type":"string","example":"Mustermann","description":"The customer's last name.  Only required when `is_final=true`; providing it when `is_final=false` is rejected with a 400.\n"},"accepted_agreements":{"title":"Accepted Agreements","description":"A list of legal agreements that have been accepted by the customer.  Only required when `is_final=true`; providing it when `is_final=false` is rejected with a 400.  Only the `privacy_policy` agreement can be accepted here; providing any other agreement type is rejected with a 400.\n","minItems":1,"type":"array","items":{"$ref":"#/components/schemas/broker__apps__api__endpoints__accounts__AgreementAcceptanceRequest"}},"date_of_birth":{"type":"string","format":"date","title":"Date of Birth","description":"The customer's date of birth.  Used to calculate the contract start date, the accumulation period, and the earliest/latest payout dates.\n","example":"1962-05-01"},"payout_start_age_years":{"type":"integer","minimum":65,"maximum":70,"title":"Payout Start Age (years)","description":"The age at which payouts from the retirement contract begin.  Must be between `65` and `70`.\n","example":65},"payout_end_age_years":{"type":"integer","minimum":85,"maximum":100,"title":"Payout End Age (years)","description":"The age at which payouts from the retirement contract end.  Must be greater than or equal to `85` (default), and no more than `100`.\n","example":85},"children":{"title":"Children","description":"The customer's children eligible for the child subsidy.\n","type":"array","items":{"$ref":"#/components/schemas/ProductContractChild"}},"subsidy_eligibility":{"$ref":"#/components/schemas/SubsidyEligibility"},"contributions":{"title":"Contributions","description":"The contributions planned towards the contract.  At least one entry is required, and at most one entry per `type` is allowed.  A `spouse_savings` entry is required when `subsidy_eligibility=indirect`.\n","type":"array","items":{"$ref":"#/components/schemas/ProductContractContribution"},"minItems":1},"portfolio_allocations":{"$ref":"#/components/schemas/ProductContractPortfolioAllocations"}},"type":"object","required":["date_of_birth","payout_start_age_years","payout_end_age_years","children","subsidy_eligibility","contributions","portfolio_allocations"],"title":"ProductContractInformationRequest"},"ProductContractAccumulationPeriod":{"properties":{"years_to_mature":{"type":"integer","minimum":0,"title":"Years to Mature","description":"The whole number of years from today until the selected payout start date.  Used together with `months_to_mature` to express the remaining time to maturity (e.g. `0` years and `8` months).\n","example":0},"months_to_mature":{"type":"integer","minimum":0,"title":"Months to Mature","description":"The total number of whole months from today until the selected payout start date.\n","example":8},"selected_payout_start_date":{"type":"string","format":"date","title":"Selected Payout Start Date","description":"The date on which payouts begin, derived from `payout_start_age_years` and `date_of_birth`.\n","example":"2027-05-01"},"selected_payout_end_date":{"type":"string","format":"date","title":"Selected Payout End Date","description":"The date on which payouts end, derived from `payout_end_age_years` and `date_of_birth`.\n","example":"2029-05-01"},"earliest_payout_date":{"type":"string","format":"date","title":"Earliest Payout Date","description":"The earliest date at which payouts from the contract are permitted to start, i.e. corresponding to payout age `65`.\n","example":"2027-05-01"},"latest_payout_date":{"type":"string","format":"date","title":"Latest Payout Date","description":"The latest date at which payouts from the contract are permitted to start, i.e. corresponding to payout age `70`.\n","example":"2032-05-01"}},"type":"object","required":["years_to_mature","months_to_mature","selected_payout_start_date","selected_payout_end_date","earliest_payout_date","latest_payout_date"],"title":"ProductContractAccumulationPeriod"},"ProductContractPayinProjection":{"properties":{"year":{"type":"integer","title":"Year","description":"The calendar year this projection applies to.\n","example":2026},"contribution":{"type":"string","format":"number","title":"Contribution","description":"The cumulative sum of all contributions (initial, monthly and transfer-in) made since the contract start up to and including this year, represented as a decimal string.\n","example":"13.00"},"basic_subsidy":{"type":"string","format":"number","title":"Basic Subsidy","description":"The cumulative sum of the `basic` subsidies received since the contract start up to and including this year, represented as a decimal string.  A subsidy is always credited in the year following the one in which the qualifying contribution was made, not in the same year.\n","example":"0.00"},"child_subsidy":{"type":"string","format":"number","title":"Child Subsidy","description":"The cumulative sum of the `child` subsidies received since the contract start up to and including this year, represented as a decimal string.  A subsidy is always credited in the year following the one in which the qualifying contribution was made, not in the same year.\n","example":"0.00"},"young_person_subsidy":{"type":"string","format":"number","title":"Young Person Subsidy","description":"The cumulative sum of the `young_person` subsidy received since the contract start up to and including this year, represented as a decimal string.  A subsidy is always credited in the year following the one in which the qualifying contribution was made, not in the same year.\n","example":"0.00"},"total_subsidies":{"type":"string","format":"number","title":"Total Subsidies","description":"The cumulative sum of `basic_subsidy`, `child_subsidy` and `young_person_subsidy` since the contract start up to and including this year, represented as a decimal string.\n","example":"0.00"},"appreciation":{"type":"string","format":"number","title":"Appreciation","description":"The cumulative monetary appreciation of the capital up to and including this year, i.e. capital minus the total amount invested (contributions plus subsidies), represented as a decimal string.\n","example":"0.22"},"capital":{"type":"string","format":"number","title":"Capital","description":"The cumulative capital accumulated in the contract since the contract start up to and including this year, represented as a decimal string.\n","example":"18.22"}},"type":"object","required":["year","contribution","basic_subsidy","child_subsidy","young_person_subsidy","total_subsidies","appreciation","capital"],"title":"ProductContractPayinProjection","description":"The projected development of the contract's capital during a single year of the pay-in (accumulation) phase.\n"},"ProductContractPerformanceScenario":{"properties":{"return_scenario":{"$ref":"#/components/schemas/ReturnScenario"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. The only currently available currency is `\"EUR\"`.\n","example":"EUR"},"annual_rate_of_return_pct":{"type":"string","format":"number","title":"Annual Rate of Return (%)","description":"The assumed annual rate of return for this scenario, as a percentage (`\"3.00\"` is 3%).\n","example":"3.00"},"projected_amount":{"type":"string","format":"number","title":"Projected Amount","description":"The projected capital at the selected payout start date under this scenario, represented as a decimal string.\n","example":"18.22"},"payin_projections":{"title":"Pay-in Projections","description":"A year-by-year breakdown of the contract's capital development during the pay-in (accumulation) phase, under this scenario.\n","type":"array","items":{"$ref":"#/components/schemas/ProductContractPayinProjection"}}},"type":"object","required":["return_scenario","currency","annual_rate_of_return_pct","projected_amount","payin_projections"],"title":"ProductContractPerformanceScenario","description":"A projection of the contract's performance over its entire term, under one assumed rate of return.\n"},"ProductContractSubsidy":{"properties":{"type":{"$ref":"#/components/schemas/ProductContractSubsidyType"},"amount":{"type":"string","format":"number","title":"Amount","description":"The amount actually granted under this subsidy over the full term of the contract, given the customer's contributions.\n","example":"0.00"}},"type":"object","required":["type","amount"],"title":"ProductContractSubsidy","description":"A single government subsidy applicable to the contract.  `basic`, `child` and `young_person` each appear at most once, with `child` combining the subsidies for all of the customer's children into a single amount.  `young_person` only appears when `subsidy_eligibility=direct`.\n\n<strong>Note:</strong> A subsidy is always credited in the year following the one in which the qualifying contribution was made, not in the same year.\n"},"ProductContractSummary":{"properties":{"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. The only currently available currency is `\"EUR\"`.\n","example":"EUR"},"subsidies":{"title":"Subsidies","description":"The government subsidies applicable to the contract, over its full term.\n","type":"array","items":{"$ref":"#/components/schemas/ProductContractSubsidy"}},"total_subsidies":{"type":"string","format":"number","title":"Total Subsidies","description":"The sum of the `amount` of all entries in `subsidies`, represented as a decimal string.\n","example":"0.00"},"contributions":{"title":"Contributions","description":"The contributions made towards the contract, as submitted in the request, with amounts formatted to two decimal places.\n","type":"array","items":{"$ref":"#/components/schemas/ProductContractContribution"}},"total_contributions":{"type":"string","format":"number","title":"Total Contributions","description":"The sum of all contributions in `contributions`, over the full term of the contract, represented as a decimal string.  Excludes any `spouse_savings` entry, since it is not an actual contribution towards this contract.\n","example":"18.00"},"total_contributions_and_subsidies":{"type":"string","format":"number","title":"Total Contributions and Subsidies","description":"The sum of `total_contributions` and `total_subsidies`, represented as a decimal string.\n","example":"18.00"}},"type":"object","required":["currency","subsidies","total_subsidies","contributions","total_contributions","total_contributions_and_subsidies"],"title":"ProductContractSummary","description":"A summary of contributions and government subsidies over the full term of the contract.\n"},"ProductContractFeePercentage":{"properties":{"pct":{"type":"string","format":"number","title":"Percentage","description":"The fee, as a percentage (`\"0.50\"` is 0.5%).\n","example":"0.50"}},"type":"object","required":["pct"],"title":"ProductContractFeePercentage"},"ProductContractFeeAmount":{"properties":{"base_amount":{"type":"string","format":"number","title":"Base Amount","description":"The fee amount, in the contract's currency, represented as a decimal string.\n","example":"0.00"}},"type":"object","required":["base_amount"],"title":"ProductContractFeeAmount"},"ProductContractInstrumentFee":{"properties":{"instrument":{"type":"string","maxLength":255,"title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166, identifying the instrument this fee applies to.\n","example":"IE00BFMXXD54"},"total_expense_ratio_pct":{"type":"string","format":"number","title":"Total Expense Ratio (%)","description":"The total expense ratio of the instrument, as a percentage (`\"0.07\"` is 0.07%).  See `InstrumentResponse.total_expense_ratio_pct`.\n","example":"0.07"},"transaction_cost_pct":{"type":"string","format":"number","title":"Transaction Cost (%)","description":"The transaction cost incurred when trading the instrument, as a percentage (`\"0.00\"` is 0%).\n","example":"0.00"}},"type":"object","required":["instrument","total_expense_ratio_pct","transaction_cost_pct"],"title":"ProductContractInstrumentFee"},"ProductContractFees":{"properties":{"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. The only currently available currency is `\"EUR\"`.\n","example":"EUR"},"annual_payin_fees":{"$ref":"#/components/schemas/ProductContractFeePercentage"},"annual_payout_fees":{"$ref":"#/components/schemas/ProductContractFeePercentage"},"transaction_buy_fees":{"$ref":"#/components/schemas/ProductContractFeeAmount"},"transaction_sell_fees":{"$ref":"#/components/schemas/ProductContractFeeAmount"},"provider_switch_fees":{"$ref":"#/components/schemas/ProductContractFeeAmount"},"portfolio_fee":{"title":"Portfolio Fee","description":"The instrument-level fees for every instrument in the selected portfolio allocation.\n","type":"array","items":{"$ref":"#/components/schemas/ProductContractInstrumentFee"}}},"type":"object","required":["currency","annual_payin_fees","annual_payout_fees","transaction_buy_fees","transaction_sell_fees","provider_switch_fees","portfolio_fee"],"title":"ProductContractFees","description":"The fees applicable to the contract, combining the contract-level fees of the underlying product contract (see <code>GET /product_contracts/{contract_id}</code>) with the instrument-level fees of the selected portfolio allocation.\n"},"ProductContractInformationResponse":{"properties":{"id":{"type":"string","nullable":true,"title":"Product Contract Information Identifier","description":"A unique identifier for this calculated product information.  Only populated when `is_final=true` was passed to generate it, in which case the result is persisted.  `null` when `is_final=false`, i.e. the response is only a preview before the customer has accepted the product information.\n","example":"pi_31c35f190dd942049d8f13e6bb61f0ec"},"firstname":{"type":"string","title":"First Name","description":"The customer's first name, i.e. the request's `firstname`.  Only present when `is_final=true`; omitted entirely when `is_final=false`.\n","example":"Erika"},"lastname":{"type":"string","title":"Last Name","description":"The customer's last name, i.e. the request's `lastname`.  Only present when `is_final=true`; omitted entirely when `is_final=false`.\n","example":"Mustermann"},"accepted_agreements":{"title":"Accepted Agreements","description":"The legal agreements accepted by the customer, i.e. the request's `accepted_agreements`.  Only present when `is_final=true`; omitted entirely when `is_final=false`.\n","type":"array","items":{"$ref":"#/components/schemas/broker__apps__api__endpoints__accounts__AgreementAcceptanceRequest"}},"children":{"title":"Children","description":"The customer's children eligible for the child subsidy, i.e. the request's `children`.\n","type":"array","items":{"$ref":"#/components/schemas/ProductContractChild"}},"subsidy_eligibility":{"$ref":"#/components/schemas/SubsidyEligibility"},"payout_age_years":{"type":"integer","title":"Payout Age Years","description":"The age at which payouts from the retirement contract begin, i.e. the request's `payout_start_age_years`.\n","example":65},"contract_start_date":{"type":"string","format":"date","title":"Contract Start Date","description":"The date on which the contract starts.\n","example":"2026-10-20"},"accumulation_period":{"$ref":"#/components/schemas/ProductContractAccumulationPeriod"},"portfolio_allocations":{"$ref":"#/components/schemas/ProductContractPortfolioAllocationsResponse"},"performance_scenarios":{"title":"Performance Scenarios","description":"Projected contract value at the payout date under a range of return scenarios, covering the entire term of the retirement contract, from the contract start date until the selected payout end date. These are projections, not guarantees - actual results can differ depending on market conditions.\n","type":"array","items":{"$ref":"#/components/schemas/ProductContractPerformanceScenario"}},"contribution_summary":{"$ref":"#/components/schemas/ProductContractSummary"},"effective_cost_pct":{"type":"string","format":"number","title":"Effective Cost (%)","description":"The reduction in yield caused by all fees over the full term of the contract, as a percentage (`\"0.42\"` is 0.42%).\n","example":"0.42"},"fees":{"$ref":"#/components/schemas/ProductContractFees"},"pdf":{"type":"string","format":"uri","title":"Product Information Sheet PDF","description":"A URL to the product information sheet (Produktinformationsblatt) PDF document for this calculated product information. Only present when `is_final=true`; omitted entirely when `is_final=false`.\n","example":"https://sandbox-documents.lemon.markets/pcon_26f4db49dd6b425080064c842bd28130/26f4db49dd6b425080064c842bd28130/26f4db49dd6b425080064c842bd28130.pdf"}},"type":"object","required":["id","children","subsidy_eligibility","payout_age_years","contract_start_date","accumulation_period","portfolio_allocations","performance_scenarios","contribution_summary","effective_cost_pct","fees"],"title":"ProductContractInformationResponse"},"ProductType":{"title":"ProductType","enum":["brokerage","retirement_account"],"type":"string","description":"The type of product an entity is associated with.\n<ul> <li><code>brokerage</code>: the lemon.markets brokerage product. <li><code>retirement_account</code>: the lemon.markets retirement account (Altersvorsorgedepot) product. </ul>\n"},"AnnualSalary":{"title":"AnnualSalary","enum":["lt_50k_eur","gte_50k_lt_75k_eur","gte_75k_lt_100k_eur","gte_100k_lt_150k_eur","gte_150k_eur"],"type":"string","description":"A category to represent a customer's annual income:\n<ul> <li><code>lt_50k_eur</code>: Less than 50,000 EUR. <li><code>gte_50k_lt_75k_eur</code>: 50,000 EUR or more, but less than 75,000 EUR. <li><code>gte_75k_lt_100k_eur</code>: 75,000 EUR or more, but less than 100,000 EUR. <li><code>gte_100k_lt_150k_eur</code>: 100,000 EUR or more, but less than 150,000 EUR. <li><code>gte_150k_eur</code>: 150,000 EUR or more. </ul>\n"},"AppropriatenessCheckWarningResponse":{"title":"AppropriatenessCheckWarningResponse","description":"An object representing the requirements for explicit confirmation of an appropriateness warning.\n","type":"object","properties":{"consent_required":{"type":"boolean","title":"Consent Required","description":"Requirement indicator for the appropriateness warning.\n**NOTE:** If this value is `true`, the frontend must present a warning to the user as outlined in your onboarding documentation.\n"},"consent_confirmed_at":{"type":"string","format":"date-time","title":"Consent Confirmed At","description":"A timestamp representing the point in time at which the user has confirmed the appropriateness warning.  If the user hasn't done this yet, the value will be `null`.\n"}},"required":["consent_required"]},"AppropriatenessConsentResponse":{"title":"AppropriatenessConsentResponse","description":"An object representing the requirements for explicit confirmation of an appropriateness warning.\n","type":"object","properties":{"required":{"type":"boolean","title":"Consent Required","description":"Requirement indicator for the appropriateness warning.\n**NOTE:** If this value is `true`, the frontend must present a warning to the user as outlined in your onboarding documentation.\n"}},"required":["required"]},"AuthenticatorResponse":{"properties":{"id":{"type":"string","title":"Authenticator Identifier","description":"An authenticator identifier.\n"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"A timestamp representing the point in time when the authenticator was registered.\n"},"public_key":{"type":"string","title":"Public Key","description":"The base64-url encoded form of the authenticator's public key.  See the guide on strong customer authentication for more information about the format.\n"},"client_credential_id":{"type":"string","title":"Client Credential Identifier","description":"A client-side (read: on-device) identifier for the public key of the authenticator.  Use this identifier to indicate the private key used to create a signature in the two-step verification process or to match the authenticator in a list of authenticated devices.\n**NOTE:** All authenticators associated with a single account must have different values in `client_credential_id`.\n"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","created_at","public_key","client_credential_id","name"],"title":"AuthenticatorResponse","example":{"client_credential_id":"adfd5154-c39c-41c5-a88d-f3e6a2aded9e","created_at":"2023-07-28T14:10:33.858446+00:00","id":"sca_8f993645e0954d8ab35198c4c7875fcd","name":"Happy 🍋","public_key":"pSJYIO1qxZIy0bSkO0djjJtdFFVU5K0v1l76XJQba8DNw3xXAQIgAQMmIVggh3uzl_vqfplJX8P3T-rdhEbkO_XX5dDkuGjFO0kRr5w="}},"BankAccountResponse":{"title":"BankAccountResponse","description":"An object representing a bank account.\n","required":["iban","bic"],"type":"object","properties":{"iban":{"title":"IBAN","type":"string","description":"An IBAN (International Bank Account Number) according to ISO 13616-1:2020.\n"},"bic":{"title":"BIC","type":"string","description":"A BIC (Business Identifier Code) according to ISO 9362.\n"},"name":{"type":"string","title":"Name","description":"The name of the bank managing the bank account.\n"}}},"BatchOrderEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"batch_order":{"type":"string","title":"Batch Order","description":"A batch order identifier. This field represents the batch order associated with an event.\n"}},"type":"object","required":["account","batch_order"],"title":"BatchOrderEventContext"},"BatchOrderResponse":{"properties":{"id":{"type":"string","title":"Batch Order Identifier","example":"bord_353dc0fa58ba4ab7b8bd66430d04dd53","description":"The unique identifier for this batch order.\n"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp of the batch order.  It represents the point in time at which the batch order was created.\n"},"side":{"$ref":"#/components/schemas/Side"},"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument to be bought/sold.\n"},"amount":{"type":"string","format":"number","title":"Amount","description":"The amount of cash for a buy order, `null` for a sell order.\n**NOTE:** We may evolve the API to allow quantity-based buy orders and amount-based sell orders. We do not recommend to rely on the current behavior.\n"},"quantity":{"type":"string","format":"number","exclusiveMinimum":0,"title":"Quantity","description":"The quantity of shares for a sell order, `null` for a buy order.\n**NOTE:** We may evolve the API to allow quantity-based buy orders and amount-based sell orders. We do not recommend to rely on the current behavior.\n"},"fee":{"type":"string","format":"number","title":"Fee","description":"The fee that will be charged by lemon.markets on your behalf.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount and fee listed here. The only currently available currency is `\"EUR\"`.\n"},"status":{"$ref":"#/components/schemas/OrderStatus"},"history":{"items":{"$ref":"#/components/schemas/StatusChangeResponse"},"type":"array","title":"History"},"regulatory_disclosures":{"$ref":"#/components/schemas/broker__apps__api__types__RegulatoryDisclosureResponse"},"appropriateness_check":{"$ref":"#/components/schemas/AppropriatenessCheckWarningResponse"},"sca":{"$ref":"#/components/schemas/StrongCustomerAuthenticationRequest"}},"type":"object","required":["id","created_at","side","instrument","fee","currency","status","history"],"title":"BatchOrderResponse"},"BatchOrderWorkflowEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"batch_order":{"type":"string","title":"Batch Order","description":"A batch order identifier. This field represents the batch order associated with an event.\n"},"workflow":{"type":"string","title":"Workflow","description":"A workflow identifier. This field represents the workflow associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","batch_order","workflow"],"title":"BatchOrderWorkflowEventContext"},"BeneficialOwnerNature":{"type":"string","enum":["real","notional"],"title":"BeneficialOwnerNature","description":"A category describing the nature of a UBO:\n<ul> <li><code>real</code> <li><code>notional</code> </ul>\n"},"BeneficialOwnerRequest":{"properties":{"person":{"type":"string","maxLength":255,"minLength":1,"title":"Person","description":"A person identifier.  This field represents the `person` associated as beneficial owner.\n"},"shares_pct":{"exclusiveMinimum":0,"maximum":100,"type":"string","format":"number","title":"Percentage Shares","description":"The amount of shares (in percent) held by this beneficial owner.\n"},"voting_rights_pct":{"type":"string","format":"number","maximum":100,"exclusiveMinimum":0,"title":"Percentage Voting Rights","description":"The amount of voting rights (in percent) held by this beneficial owner. Required for KYC reliance partners only.\n"},"nature":{"$ref":"#/components/schemas/BeneficialOwnerNature"}},"type":"object","required":["nature","person","shares_pct"],"title":"BeneficialOwnerRequest"},"BeneficialOwnerResponse":{"properties":{"id":{"type":"string","title":"Beneficial Owner Identifier","description":"The unique identifier for this beneficial owner."},"person":{"type":"string","title":"Person","description":"A person identifier.  This field represents the `person` associated as beneficial owner.\n"},"shares_pct":{"exclusiveMinimum":0,"type":"string","format":"number","title":"Percentage Shares","description":"The amount of shares (in percent) held by this beneficial owner.\n"},"voting_rights_pct":{"type":"string","format":"number","maximum":100,"exclusiveMinimum":0,"title":"Percentage Voting Rights","description":"The amount of voting rights (in percent) held by this beneficial owner. Required for KYC reliance partners only.\n"},"nature":{"$ref":"#/components/schemas/BeneficialOwnerNature"}},"type":"object","required":["id","nature","person","shares_pct"],"title":"BeneficialOwnerResponse"},"BillingPeriod":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date","description":"The first date (inclusive) in the billing period for the associated fee."},"end_date":{"type":"string","format":"date","title":"End Date","description":"The last date (inclusive) in the billing period for the associated fee."},"billing_month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$","title":"Billing Month","description":"A string representing the billing month in `YYYY-MM` format (e.g., 2025-08).\n"}},"type":"object","required":["start_date","end_date","billing_month"],"title":"BillingPeriod"},"BusinessCustomerRequest":{"properties":{"type":{"type":"string","enum":["business"],"const":"business","title":"Type","description":"The string `\"business\"` is used here to identify a business account being onboarded.\n"},"id":{"type":"string","maxLength":200,"minLength":1,"title":"Business Identifier","description":"The identifier for the business to create an account for.\n"}},"type":"object","required":["type","id"],"title":"BusinessCustomerRequest","example":{"id":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","type":"business"}},"PersonCustomerRequest":{"properties":{"type":{"type":"string","enum":["person"],"const":"person","title":"Type","description":"The string `\"person\"` is used here to identify a person being onboarded.\n"},"id":{"type":"string","maxLength":200,"minLength":1,"title":"Person Identifier","description":"The identifier for the person to create an account for.\n"}},"type":"object","required":["type","id"],"title":"PersonCustomerRequest","example":{"id":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","type":"person"}},"BusinessCustomerResponse":{"properties":{"type":{"type":"string","enum":["business"],"const":"business","title":"Type","description":"The string `\"business\"` is used here to identify a business account being onboarded.\n"},"id":{"type":"string","title":"Business Identifier","deprecated":true,"description":"The identifier for the business owning an account.\n**Deprecated:** Use the `business` field instead. This field will be removed in a future version.\n"},"business":{"type":"string","title":"Business Identifier","description":"The identifier for the business owning an account.\n"}},"type":"object","required":["type","id","business"],"title":"BusinessCustomerResponse","example":{"id":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","business":"le_3a0baf04657b4fb9bcaa03d8120b5e9e","type":"business"}},"BusinessDocumentType":{"type":"string","enum":["articles_of_association","commercial_register_extract","shareholder_list"],"title":"BusinessDocumentType","description":"A category describing the a business document:\n<ul> <li><code>articles_of_association</code> <li><code>commercial_register_extract</code> <li><code>shareholder_list</code> </ul>\n"},"BusinessDocumentUploadRequest":{"properties":{"document":{"$ref":"#/components/schemas/BusinessDocumentType"}},"type":"object","required":["document"],"title":"BusinessDocumentUploadRequest"},"BusinessDocumentUploadResponse":{"properties":{"document":{"$ref":"#/components/schemas/BusinessDocumentType"},"upload_url":{"type":"string","title":"Upload URL","description":"A URL to upload the business document.\nUse this URL to upload a document with the HTTP method `PUT` and the content type header set to `application/pdf`.\n"},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"The expiry date for the upload link.  Please only create upload links for immediate uploads.\n"}},"type":"object","required":["document","upload_url","expires_at"],"title":"BusinessDocumentUploadResponse"},"PersonDocumentUploadType":{"type":"string","enum":["person.identification_bundle"],"title":"PersonDocumentUploadType","description":"A category describing a person document:\n<ul> <li><code>person.identification_bundle</code> - A bundle of identification documents for a person </ul>\n"},"BusinessDocumentUploadType":{"type":"string","enum":["business.articles_of_association","business.commercial_register_extract","business.shareholder_list"],"title":"BusinessDocumentUploadType","description":"A category describing a business document:\n<ul> <li><code>business.articles_of_association</code> - Articles of association for a business <li><code>business.commercial_register_extract</code> - Commercial register extract <li><code>business.shareholder_list</code> - List of shareholders </ul>\n"},"PersonDocumentUploadRequest":{"properties":{"person":{"type":"string","title":"Person Identifier","description":"The identifier of the person for whom the document is being submitted","example":"pers_0453deb1c90448c99f24adaa833cfda9"},"type":{"$ref":"#/components/schemas/PersonDocumentUploadType"}},"type":"object","required":["person","type"],"title":"PersonDocumentUploadRequest"},"BusinessDocumentUploadRequestV2":{"properties":{"business":{"type":"string","title":"Business Identifier","description":"The identifier of the business for which the document is being submitted","example":"le_8e2a16591a664df89551047d85436562"},"type":{"$ref":"#/components/schemas/BusinessDocumentUploadType"}},"type":"object","required":["business","type"],"title":"BusinessDocumentUploadRequestV2"},"PersonDocumentUploadResponse":{"properties":{"person":{"type":"string","title":"Person Identifier","description":"The identifier of the person for whom the document was submitted","example":"pers_0453deb1c90448c99f24adaa833cfda9"},"type":{"$ref":"#/components/schemas/PersonDocumentUploadType"},"upload_location":{"type":"string","title":"Upload Location","description":"A presigned URL to upload the person document.\nUse this URL to upload a document with the HTTP method `PUT` and the content type header set to `application/zip`.\n"},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"The expiry date for the upload link. Please only create upload links for immediate uploads.\n"}},"type":"object","required":["person","type","upload_location","expires_at"],"title":"PersonDocumentUploadResponse"},"BusinessDocumentUploadResponseV2":{"properties":{"business":{"type":"string","title":"Business Identifier","description":"The identifier of the business for which the document was submitted","example":"le_8e2a16591a664df89551047d85436562"},"type":{"$ref":"#/components/schemas/BusinessDocumentUploadType"},"upload_location":{"type":"string","title":"Upload Location","description":"A presigned URL to upload the business document.\nUse this URL to upload a document with the HTTP method `PUT` and the content type header set to `application/pdf`.\n"},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"The expiry date for the upload link. Please only create upload links for immediate uploads.\n"}},"type":"object","required":["business","type","upload_location","expires_at"],"title":"BusinessDocumentUploadResponseV2"},"BusinessIndustry":{"properties":{"nace_rev":{"$ref":"#/components/schemas/BusinessIndustryNaceRev"},"code":{"oneOf":[{"$ref":"#/components/schemas/BusinessIndustryCodeEnumTwo"},{"$ref":"#/components/schemas/BusinessIndustryCodeEnumTwoOne"}]}},"type":"object","required":["nace_rev","code"],"title":"BusinessIndustry","description":"A specification of an industry sector.\n"},"BusinessIndustryCodeEnumTwo":{"type":"string","enum":["A.1.11","A.1.12","A.1.13","A.1.14","A.1.15","A.1.16","A.1.19","A.1.21","A.1.22","A.1.23","A.1.24","A.1.25","A.1.26","A.1.27","A.1.28","A.1.29","A.1.30","A.1.41","A.1.42","A.1.43","A.1.44","A.1.45","A.1.46","A.1.47","A.1.49","A.1.50","A.1.61","A.1.62","A.1.63","A.1.64","A.1.70","A.2.10","A.2.20","A.2.30","A.2.40","A.3.11","A.3.12","A.3.21","A.3.22","B.5.10","B.5.20","B.6.10","B.6.20","B.7.10","B.7.21","B.7.29","B.8.11","B.8.12","B.8.91","B.8.92","B.8.93","B.8.99","B.9.10","B.9.90","C.10.11","C.10.12","C.10.13","C.10.20","C.10.31","C.10.32","C.10.39","C.10.41","C.10.42","C.10.51","C.10.52","C.10.61","C.10.62","C.10.71","C.10.72","C.10.73","C.10.81","C.10.82","C.10.83","C.10.84","C.10.85","C.10.86","C.10.89","C.10.91","C.10.92","C.11.01","C.11.02","C.11.03","C.11.04","C.11.05","C.11.06","C.11.07","C.12.00","C.13.10","C.13.20","C.13.30","C.13.91","C.13.92","C.13.93","C.13.94","C.13.95","C.13.96","C.13.99","C.14.11","C.14.12","C.14.13","C.14.14","C.14.19","C.14.20","C.14.31","C.14.39","C.15.11","C.15.12","C.15.20","C.16.10","C.16.21","C.16.22","C.16.23","C.16.24","C.16.29","C.17.11","C.17.12","C.17.21","C.17.22","C.17.23","C.17.24","C.17.29","C.18.11","C.18.12","C.18.13","C.18.14","C.18.20","C.19.10","C.19.20","C.20.11","C.20.12","C.20.13","C.20.14","C.20.15","C.20.16","C.20.17","C.20.20","C.20.30","C.20.41","C.20.42","C.20.51","C.20.52","C.20.53","C.20.59","C.20.60","C.21.10","C.21.20","C.22.11","C.22.19","C.22.21","C.22.22","C.22.23","C.22.24","C.23.11","C.23.12","C.23.13","C.23.14","C.23.19","C.23.20","C.23.31","C.23.32","C.23.41","C.23.42","C.23.43","C.23.44","C.23.49","C.23.51","C.23.52","C.23.61","C.23.62","C.23.63","C.23.64","C.23.65","C.23.69","C.23.70","C.23.91","C.23.99","C.24.10","C.24.20","C.24.31","C.24.32","C.24.33","C.24.34","C.24.41","C.24.42","C.24.43","C.24.44","C.24.45","C.24.46","C.24.51","C.24.52","C.24.53","C.24.54","C.25.11","C.25.12","C.25.21","C.25.29","C.25.30","C.25.40","C.25.50","C.25.61","C.25.62","C.25.71","C.25.72","C.25.73","C.25.91","C.25.92","C.25.93","C.25.94","C.25.95","C.26.11","C.26.12","C.26.20","C.26.30","C.26.40","C.26.51","C.26.52","C.26.60","C.26.70","C.26.80","C.27.11","C.27.12","C.27.20","C.27.31","C.27.32","C.27.33","C.27.40","C.27.51","C.27.52","C.27.90","C.28.11","C.28.12","C.28.13","C.28.14","C.28.15","C.28.21","C.28.22","C.28.23","C.28.24","C.28.25","C.28.29","C.28.30","C.28.41","C.28.49","C.28.91","C.28.92","C.28.93","C.28.94","C.28.95","C.28.96","C.28.99","C.29.10","C.29.20","C.29.31","C.29.32","C.30.11","C.30.12","C.30.20","C.30.30","C.30.40","C.30.91","C.30.92","C.30.99","C.31.01","C.31.02","C.31.03","C.31.09","C.32.11","C.32.12","C.32.13","C.32.20","C.32.30","C.32.40","C.32.50","C.32.91","C.32.99","C.33.11","C.33.12","C.33.13","C.33.14","C.33.15","C.33.16","C.33.17","C.33.19","C.33.20","D.35.11","D.35.12","D.35.13","D.35.14","D.35.21","D.35.22","D.35.23","D.35.30","E.36.00","E.37.00","E.38.11","E.38.12","E.38.21","E.38.22","E.38.31","E.38.32","E.39.00","F.41.10","F.41.20","F.42.11","F.42.12","F.42.13","F.42.21","F.42.22","F.42.91","F.42.99","F.43.11","F.43.12","F.43.13","F.43.21","F.43.22","F.43.29","F.43.31","F.43.32","F.43.33","F.43.34","F.43.39","F.43.91","F.43.99","G.45.11","G.45.19","G.45.20","G.45.31","G.45.32","G.45.40","G.46.11","G.46.12","G.46.13","G.46.14","G.46.15","G.46.16","G.46.17","G.46.18","G.46.19","G.46.21","G.46.22","G.46.23","G.46.24","G.46.31","G.46.32","G.46.33","G.46.34","G.46.35","G.46.36","G.46.37","G.46.38","G.46.39","G.46.41","G.46.42","G.46.43","G.46.44","G.46.45","G.46.46","G.46.47","G.46.48","G.46.49","G.46.51","G.46.52","G.46.61","G.46.62","G.46.63","G.46.64","G.46.65","G.46.66","G.46.69","G.46.71","G.46.72","G.46.73","G.46.74","G.46.75","G.46.76","G.46.77","G.46.90","G.47.11","G.47.19","G.47.21","G.47.22","G.47.23","G.47.24","G.47.25","G.47.26","G.47.29","G.47.30","G.47.41","G.47.42","G.47.43","G.47.51","G.47.52","G.47.53","G.47.54","G.47.59","G.47.61","G.47.62","G.47.63","G.47.64","G.47.65","G.47.71","G.47.72","G.47.73","G.47.74","G.47.75","G.47.76","G.47.77","G.47.78","G.47.79","G.47.81","G.47.82","G.47.89","G.47.91","G.47.99","H.49.10","H.49.20","H.49.31","H.49.32","H.49.39","H.49.41","H.49.42","H.49.50","H.50.10","H.50.20","H.50.30","H.50.40","H.51.10","H.51.21","H.51.22","H.52.10","H.52.21","H.52.22","H.52.23","H.52.24","H.52.29","H.53.10","H.53.20","I.55.10","I.55.20","I.55.30","I.55.90","I.56.10","I.56.21","I.56.29","I.56.30","J.58.11","J.58.12","J.58.13","J.58.14","J.58.19","J.58.21","J.58.29","J.59.11","J.59.12","J.59.13","J.59.14","J.59.20","J.60.10","J.60.20","J.61.10","J.61.20","J.61.30","J.61.90","J.62.01","J.62.02","J.62.03","J.62.09","J.63.11","J.63.12","J.63.91","J.63.99","K.64.11","K.64.19","K.64.20","K.64.30","K.64.91","K.64.92","K.64.99","K.65.11","K.65.12","K.65.20","K.65.30","K.66.11","K.66.12","K.66.19","K.66.21","K.66.22","K.66.29","K.66.30","L.68.10","L.68.20","L.68.31","L.68.32","M.69.10","M.69.20","M.70.10","M.70.21","M.70.22","M.71.11","M.71.12","M.71.20","M.72.11","M.72.19","M.72.20","M.73.11","M.73.12","M.73.20","M.74.10","M.74.20","M.74.30","M.74.90","M.75.00","M.77.11","M.77.12","M.77.21","M.77.22","M.77.29","N.77.31","N.77.32","N.77.33","N.77.34","N.77.35","N.77.39","N.77.40","N.78.10","N.78.20","N.78.30","N.79.11","N.79.12","N.79.90","N.80.10","N.80.20","N.80.30","N.81.10","N.81.21","N.81.22","N.81.29","N.81.30","N.82.11","N.82.19","N.82.20","N.82.30","N.82.91","N.82.92","N.82.99","N.84.11","N.84.12","N.84.13","N.84.21","N.84.22","N.84.23","N.84.24","N.84.25","O.84.30","P.85.10","P.85.20","P.85.31","P.85.32","P.85.41","P.85.42","P.85.51","P.85.52","P.85.53","P.85.59","P.85.60","Q.86.10","Q.86.21","Q.86.22","Q.86.23","Q.86.90","Q.87.10","Q.87.20","Q.87.30","Q.87.90","Q.88.10","Q.88.91","Q.88.99","R.90.01","R.90.02","R.90.03","R.90.04","R.91.01","R.91.02","R.91.03","R.91.04","R.92.00","R.93.11","R.93.12","R.93.13","R.93.19","R.93.21","R.93.29","S.94.11","S.94.12","S.94.20","S.94.91","S.94.92","S.94.99","S.95.11","S.95.12","S.95.21","S.95.22","S.95.23","S.95.24","S.95.25","S.95.29","S.96.01","S.96.02","S.96.03","S.96.04","S.96.09","T.97.00","T.98.10","T.98.20","U.99.00"],"title":"BusinessIndustryCodeEnumTwo","description":"An industry sector identifier, according to NACE rev 2 (2006).\n"},"BusinessIndustryCodeEnumTwoOne":{"type":"string","enum":["A.1.11","A.1.12","A.1.13","A.1.14","A.1.15","A.1.16","A.1.19","A.1.21","A.1.22","A.1.23","A.1.24","A.1.25","A.1.26","A.1.27","A.1.28","A.1.29","A.1.30","A.1.41","A.1.42","A.1.43","A.1.44","A.1.45","A.1.46","A.1.47","A.1.48","A.1.50","A.1.61","A.1.62","A.1.63","A.1.70","A.2.10","A.2.20","A.2.30","A.2.40","A.3.11","A.3.12","A.3.21","A.3.22","A.3.30","B.5.10","B.5.20","B.6.10","B.6.20","B.7.10","B.7.21","B.7.29","B.8.11","B.8.12","B.8.91","B.8.92","B.8.93","B.8.99","B.9.10","B.9.90","C.10.11","C.10.12","C.10.13","C.10.20","C.10.31","C.10.32","C.10.39","C.10.41","C.10.42","C.10.51","C.10.52","C.10.61","C.10.62","C.10.71","C.10.72","C.10.73","C.10.81","C.10.82","C.10.83","C.10.84","C.10.85","C.10.86","C.10.89","C.10.91","C.10.92","C.11.01","C.11.02","C.11.03","C.11.04","C.11.05","C.11.06","C.11.07","C.12.00","C.13.10","C.13.20","C.13.30","C.13.91","C.13.92","C.13.93","C.13.94","C.13.95","C.13.96","C.13.99","C.14.10","C.14.21","C.14.22","C.14.23","C.14.24","C.14.29","C.15.11","C.15.12","C.15.20","C.16.11","C.16.12","C.16.21","C.16.22","C.16.23","C.16.24","C.16.25","C.16.26","C.16.27","C.16.28","C.17.11","C.17.12","C.17.21","C.17.22","C.17.23","C.17.24","C.17.25","C.18.11","C.18.12","C.18.13","C.18.14","C.18.20","C.19.10","C.19.20","C.20.11","C.20.12","C.20.13","C.20.14","C.20.15","C.20.16","C.20.17","C.20.20","C.20.30","C.20.41","C.20.42","C.20.51","C.20.59","C.20.60","C.21.10","C.21.20","C.22.11","C.22.12","C.22.21","C.22.22","C.22.23","C.22.24","C.22.25","C.22.26","C.23.11","C.23.12","C.23.13","C.23.14","C.23.15","C.23.20","C.23.31","C.23.32","C.23.41","C.23.42","C.23.43","C.23.44","C.23.45","C.23.51","C.23.52","C.23.61","C.23.62","C.23.63","C.23.64","C.23.65","C.23.66","C.23.70","C.23.91","C.23.99","C.24.10","C.24.20","C.24.31","C.24.32","C.24.33","C.24.34","C.24.41","C.24.42","C.24.43","C.24.44","C.24.45","C.24.46","C.24.51","C.24.52","C.24.53","C.24.54","C.25.11","C.25.12","C.25.21","C.25.22","C.25.30","C.25.40","C.25.51","C.25.52","C.25.53","C.25.61","C.25.62","C.25.63","C.25.91","C.25.92","C.25.93","C.25.94","C.25.99","C.26.11","C.26.12","C.26.20","C.26.30","C.26.40","C.26.51","C.26.52","C.26.60","C.26.70","C.27.11","C.27.12","C.27.20","C.27.31","C.27.32","C.27.33","C.27.40","C.27.51","C.27.52","C.27.90","C.28.11","C.28.12","C.28.13","C.28.14","C.28.15","C.28.21","C.28.22","C.28.23","C.28.24","C.28.25","C.28.29","C.28.30","C.28.41","C.28.42","C.28.91","C.28.92","C.28.93","C.28.94","C.28.95","C.28.96","C.28.97","C.28.99","C.29.10","C.29.20","C.29.31","C.29.32","C.30.11","C.30.12","C.30.13","C.30.20","C.30.31","C.30.32","C.30.40","C.30.91","C.30.92","C.30.99","C.31.00","C.32.11","C.32.12","C.32.13","C.32.20","C.32.30","C.32.40","C.32.50","C.32.91","C.32.99","C.33.11","C.33.12","C.33.13","C.33.14","C.33.15","C.33.16","C.33.17","C.33.18","C.33.19","C.33.20","D.35.11","D.35.12","D.35.13","D.35.14","D.35.15","D.35.16","D.35.21","D.35.22","D.35.23","D.35.24","D.35.30","D.35.40","E.36.00","E.37.00","E.38.11","E.38.12","E.38.21","E.38.22","E.38.23","E.38.31","E.38.32","E.38.33","E.39.00","F.41.00","F.42.11","F.42.12","F.42.13","F.42.21","F.42.22","F.42.91","F.42.99","F.43.11","F.43.12","F.43.13","F.43.21","F.43.22","F.43.23","F.43.24","F.43.31","F.43.32","F.43.33","F.43.34","F.43.35","F.43.41","F.43.42","F.43.50","F.43.60","F.43.91","F.43.99","G.46.11","G.46.12","G.46.13","G.46.14","G.46.15","G.46.16","G.46.17","G.46.18","G.46.19","G.46.21","G.46.22","G.46.23","G.46.24","G.46.31","G.46.32","G.46.33","G.46.34","G.46.35","G.46.36","G.46.37","G.46.38","G.46.39","G.46.41","G.46.42","G.46.43","G.46.44","G.46.45","G.46.46","G.46.47","G.46.48","G.46.49","G.46.50","G.46.61","G.46.62","G.46.63","G.46.64","G.46.71","G.46.72","G.46.73","G.46.81","G.46.82","G.46.83","G.46.84","G.46.85","G.46.86","G.46.87","G.46.89","G.46.90","G.47.11","G.47.12","G.47.21","G.47.22","G.47.23","G.47.24","G.47.25","G.47.26","G.47.27","G.47.30","G.47.40","G.47.51","G.47.52","G.47.53","G.47.54","G.47.55","G.47.61","G.47.62","G.47.63","G.47.64","G.47.69","G.47.71","G.47.72","G.47.73","G.47.74","G.47.75","G.47.76","G.47.77","G.47.78","G.47.79","G.47.81","G.47.82","G.47.83","G.47.91","G.47.92","H.49.11","H.49.12","H.49.20","H.49.31","H.49.32","H.49.33","H.49.34","H.49.39","H.49.41","H.49.42","H.49.50","H.50.10","H.50.20","H.50.30","H.50.40","H.51.10","H.51.21","H.51.22","H.52.10","H.52.21","H.52.22","H.52.23","H.52.24","H.52.25","H.52.26","H.52.31","H.52.32","H.53.10","H.53.20","H.53.30","I.55.10","I.55.20","I.55.30","I.55.40","I.55.90","I.56.11","I.56.12","I.56.21","I.56.22","I.56.30","I.56.40","J.58.11","J.58.12","J.58.13","J.58.19","J.58.21","J.58.29","J.59.11","J.59.12","J.59.13","J.59.14","J.59.20","J.60.10","J.60.20","J.60.31","J.60.39","K.61.10","K.61.20","K.61.90","K.62.10","K.62.20","K.62.90","K.63.10","K.63.91","K.63.92","L.64.11","L.64.19","L.64.21","L.64.22","L.64.31","L.64.32","L.64.91","L.64.92","L.64.99","L.65.11","L.65.12","L.65.20","L.65.30","L.66.11","L.66.12","L.66.19","L.66.21","L.66.22","L.66.29","L.66.30","M.68.11","M.68.12","M.68.20","M.68.31","M.68.32","N.69.10","N.69.20","N.70.10","N.70.20","N.71.11","N.71.12","N.71.20","N.72.10","N.72.20","N.73.11","N.73.12","N.73.20","N.73.30","N.74.11","N.74.12","N.74.13","N.74.14","N.74.20","N.74.30","N.74.91","N.74.99","N.75.00","O.77.11","O.77.12","O.77.21","O.77.22","O.77.31","O.77.32","O.77.33","O.77.34","O.77.35","O.77.39","O.77.40","O.77.51","O.77.52","O.78.10","O.78.20","O.79.11","O.79.12","O.79.90","O.80.01","O.80.09","O.81.10","O.81.21","O.81.22","O.81.23","O.81.30","O.82.10","O.82.20","O.82.30","O.82.40","O.82.91","O.82.92","O.82.99","P.84.11","P.84.12","P.84.13","P.84.21","P.84.22","P.84.23","P.84.24","P.84.25","P.84.30","Q.85.10","Q.85.20","Q.85.31","Q.85.32","Q.85.33","Q.85.40","Q.85.51","Q.85.52","Q.85.53","Q.85.59","Q.85.61","Q.85.69","R.86.10","R.86.21","R.86.22","R.86.23","R.86.91","R.86.92","R.86.93","R.86.94","R.86.95","R.86.96","R.86.97","R.86.99","R.87.10","R.87.20","R.87.30","R.87.91","R.87.99","R.88.10","R.88.91","R.88.99","S.90.11","S.90.12","S.90.13","S.90.20","S.90.31","S.90.39","S.91.11","S.91.12","S.91.21","S.91.22","S.91.30","S.91.41","S.91.42","S.92.00","S.93.11","S.93.12","S.93.13","S.93.19","S.93.21","S.93.29","T.94.11","T.94.12","T.94.20","T.94.91","T.94.92","T.94.99","T.95.10","T.95.21","T.95.22","T.95.23","T.95.24","T.95.25","T.95.29","T.95.31","T.95.32","T.95.40","T.96.10","T.96.21","T.96.22","T.96.23","T.96.30","T.96.40","T.96.91","T.96.99","U.97.00","U.98.10","U.98.20"],"title":"BusinessIndustryCodeEnumTwoOne","description":"An industry sector identifier, according to NACE rev 2.1 (2025).\n"},"BusinessIndustryNaceRev":{"type":"string","enum":["2","2.1"],"title":"BusinessIndustryNaceRev","description":"A category representing a revision of the NACE classification codes:\n<ul> <li><code>\"2\"</code>:  NACE Rev. 2 (2008) <li><code>\"2.1\"</code>:  NACE Rev. 2.1 (2025) </ul>\n"},"BusinessNFETypeEnum":{"type":"string","enum":["active","passive"],"title":"BusinessNFETypeEnum","description":"A category describing the business model of Non-Financial Entities (NFE):\n<ul> <li><code>active</code> <li><code>passive</code> </ul>\n"},"BusinessPersonPlaceOfBirthRequest":{"title":"PlaceOfBirthRequest","description":"An object representing a place of birth.\n\nThis field is required when creating individual account.\n","type":"object","properties":{"city":{"title":"City","maxLength":255,"type":"string","description":"The city/municipality of the place of birth.\n","example":"Berlin"},"country":{"title":"Country","maxLength":2,"minLength":2,"type":"string","example":"DE","description":"An ISO 3166-1 alpha-2 code, representing the country related to the place of birth. Optional when the person's roles include <code>subsidy_application.spouse</code>. Required for other persons when <code>place_of_birth</code> is provided.\n"}}},"BusinessRegistrationRequest":{"type":"object","title":"BusinessRegistrationRequest","description":"Base class for business registration requests, adapting constraints and fields based on the `incorporation_country`. For example, German businesses are validated using the `GermanBusinessRegistration` schema with additional required fields.\n","discriminator":{"propertyName":"incorporation_country","mapping":{"DE":"#/components/schemas/GermanBusinessRegistration","*":"#/components/schemas/GenericBusinessRegistrationRequest"}},"anyOf":[{"$ref":"#/components/schemas/GermanBusinessRegistration"},{"$ref":"#/components/schemas/GenericBusinessRegistrationRequest"}]},"GenericBusinessRegistrationRequest":{"title":"GenericBusinessRegistrationRequest","properties":{"id":{"type":"string","maxLength":255,"minLength":1,"title":"Registration Identifier","description":"The unique identifier of the business's registration in the commercial register, e.g., `\"HRB 123456\"`.\n"},"incorporation_country":{"type":"string","maxLength":2,"minLength":2,"title":"Country of Incorporation","description":"An ISO 3166-1 alpha-2 code, representing the business's country of incorporation.\n","example":"DE"},"incorporation_date":{"type":"string","format":"date","title":"Date of Incorporation","description":"An ISO 8601 date string (only using components for year, month and day) specifying the business's date of incorporation.\n"}},"required":["id","incorporation_country","incorporation_date"]},"BusinessRegistrationResponse":{"type":"object","title":"BusinessRegistrationResponse","description":"Business registration information as returned in API responses.\n","discriminator":{"propertyName":"incorporation_country","mapping":{"DE":"#/components/schemas/GermanBusinessRegistration","*":"#/components/schemas/GenericBusinessRegistrationResponse"}},"anyOf":[{"$ref":"#/components/schemas/GermanBusinessRegistration"},{"$ref":"#/components/schemas/GenericBusinessRegistrationResponse"}]},"GenericBusinessRegistrationResponse":{"title":"GenericBusinessRegistrationResponse","properties":{"id":{"type":"string","maxLength":255,"minLength":1,"title":"Registration Identifier","description":"The unique identifier for the business registration."},"incorporation_country":{"type":"string","maxLength":2,"minLength":2,"title":"Country of Incorporation","description":"An ISO 3166-1 alpha-2 code representing the business's country of incorporation.\n","example":"DE"},"incorporation_date":{"type":"string","format":"date","title":"Incorporation Date","description":"An ISO 8601 date string (only using components for year, month and day) specifying the business's date of incorporation.\n"}},"required":["id","incorporation_country","incorporation_date"]},"BusinessRequest":{"type":"object","title":"BusinessRequest","description":"Request object for creating a business record in the system.","properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"The legal name of the business as formally registered.","example":"Wayne Enterprises, Inc."},"registration":{"$ref":"#/components/schemas/BusinessRegistrationRequest"},"industry":{"$ref":"#/components/schemas/IndustryRequest"},"registered_address":{"$ref":"#/components/schemas/AddressRequest"},"taxation_countries":{"type":"array","items":{"$ref":"#/components/schemas/BusinessTaxResidencyRequest"},"minItems":1,"title":"Taxation Countries","description":"A **complete** list of all tax residencies. It is critical that this list is exhaustive.\n"},"fatca_relevant":{"type":"boolean","title":"Fatca Relevant","description":"A boolean value indicating if the legal entity is subject to FATCA (Foreign Account Tax Compliance Act). Provide `true` if either: (1) the legal entity is a US Person according to IRS definition, or (2) any shareholder who is a US Person holds >10% of the legal entity. Otherwise, provide `false`.\n"},"expected_annual_revenue":{"exclusiveMinimum":0,"type":"string","format":"number","title":"Expected Annual Revenue","description":"An estimate of the annual revenue of the business.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"example":"EUR","title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for `expected_annual_revenue`. The only currently available currency is `\"EUR\"`.\n"},"legal_entity_identifier":{"type":"string","maxLength":20,"minLength":20,"title":"Legal Entity Identifier","description":"An ISO 17442 Legal Entity Identifier (LEI) assigned to the legal entity.\n"},"single_tier_ownership":{"type":"boolean","title":"Single Tier Ownership","description":"A boolean value indicating single tier ownership, i.e. `true` whether the business is directly owned by individuals only (`true`), or if there are companies in the ownership structure (`false`). Required only for KYC reliance partners.\n"},"nfe_type":{"$ref":"#/components/schemas/BusinessNFETypeEnum"}},"required":["name","registration","industry","registered_address","taxation_countries","fatca_relevant","expected_annual_revenue","currency","nfe_type"]},"BusinessResponse":{"type":"object","title":"BusinessResponse","description":"Response object representing a business record returned from the API.\n","properties":{"id":{"type":"string","title":"Business Identifier","description":"The unique identifier for this business."},"name":{"type":"string","title":"Name","description":"The legal name of the business as formally registered.","example":"Wayne Enterprises, Inc."},"registration":{"$ref":"#/components/schemas/BusinessRegistrationResponse"},"industry":{"$ref":"#/components/schemas/BusinessIndustry"},"registered_address":{"$ref":"#/components/schemas/Address"},"taxation_countries":{"type":"array","items":{"$ref":"#/components/schemas/BusinessTaxResidencyResponse"},"title":"Taxation Countries","description":"A **complete** list of all tax residencies.  It is important for this list to be exhaustive.\n"},"fatca_relevant":{"type":"boolean","title":"Fatca Relevant","description":"A boolean value indicating if the legal entity is subject to FATCA (Foreign Account Tax Compliance Act). Provide `true` if either: (1) the legal entity is a US Person according to IRS definition, or (2) any shareholder who is a US Person holds >10% of the legal entity. Otherwise, provide `false`.\n"},"expected_annual_revenue":{"type":"string","format":"number","title":"Expected Annual Revenue","description":"An estimate of the annual revenue.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"example":"EUR","title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for `expected_annual_revenue`. The only currently available currency is `\"EUR\"`.\n"},"legal_entity_identifier":{"type":"string","title":"Legal Entity Identifier","description":"An ISO 17442 Legal Entity Identifier (LEI) assigned to the legal entity.\n"},"single_tier_ownership":{"type":"boolean","nullable":true,"title":"Single Tier Ownership","description":"A boolean value indicating single tier ownership, i.e. `true` whether the business is directly owned by individuals only (`true`), or if there are companies in the ownership structure (`false`). Required only for KYC reliance partners.\n"},"nfe_type":{"$ref":"#/components/schemas/BusinessNFETypeEnum","type":"object","description":"Nature of financial engagement (NFE) type associated with this business.\n"}},"required":["id","name","registration","registered_address","taxation_countries"]},"BusinessTaxResidencyRequest":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","description":"An ISO 3166-1 alpha-2 code, representing a business's tax residency.\n"},"tax_number":{"type":"string","maxLength":255,"minLength":1,"title":"Tax Number","description":"The business's tax number, eg. `123/456/78901`.\n"},"vat_id":{"type":"string","pattern":"^[A-Za-z]{2}\\d{2,13}$","title":"Value Added Tax Identifier (VAT ID)","description":"The company's identifier for VAT (value added tax).\n"},"business_identification_number":{"type":"string","maxLength":255,"minLength":1,"title":"Business Identification Number","description":"Reserved for future use, pass `null` for now.\n"}},"type":"object","required":["country","tax_number"],"title":"BusinessTaxResidencyRequest"},"BusinessTaxResidencyResponse":{"properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","description":"An ISO 3166-1 alpha-2 code, representing a business's tax residency.\n"},"tax_number":{"type":"string","title":"Tax Number","description":"The business's tax number, eg. `123/456/78901`.\n"},"vat_id":{"type":"string","pattern":"^[A-Za-z]{2}\\d{2,13}$","title":"Value Added Tax Identifier (VAT ID)","description":"The company's identifier for VAT (value added tax).\n"},"business_identification_number":{"type":"string","maxLength":255,"minLength":1,"title":"Business Identification Number","description":"Reserved for future use, pass `null` for now.\n"}},"type":"object","required":["country","tax_number"],"title":"BusinessTaxResidencyResponse"},"CancelOrderRequest":{"properties":{"actor":{"$ref":"#/components/schemas/ActorRequest"}},"type":"object","title":"CancelOrderRequest","description":"An object providing information about the cancellation of an order.\n"},"CashAccountEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"cash_account":{"type":"string","title":"Cash Account","description":"A cash account identifier. This field represents the cash account associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","cash_account"],"title":"CashAccountEventContext"},"CashAccountResponse":{"title":"CashAccountResponse","description":"An object representing a cash account.\n","required":["account_number","iban","bic","name"],"type":"object","properties":{"account_number":{"type":"string","title":"Account Number","example":"0000000006","description":"A string representing the account number for the cash account.  Use this as a user-visible identifier for the cash account, e.g. in cash statement names.  It equals the last 10 digits of `iban`.\n"},"iban":{"title":"IBAN","type":"string","description":"An IBAN (International Bank Account Number) according to ISO 13616-1:2020.\n"},"bic":{"title":"BIC","type":"string","description":"A BIC (Business Identifier Code) according to ISO 9362.\n"},"name":{"type":"string","title":"Name","description":"The name of the bank managing the bank account.\n"}}},"CashComponent":{"title":"Cash Component","description":"An object representing the cash component of a transaction.\n","properties":{"type":{"$ref":"#/components/schemas/TransactionComponentType"},"direction":{"$ref":"#/components/schemas/TransactionComponentDirection"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount listed. The only currently available currency is `\"EUR\"`.\n"},"amount":{"type":"number","title":"Amount","description":"The amount of cash being moved in this transaction component.\n"}},"type":"object","required":["type","direction","currency","amount"]},"CashSettlementTransactionDataResponse":{"properties":{"type":{"type":"string","enum":["cash_settlement"],"const":"cash_settlement","title":"Type","default":"cash_settlement"},"cash_settlement":{"type":"string","title":"Settlement"}},"type":"object","required":["cash_settlement"],"title":"CashSettlementTransactionDataResponse"},"CompleteIdentificationAction":{"title":"CompleteIdentificationAction","description":"An action to indicate that identification information needs to be uploaded.\n","properties":{"type":{"const":"complete_identification","title":"Action Type","description":"The string `\"complete_identification\"`, identifiying this type of action.\n"},"identification":{"type":"string","title":"Identification","description":"The identifier for the identification process to be completed.\n"},"person":{"type":"string","title":"Person","description":"The identifier for the person that needs to complete the identification process.\n"}},"type":"object","required":["type","identification","person"]},"CorporateActionType":{"type":"string","enum":["cash_dividend","income_distribution","instrument_name_change"],"title":"CorporateActionType","description":"A category representing the type of corporate action:\n<ul> <li><code>cash_dividend</code>: A cash dividend paid out to shareholders. <li><code>income_distribution</code>: An income or capital distribution from a fund or ETF. <li><code>instrument_name_change</code>: A change to the instrument's official title. </ul>\n<strong>NOTE:</strong> This list can be extended in the future. Prepare your code to accept other values, too.\n"},"CorporateActionResponseUnion":{"title":"Corporate Action","description":"An object representing a corporate action that affected a customer account. The response is polymorphic, discriminated by the `type` property.\n","oneOf":[{"$ref":"#/components/schemas/CorporateActionCashDividendResponse"},{"$ref":"#/components/schemas/CorporateActionIncomeDistributionResponse"}],"discriminator":{"propertyName":"type","mapping":{"cash_dividend":"#/components/schemas/CorporateActionCashDividendResponse","income_distribution":"#/components/schemas/CorporateActionIncomeDistributionResponse"}}},"CorporateActionCashDividendResponse":{"title":"CorporateActionCashDividendResponse","description":"A cash dividend corporate action. Represents a dividend payment to a customer account for shares held at the ex-date.\n","properties":{"id":{"type":"string","title":"Identifier","description":"The identifier referring to this corporate action for the customer account.\n"},"securities_account":{"type":"string","title":"Securities Account Identifier","description":"The securities account identifier associated with this corporate action.\n"},"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value identifies the instrument that paid the dividend.\n"},"type":{"const":"cash_dividend","title":"Type","description":"The string `\"cash_dividend\"`, identifying this type of corporate action.\n"},"ex_date":{"type":"string","format":"date","title":"Ex-Date","description":"The first day the security trades without the dividend. Shares must be purchased before this date to be eligible for the dividend payment.\n"},"record_date":{"type":"string","format":"date","title":"Record Date","description":"The date lemon.markets checks who is on the shareholder register for dividend eligibility.\n"},"payable_date":{"type":"string","format":"date","title":"Payable Date","description":"The date the dividend is actually paid out. Due to the number of parties involved, it is common for payment to arrive a few business days after this date.\n"},"amount_per_share":{"type":"string","title":"Amount Per Share","description":"The gross dividend amount per share, represented as a decimal string.\n"},"amount_per_share_currency":{"type":"string","title":"Amount Per Share Currency","example":"EUR","description":"An ISO 4217 three-letter currency code representing the currency of the `amount_per_share` value.\n"},"amount":{"type":"string","title":"Amount","description":"The total gross dividend amount (before taxes), represented as a decimal string.\n"},"currency":{"type":"string","title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Represents the currency for `amount` and `taxes`. The only currently available currency is `\"EUR\"`.\n"},"shares_on_ex_date":{"type":"string","title":"Shares on Ex-Date","description":"The number of shares held at the ex-date cutoff, represented as a decimal string with up to 5 decimal places. This is the quantity used to calculate the total dividend amount.\n"},"taxes":{"items":{"$ref":"#/components/schemas/TaxResponseField"},"type":"array","title":"Taxes","description":"A list of taxes withheld from this dividend payment.\n"}},"type":"object","required":["id","securities_account","instrument","type","ex_date","record_date","payable_date","amount_per_share","amount_per_share_currency","amount","currency","shares_on_ex_date","taxes"]},"CorporateActionIncomeDistributionResponse":{"title":"CorporateActionIncomeDistributionResponse","description":"An income distribution corporate action. Represents a distribution from a fund or ETF to a customer account.\n","properties":{"id":{"type":"string","title":"Identifier","description":"The identifier referring to this corporate action for the customer account.\n"},"securities_account":{"type":"string","title":"Securities Account Identifier","description":"The securities account identifier associated with this corporate action.\n"},"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value identifies the instrument that made the distribution.\n"},"type":{"const":"income_distribution","title":"Type","description":"The string `\"income_distribution\"`, identifying this type of corporate action.\n"},"direction":{"$ref":"#/components/schemas/Direction"},"payable_date":{"type":"string","format":"date","title":"Payable Date","description":"The date the distribution is actually paid out. Due to the number of parties involved, it is common for payment to arrive a few business days after this date.\n"},"amount":{"type":"string","title":"Amount","description":"The total gross distribution amount (before taxes), represented as a decimal string.\n"},"currency":{"type":"string","title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Represents the currency for `amount` and `taxes`. The only currently available currency is `\"EUR\"`.\n"},"taxes":{"items":{"$ref":"#/components/schemas/TaxResponseField"},"type":"array","title":"Taxes","description":"A list of taxes withheld from this distribution.\n"}},"type":"object","required":["id","securities_account","instrument","type","direction","payable_date","amount","currency","taxes"]},"CorporateActionStatus":{"type":"string","enum":["created","processed"],"title":"CorporateActionStatus","description":"The status of a corporate action:\n<ul> <li><code>created</code>: The corporate action has been created and is pending processing. <li><code>processed</code>: The corporate action has been fully processed. </ul>\n"},"StatusChange_CorporateActionStatus_":{"title":"StatusChange[CorporateActionStatus]","description":"An object representing a status change of a corporate action.\n","properties":{"status":{"$ref":"#/components/schemas/CorporateActionStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event. It represents the point in time at which the corporate action status was updated.\n","example":"2026-05-10T12:00:00.000000+00:00"}},"type":"object","required":["status","timestamp"]},"DailyFactorResponse":{"title":"DailyFactorResponse","description":"A daily factor entry for an income distribution corporate action, representing the factor applied on a given date.\n","properties":{"date":{"type":"string","format":"date","title":"Date","description":"The date for which this factor applies.\n"},"factor":{"type":"string","title":"Factor","description":"The factor value for this date, represented as a decimal string.\n"}},"type":"object","required":["date","factor"]},"InstrumentLevelCorporateActionResponseUnion":{"title":"Instrument-level Corporate Action","description":"An object representing a corporate action at the instrument level. Unlike the per-account corporate action, this response does not include customer-specific fields such as taxes or settlement amounts.\n","oneOf":[{"$ref":"#/components/schemas/InstrumentLevelCashDividendResponse"},{"$ref":"#/components/schemas/InstrumentLevelIncomeDistributionResponse"},{"$ref":"#/components/schemas/InstrumentLevelInstrumentNameChangeResponse"}],"discriminator":{"propertyName":"type","mapping":{"cash_dividend":"#/components/schemas/InstrumentLevelCashDividendResponse","income_distribution":"#/components/schemas/InstrumentLevelIncomeDistributionResponse","instrument_name_change":"#/components/schemas/InstrumentLevelInstrumentNameChangeResponse"}}},"InstrumentLevelCashDividendResponse":{"title":"InstrumentLevelCashDividendResponse","description":"A cash dividend corporate action at the instrument level. Represents a dividend announcement for a given instrument, including key dates and the declared amount per share.\n","properties":{"id":{"type":"string","title":"Identifier","description":"The identifier referring to this corporate action.\n"},"type":{"const":"cash_dividend","title":"Type","description":"The string `\"cash_dividend\"`, identifying this type of corporate action.\n"},"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value identifies the instrument that declared the dividend.\n"},"announcement_date":{"type":"string","format":"date","title":"Announcement Date","nullable":true,"description":"The date the dividend was officially announced by the issuer.\n"},"ex_date":{"type":"string","format":"date","title":"Ex-Date","nullable":true,"description":"The first day the security trades without the dividend. Shares must be purchased before this date to be eligible for the dividend payment.\n"},"record_date":{"type":"string","format":"date","title":"Record Date","nullable":true,"description":"The date lemon.markets checks who is on the shareholder register for dividend eligibility.\n"},"payable_date":{"type":"string","format":"date","title":"Payable Date","description":"The date the dividend is actually paid out. Due to the number of parties involved, it is common for payment to arrive a few business days after this date.\n"},"amount_per_share":{"type":"string","title":"Amount Per Share","description":"The gross dividend amount per share, represented as a decimal string.\n"},"currency":{"type":"string","title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code representing the currency of the `amount_per_share` value.\n"},"history":{"type":"array","items":{"$ref":"#/components/schemas/StatusChange_CorporateActionStatus_"},"title":"History","description":"A chronological list of status changes for this corporate action.\n"}},"type":"object","required":["id","type","instrument","payable_date","amount_per_share","currency"]},"InstrumentLevelIncomeDistributionResponse":{"title":"InstrumentLevelIncomeDistributionResponse","description":"An income distribution corporate action at the instrument level. Represents a distribution from a fund or ETF, including daily factors used for calculation.\n","properties":{"id":{"type":"string","title":"Identifier","description":"The identifier referring to this corporate action.\n"},"type":{"const":"income_distribution","title":"Type","description":"The string `\"income_distribution\"`, identifying this type of corporate action.\n"},"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value identifies the instrument that made the distribution.\n"},"payable_date":{"type":"string","format":"date","title":"Payable Date","nullable":true,"description":"The date the distribution is actually paid out. Due to the number of parties involved, it is common for payment to arrive a few business days after this date.\n"},"daily_factors":{"type":"array","items":{"$ref":"#/components/schemas/DailyFactorResponse"},"title":"Daily Factors","description":"A list of daily factor entries used for calculating the income distribution amount per customer.\n"},"currency":{"type":"string","title":"Currency","example":"EUR","nullable":true,"description":"An ISO 4217 three-letter currency code. Represents the currency for the distribution. The only currently available currency is `\"EUR\"`.\n"},"history":{"type":"array","items":{"$ref":"#/components/schemas/StatusChange_CorporateActionStatus_"},"title":"History","description":"A chronological list of status changes for this corporate action.\n"}},"type":"object","required":["id","type","instrument"]},"InstrumentLevelInstrumentNameChangeResponse":{"title":"InstrumentLevelInstrumentNameChangeResponse","description":"An instrument name change corporate action at the instrument level. Represents a change to an instrument's official title.\n","properties":{"id":{"type":"string","title":"Identifier","description":"The identifier referring to this corporate action.\n"},"type":{"const":"instrument_name_change","title":"Type","description":"The string `\"instrument_name_change\"`, identifying this type of corporate action.\n"},"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value identifies the instrument whose name changed.\n"},"effective_date":{"type":"string","format":"date","title":"Effective Date","description":"The date the name change becomes effective. Date in ISO 8601 format (YYYY-MM-DD).\n","example":"2026-07-01"},"new_title":{"type":"string","nullable":true,"title":"New Title","description":"The new short title of the instrument after the change.\n"},"new_title_extended":{"type":"string","nullable":true,"title":"New Title (Extended)","description":"The new extended (full) title of the instrument after the change.\n"},"old_title":{"type":"string","title":"Old Title","description":"The previous short title of the instrument before the change.\n"},"old_title_extended":{"type":"string","title":"Old Title (Extended)","description":"The previous extended (full) title of the instrument before the change.\n"},"history":{"type":"array","items":{"$ref":"#/components/schemas/StatusChange_CorporateActionStatus_"},"title":"History","description":"A chronological list of status changes for this corporate action.\n"}},"type":"object","required":["id","type","instrument","effective_date","old_title","old_title_extended"]},"EncodedPaginatedCollectionResponse_InstrumentLevelCorporateActionResponseUnion_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/InstrumentLevelCorporateActionResponseUnion"},"type":"array","title":"Data","description":"The elements of the response. Each element is a corporate action, discriminated by the `type` property.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[InstrumentLevelCorporateActionResponseUnion]"},"ConfirmBatchOrderRequest":{"properties":{"appropriateness_consent":{"type":"boolean","title":"Appropriateness Consent","description":"A value indicating if a user has explicitly agreed to place the order after reading the appropriateness warning.\n**NOTE:** If the batch order object indicated no need to provide the appropriateness consent, you can send `null` or omit the value.\n"},"sca":{"$ref":"#/components/schemas/SCAConfirmation"}},"type":"object","title":"ConfirmBatchOrderRequest"},"ConfirmCustomerWorkflowRequest":{"properties":{"appropriateness_consent":{"type":"boolean","title":"Appropriateness Consent"},"sca":{"$ref":"#/components/schemas/SCAConfirmation"}},"type":"object","title":"ConfirmCustomerWorkflowRequest"},"ConfirmOrderRequest":{"properties":{"actor":{"$ref":"#/components/schemas/ActorRequest"},"appropriateness_consent":{"type":"boolean","title":"Appropriateness Consent"},"sca":{"$ref":"#/components/schemas/SCAConfirmation"}},"type":"object","title":"ConfirmOrderRequest"},"ConfirmWithdrawalRequest":{"properties":{"sca":{"$ref":"#/components/schemas/SCAConfirmation"}},"type":"object","title":"ConfirmWithdrawalRequest"},"CreateAccountRequest":{"title":"CreateAccountRequest","required":["customer","accepted_agreements","declaration_of_acting_on_own_account"],"type":"object","properties":{"customer":{"oneOf":[{"$ref":"#/components/schemas/CustomerRequest"},{"$ref":"#/components/schemas/BusinessCustomerRequest"},{"$ref":"#/components/schemas/PersonCustomerRequest"}],"title":"Customer"},"accepted_agreements":{"title":"Accepted Agreements","description":"A list of legal agreements that have been accepted by the user.\n","minItems":1,"type":"array","items":{"$ref":"#/components/schemas/broker__apps__api__endpoints__accounts__AgreementAcceptanceRequest"}},"declaration_of_acting_on_own_account":{"title":"Declaration of Acting on Own Account","type":"boolean","description":"An boolean value indicating whether the user has explicitly stated that they are acting on their own account and not in someone else's name.\n","default":false},"metadata":{"title":"Metadata","type":"object","description":"Optional metadata for the account as key-value pairs.\n","additionalProperties":{"type":"string"}}}},"CreateAuthenticatorRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","description":"Name for the authenticator being registered.  When binding to a specific device, it may be a good idea to use the device's model name, like `iPhone14,1`.  This will help when the user has more than one authenticator registered for an account.\n**NOTE:** At the moment, there is no way to register a second authenticator, but this feature will be added in the future.\n"},"public_key":{"type":"string","title":"Public Key","description":"Base64-url encoded form of the public key.  See our guide on strong customer authentication for more details on the formats supported.\n"},"client_credential_id":{"type":"string","maxLength":255,"minLength":1,"title":"Client Credential Identifier","description":"Client side credential identifier of when the key pair was generated.  This identifier will be used to indicate the authenticator that created a signature.\n"},"recovery_code":{"type":"string","minLength":1,"pattern":"^\\d{6}$","title":"Authenticator Recovery Code","description":"When resetting the authenticator, use this property to provide the recovery code from lemon.markets. The format is a six-digit string like `\"123456\"`.\n"},"verification":{"$ref":"#/components/schemas/VerificationRequest"}},"type":"object","required":["name","public_key","client_credential_id"],"title":"CreateAuthenticatorRequest","example":{"client_credential_id":"adfd5154-c39c-41c5-a88d-f3e6a2aded9e","name":"Happy 🍋","public_key":"pSJYIO1qxZIy0bSkO0djjJtdFFVU5K0v1l76XJQba8DNw3xXAQIgAQMmIVggh3uzl_vqfplJX8P3T-rdhEbkO_XX5dDkuGjFO0kRr5w=","verification":{"nonce":"<base64-url encoded random data>","signature":"<base64-url encoded signature for `nonce` using `public_key`>"}}},"CreateBatchOrderRequest":{"oneOf":[{"$ref":"#/components/schemas/CreateBatchOrderRequestBuy"},{"$ref":"#/components/schemas/CreateBatchOrderRequestSell"}],"discriminator":{"propertyName":"side","mapping":{"buy":"#/components/schemas/CreateBatchOrderRequestBuy","sell":"#/components/schemas/CreateBatchOrderRequestSell"}}},"CreateBatchOrderRequestBuy":{"properties":{"side":{"$ref":"#/components/schemas/Side"},"instrument":{"type":"string","maxLength":255,"title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument to be bought/sold.\n"},"amount":{"type":"string","format":"number","exclusiveMinimum":0,"title":"Amount","description":"The amount of cash to invest with this batch order.\n"},"fee":{"type":"string","format":"number","minimum":0,"title":"Fee","description":"The fee that will be charged by lemon.markets on your behalf.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount and fee listed here. The only currently available currency is `\"EUR\"`.\n"}},"example":{"side":"buy","instrument":"IE00B441G979","amount":"50.00","currency":"EUR","fee":"0.50"},"type":"object","required":["side","instrument","amount","fee","currency"],"title":"CreateBatchOrderRequest"},"CreateBatchOrderRequestSell":{"properties":{"side":{"$ref":"#/components/schemas/Side"},"instrument":{"type":"string","maxLength":255,"title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument to be bought/sold.\n"},"quantity":{"type":"string","format":"number","exclusiveMinimum":0,"title":"Quantity","description":"Specify the quantity of shares for the instrument to be sold.\n"},"fee":{"type":"string","format":"number","minimum":0,"title":"Fee","description":"The fee that will be charged by lemon.markets on your behalf.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the fee listed here. The only currently available currency is `\"EUR\"`.\n"}},"example":{"side":"sell","instrument":"IE00B441G979","quantity":"1.23456","currency":"EUR","fee":"0.50"},"type":"object","required":["side","instrument","quantity","fee","currency"],"title":"CreateBatchOrderRequest"},"CreateProductRequest":{"title":"CreateProductRequest","description":"A type-discriminated request to create a new product for a customer account. The `type` field determines which product schema is used.\n","oneOf":[{"$ref":"#/components/schemas/CreateRetirementProductRequest"},{"$ref":"#/components/schemas/CreateBrokerageProductRequest"}],"discriminator":{"propertyName":"type","mapping":{"retirement":"#/components/schemas/CreateRetirementProductRequest","brokerage":"#/components/schemas/CreateBrokerageProductRequest"}}},"CreateRetirementProductRequest":{"title":"CreateRetirementProductRequest","required":["type","product_contract","payout_age","accepted_agreements"],"type":"object","properties":{"type":{"type":"string","enum":["retirement"],"title":"Product Type","description":"The type of product to create.\n","example":"retirement"},"product_contract":{"type":"string","title":"Product Contract Identifier","description":"The identifier of the certified product contract that the retirement product is based on. A product contract is a certified contract template, and many retirement products can use the same product contract. Use <code>GET /product_contracts</code> to find the product contracts available to you.\n","example":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57"},"contract":{"type":"string","title":"Contract Identifier","deprecated":true,"description":"The identifier of the certified product contract.\n**Deprecated:** Use the `product_contract` field instead. If both fields are sent, `product_contract` is used. This field will be removed in a future version.\n","example":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57"},"payout_age":{"type":"integer","title":"Payout Age","description":"The age at which payouts from the retirement account will begin.\n","example":25},"accepted_agreements":{"title":"Accepted Agreements","description":"A list of retirement-related legal agreements that have been accepted.\n","minItems":1,"type":"array","items":{"$ref":"#/components/schemas/broker__apps__api__endpoints__accounts__AgreementAcceptanceRequest"}},"contract_number":{"type":"string","minLength":1,"maxLength":20,"pattern":"^[A-Za-z0-9_-]+$","title":"Contract Number","description":"The contract number of the retirement product. It is used in all communication with the ZfA. It is not the `certification_number` of the `product_contract`. Only ASCII letters, digits, dashes (`-`) and underscores (`_`) are allowed. If the field is omitted, a contract number is generated. The value must be unique across all retirement products. Upper and lower case are not distinguished, so `ABC1` and `abc1` are treated as the same number. A request with a contract number that is already used is rejected with a `400` error. The contract number cannot be changed after the retirement product is created.\n","example":"TMR786448152866"}},"description":"Request to create a retirement account product for a customer account.\n"},"CreateBrokerageProductRequest":{"title":"CreateBrokerageProductRequest","required":["type","accepted_agreements"],"type":"object","properties":{"type":{"type":"string","enum":["brokerage"],"title":"Product Type","description":"The type of product to create.\n","example":"brokerage"},"accepted_agreements":{"title":"Accepted Agreements","description":"A list of brokerage-related legal agreements that have been accepted.\n","minItems":0,"type":"array","items":{"$ref":"#/components/schemas/broker__apps__api__endpoints__accounts__AgreementAcceptanceRequest"}}},"description":"Request to create a brokerage account product for a customer account.\n"},"ContributionCapResponse":{"properties":{"year":{"type":"string","title":"Year","description":"The year for the contribution cap.\n","example":"2027"},"product":{"type":"string","maxLength":255,"title":"Product","description":"The identifier of the retirement product the contribution cap belongs to, used to retrieve its details via `GET /accounts/{account_id}/products/{id}`.\n","example":"ret_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57"},"amount_total":{"type":"string","title":"Amount Total","description":"The total contribution cap amount for the year and product.\n","example":"6840.00"},"amount_used":{"type":"string","title":"Amount Used","description":"The amount of the contribution cap that has been used. Use the difference between `amount_total - amount_used` to determine the amount still available.\n","example":"0.00"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the `amount_total` and `amount_used` listed here. The only currently available currency is `\"EUR\"`.\n","example":"EUR"}},"type":"object","required":["year","product","amount_total","amount_used","currency"],"title":"ContributionCapResponse"},"CreateProductResponse":{"title":"CreateProductResponse","description":"A type-discriminated response after creating a product. The `type` field determines which product schema is returned.\n","oneOf":[{"$ref":"#/components/schemas/RetirementProductResponse"},{"$ref":"#/components/schemas/BrokerageProductResponse"}],"discriminator":{"propertyName":"type","mapping":{"retirement":"#/components/schemas/RetirementProductResponse","brokerage":"#/components/schemas/BrokerageProductResponse"}}},"RetirementProductResponse":{"title":"RetirementProductResponse","required":["id","type","status","payout_age","product_contract","contract","contract_number","accepted_agreements"],"type":"object","properties":{"id":{"type":"string","title":"Product Identifier","description":"A unique identifier for the retirement account.\n","example":"ret_ac_123"},"type":{"type":"string","enum":["retirement"],"title":"Product Type","description":"The type of the product.\n","example":"retirement"},"status":{"type":"string","title":"Status","description":"The current status of the retirement account.\n","example":"created"},"payout_age":{"type":"integer","title":"Payout Age","description":"The age at which payouts from the retirement account will begin.\n","example":25},"product_contract":{"type":"string","title":"Product Contract Identifier","description":"The identifier of the certified product contract that the retirement product is based on. A product contract is a certified contract template, and many retirement products can use the same product contract. Use <code>GET /product_contracts</code> to find the product contracts available to you.\n","example":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57"},"contract":{"type":"string","title":"Contract Identifier","deprecated":true,"description":"The identifier of the certified product contract. It has the same value as `product_contract`.\n**Deprecated:** Use the `product_contract` field instead. This field will be removed in a future version.\n","example":"pcon_7d1a8c0e5b8f4f3a9c2e6b1d4f0a9e57"},"contract_number":{"type":"string","minLength":1,"maxLength":20,"title":"Contract Number","description":"The contract number of the retirement product. It is used in all communication with the ZfA. It is not the `certification_number` of the `product_contract`. It is the `contract_number` that was sent when the retirement product was created, or a generated number if none was sent. The contract number does not change.\n","example":"GI654436598122"},"accepted_agreements":{"title":"Accepted Agreements","description":"A list of retirement-related legal agreements that have been accepted.\n","type":"array","items":{"$ref":"#/components/schemas/AcceptedAgreementResponse"}}},"description":"A retirement account product. This schema can be used for both creating and retrieving retirement accounts.\n"},"BrokerageProductResponse":{"title":"BrokerageProductResponse","required":["id","type","status","accepted_agreements"],"type":"object","properties":{"id":{"type":"string","title":"Product Identifier","description":"A unique identifier for the brokerage account.\n","example":"brok_123"},"type":{"type":"string","enum":["brokerage"],"title":"Product Type","description":"The type of the product.\n","example":"brokerage"},"status":{"type":"string","title":"Status","description":"The current status of the brokerage account.\n","example":"created"},"accepted_agreements":{"title":"Accepted Agreements","description":"A list of brokerage-related legal agreements that have been accepted.\n","type":"array","items":{"$ref":"#/components/schemas/AcceptedAgreementResponse"}}},"description":"A brokerage account product. This schema can be used for both creating and retrieving brokerage accounts.\n"},"GetProductResponse":{"title":"GetProductResponse","description":"A type-discriminated response when retrieving a single product. The `type` field determines which product schema is returned.\n","oneOf":[{"$ref":"#/components/schemas/RetirementProductResponse"},{"$ref":"#/components/schemas/BrokerageProductResponse"}],"discriminator":{"propertyName":"type","mapping":{"retirement":"#/components/schemas/RetirementProductResponse","brokerage":"#/components/schemas/BrokerageProductResponse"}}},"SubsidyEligibilityType":{"title":"SubsidyEligibilityType","enum":["statutory_pension","civil_servant","self_employed","professional_pension","cross_border","indirectly_eligible"],"type":"string","description":"Reason on why the customer can get the subsidy\n"},"SubsidyApplicationStatus":{"title":"SubsidyApplicationStatus","enum":["created","active","superseded","canceled","rejected"],"type":"string","description":"The status of a subsidy application version:\n<ul> <li><code>created</code>: the version was created, and the application is not accepted for the subsidy yet. <li><code>active</code>: the application was accepted for the subsidy.  Each product has at most one active version. <li><code>superseded</code>: a newer version replaced it.  This status is final. <li><code>canceled</code>: the customer revoked the authorization (Vollmacht) and the version was canceled.  This status is final. <li><code>rejected</code>: the subsidy application is rejected. This status is final. </ul>\n"},"SubsidyApplicationSpouse":{"title":"SubsidyApplicationSpouse","description":"The spouse or registered partner, as a reference to a person.\n","required":["person","type"],"type":"object","properties":{"person":{"title":"Person Identifier","type":"string","maxLength":255,"description":"The identifier of a person with the role <code>subsidy_application.spouse</code>.\n","example":"pers_5b1d7e3a9c2f4a6e8d0b1c3e5f7a9b2d"},"type":{"type":"string","enum":["person"],"const":"person","title":"Type","description":"The reference type.  For the time being, the only valid value is `\"person\"`.\n"}}},"SubsidyApplicationChild":{"title":"SubsidyApplicationChild","required":["person","type","child_benefit_number"],"type":"object","properties":{"person":{"title":"Person Identifier","type":"string","maxLength":255,"description":"The identifier of a person with the role <code>subsidy_application.child</code>.\n","example":"pers_8e2a4c6b1d3f4e5a9b7c0d2e4f6a8b1c"},"type":{"type":"string","enum":["person"],"const":"person","title":"Type","description":"The reference type.  For the time being, the only valid value is `\"person\"`.\n"},"child_benefit_number":{"title":"Child Benefit Number","type":"string","pattern":"^[0-9]{3}FK[0-9]{6}$","description":"The child benefit number (Kindergeldnummer): 3 digits, <code>FK</code>, 6 digits.\n","example":"123FK456789"}}},"CreateSubsidyApplicationRequest":{"title":"CreateSubsidyApplicationRequest","description":"The subsidy application for a retirement product.\n","required":["product","eligibility_type","other_provider_claim"],"type":"object","properties":{"product":{"title":"Product Identifier","type":"string","maxLength":255,"description":"The identifier of the retirement product that gets the subsidy.\n","example":"ret_123"},"eligibility_type":{"$ref":"#/components/schemas/SubsidyEligibilityType"},"other_provider_claim":{"title":"Other Provider Claim","type":"boolean","description":"<code>true</code> if the customer also claims a subsidy for a contract at a different provider.\n","example":false},"spouse":{"allOf":[{"$ref":"#/components/schemas/SubsidyApplicationSpouse"}],"description":"The spouse or registered partner. Required for <code>eligibility_type</code> = <code>indirectly_eligible</code>, and not allowed for the other types.\n"},"children":{"title":"Children","type":"array","default":[],"description":"One entry for each child. The child information is required to be attached to the subsidy application, only when customer gets the child benefit and the child subsidy.\n\nFor these other cases, the child information must not be attached to the subsidy application: <ul> <li>the customer gets the child benefit, and the child subsidy goes to someone other than the customer <li>the customer does not get the child benefit, and the child subsidy goes to someone other than the customer </ul>\n","items":{"$ref":"#/components/schemas/SubsidyApplicationChild"}}}},"SubsidyApplicationResponse":{"title":"SubsidyApplicationResponse","required":["id","product","eligibility_type","other_provider_claim","history"],"type":"object","properties":{"id":{"title":"Identifier","type":"string","description":"A unique identifier of this version of the subsidy application.\n","example":"sapp_7c1e9b2a4d6f4e0b8a3c5d7e9f1a2b3c"},"product":{"title":"Product Identifier","type":"string","description":"The identifier of the retirement product that gets the subsidy.\n","example":"ret_123"},"eligibility_type":{"$ref":"#/components/schemas/SubsidyEligibilityType"},"other_provider_claim":{"title":"Other Provider Claim","type":"boolean","description":"<code>true</code> if the customer also claims a subsidy for a contract at a different provider.\n","example":false},"spouse":{"allOf":[{"$ref":"#/components/schemas/SubsidyApplicationSpouse"}],"description":"The spouse or registered partner.  Only present when <code>eligibility_type</code> is <code>indirectly_eligible</code>.\n"},"children":{"title":"Children","type":"array","description":"One entry for each child.\n","items":{"$ref":"#/components/schemas/SubsidyApplicationChild"}},"history":{"title":"History","type":"array","description":"The status changes of this version, newest first.  The first entry is the current status.\n","items":{"$ref":"#/components/schemas/StatusChange_SubsidyApplicationStatus_"}}}},"StatusChange_SubsidyApplicationStatus_":{"properties":{"status":{"$ref":"#/components/schemas/SubsidyApplicationStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the subsidy application was updated / created.\n","example":"2026-11-02T10:15:03.481920+00:00"}},"type":"object","required":["status","timestamp"],"title":"StatusChange of SubsidyApplicationStatus"},"EncodedPaginatedCollectionResponse_SubsidyApplicationResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SubsidyApplicationResponse"},"type":"array","title":"Data","description":"The elements of the response.  Each element is one version of the subsidy application, from the oldest to the newest.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[SubsidyApplicationResponse]"},"AssetTransferDirection":{"title":"AssetTransferDirection","type":"string","enum":["inbound"],"description":"The direction of the asset transfer:\n<ul> <li><code>inbound</code>: the assets move from the previous provider to lemon.markets. </ul>\n"},"AssetTransferStatus":{"title":"AssetTransferStatus","type":"string","enum":["completed","confirmed","created","processing","rejected"],"description":"The status of the asset transfer:\n<ul> <li><code>completed</code>: the assets moved.  This status is final. <li><code>confirmed</code>: the customer confirmed the asset transfer.  We check the asset transfer in this status. <li><code>created</code>: the asset transfer has been created.  It waits for the customer's confirmation. <li><code>processing</code>: the checks are done.  The asset transfer is in progress. <li><code>rejected</code>: we cannot do the asset transfer.  This status is final. </ul>\n"},"CreateAssetTransferRequest":{"title":"CreateAssetTransferRequest","description":"A type-discriminated request to create an asset transfer.  The <code>type</code> field determines which schema is used:\n<ul> <li><code>retirement</code>: a provider switch (Anbieterwechsel) of a retirement contract into a retirement product. </ul>\n","oneOf":[{"$ref":"#/components/schemas/CreateRetirementAssetTransferRequest"}],"discriminator":{"propertyName":"type","mapping":{"retirement":"#/components/schemas/CreateRetirementAssetTransferRequest"}}},"CreateRetirementAssetTransferRequest":{"title":"CreateRetirementAssetTransferRequest","description":"A request to move the assets of the customer's Riester or Altersvorsorgedepot contract at a different provider into a retirement product at lemon.markets.\n","required":["type","direction","product","contract"],"additionalProperties":false,"type":"object","properties":{"type":{"title":"Type","type":"string","enum":["retirement"],"description":"The type of the asset transfer.\n","example":"retirement"},"direction":{"$ref":"#/components/schemas/AssetTransferDirection"},"product":{"title":"Product Identifier","type":"string","maxLength":255,"description":"The identifier of the retirement product of the account that the assets move into.\n","example":"ret_123"},"contract":{"$ref":"#/components/schemas/RetirementAssetTransferContractRequest"}}},"RetirementAssetTransferContractType":{"title":"RetirementAssetTransferContractType","type":"string","enum":["altersvorsorgedepot","riester"],"description":"The type of the retirement contract at the previous provider:\n<ul> <li><code>altersvorsorgedepot</code>: an Altersvorsorgedepot contract. <li><code>riester</code>: a Riester contract. </ul>\n"},"RetirementAssetTransferContractRequest":{"title":"RetirementAssetTransferContractRequest","description":"The customer's retirement contract at the previous provider.  For <code>direction</code> = <code>inbound</code>, the assets come from this contract.\n","required":["type","contract_number","provider_number","provider_name","certification_number"],"additionalProperties":false,"type":"object","properties":{"type":{"$ref":"#/components/schemas/RetirementAssetTransferContractType"},"contract_number":{"title":"Contract Number","type":"string","minLength":1,"maxLength":255,"description":"The customer's contract number at the previous provider (Vertragsnummer).\n","example":"T123456701"},"provider_number":{"title":"Provider Number","type":"string","minLength":1,"maxLength":255,"description":"The number of the previous provider (Anbieternummer).\n","example":"0202000022"},"provider_name":{"title":"Provider Name","type":"string","minLength":1,"maxLength":255,"description":"The name of the previous provider (Name der Gesellschaft).\n","example":"DWS Investment GmbH"},"certification_number":{"title":"Certification Number","type":"string","minLength":1,"maxLength":255,"description":"The certification number of the contract at the previous provider (Zertifizierungsnummer).\n","example":"012345"},"subsidy_eligible":{"title":"Subsidy Eligible","type":"boolean","description":"<code>true</code> if the customer is eligible for the subsidy (zulageberechtigt).\n","example":true}}},"RetirementAssetTransferContractResponse":{"title":"RetirementAssetTransferContractResponse","description":"The customer's retirement contract at the previous provider.  For <code>direction</code> = <code>inbound</code>, the assets come from this contract.\n","required":["type","contract_number","provider_number","provider_name","certification_number"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/RetirementAssetTransferContractType"},"contract_number":{"title":"Contract Number","type":"string","description":"The customer's contract number at the previous provider (Vertragsnummer).\n","example":"T123456701"},"provider_number":{"title":"Provider Number","type":"string","description":"The number of the previous provider (Anbieternummer).\n","example":"0202000022"},"provider_name":{"title":"Provider Name","type":"string","description":"The name of the previous provider (Name der Gesellschaft).\n","example":"DWS Investment GmbH"},"certification_number":{"title":"Certification Number","type":"string","description":"The certification number of the contract at the previous provider (Zertifizierungsnummer).\n","example":"012345"},"subsidy_eligible":{"title":"Subsidy Eligible","type":"boolean","description":"<code>true</code> if the customer is eligible for the subsidy (zulageberechtigt).  Only present when it was sent.\n","example":true}}},"ConfirmAssetTransferRequest":{"title":"ConfirmAssetTransferRequest","type":"object","properties":{"sca":{"$ref":"#/components/schemas/AssetTransferScaRequest"}}},"AssetTransferScaRequest":{"title":"AssetTransferScaRequest","description":"The proof of Strong Customer Authentication.  Required when the asset transfer was created with <code>sca.required</code> = <code>true</code>.\n","required":["client_credential_id","signature"],"type":"object","properties":{"client_credential_id":{"type":"string","minLength":1,"maxLength":255,"title":"Client Credential Identifier","description":"The credential of the customer's registered authenticator.\n","example":"cred_950eecf22d3b493b9fb47de80775ee16"},"signature":{"type":"string","maxLength":2048,"title":"Signature","description":"The customer's signature over <code>sca.challenge</code>, base64url encoded.  Capped at 2048 characters to accommodate an RSA-4096 signature.\n","example":"MEUCIQ..."}}},"AssetTransferScaResponse":{"title":"AssetTransferScaResponse","description":"The Strong Customer Authentication (SCA) configuration of the asset transfer.  Only present while the asset transfer has status <code>created</code>.\n","required":["required"],"type":"object","properties":{"required":{"type":"boolean","title":"Required","description":"Whether confirming the asset transfer requires a signed challenge.\n"},"challenge":{"type":"string","title":"Challenge","description":"The challenge the customer signs with a registered authenticator.  Only present when <code>required</code> is <code>true</code>.\n","example":"K7_yR-7ZpTqgeWQ4-bx7Kg=="}}},"AssetTransferResponse":{"title":"AssetTransferResponse","description":"A type-discriminated asset transfer.  The <code>type</code> field determines which schema is used:\n<ul> <li><code>retirement</code>: a provider switch (Anbieterwechsel) of a retirement contract into a retirement product. </ul>\n","oneOf":[{"$ref":"#/components/schemas/RetirementAssetTransferResponse"}],"discriminator":{"propertyName":"type","mapping":{"retirement":"#/components/schemas/RetirementAssetTransferResponse"}}},"RetirementAssetTransferResponse":{"title":"RetirementAssetTransferResponse","description":"A request to move the assets of the customer's Riester or Altersvorsorgedepot contract at a different provider into a retirement product at lemon.markets.\n","required":["id","type","direction","product","contract","history"],"type":"object","properties":{"id":{"title":"Identifier","type":"string","description":"A unique identifier of the asset transfer.\n","example":"atr_3f9c1a7e5b2d4c6e8a0b1d3f5e7a9c2b"},"type":{"title":"Type","type":"string","enum":["retirement"],"description":"The type of the asset transfer.\n","example":"retirement"},"direction":{"$ref":"#/components/schemas/AssetTransferDirection"},"product":{"title":"Product Identifier","type":"string","description":"The identifier of the retirement product of the account that the assets move into.\n","example":"ret_123"},"contract":{"$ref":"#/components/schemas/RetirementAssetTransferContractResponse"},"sca":{"$ref":"#/components/schemas/AssetTransferScaResponse"},"history":{"title":"History","type":"array","description":"The status changes of the asset transfer, newest first.  The first entry is the current status.\n","items":{"$ref":"#/components/schemas/StatusChange_AssetTransferStatus_"}}}},"StatusChange_AssetTransferStatus_":{"title":"StatusChange of AssetTransferStatus","required":["status","timestamp"],"type":"object","properties":{"status":{"$ref":"#/components/schemas/AssetTransferStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The point in time at which the asset transfer changed to this status.  The timestamp of the <code>confirmed</code> status is the date of the customer's confirmation.\n","example":"2026-11-18T10:00:00.481920+00:00"}}},"EncodedPaginatedCollectionResponse_AssetTransferResponse_":{"title":"EncodedPaginatedCollectionResponse[AssetTransferResponse]","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","type":"array","description":"The elements of the response.\n","items":{"$ref":"#/components/schemas/AssetTransferResponse"}},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}}},"PartnerFeeType":{"title":"PartnerFeeType","type":"string","enum":["agio"],"description":"The type of the fee:\n<ul> <li><code>agio</code>: a one-off fee on a pay-in of the customer, e.g. a percentage of the deposit. </ul>\n"},"PartnerFeeStatus":{"title":"PartnerFeeStatus","type":"string","enum":["created","processed","processing"],"description":"The status of the fee:\n<ul> <li><code>created</code>: the fee has been created. <li><code>processed</code>: the full amount of the fee is collected. <li><code>processing</code>: the fee is being collected. </ul>\n"},"CreateFeeRequest":{"title":"CreateFeeRequest","description":"A fee that lemon.markets collects from the customer on your behalf.\n","required":["cash_account","type","amount","currency","reference"],"type":"object","properties":{"cash_account":{"type":"string","maxLength":255,"title":"Cash Account","example":"casha_2b1b6dd0e1514bf5bb1f382f249bfb35","description":"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 <a href=\"https://developer.lemon.markets/docs/fees\" target=\"_blank\">Fees guide</a> for how to find it.\n"},"type":{"$ref":"#/components/schemas/PartnerFeeType"},"amount":{"type":"string","exclusiveMinimum":0,"format":"number","title":"Amount","example":"20.00","description":"The amount of the fee, with at most 2 decimal places.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount listed here. The only currently available currency is `\"EUR\"`.\n"},"reference":{"title":"Reference","type":"string","pattern":"^[A-Za-z0-9-]{1,64}$","description":"Your identifier of the charge, 1 to 64 letters, digits and dashes.  It is unique across all your fees, without expiry.\n","example":"AGIO-2026-000123"}}},"FeeResponse":{"title":"FeeResponse","description":"A fee that lemon.markets collects from the customer on your behalf.\n","required":["id","cash_account","type","status","amount","currency","reference","collected_amount","open_amount","history"],"type":"object","properties":{"id":{"title":"Identifier","type":"string","description":"A unique identifier of the fee.\n","example":"pfee_92e87fce676d44898353edc240cd78f6"},"cash_account":{"title":"Cash Account","type":"string","description":"The identifier of the cash account the fee is charged on.\n","example":"casha_2b1b6dd0e1514bf5bb1f382f249bfb35"},"type":{"$ref":"#/components/schemas/PartnerFeeType"},"status":{"$ref":"#/components/schemas/PartnerFeeStatus"},"amount":{"title":"Amount","type":"string","description":"The amount of the fee, as in the request.\n","example":"20.00"},"currency":{"title":"Currency","type":"string","description":"The currency of the amounts.\n","example":"EUR"},"reference":{"title":"Reference","type":"string","description":"Your identifier of the charge, as in the request.\n","example":"AGIO-2026-000123"},"collected_amount":{"title":"Collected Amount","type":"string","description":"The amount collected from the customer so far.\n","example":"5.00"},"open_amount":{"title":"Open Amount","type":"string","description":"The amount still to be collected: <code>amount</code> minus <code>collected_amount</code>.  0 once the fee is <code>processed</code>.\n","example":"15.00"},"history":{"title":"History","type":"array","description":"The status changes of the fee, newest first.  The first entry is the current status.\n","items":{"$ref":"#/components/schemas/StatusChange_PartnerFeeStatus_"}}}},"StatusChange_PartnerFeeStatus_":{"title":"StatusChange of PartnerFeeStatus","required":["status","timestamp"],"type":"object","properties":{"status":{"$ref":"#/components/schemas/PartnerFeeStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The point in time at which the fee changed to this status.\n","example":"2026-12-10T09:12:03.481920+00:00"}}},"EncodedPaginatedCollectionResponse_FeeResponse_":{"title":"EncodedPaginatedCollectionResponse[FeeResponse]","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","type":"array","description":"The elements of the response.\n","items":{"$ref":"#/components/schemas/FeeResponse"}},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}}},"CreateCustomerWorkflowRequest":{"properties":{"trigger":{"$ref":"#/components/schemas/TriggerRequest"},"action":{"$ref":"#/components/schemas/ActionDataRequest"}},"type":"object","required":["trigger","action"],"title":"CreateCustomerWorkflowRequest","description":"A request to create a workflow.  The trigger and action types must be paired: a <code>schedule</code> trigger requires an <code>order.create_and_confirm</code> or <code>deposit.collect_with_mandate</code> action, and a <code>buying_power_available</code> trigger requires an <code>invest_with_allocations</code> action.  Any other combination is rejected with a 400.\n"},"CreateOrderRequest":{"properties":{"side":{"$ref":"#/components/schemas/Side"},"type":{"$ref":"#/components/schemas/OrderType"},"instrument":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument to be bought/sold.\n"},"amount":{"type":"string","exclusiveMinimum":0,"title":"Amount","description":"The amount of cash to invest with this order.\n"},"quantity":{"exclusiveMinimum":0,"type":"string","title":"Quantity","description":"Specify the quantity of shares for the instrument to be sold.\n"},"fees":{"$ref":"#/components/schemas/FeesRequest"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the `fee`, `fees.base_amount` and `amount` listed here. The only currently available currency is `\"EUR\"`.\n"},"securities_account":{"type":"string","title":"Securities Account","description":"A securities account identifier.  Use this property to specify the securities account for order execution and settlement.  If the customer has only one securities account, this property is optional.  If the customer has more than one securities account, this property is required.\n"},"actor":{"$ref":"#/components/schemas/ActorRequest"}},"type":"object","required":["side","type","instrument","currency","fees"],"title":"CreateOrderRequest"},"CreateTaxExemptionOrderRequest":{"properties":{"amount_total":{"maximum":1000,"exclusiveMinimum":0,"type":"string","format":"number","title":"Amount Total","description":"The amount to be exempt from capital gains.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the `amount` listed here. The only currently available currency is \"EUR\".\n"},"type":{"$ref":"#/components/schemas/TaxExemptionType"},"valid_from":{"type":"string","title":"Valid From","description":"A string specifying the first year for this tax exemption order to be effective.\n"},"valid_until":{"type":"string","title":"Valid Until","description":"A string specifying the last year to consider this tax exemtption.\n**NOTE:**  Must either be the same value as `valid_from` (to restrict the tax exemption to one year) or `null` (valid until the next tax exemption will be submitted).\n"}},"type":"object","required":["amount_total","currency","type","valid_from"],"title":"CreateTaxExemptionOrderRequest","description":"An object specifying a tax exemption order.\n"},"CreateTreasuryMandateRequest":{"description":"An object representing a treasury mandate to be created.\n","properties":{"instrument":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument to be bought/sold via the mandate.\n"},"widget_styling":{"type":{"$ref":"#/components/schemas/WidgetStyling"},"title":"Widget Styling","description":"Optional styling configuration for the treasury mandate widget. Use this to customize the appearance of the widget to match your application's design.\n"},"redirect_success":{"type":"string","title":"Redirect Success","description":"The redirect target that will be opened after successful acceptance of a mandate.\n"},"redirect_failure":{"type":"string","title":"Redirect Failure","description":"The redirect target that will be opened after failure to accept a mandate.\n"}},"type":"object","required":["instrument","redirect_success","redirect_failure"],"title":"CreateTreasuryMandateRequest"},"CreateTreasuryTransferRequest":{"properties":{"treasury_mandate":{"type":"string","title":"Treasury Mandate Identifier","description":"A treasury mandate identifier.  This field indicates which treasury mandate will be used to perform the transaction.\n"},"type":{"$ref":"#/components/schemas/TreasuryTransferType"},"amount":{"type":"string","format":"number","exclusiveMinimum":0,"title":"Amount","description":"The amount of money to transfer.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the `amount` listed here. The only currently available currency is `\"EUR\"`.\n"}},"type":"object","required":["treasury_mandate","type","amount","currency"],"title":"CreateTreasuryTransferRequest"},"CreateWebhookRequest":{"title":"CreateWebhookRequest","description":"An object representing a webhook to be registered.\n","required":["url","events"],"type":"object","properties":{"url":{"title":"Web URL","maxLength":2083,"minLength":1,"type":"string","format":"uri","example":"https://httpbin.org/status/503","description":"The URL of your webhook endpoint to be invoked when an event occurs.\n"},"events":{"minItems":1,"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/EventType"}}}},"CreateWithdrawalRequest":{"properties":{"amount":{"type":"string","exclusiveMinimum":0,"format":"number","title":"Amount","description":"The amount of money to withdraw.\n"},"cash_account":{"type":"string","maxLength":255,"title":"Cash Account","example":"casha_f076cc37106d4bf7bf5749f423953f35","description":"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 to withdraw from.  Optional when the customer account has exactly one cash account, required otherwise.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","default":"EUR","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount listed here. The only currently available currency is `\"EUR\"`.\n"}},"type":"object","required":["amount"],"title":"CreateWithdrawalRequest"},"CustomerAccountCheckCategory":{"type":"string","enum":["onboarding","post_onboarding","offboarding"],"title":"CustomerAccountCheckCategory"},"CustomerAccountCheckEventContext":{"title":"CustomerAccountCheckEventContext","description":"An object describing the context of an account check event.\n","properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"check":{"type":"string","title":"Check","description":"A check identifier. This field represents the check associated with an event.  It is an opaque identifier for event correlation, not meant to look-up a specific check.\n"}},"additionalProperties":false,"type":"object","required":["account","check"]},"CustomerAccountCheckResponse":{"title":"Account Check Response","description":"An object representing the status of an account check.\n","required":["type","category","status","actions","history"],"type":"object","properties":{"type":{"$ref":"#/components/schemas/CheckType"},"category":{"$ref":"#/components/schemas/CustomerAccountCheckCategory"},"status":{"$ref":"#/components/schemas/CustomerAccountCheckStatus"},"actions":{"items":{"$ref":"#/components/schemas/Action"},"type":"array","title":"Actions"},"history":{"title":"History","type":"array","items":{"$ref":"#/components/schemas/StatusChange_OnboardingCheckStatus_"},"description":"A history of the status changes for an account check.\n"}}},"CustomerAccountCheckStatus":{"title":"CustomerAccountCheckStatus","enum":["action_required","processing","success","failure"],"type":"string","description":"A category describing the status of an account check:\n<ul> <li><code>action_required</code>: An action is required to move forward with this check. <li><code>processing</code>: This check is in progress. <li><code>success</code>: This check was completed. <li><code>failure</code>: This check has failed. </ul>\n"},"CustomerAccountFinancialsResponse":{"title":"CustomerAccountFinancialsResponse","required":["balance","buying_power","funds_to_withdraw","blocked","to_be_settled","currency"],"type":"object","properties":{"balance":{"title":"Balance","type":"string","format":"number","description":"The current balance on the user's cash account.\n"},"buying_power":{"title":"Buying Power","type":"string","format":"number","description":"The amount of money available to the user for buying instruments.\n"},"funds_to_withdraw":{"title":"Funds To Withdraw","type":"string","format":"number","description":"The amount of money available for withdrawal. As trades are usually settled within two business days, this might not include proceeds from sales within the last few days (those will be `to_be_settled` until they are available).\n"},"blocked":{"title":"Blocked","type":"string","format":"number","description":"Amount blocked for orders placed, but not executed yet.\n"},"to_be_settled":{"title":"To be Settled","type":"string","format":"number","description":"Incoming funds not settled yet. Within the next few business days, those will be moved from `to_be_settled` to `balance` and `funds_to_withdraw`.\n"},"currency":{"title":"Currency","maxLength":3,"minLength":3,"type":"string","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for amounts listed here. The only currently available currency is `\"EUR\"`.\n"}}},"CustomerAccountResponse":{"title":"CustomerAccountResponse","required":["id","status","history","declaration_of_acting_on_own_account","customer"],"type":"object","properties":{"id":{"title":"Identifier","type":"string","description":"A value identifiying the individual user's account.\n","example":"cusa_c2c3f89ec0524b6e818ce00c16e4897f"},"cash_account":{"$ref":"#/components/schemas/CashAccountResponse","title":"Cash Account","description":"The cash account of the customer account.  Only set when the customer account has exactly one cash account; it is absent when the customer account has several cash accounts or none.\n"},"customer":{"oneOf":[{"$ref":"#/components/schemas/CustomerResponse"},{"$ref":"#/components/schemas/PersonCustomerResponse"},{"$ref":"#/components/schemas/BusinessCustomerResponse"}],"title":"Customer","description":"The customer associated with the account. Returns full customer details by default, or a simplified PersonCustomerResponse when the `person_customer` query parameter is `true`.\n**Warning:** The `person_customer` parameter will be **deprecated in a future version** of this API. Once deprecated, all responses will behave as if `person_customer=true`.\n"},"declaration_of_acting_on_own_account":{"title":"Declaration Of Acting On Own Account","type":"boolean","description":"An boolean value indicating whether the user has explicitly stated that they are acting on their own account and not in someone else's name.\n"},"history":{"title":"History","type":"array","items":{"$ref":"#/components/schemas/StatusChange_CustomerAccountStatus_"},"description":"A history of the status changes for the user's account.\n","example":[{"status":"created","timestamp":"2023-06-23T07:29:55.465000+00:00"}]},"reference_account":{"$ref":"#/components/schemas/BankAccountResponse"},"securities_account":{"$ref":"#/components/schemas/broker__apps__api__endpoints__accounts__SecuritiesAccountResponse"},"status":{"$ref":"#/components/schemas/CustomerAccountStatus"},"metadata":{"title":"Metadata","type":"object","description":"Optional metadata for the account as key-value pairs.\n","additionalProperties":{"type":"string"}},"agreements":{"title":"Accepted Agreements","type":"array","items":{"$ref":"#/components/schemas/AcceptedAgreementResponse"},"description":"A list of agreements that have been signed and currently valid for this account.\n","example":[{"agreement":"agr_9902271f791d413aad781763c61b9bb0","accepted_at":"2023-06-29T14:39:29Z","person":"per_3a0baf04657b4fb9bcaa03d8120b5e9e"},{"agreement":"agr_8ec894e1ec764a339e172292dff9aeff","accepted_at":"2023-06-29T14:39:29Z","person":"per_3a0baf04657b4fb9bcaa03d8120b5e9e"}]}}},"CustomerAccountStatus":{"title":"CustomerAccountStatus","enum":["closed","created","opened","rejected"],"type":"string","description":"A category representing the status of a user's account.\n<ul> <li><code>closed</code> <li><code>created</code> <li><code>opened</code> <li><code>rejected</code> </ul>\n<strong>NOTE:</strong> This list is not final yet, there will be more values added later.\n"},"CustomerAccountTreasuryFinancialsResponse":{"properties":{"portfolio_balance":{"type":"string","format":"number","title":"Portfolio Balance","description":"The current portfolio balance.  This is the number you want to display as the balance to your customers\n"},"available_balance":{"type":"string","format":"number","title":"Available Balance","description":"The available portfolio balance for withdrawals\n"},"unsettled_deposits":{"type":"string","format":"number","title":"Unsettled Deposits","description":"The value of deposits that are not fully processed yet.  Once fully processed, the deposits will be considered in `portfolio_balance`.\n"},"unsettled_withdrawals":{"type":"string","format":"number","title":"Unsettled Withdrawals","description":"The value of withdrawals that are not fully processed yet.  Once fully processed, the deposits will be considered in `portfolio_balance`.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount and fee listed here. The only currently available currency is `\"EUR\"`.\n"}},"type":"object","required":["portfolio_balance","available_balance","unsettled_deposits","unsettled_withdrawals","currency"],"title":"CustomerAccountTreasuryFinancialsResponse"},"CustomerRequest":{"title":"CustomerRequest","description":"An object representing the different properties of a user.\n","required":["firstname","lastname","date_of_birth","place_of_birth","nationalities","phone_number","email","registered_address","tax_residencies","employment"],"type":"object","properties":{"firstname":{"title":"First Name","maxLength":100,"type":"string","example":"Erika","description":"A string describing the user's first name.\n"},"lastname":{"title":"Lastname","maxLength":100,"type":"string","example":"Mustermann","description":"A string describing the user's last name.\n"},"gender":{"$ref":"#/components/schemas/Gender"},"date_of_birth":{"title":"Date Of Birth","type":"string","format":"date","description":"A string describing the day of birth, like `\"1964-08-13\"`.\n","example":"1964-08-13"},"place_of_birth":{"$ref":"#/components/schemas/PlaceOfBirthRequest"},"nationalities":{"title":"Nationalities","minItems":1,"type":"array","items":{"maxLength":2,"minLength":2,"type":"string"},"description":"A **complete** list of ISO 3166-1 alpha-2 codes, representing each country related to a user's nationalities/citizenships.  It is important for this data point to be complete.\n","example":["DE"]},"phone_number":{"title":"Phone Number","maxLength":45,"type":"string","description":"A mobile phone number, including the country calling code.\n","example":"+49172997318"},"email":{"title":"Email","type":"string","format":"email","description":"A verified email address to contact the user.  This email address must match the one you have on record for the user.\n"},"marital_status":{"$ref":"#/components/schemas/MaritalStatus"},"registered_address":{"$ref":"#/components/schemas/Address"},"tax_residencies":{"title":"Tax Residencies","minItems":1,"type":"array","items":{"$ref":"#/components/schemas/TaxResidency"},"description":"A **complete** list of all of a user's tax residencies.  It is important for this data point to be complete.\n"},"employment":{"$ref":"#/components/schemas/Employment"},"birth_name":{"type":"string","maxLength":100,"minLength":1,"title":"Birth Name","example":"Schmidt","description":"<strong>Preview:</strong> The user's last name at birth (Geburtsname), if it is different from <code>lastname</code>.\n"},"social_security_number":{"type":"string","minLength":12,"maxLength":12,"pattern":"^[0-9A-Z]{12}$","title":"Social Security Number","example":"65210366S011","description":"<strong>Preview:</strong> The user's German social security number (Sozialversicherungsnummer or Rentenversicherungsnummer), or the subsidy number (Zulagenummer) if the user has no social security number.  Exactly 12 characters, uppercase letters and digits only.\n"}}},"CustomerResponse":{"title":"CustomerResponse","description":"An object describing the user associated to an account.\n","required":["firstname","lastname","date_of_birth","place_of_birth","nationalities","phone_number","email","registered_address","tax_residencies","employment"],"type":"object","properties":{"id":{"type":"string","title":"Identifier","description":"A value identifiying the individual account owner.\n","example":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},"firstname":{"title":"First Name","type":"string","description":"A string describing the user's first name.\n","example":"Erika"},"lastname":{"title":"Lastname","type":"string","description":"A string describing the user's lastname.\n","example":"Mustermann"},"gender":{"$ref":"#/components/schemas/Gender"},"date_of_birth":{"title":"Date Of Birth","type":"string","format":"date","description":"A string describing the day of birth, like \"1964-08-13\".\n","example":"1964-08-13"},"place_of_birth":{"$ref":"#/components/schemas/PlaceOfBirthRequest"},"nationalities":{"title":"Nationalities","type":"array","items":{"maxLength":2,"minLength":2,"type":"string"},"description":"The list of nationalities registered for a user.\n","example":["DE"]},"phone_number":{"title":"Phone Number","type":"string","description":"A user's phone number, including the country calling code.\n","example":"+49172997318"},"email":{"title":"Email","type":"string","description":"A user's email address.\n","example":"erika.mustermann@example.com"},"marital_status":{"$ref":"#/components/schemas/MaritalStatus"},"registered_address":{"$ref":"#/components/schemas/Address"},"tax_residencies":{"title":"Tax Residencies","type":"array","items":{"$ref":"#/components/schemas/TaxResidency"},"description":"List of tax residencies.\n"},"employment":{"$ref":"#/components/schemas/Employment"}}},"PersonCustomerResponse":{"title":"PersonCustomerResponse","description":"A simplified object containing only the person customer type and identifier. This response is returned when the `person_customer` query parameter is set to `true` on the GET /accounts/{account_id} endpoint.\n**Warning:** The `person_customer` parameter will be **deprecated in a future version** of this API. Once deprecated, all responses will behave as if `person_customer=true`.\n","required":["type","id","person"],"type":"object","properties":{"type":{"type":"string","const":"person","title":"Type","description":"The customer type discriminator. Always set to \"person\" for person customers.\n"},"id":{"type":"string","title":"Person Identifier","deprecated":true,"description":"The unique identifier for the person customer.\n**Deprecated:** Use the `person` field instead. This field will be removed in a future version.\n","example":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"},"person":{"type":"string","title":"Person Identifier","description":"The unique identifier for the person customer.\n","example":"pers_f1e3a7f504414b5e99041ebc1c0f55cd"}}},"CustomerTreasuryFeeResponse":{"properties":{"account":{"type":"string","title":"Account","description":"Unique identifier for the customer account to which the fee applies."},"instrument":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) uniquely identifying the instrument for which the customer incurred fees.\n"},"total_fee_amount":{"type":"string","title":"Total Fee Amount","description":"The total amount of treasury fees charged to the customer for the instrument."},"currency":{"type":"string","title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount listed here. The only currently available currency is \"EUR\"."}},"type":"object","required":["account","instrument","total_fee_amount","currency"],"title":"CustomerTreasuryFeeResponse"},"CustomerWorkflowDocumentEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"document":{"type":"string","title":"Document","description":"A document identifier.  This field represents the document associated with an event.\n"},"workflow":{"type":"string","title":"Workflow","description":"A workflow identifier. This field represents the workflow associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","document","workflow"],"title":"CustomerWorkflowDocumentEventContext"},"CustomerWorkflowEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"workflow":{"type":"string","title":"Workflow","description":"A workflow identifier. This field represents the workflow associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","workflow"],"title":"CustomerWorkflowEventContext"},"CustomerWorkflowOrderTradeDocumentEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"batch_order":{"type":"string","title":"Batch Order","description":"A batch order identifier. This field represents the batch order associated with an event.\n"},"document":{"type":"string","title":"Document","description":"A document identifier.  This field represents the document associated with an event.\n"},"order":{"type":"string","title":"Order","description":"An order identifier. This field represents the order associated with an event.\n"},"trade":{"type":"string","title":"Trade","description":"A trade identifier. This field represents the trade associated with an event.\n"},"transaction":{"type":"string","title":"Transaction","description":"A transaction identifier. This field represents the transaction associated with an event.\n"},"workflow":{"type":"string","title":"Workflow","description":"A workflow identifier. This field represents the workflow associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","document","batch_order","trade","transaction","workflow"],"title":"CustomerWorkflowBatchOrderTradeDocumentEventContext"},"CustomerWorkflowResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"A value identifiying the workflow.\n"},"trigger":{"$ref":"#/components/schemas/TriggerResponse"},"action":{"$ref":"#/components/schemas/ActionDataResponse"},"regulatory_disclosures":{"$ref":"#/components/schemas/broker__apps__api__endpoints__customer_workflows__RegulatoryDisclosureResponse"},"sca":{"$ref":"#/components/schemas/SCAResponse"},"appropriateness_consent":{"$ref":"#/components/schemas/AppropriatenessConsentResponse"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_CustomerWorkflowStatus_"},"type":"array","title":"History"}},"type":"object","required":["id","trigger","action","history"],"title":"CustomerWorkflowResponse"},"CustomerWorkflowStatus":{"type":"string","enum":["canceled","confirmed","created"],"title":"CustomerWorkflowStatus","description":"A category representing a workflow status:\n<ul> <li><code>canceled</code> <li><code>confirmed</code> <li><code>created</code> </ul>\n"},"DepositCreditorResponse":{"description":"The customer's cash account that the money goes to.\n","properties":{"cash_account":{"type":"string","title":"Cash Account","example":"casha_7c1e0a4f2b8d4c3e9a5b6d7e8f9a0b1c"},"iban":{"type":"string","title":"IBAN","example":"DE85120700700460000001"},"bic":{"type":"string","title":"BIC","description":"Omitted when not available.\n","example":"DEUTDEFFXXX"},"bank_name":{"type":"string","title":"Bank Name","description":"Omitted when not available.\n","example":"Deutsche Bank"}},"type":"object","required":["cash_account","iban"],"title":"DepositCreditorResponse"},"DepositDebtorResponse":{"description":"The bank account that the money comes from.  Parts the bank did not report are omitted.\n","properties":{"iban":{"type":"string","title":"IBAN","description":"Omitted when not available.\n","example":"DE89370400440532013000"},"bic":{"type":"string","title":"BIC","description":"Omitted when not available.\n","example":"COBADEFFXXX"},"bank_name":{"type":"string","title":"Bank Name","description":"Omitted when not available.\n","example":"Commerzbank"},"account_holder_name":{"type":"string","title":"Account Holder Name","description":"Omitted when not available.\n","example":"Erika Mustermann"}},"type":"object","title":"DepositDebtorResponse"},"DepositEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"cash_account":{"type":"string","title":"Cash Account","description":"A cash account identifier. This field represents the cash account associated with an event.\n"},"deposit":{"type":"string","title":"Deposit","description":"A deposit identifier. This field represents the deposit associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","cash_account","deposit"],"title":"DepositEventContext"},"DepositResponse":{"description":"Money paid into a customer's cash account, by a bank transfer or a SEPA Direct Debit collection.  Both kinds share this shape; a SEPA Direct Debit deposit names its mandate and workflow.\n","properties":{"id":{"type":"string","title":"Identifier","description":"An identifier for the deposit.\n","example":"dep_1c8d3f0e9a2b4c5d6e7f8a9b0c1d2e3f"},"payment_instrument_mandate":{"type":"string","title":"Payment Instrument Mandate","description":"The mandate the money is collected under.  Omitted for a bank transfer.\n","example":"pinst_mand_f3a42ba00cb84618a549d975662c90b3"},"workflow":{"type":"string","title":"Workflow","description":"The <code>deposit.collect_with_mandate</code> workflow that collected the money.  Omitted for a bank transfer.\n","example":"wf_7c1e4b2a9d3f4e8ab6c0d5e2f1a3b9c8"},"amount":{"type":"string","title":"Amount","example":"250.00"},"currency":{"type":"string","title":"Currency","example":"EUR"},"description":{"type":"string","title":"Description","description":"A description of the payment.  Omitted when not available.\n","example":"Deposit for Trading"},"booking_date":{"type":"string","format":"date","title":"Booking Date","description":"The date the bank booked the payment.  Omitted until the bank has booked it.\n","example":"2026-10-21"},"creditor":{"$ref":"#/components/schemas/DepositCreditorResponse"},"debtor":{"$ref":"#/components/schemas/DepositDebtorResponse"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_DepositStatus_"},"type":"array","title":"History","description":"The status changes of the deposit, newest first.  The current status is the first entry.\n"}},"type":"object","required":["id","amount","currency","creditor","debtor","history"],"title":"DepositResponse"},"DepositStatus":{"type":"string","enum":["created","received","processing","accepted","rejected","failed","canceled"],"description":"A category representing the status of a deposit:\n<ul> <li><code>created</code>: The deposit was created.  For a SEPA Direct Debit deposit, the money has not\n    been collected yet.  <code>deposit.created</code> is sent.\n<li><code>received</code>: The money arrived in the cash account, but the amount is not yet available\n    while lemon.markets checks the deposit.  <code>deposit.received</code> is sent.\n<li><code>processing</code>: The deposit is undergoing manual review.  The amount is not yet available.\n    <code>deposit.processing</code> is sent.\n<li><code>accepted</code>: The deposit was accepted and the amount is available in the cash account.\n    <code>deposit.accepted</code> is sent.\n<li><code>rejected</code>: The deposit was rejected and the amount is not available.\n    <code>deposit.rejected</code> is sent.  Terminal.\n<li><code>failed</code>: A SEPA Direct Debit collection failed before the money arrived.\n    <code>deposit.failed</code> is sent.  Terminal.\n<li><code>canceled</code>: A SEPA Direct Debit collection was canceled with its workflow or mandate before\n    it was submitted to the bank.  <code>deposit.canceled</code> is sent.  Terminal.\n</ul>\n","title":"DepositStatus"},"DepositTransactionEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"cash_account":{"type":"string","title":"Cash Account","description":"A cash account identifier. This field represents the cash account associated with an event.\n"},"deposit":{"type":"string","title":"Deposit","description":"A deposit identifier. This field represents the deposit associated with an event.\n"},"transaction":{"type":"string","title":"Transaction","description":"A transaction identifier. This field represents the transaction associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","cash_account","deposit","transaction"],"title":"DepositTransactionEventContext"},"EncodedPaginatedCollectionResponse_DepositResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DepositResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[DepositResponse]"},"StatusChange_DepositStatus_":{"properties":{"status":{"$ref":"#/components/schemas/DepositStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the deposit was updated.\n","example":"2026-10-21T09:16:00.654321+00:00"}},"type":"object","required":["status","timestamp"],"title":"StatusChange of DepositStatus"},"Direction":{"type":"string","enum":["debit","credit"],"title":"Direction","description":"A category representing the direction of a payment or transaction flow:\n<ul> <li><code>credit</code> <li><code>debit</code> </ul>\n"},"DividendDistributionEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"dividend_distribution":{"type":"string","title":"Dividend Distribution","description":"A dividend distribution identifier. This field represents the cash dividend distribution associated with an event.\n"},"securities_account":{"type":"string","title":"Securities Account","description":"A securities account identifier.\n"},"transaction":{"type":"string","title":"Transaction","description":"A transaction identifier. This field represents the transaction associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","dividend_distribution","securities_account","transaction"],"title":"DividendDistributionEventContext"},"DocumentContentType":{"title":"DocumentContentType","enum":["application/pdf"],"type":"string","description":"A category representing the content type of the document displayed. At the moment, there will only be one content type for documents:\n<ul> <li><code>application/pdf</code> </ul>\nA potential use-case for this attribute is an icon used as a file-type indicator in a list of documents.\n"},"DocumentEventContext":{"title":"DocumentEventContext","properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"document":{"type":"string","title":"Document","description":"A document identifier.  This field represents the document associated with an event.\n"}},"type":"object","required":["account","document"]},"DocumentResponse":{"title":"DocumentResponse","description":"An object representing a document to be delivered/displayed to the user.\n","required":["id","created_at","name","url","language","type","content_type"],"type":"object","properties":{"id":{"title":"Identifier","type":"string","example":"doc_8e2a16591a664df89551047d85436562","description":"A string representing the unique identifier of this document.\n"},"created_at":{"title":"Created At","type":"string","format":"date-time","description":"The timestamp of the document.  It represents the point in time at which the document was created for the user.\n"},"name":{"title":"Name","type":"string","example":"Datenschutzerklärung","description":"A string identifying the document, suitable to be displayed to the user.\n"},"url":{"title":"Download URL","maxLength":2083,"minLength":1,"type":"string","format":"uri","description":"A reference to the actual document. You can use this URL to present the document to the user. It can be accessed without special headers like `Authorization` or the `LMG-Data-Privacy-*` ones, so you have full flexibility for presentation and you can choose among:\n<ol><!-- redocly preview doesn't support markdown lists --> <li>Showing the document using an In-App Browser. <li>Showing the document using an external Browser App. <li>Provide the user with your own options to download or forward the document. </ol>\n<strong>NOTE:</strong>  The URLs returned here will expire after a certain period of time.  We suggest to ignore document URLs when listing documents, e.g. in a postbox.  When the user wants to view a document, we recommend to perform a `GET` request using the `doc_…` identifier.  This will provide you with a fresh document URL that can be safely used to display the document irregardless of link expiry.\n"},"language":{"title":"Language","type":"string","example":"de","description":"The (natural) language for the document.  This will can either be a pure language code like `\"de\"` or `\"pl\"` or a regional language code like `\"en_GB\"` or `\"de_CH\"`.\n<ul> <li><strong>Pure language code</strong> in this case is an ISO 639-1 alpha-2 code. <li><strong>Regional language code</strong> in this case is the concatenation of an ISO 639-1 alpha-2 code for a language\n    joined using the underscore character (<code>_</code>) with an ISO 3166-1 alpha-2 code for a country.\n</ul>\n"},"type":{"$ref":"#/components/schemas/DocumentType"},"content_type":{"$ref":"#/components/schemas/DocumentContentType"}}},"DocumentType":{"title":"Document Type","enum":["account_statement","cash.statement","contractual","general","income_distribution.receipt","order.cost","report.ex_post","tax_information","tax.receipt","tax.statement","trade.receipt"],"type":"string","description":"A category representing the type of document:\n<ul> <li><code>account_statement</code>: An account statements, e.g. quarterly statements for both the reference account and the securities account. <li><code>cash.statement</code>: A statement detailing cash movements and balances for a specific period, e.g. the quarterly cash statement. <li><code>contractual</code>: A contractual document, e.g. private policy or terms and conditions. <li><code>general</code>: A document with general information, e.g. basic information on securities trading. <li><code>income_distribution.receipt</code>: A document presenting detailed information about an income distribution. <li><code>report.ex_post</code>: The annual cost report. <li><code>order.cost</code>: A cost information document for an order. <li><code>tax_information</code>: deprecated <li><code>tax.receipt</code>: Tax related information about a specific payment, e.g. for capital gains tax on unrealized gains (German Vorabpauschale) or refunds due to tax optimization. <li><code>tax.statement</code>: Tax reporting information, e.g. the annual tax reporting. <li><code>trade.receipt</code>: A trade receipt: It presents final information about prices, cost and quantities. </ul>\n<strong>Note:</strong> This list is not final, there will be more types added over time.\n"},"Employment":{"title":"Employment","description":"An object describing a user's employment status.\n","required":["status","annual_salary","sector"],"type":"object","properties":{"status":{"$ref":"#/components/schemas/EmploymentStatus"},"annual_salary":{"$ref":"#/components/schemas/AnnualSalary"},"sector":{"$ref":"#/components/schemas/IndustrySector"}}},"EmploymentStatus":{"title":"EmploymentStatus","enum":["apprenticeship","company_owner","employed","managing_director","public_official","retired","self_employed","student","unemployed"],"type":"string","description":"A category to represent a user's employment status:\n<ul> <li><code>apprenticeship</code> <li><code>company_owner</code> <li><code>employed</code> <li><code>managing_director</code> <li><code>public_official</code> <li><code>retired</code> <li><code>self_employed</code> <li><code>student</code> <li><code>unemployed</code> </ul>\n"},"EncodedPaginatedCollectionResponse_AgreementResponse_":{"title":"Page of AgreementResponse","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","type":"array","description":"The elements of the response.\n","items":{"$ref":"#/components/schemas/AgreementResponse"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"EncodedPaginatedCollectionResponse_AuthenticatorResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AuthenticatorResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["data","pagination"],"title":"Page[AuthenticatorResponse]"},"EncodedPaginatedCollectionResponse_BeneficialOwnerResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BeneficialOwnerResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[BeneficialOwnerResponse]"},"EncodedPaginatedCollectionResponse_BusinessResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BusinessResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[BusinessResponse]"},"EncodedPaginatedCollectionResponse_CorporateActionResponseUnion_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CorporateActionResponseUnion"},"type":"array","title":"Data","description":"The elements of the response. Each element is a corporate action, discriminated by the `type` property.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[CorporateActionResponseUnion]"},"EncodedPaginatedCollectionResponse_CustomerTreasuryFeeResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/CustomerTreasuryFeeResponse"},"type":"array","title":"Data","description":"List of customer-level treasury fees contributing to a partner's aggregated fee."},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse","description":"Pagination metadata used for retrieving subsequent pages."}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[CustomerTreasuryFeeResponse]"},"EncodedPaginatedCollectionResponse_PartnerTreasuryFeesResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PartnerTreasuryFeesResponse"},"type":"array","title":"Data","description":"List of aggregated partner treasury fees."},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse","description":"Pagination metadata used for retrieving subsequent pages."}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[PartnerTreasuryFeesResponse]"},"EncodedPaginatedCollectionResponse_GetProductResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/GetProductResponse"},"type":"array","title":"Data","description":"The elements of the response. Each element is a product, discriminated by the `type` property.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[GetProductResponse]"},"EncodedPaginatedCollectionResponse_IncomeDistributionResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/IncomeDistributionResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[IncomeDistributionResponse]"},"EncodedPaginatedCollectionResponse_LegalRepresentativeResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/LegalRepresentativeResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[LegalRepresentativeResponse]"},"EncodedPaginatedCollectionResponse_OrderResponse_":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderResponse"},"title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["data","pagination"],"title":"Page of OrderResponse"},"EncodedPaginatedCollectionResponse_PersonResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/broker__apps__api__endpoints__persons__PersonResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[PersonResponse]"},"EncodedPaginatedCollectionResponse_PositionsResponse_":{"title":"Page of PositionsResponse","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","description":"The elements of the response.\n","type":"array","items":{"$ref":"#/components/schemas/PositionsResponse"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"EncodedPaginatedCollectionResponse_SecuritiesAccountResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/broker__apps__api__endpoints__securities_accounts__SecuritiesAccountResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[SecuritiesAccountResponse]"},"EncodedPaginatedCollectionResponse_SettlementAccountResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SettlementAccountResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["data","pagination"],"title":"Page[SettlementAccountResponse]"},"EncodedPaginatedCollectionResponse_SettlementItemResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SettlementItemResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[SettlementItemResponse]"},"EncodedPaginatedCollectionResponse_SettlementResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SettlementResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[SettlementResponse]"},"EnrollSCAAuthenticatorAction":{"title":"EnrollSCAAuthenticatorAction","description":"An object representing the requirement to enroll an authenticator fro storng customer authentication (SCA).\n","properties":{"type":{"const":"enroll_sca_authenticator","title":"Type","description":"A type value indicating the type of action: `enroll_sca_authenticator`\n"}},"type":"object","required":["type"]},"EncodedPaginatedCollectionResponse_TaxExemptionOrderResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TaxExemptionOrderResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[TaxExemptionOrderResponse]"},"EncodedPaginatedCollectionResponse_TaxExemptionUsageResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TaxExemptionUsageResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[TaxExemptionUsageResponse]"},"EncodedPaginatedCollectionResponse_TreasuryMandateResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TreasuryMandateResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[TreasuryMandateResponse]"},"EncodedPaginatedCollectionResponse_TreasuryTransferResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TreasuryTransferResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[TreasuryTransferResponse]"},"EncodedPaginatedCollectionResponse_WithdrawalResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WithdrawalResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"Page[WithdrawalResponse]"},"EncodedPaginationResponse":{"type":"object","title":"EncodedPaginationResponse","properties":{"next_cursor":{"type":"string","title":"Next Cursor","description":"When fetching long lists of elements, you can use our pagination feature to fetch batches of data.  If a response contains the property `pagination.next_cursor`, you can pass its value via the query item `cursor` to generate the request for the next batch of data.\n"}},"description":"Information about accessing elements beyond the ones that were returned.\n","example":{"next_cursor":"<opaque-data>"}},"ErrorResponse":{"title":"ErrorResponse","required":["message"],"type":"object","properties":{"message":{"title":"Message","type":"string"}}},"EventExternal":{"title":"EventExternal","required":["id","type","created_at","context"],"type":"object","properties":{"id":{"title":"Event Identifier","type":"string","description":"An event identifier.\n"},"type":{"$ref":"#/components/schemas/EventType"},"created_at":{"title":"Created At","type":"string","format":"date-time","description":"A timestamp representation the moment of an event's creation.\n"},"context":{"anyOf":[{"$ref":"#/components/schemas/AccountEventContext"},{"$ref":"#/components/schemas/AssetTransferEventContext"},{"$ref":"#/components/schemas/BatchOrderEventContext"},{"$ref":"#/components/schemas/CashAccountEventContext"},{"$ref":"#/components/schemas/CustomerAccountCheckEventContext"},{"$ref":"#/components/schemas/CustomerWorkflowEventContext"},{"$ref":"#/components/schemas/CustomerWorkflowDocumentEventContext"},{"$ref":"#/components/schemas/CustomerWorkflowOrderTradeDocumentEventContext"},{"$ref":"#/components/schemas/BatchOrderEventContext"},{"$ref":"#/components/schemas/DepositEventContext"},{"$ref":"#/components/schemas/DepositTransactionEventContext"},{"$ref":"#/components/schemas/DividendDistributionEventContext"},{"$ref":"#/components/schemas/DocumentEventContext"},{"$ref":"#/components/schemas/IdentificationEventContext"},{"$ref":"#/components/schemas/IncomeDistributionConfirmationDocumentEventContext"},{"$ref":"#/components/schemas/IncomeDistributionEventContext"},{"$ref":"#/components/schemas/InstrumentUpdateEventContext"},{"$ref":"#/components/schemas/OrderDocumentEventContext"},{"$ref":"#/components/schemas/OrderEventContext"},{"$ref":"#/components/schemas/TradeEventContext"},{"$ref":"#/components/schemas/TradeSettledEventContext"},{"$ref":"#/components/schemas/OrderTradeDocumentEventContext"},{"$ref":"#/components/schemas/OrderWorkflowEventContext"},{"$ref":"#/components/schemas/PaymentInstrumentMandateEventContext"},{"$ref":"#/components/schemas/PersonDataUpdateEventContext"},{"$ref":"#/components/schemas/SecuritiesAccountEventContext"},{"$ref":"#/components/schemas/SecuritiesTransferEventContext"},{"$ref":"#/components/schemas/SettlementEventContext"},{"$ref":"#/components/schemas/SubsidyApplicationEventContext"},{"$ref":"#/components/schemas/SweepEventContext"},{"$ref":"#/components/schemas/SweepTransactionEventContext"},{"$ref":"#/components/schemas/TaxExemptionOrderEventContext"},{"$ref":"#/components/schemas/TaxGeneralEventContext"},{"$ref":"#/components/schemas/TaxInstrumentTransactionEventContext"},{"$ref":"#/components/schemas/TreasuryMandateEventContext"},{"$ref":"#/components/schemas/TreasuryTransferEventContext"},{"$ref":"#/components/schemas/TreasuryTransferSettlementEventContext"},{"$ref":"#/components/schemas/WithdrawalEventContext"},{"$ref":"#/components/schemas/WithdrawalTransactionEventContext"}],"title":"Context"}}},"EventType":{"title":"EventType","enum":["account.closed","account.created","account.opened","account.rejected","asset_transfer.confirmed","asset_transfer.created","batch_order.accepted","batch_order.canceled","batch_order.canceling","batch_order.confirmed","batch_order.created","batch_order.executed","batch_order.rejected","cash_account.created","check.action_required","check.processing","check.pending","check.succeeded","check.failed","corporate_action.created","corporate_action.processed","deposit.accepted","deposit.canceled","deposit.created","deposit.failed","deposit.processing","deposit.received","deposit.rejected","deposit.returned","dividend_distribution.created","document.created","identification.created","identification.failed","identification.started","identification.succeeded","income_distribution.created","order.accepted","order.canceled","order.canceling","order.confirmed","order.created","order.executed","order.rejected","payment_instrument_mandate.canceled","payment_instrument_mandate.confirmed","payment_instrument_mandate.created","payment_instrument_mandate.rejected","securities_account.created","securities_account.opened","securities_account.rejected","securities_account.closed","securities_transfer.created","securities_transfer.completed","settlement.created","subsidy_application.activated","subsidy_application.canceled","subsidy_application.created","subsidy_application.rejected","subsidy_application.superseded","sweep.canceled","sweep.created","sweep.processed","sweep.rejected","sweep.started","tax.canceled","tax.created","tax.processed","tax_exemption_order.accepted","tax_exemption_order.canceled","tax_exemption_order.canceling","tax_exemption_order.created","tax_exemption_order.rejected","trade.cash_settled","trade.created","trade.taxes_processed","treasury_mandate.accepted","treasury_mandate.canceled","treasury_mandate.confirmed","treasury_mandate.created","treasury_mandate.rejected","treasury_transfer.created","treasury_transfer.pending","treasury_transfer.processed","treasury_transfer.canceled","treasury_transfer.canceling","treasury_transfer.settled","treasury_transfer.rejected","update.created","update.succeeded","update.failed","withdrawal.accepted","withdrawal.canceled","withdrawal.confirmed","withdrawal.created","withdrawal.processed","withdrawal.rejected","workflow.created","workflow.confirmed","workflow.canceled"],"type":"string","description":"A category representing a type of event.\n<ul> <li> <code>account.closed</code>, <code>account.created</code>, <code>account.opened</code>, <code>account.rejected</code> <li> <code>asset_transfer.confirmed</code>, <code>asset_transfer.created</code> <li> <code>batch_order.accepted</code>, <code>batch_order.canceled</code>, <code>batch_order.canceling</code>, <code>batch_order.confirmed</code>, <code>batch_order.created</code>, <code>batch_order.executed</code>, <code>batch_order.rejected</code> <li> <code>cash_account.created</code> <li> <code>check.action_required</code>, <code>check.processing</code>, <code>check.pending</code>, <code>check.succeeded</code>, <code>check.failed</code> <li> <code>deposit.accepted</code>, <code>deposit.canceled</code>, <code>deposit.created</code>, <code>deposit.failed</code>, <code>deposit.processing</code>, <code>deposit.received</code>, <code>deposit.rejected</code>, <code>deposit.returned</code> <li> <code>dividend_distribution.created</code> <li> <code>document.created</code> <li> <code>identification.created</code>, <code>identification.failed</code>, <code>identification.started</code>, <code>identification.succeeded</code> <li> <code>income_distribution.created</code> <li> <code>order.accepted</code>, <code>order.canceled</code>, <code>order.canceling</code>, <code>order.confirmed</code>, <code>order.created</code>, <code>order.executed</code>, <code>order.rejected</code> <li> <code>payment_instrument_mandate.canceled</code>, <code>payment_instrument_mandate.confirmed</code>, <code>payment_instrument_mandate.created</code>, <code>payment_instrument_mandate.rejected</code> <li> <code>securities_account.created</code>, <code>securities_account.opened</code>, <code>securities_account.rejected</code>, <code>securities_account.closed</code> <li> <code>securities_transfer.created</code>, <code>securities_transfer.completed</code> <li> <code>settlement.created</code> <li>\n  <code>subsidy_application.activated</code>,\n  <code>subsidy_application.canceled</code>,\n  <code>subsidy_application.created</code>,\n  <code>subsidy_application.rejected</code>,\n  <code>subsidy_application.superseded</code>\n<li> <code>sweep.canceled</code>, <code>sweep.created</code>, <code>sweep.rejected</code>, <code>sweep.processed</code>, <code>sweep.started</code> <li> <code>tax.canceled</code>, <code>tax.created</code>, <code>tax.processed</code> <li> <code>tax_exemption_order.accepted</code>, <code>tax_exemption_order.canceled</code>, <code>tax_exemption_order.canceling</code>, <code>tax_exemption_order.created</code>, <code>tax_exemption_order.rejected</code> <li> <code>trade.cash_settled</code> <code>trade.created</code> <code>trade.taxes_processed</code> <li> <code>treasury_mandate.accepted</code>, <code>treasury_mandate.canceled</code>, <code>treasury_mandate.confirmed</code>, <code>treasury_mandate.created</code>, <code>treasury_mandate.rejected</code> <li> <code>treasury_transfer.canceled</code>, <code>treasury_transfer.canceling</code>, <code>treasury_transfer.created</code>, <code>treasury_transfer.pending</code>, <code>treasury_transfer.processed</code>, <code>treasury_transfer.rejected</code>, <code>treasury_transfer.settled</code> <li> <code>update.created</code>, <code>update.succeeded</code>, <code>update.failed</code> <li> <code>withdrawal.accepted</code>, <code>withdrawal.canceled</code>, <code>withdrawal.confirmed</code>, <code>withdrawal.created</code>, <code>withdrawal.processed</code>, <code>withdrawal.rejected</code> <li> <code>workflow.canceled</code>, <code>workflow.confirmed</code>, <code>workflow.created</code> </ul>\n<strong>Note:</strong> This list is not final, more types of events will be added in the future.\n"},"ExperienceDetail-Input":{"properties":{"experience":{"$ref":"#/components/schemas/ExperienceType"},"knowledge":{"$ref":"#/components/schemas/KnowledgeLevelType"}},"type":"object","required":["knowledge"],"title":"ExperienceDetail"},"ExperienceDetailKnowledge-Input":{"properties":{"knowledge":{"$ref":"#/components/schemas/KnowledgeLevelType"}},"type":"object","required":["knowledge"],"title":"ExperienceDetail"},"ExperienceDetail-Output":{"properties":{"experience":{"$ref":"#/components/schemas/ExperienceType"},"knowledge":{"$ref":"#/components/schemas/KnowledgeLevelType"}},"type":"object","required":["knowledge"],"title":"ExperienceDetail"},"ExperienceTransitionKnowledge-Input":{"properties":{"non_complex_products":{"$ref":"#/components/schemas/ExperienceDetailKnowledge-Input","description":"Knowledge about Non-Complex Products\n"},"structured_investment_products":{"$ref":"#/components/schemas/ExperienceDetailKnowledge-Input","description":"Knowledge about Structured Investment Products\n"},"swap_based_ucits_and_alternative_investment_funds":{"$ref":"#/components/schemas/ExperienceDetailKnowledge-Input","description":"Knowledge about Swap-Based UCITS Funds and Alternative Investment Funds (AIF)\n"}},"type":"object","title":"ExperienceTransition","example":{"non_complex_products":{"knowledge":"knowledgeable"},"structured_investment_products":null,"swap_based_ucits_and_alternative_investment_funds":null}},"ExperienceTransition-Input":{"properties":{"non_complex_products":{"$ref":"#/components/schemas/ExperienceDetail-Input","description":"Experience Details with Trading of Non-Complex Products\n"},"structured_investment_products":{"$ref":"#/components/schemas/ExperienceDetail-Input","description":"Experience Details with Trading of Structured Investment Products\n"},"swap_based_ucits_and_alternative_investment_funds":{"$ref":"#/components/schemas/ExperienceDetail-Input","description":"Experience Details with Trading of Swap-Based UCITS Funds or Alternative Investment Funds (AIF)\n"}},"type":"object","title":"ExperienceTransition","example":{"non_complex_products":{"experience":"none","knowledge":"none"},"structured_investment_products":{"experience":"none","knowledge":"none"},"swap_based_ucits_and_alternative_investment_funds":{"experience":"none","knowledge":"none"}}},"ExperienceTransition-Output":{"properties":{"non_complex_products":{"$ref":"#/components/schemas/ExperienceDetail-Output","description":"Experience Details with Trading of Non-Complex Products\n"},"structured_investment_products":{"$ref":"#/components/schemas/ExperienceDetail-Output","description":"Experience Details with Trading of Structured Investment Products\n"},"swap_based_ucits_and_alternative_investment_funds":{"$ref":"#/components/schemas/ExperienceDetail-Output","description":"Experience Details with Trading of Swap-Based UCITS Funds or Alternative Investment Funds (AIF)\n"}},"type":"object","title":"ExperienceTransition"},"ExperienceType":{"title":"ExperienceType","enum":["none","from_1_to_5","greater_than_5"],"type":"string","description":"A category describing the number of trades for a specific type of instrument in the last two years:\n<ul> <li><code>none</code>: No trades in the last 2 years for this type of instrument. <li><code>from_1_to_5</code>: 1 – 5 trades in the last 2 years for this type of instrument. <li><code>greater_than_5</code>: 6 or more trades in the last 2 years for this type of instrument. </ul>\n<strong>Note:</strong> This information is only required for the account onboarding. It cannot be updated at a later point in time. However, we will monitor the number of trades for any user and will automatically upgrade the experience profile.\n"},"FeesRequest":{"properties":{"pct":{"format":"number","minimum":0,"type":"string","title":"Relative Fee","description":"Specify a relative amount like `\"0.20\"` to charge a relative fee for this order;  in this case, 0.2% of the trade's value, i.e. `0.20 EUR` in case the trade is executed for `100 EUR` as the exchange.  In this example a customer would receive `99.80 EUR` for a sell order or pay `100.20 EUR` for a buy order.\n**NOTE:**  For the time being, this property is mutually exclusive with fixed fees.  If you need to combine both, feel free to contact your partner manager.\n"},"base_amount":{"format":"number","minimum":0,"type":"string","title":"Fixed Fee","description":"Specify a fixed amount like `\"2.00\"` to charge a fixed fee for this order.\n**NOTE:**  For the time being, this property is mutually exclusive with relative fees.  If you need to combine both, feel free to contact your partner manager.\n"}},"type":"object","title":"FeesRequest","description":"Order fee configuration.  Use this object to specify how to calculate order fees.\n**NOTE:**  It is mandatory to specify `fees` for an order, even when charging no fees (use a fixed amount of `0` then).\n"},"FeesResponse":{"properties":{"pct":{"type":"string","title":"Relative Fee","description":"Specify a relative amount like `\"0.20\"` to charge a relative fee for this order;  in this case, 0.2% of the trade's value.\n"},"base_amount":{"type":"string","title":"Fixed Fee","description":"Specify a fixed amount like `\"2.00\"` to charge a fixed fee for this order.\n"}},"type":"object","title":"FeesResponse","description":"Order fee configuration.  This object specifies how to calculate order fees.\n"},"Gender":{"title":"Gender","enum":["diverse","female","male","unknown"],"type":"string","description":"A category to represent a user's gender:\n<ul> <li><code>diverse</code> <li><code>female</code> <li><code>male</code> <li><code>unknown</code> </ul>\n<strong>Remember:</strong> Due to the identity verification requirements, it is important that there is a match between the user's gender as reported via the API and the user's gender as reported by the official ID.\n"},"GermanBusinessLegalForm":{"title":"GermanBusinessLegalForm","type":"string","enum":["gmbh","ug"],"description":"A category representing the formal type of a German legal entity:\n<ul> <li><code>gmbh</code>: GmbH <li><code>ug</code>: UG (haftungsbeschränkt) </ul>\n"},"GermanBusinessRegistration":{"title":"GermanBusinessRegistration","type":"object","properties":{"id":{"type":"string","maxLength":255,"minLength":1,"pattern":"^(HRA|HRB|GNR|VR|PR).*","title":"Registration Number","description":"The identifier of the company's registration in the commercial register of `court`, which must contain one of the following prefixes: `HRA`, `HRB`, `GNR`, `VR`, or `PR`. e.g. `\"HRB 123456\"`.\n"},"court":{"type":"string","maxLength":255,"minLength":1,"title":"Court","description":"The name of the district court of the commercial register.\n"},"legal_form":{"$ref":"#/components/schemas/GermanBusinessLegalForm"},"incorporation_country":{"type":"string","maxLength":2,"minLength":2,"title":"Country of Incorporation","description":"An ISO 3166-1 alpha-2 code, representing the business's country of incorporation.\n","example":"DE"},"incorporation_date":{"type":"string","format":"date","title":"Date of Incorporation","description":"An ISO 8601 date string (only using components for year, month and day) specifying the business's date of incorporation.\n"}},"required":["id","incorporation_date","incorporation_country","legal_form"]},"IdentificationDocument":{"properties":{"type":{"$ref":"#/components/schemas/IdentificationDocumentType"},"number":{"type":"string","minLength":1,"maxLength":255,"title":"Number","description":"The number used to identify the document, such as the passport number.  The string must neither be empty and nor contain only whitespace characters.\n"},"expiry_date":{"type":"string","format":"date","title":"Expiry Date","description":"The expiry date as indicated on the document.\n**Note:**  For some documents this may be the last day being valid, for others this may indicate the first day of being expired.\n"},"issuing_country":{"type":"string","maxLength":2,"minLength":2,"title":"Nationality","description":"The ISO 3166-1 alpha-2 code representing the issuing government.\n"}},"type":"object","required":["type","number","expiry_date","issuing_country"],"title":"IdentificationDocument","description":"An object representing a government issued identity document.\n"},"IdentificationDocumentType":{"type":"string","enum":["id_card","passport"],"title":"IdentificationDocumentType","description":"A category representing a givernment issued identification document.\n<ul> <li><code>id_card</code> <li><code>passport</code> </ul>\n"},"IdentificationEventContext":{"properties":{"person":{"type":"string","title":"Person"},"identification":{"type":"string","title":"Identification"}},"additionalProperties":false,"type":"object","required":["person","identification"],"title":"IdentificationEventContext"},"IdentificationResponse":{"title":"IdentificationResponse","description":"An object representing a process for person identification.\n","properties":{"id":{"type":"string","title":"Identifier","description":"The identifier referring to this person identification process.\n"},"person":{"$ref":"#/components/schemas/PersonResponse"},"method":{"$ref":"#/components/schemas/PersonIdentificationMethod"},"status":{"$ref":"#/components/schemas/PersonIdentificationStatus"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_PersonIdentificationStatus_"},"type":"array","title":"History","default":[],"description":"A history of the status changes for the person identification process.\n"}},"type":"object","required":["id","person","method","status"]},"IncomeDistributionConfirmationDocumentEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"document":{"type":"string","title":"Document","description":"A document identifier.  This field represents the document associated with an event.\n"},"income_distribution":{"type":"string","title":"Income Distribution","description":"An income distribution identifier.  This field represents the income distribution associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","document","income_distribution"],"title":"IncomeDistributionConfirmationDocumentEventContext"},"IncomeDistributionEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"income_distribution":{"type":"string","title":"Income Distribution","description":"An income distribution identifier.  This field represents the income distribution associated with an event.\n"},"securities_account":{"type":"string","title":"Securities Account Identifier","description":"A securities account identifier.\n"}},"additionalProperties":false,"type":"object","required":["account","income_distribution","securities_account"],"title":"IncomeDistributionEventContext"},"IncomeDistributionResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"The identifier referring to this income distribution.\n"},"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value identified the instrument distributing and amount.\n"},"payable_date":{"type":"string","format":"date","title":"Payable Date","description":"The expected payable date.  The payment cannot be expected to happen earlier than this date.  Due to the number of parties involved, it is common for payment to arrive a few business days after this date.\n"},"currency":{"type":"string","title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount and taxes listed here. The only currently available currency is `\"EUR\"`.\n"},"direction":{"$ref":"#/components/schemas/Direction"},"amount":{"type":"string","title":"Amount","description":"The amount of cash received before applying taxes.\n"},"taxes":{"items":{"$ref":"#/components/schemas/TaxResponseField"},"type":"array","title":"Taxes"}},"type":"object","required":["id","instrument","payable_date","direction","amount","currency"],"title":"IncomeDistributionResponse"},"IndustryRequestNaceRev":{"type":"string","enum":["2.1"],"title":"IndustryRequestNaceRev","description":"A category representing a revision of the NACE classification codes. Only NACE Rev. 2.1 (2025) is supported for new business requests.\n"},"IndustryRequest":{"properties":{"nace_rev":{"$ref":"#/components/schemas/IndustryRequestNaceRev"},"code":{"$ref":"#/components/schemas/BusinessIndustryCodeEnumTwoOne"}},"type":"object","required":["nace_rev","code"],"title":"IndustryRequest"},"IndustrySector":{"title":"IndustrySector","enum":["agriculture","commodities","construction","education","financial_services","gambling","healthcare","it","jewellery_trading","manufacturing","precious_metals_trading","professional_services","public_sector","real_estate","retail","service_industry","sport","tourism","transport","used_vehicles_trading","weapons_trading","other"],"type":"string","description":"A category representing the industry sector related to a user's employment status.  If the user's employment status is not directly linked to a sector, select `other`.\n<ul> <li><code>agriculture</code></li> <li><code>commodities</code></li> <li><code>construction</code></li> <li><code>education</code></li> <li><code>financial_services</code></li> <li><code>gambling</code></li> <li><code>healthcare</code></li> <li><code>it</code></li> <li><code>jewellery_trading</code></li> <li><code>manufacturing</code></li> <li><code>precious_metals_trading</code></li> <li><code>professional_services</code></li> <li><code>public_sector</code></li> <li><code>real_estate</code></li> <li><code>retail</code></li> <li><code>service_industry</code></li> <li><code>sport</code></li> <li><code>tourism</code></li> <li><code>transport</code></li> <li><code>used_vehicles_trading</code></li> <li><code>weapons_trading</code></li> <li><code>other</code></li> </ul>\n"},"InitiateIdentityVerificationAction":{"title":"InitiateIdentityVerificationAction","description":"An object representing the requirement to perform identity verification.\n","properties":{"type":{"const":"initiate_identity_verification","title":"Type","description":"A type value indicating the type of action: `initiate_identity_verification`\n"},"url":{"type":"string","title":"Web URL","description":"The address of the website to visit for performing the identity verification.\n"},"video_ident_id":{"type":"string","title":"Process Identifier","description":"The identifier for the video identification process.\n"}},"type":"object","required":["type"]},"InitiateKYCRequest":{"title":"InitiateKYCRequest","description":"An object describing client-side configuration for the identity verification process.\n","required":["redirect_success","redirect_failure"],"type":"object","properties":{"redirect_success":{"title":"Redirect Success","maxLength":65536,"minLength":1,"type":"string","format":"uri","example":"my-app://brokerage/success","description":"The redirect target that will be opened after a successful video-identification process.\n"},"redirect_failure":{"title":"Redirect Failure","maxLength":65536,"minLength":1,"type":"string","format":"uri","example":"my-app://brokerage/failure","description":"The redirect target that will be opened after a failed video-identification process.\n"}}},"InitiateKYCResponse":{"title":"InitiateKYCResponse","description":"An object describing a pending video-identification process.\n","required":["url","video_ident_id"],"type":"object","properties":{"url":{"title":"Web URL","type":"string","format":"uri","description":"A web URL. Use this URL to present the user with the web version for initiating the video identification process.\nFor different reasons, it may not be possible for the user to complete the video identification process on the mobile device.  In this case, it is a good idea to offer a sharing option, e.g. so they can send the link to their own email address and complete the process on a different device.  We expect these reasons (and others) to prevent the video identification process from completing:\n<ul> <li>Older devices that lack the resources (e.g. memory) to run the all of components involved at the same\n    time.\n<li>Devices that are locked down for privacy reasons. This can both be company devices under MDM (mobile\n    device management) or advanced used utiliting parental controls to block any access to the device's\n    microphone and/or camera capabilities.\n</ul>\n","example":"https://example.com/video-ident?id=123-456-789"},"video_ident_id":{"title":"Process Identifier","type":"string","description":"An identifier representing the process on the side of the video identification provider.\n"}}},"Instrument":{"title":"Instrument","description":"A summary of the instrument references in a position.","required":["isin","title"],"type":"object","properties":{"isin":{"title":"ISIN","type":"string","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument of this position.\n"},"title":{"title":"Title","type":"string","description":"The title of the instrument.\n"}},"example":{"isin":"LU1437015735","title":"Amundi Index MSCI Europe UCITS ETF DR"}},"InstrumentFundProfitModel":{"title":"Fund Profit Model","type":"string","enum":["accumulating","distributing"],"description":"A category to represent a fund's model for profit use:\n<ul> <li><code>accumulating</code> <li><code>distributing</code> </ul>\n"},"InstrumentRegulatoryInformationResponse":{"title":"InstrumentRegulatoryInformationResponse","description":"An object representing regulatory information regarding the instrument.\n","type":"object","properties":{"kid":{"title":"KID","type":"string","format":"uri","description":"The KID (Key Investor Document) for the instrument, usually only available for funds.\n"}}},"InstrumentResponse":{"title":"InstrumentResponse","description":"An object representing a financial instrument.\n","required":["isin","title","type","regulatory_information","complexity","product_category","days_to_settle","trading"],"type":"object","properties":{"isin":{"title":"ISIN","type":"string","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument of this position.\n","example":"LU1437015735"},"title":{"title":"Title","type":"string","description":"The title of the instrument.\n","example":"Amundi Index MSCI Europe UCITS ETF DR"},"type":{"$ref":"#/components/schemas/InstrumentType"},"fund_profit_model":{"$ref":"#/components/schemas/InstrumentFundProfitModel"},"total_expense_ratio_pct":{"title":"Total Expense Ratio (%)","type":"string","format":"number","description":"A number representing the total expense ratio for a fund. The value is pre-scaled, so `\"0.07\"` represents 0.07%.\n","example":"0.07"},"regulatory_information":{"$ref":"#/components/schemas/InstrumentRegulatoryInformationResponse"},"active_trading_halts":{"title":"Active Trading Halts","type":"array","items":{"$ref":"#/components/schemas/TradingHaltResponse"},"description":"A list of currently active trading halts for this instrument. Trading halts are temporarily applied by lemon.markets, and restrict buy and/or sell operations on the instrument. This field is only present when there are active trading halts. See <code>GET /instruments/{isin}</code> documentation about ISINs that can be used in the Sandbox environment to test Trading Halt scenarios.\n"},"complexity":{"$ref":"#/components/schemas/InstrumentComplexity"},"knowledge_and_experience_profile":{"$ref":"#/components/schemas/KnowledgeAndExperienceProfile"},"product_category":{"$ref":"#/components/schemas/ProductCategory"},"days_to_settle":{"title":"Days to Settle","type":"integer","minimum":0,"description":"The number of business days after the trade date on which a transaction in this instrument settles (T+n).\n","example":2},"trading":{"title":"Trading","type":"array","items":{"$ref":"#/components/schemas/TradingConfigResponse"},"description":"A list describing how this instrument can currently be traded by your account. Each entry corresponds to a single supported combination of order type and execution venue, and carries the data relevant for creating and executing that kind of order.\nAn <strong>empty list</strong> signals that orders for this instrument are currently not supported for your account.\n"}}},"InstrumentUpdateEventContext":{"properties":{"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This field represents the instrument whose data changed.\n"}},"additionalProperties":false,"type":"object","required":["instrument"],"title":"InstrumentUpdateEventContext"},"TradingHaltResponse":{"title":"TradingHaltResponse","description":"An object representing an active trading halt for an instrument.\n","required":["valid_from"],"type":"object","properties":{"valid_from":{"title":"Valid From","type":"string","format":"date-time","description":"The date and time from which the trading halt has been active.\n","example":"2024-01-15T09:30:00.000000+00:00"},"valid_to":{"title":"Valid To","type":"string","format":"date-time","description":"The date and time until which the trading halt is active. If <code>null</code>, the halt doesn't have yet a definite lifting date.\n","example":null},"side":{"$ref":"#/components/schemas/Side","description":"The side of trading that is halted. If <code>null</code>, both buy and sell operations are halted.\n"}}},"InstrumentComplexity":{"title":"Instrument Complexity","type":"string","enum":["non_complex","complex"],"description":"The instrument's complexity classification under MiFID II:\n<ul> <li><code>non_complex</code> <li><code>complex</code> </ul>\n"},"KnowledgeAndExperienceProfile":{"title":"Knowledge and Experience Profile","type":"string","enum":["basic","extended"],"description":"The minimum Knowledge &amp; Experience (K&amp;E) profile a customer must hold to purchase this instrument:\n<ul> <li><code>basic</code> <li><code>extended</code> </ul>\n"},"ProductCategory":{"title":"Product Category","type":"string","enum":["non_complex_products","structured_investment_products","swap_based_ucits_and_alternative_investment_funds"],"description":"The product category that determines which fields in a customer's knowledge and experience data are relevant when assessing whether they may trade this instrument. The values of this field are exactly the top-level keys used in the customer experience profile (<code>/accounts/{account_id}/experience</code>):\n<ul> <li><code>non_complex_products</code> <li><code>structured_investment_products</code> <li><code>swap_based_ucits_and_alternative_investment_funds</code> </ul>\n"},"TimeWithTimezone":{"title":"Time with Timezone","description":"A wall-clock time qualified with an IANA timezone name.\n","type":"object","required":["time","timezone"],"properties":{"time":{"title":"Time","type":"string","description":"A 24-hour wall-clock time, formatted as <code>HH:MM:SS</code>.\n","example":"15:30:00"},"timezone":{"title":"Timezone","type":"string","description":"The IANA timezone name that the <code>time</code> is expressed in.\n","example":"Europe/Berlin"}}},"TradingConfigResponse":{"title":"Trading Config","description":"Describes a single supported combination of order type and execution venue for an instrument, along with the additional data relevant for creating and executing that kind of order. The set of fields depends on the <code>order_type</code>.\n","oneOf":[{"$ref":"#/components/schemas/MarketTradingConfigResponse"},{"$ref":"#/components/schemas/BatchTradingConfigResponse"}],"discriminator":{"propertyName":"order_type","mapping":{"market":"#/components/schemas/MarketTradingConfigResponse","batch":"#/components/schemas/BatchTradingConfigResponse"}}},"MarketTradingConfigResponse":{"title":"Market Trading Config","description":"Trading configuration for <strong>market</strong> orders on a given venue.\n","type":"object","required":["order_type","venue","minimum_quantity"],"properties":{"order_type":{"title":"Order Type","type":"string","const":"market","description":"The supported order type. Always <code>market</code> for this variant.\n"},"venue":{"$ref":"#/components/schemas/TradingVenue"},"minimum_quantity":{"$ref":"#/components/schemas/TradingMinimumQuantity"}}},"BatchTradingConfigResponse":{"title":"Batch Trading Config","description":"Trading configuration for <strong>batch</strong> orders on a given venue, including the relevant cutoff times.\n","type":"object","required":["order_type","venue","minimum_quantity","batch_cutoff"],"properties":{"order_type":{"title":"Order Type","type":"string","const":"batch","description":"The supported order type. Always <code>batch</code> for this variant.\n"},"venue":{"$ref":"#/components/schemas/TradingVenue"},"minimum_quantity":{"$ref":"#/components/schemas/TradingMinimumQuantity"},"batch_cutoff":{"allOf":[{"$ref":"#/components/schemas/TimeWithTimezone"}],"title":"Batch Cutoff","description":"The deadline by which an order must be submitted to be included in a day's execution batch on regular trading days.\n\n<strong>Note:</strong> On certain shortened trading days an earlier cutoff may apply, which is <strong>not</strong> reflected by this value.\n"},"prefunding_cutoff":{"allOf":[{"$ref":"#/components/schemas/TimeWithTimezone"}],"title":"Prefunding Cutoff","description":"The deadline by which the customer's cash must arrive at lemon.markets for the order to be picked up for the day's execution batch. Only present when prefunding is required for this instrument.\n"}}},"TradingVenue":{"title":"Trading Venue","type":"string","enum":["TGAT","AFND"],"description":"The identifier of the execution venue where the order will be executed:\n<ul> <li><code>TGAT</code> - Tradegate Exchange <li><code>AFND</code> - Allfunds </ul>\n<strong>Note:</strong> This list is not final, expect other values to be added in the future.\n"},"TradingMinimumQuantity":{"title":"Minimum Quantity","type":"string","format":"number","description":"The smallest amount by which the order quantity may vary, as a decimal string. If this is a non-integer value, fractional trading is possible.\n<ul> <li>For <strong>sell</strong> orders, this is the smallest unit acceptable for the requested quantity. However, sell orders will still be rejected if their estimated value falls below a minimum trade value, unless they liquidate the full position. <li>For <strong>buy</strong> orders, quantity is not set directly but derived from the order amount and the execution price. If the amount is too small to reach this minimum, the order will be rejected &mdash; either immediately, or eventually, if execution did not succeed later at a different price. </ul>\n","example":"0.00001"},"InstrumentPriceResponse":{"title":"Price Response","oneOf":[{"$ref":"#/components/schemas/QuoteResponseWithType"},{"$ref":"#/components/schemas/NavResponse"}],"discriminator":{"propertyName":"type","mapping":{"nav":"#/components/schemas/NavResponse","quote":"#/components/schemas/QuoteResponseWithType"}}},"InstrumentType":{"title":"InstrumentType","enum":["etf","fund","stock"],"type":"string","description":"A category specifying the type of a financial instrument:\n<ul> <li><code>etf</code> <li><code>fund</code> <li><code>stock</code> </ul>\n<strong>Note:</strong> This list is not final, expect other values to be added in the future.\n"},"KnowledgeLevelType":{"title":"KnowledgeLevelType","enum":["none","knowledgeable"],"type":"string","description":"A category specifying the knowledge level for a specific type of instrument:\n<ul> <li><code>none</code>: The user is not knowledgeable with regards to this type of instrument. <li><code>knowledgeable</code>: The user is knowledgeable with regards to this type of instrument. </ul>\n"},"LatestPrice":{"title":"Latest Price","description":"An object representing the latest price for an instrument.\n","anyOf":[{"$ref":"#/components/schemas/QuoteLatestPrice"},{"$ref":"#/components/schemas/NavLatestPrice"}],"discriminator":{"propertyName":"type","mapping":{"quote":"#/components/schemas/QuoteLatestPrice","nav":"#/components/schemas/NavLatestPrice"}}},"QuoteLatestPrice":{"type":"object","title":"Quote Latest Price","description":"The latest market quote price for an instrument.\n","properties":{"amount":{"type":"string","title":"Amount","description":"The latest price for a security.  Use the instrument's `currency` to interpret this value.\n"},"type":{"$ref":"#/components/schemas/PriceType"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The timestamp when the quote price was last updated.\n"}},"required":["amount","type","updated_at"]},"NavLatestPrice":{"type":"object","title":"NAV Latest Price","description":"The latest NAV (Net Asset Value) price for an instrument.\n","properties":{"amount":{"type":"string","title":"Amount","description":"The latest price for a security.  Use the instrument's `currency` to interpret this value.\n"},"type":{"$ref":"#/components/schemas/PriceType"},"valuation_date":{"type":"string","format":"date","title":"Valuation Date","description":"The date for which the NAV (Net Asset Value) price is valid.\n"}},"required":["amount","type","valuation_date"]},"LegalRepresentativeRequest":{"properties":{"person":{"type":"string","maxLength":255,"minLength":1,"title":"Person","description":"A person identifier. This field represents the person being a legal representative.\n"},"representation_rule":{"$ref":"#/components/schemas/RepresentationRule"}},"type":"object","required":["person","representation_rule"],"title":"LegalRepresentativeRequest"},"LegalRepresentativeResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"An identifier for the legal representative.\n"},"person":{"type":"string","title":"Person","description":"A person identifier. This field represents the person being a legal representative.\n"},"representation_rule":{"$ref":"#/components/schemas/RepresentationRule"}},"type":"object","required":["id","person","representation_rule"],"title":"LegalRepresentativeResponse"},"MaritalStatus":{"title":"MaritalStatus","enum":["single","married","unknown"],"type":"string","description":"A simple category describing a user's marital status:\n<ul> <li><code>single</code>: The user is not married (can include divorced). <li><code>married</code>: The user is married or in a legally equivalent status (e.g. German “Eingetragene Partnerschaft”). <li><code>unknown</code>: This information is unknown/unspecified. </ul>\nWidowed people may pick one or the other. Which one depends on whether the former marriage still has an effect on the tax status.\n"},"NavResponse":{"properties":{"type":{"$ref":"#/components/schemas/PriceType"},"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"The currency for quoted prices. The currency will be represented using a three letter ISO 4217 currency code. At the moment, we will only return \"EUR\" as a currency.\n"},"price":{"type":"string","title":"Price","description":"The net asset value (NAV) for the instrument.\n"},"valuation_date":{"type":"string","format":"date","title":"Valuation Date","description":"The date of the NAV valuation.\n"}},"type":"object","required":["currency","instrument","price","type","valuation_date"],"title":"NavResponse"},"CheckType":{"title":"CheckType","enum":["address_validation","authenticator_enrollment","authenticator_reset","identity_verification","risk_assessment","submit_document","tin_validation","positions","cash_balance","overdue_fees"],"type":"string","description":"The type of an account check:\n<ul> <li><code>address_validation</code> <li><code>authenticator_enrollment</code> <li><code>authenticator_reset</code> <li><code>identity_verification</code> <li><code>risk_assessment</code> <li><code>submit_document</code> <li><code>tin_validation</code> <li><code>positions</code>: sell all open positions before the account can be closed. <li><code>cash_balance</code>: withdraw remaining cash balance before the account can be closed. <li><code>overdue_fees</code>: settle overdue fees before the account can be closed. </ul>\n"},"OrderDataRequest":{"properties":{"type":{"$ref":"#/components/schemas/WorkflowOrderType"},"side":{"$ref":"#/components/schemas/Side"},"instrument":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166.  The ISIN specifies the instrument for the order.\n"},"securities_account":{"type":"string","title":"Securities Account Identifier","description":"A securities account identifier.  Use this property to specify the securities account for order execution and settlement.  If the customer has only one securities account, this property is optional.  If the customer has more than one securities account, this property is required.\n"},"amount":{"type":"string","format":"number","exclusiveMinimum":0,"title":"Amount","description":"The amount of money to invest with each order.\n"},"fees":{"$ref":"#/components/schemas/FeesRequest","description":"The fees that will be charged by lemon.markets on your behalf for each order.  Specify either a fixed amount with `base_amount` or a percentage of the order amount with `pct`, but not both.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the `fees.base_amount` and `amount` listed here. The only currently available currency is `\"EUR\"`.\n"}},"type":"object","required":["type","side","instrument","amount","fees","currency"],"description":"An object describing an order to be created as the result of a workflow action.\n","title":"OrderDataRequest"},"OrderDataResponse":{"properties":{"type":{"$ref":"#/components/schemas/WorkflowOrderType"},"side":{"$ref":"#/components/schemas/Side"},"instrument":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166.  The ISIN specifies the instrument for the order.\n"},"securities_account":{"type":"string","title":"Securities Account Identifier","description":"A securities account identifier.  Use this property to specify the securities account for order execution and settlement.  If the customer has only one securities account, this property is optional.  If the customer has more than one securities account, this property is required.\n"},"amount":{"type":"string","format":"number","title":"Amount","description":"The amount of money to invest with each order.\n"},"fees":{"$ref":"#/components/schemas/FeesResponse"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the `fees.base_amount` and `amount` listed here. The only currently available currency is `\"EUR\"`.\n"}},"type":"object","required":["type","side","instrument","amount","fees","currency"],"title":"OrderDataResponse","description":"An object describing an order to be created as the result of a workflow action.\n"},"OrderDocumentEventContext":{"properties":{"account":{"type":"string","title":"Account"},"document":{"type":"string","title":"Document"},"batch_order":{"type":"string","title":"Batch Order"},"order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"}},"additionalProperties":false,"type":"object","required":["account","document","batch_order"],"title":"OrderDocumentEventContext"},"OrderEventContext":{"properties":{"account":{"type":"string","title":"Account"},"order":{"type":"string","title":"Order"}},"additionalProperties":false,"type":"object","required":["account","order"],"title":"OrderEventContext"},"TradeEventContext":{"properties":{"account":{"type":"string","title":"Account"},"securities_account":{"type":"string","title":"Securities Account"},"trade":{"type":"string","title":"Trade"},"order":{"type":"string","title":"Order"}},"additionalProperties":false,"type":"object","required":["account","securities_account","trade","order"],"title":"TradeEventContext"},"Ordering":{"title":"Ordering","enum":["asc","desc"],"type":"string","description":"A category representing a sort order:\n<ul> <li><code>asc</code>: Sort elements in descending order. For timestamp based sorting this means starting with\n    oldest element and then moving forward in time.\n<li><code>desc</code>: Sort elements in descending order. For timestamp based sorting this means starting with\n    most recent element and then going further back in time.\n</ul>\n"},"OrderResponse":{"properties":{"id":{"type":"string","title":"Order Identifier","description":"The unique identifier for this order.\n"},"side":{"$ref":"#/components/schemas/Side"},"type":{"$ref":"#/components/schemas/OrderType"},"workflow":{"type":"string","title":"Workflow Identifier","description":"A reference to the workflow that created this order.  If the order has not been created using a workflow, the property will not be set.\n"},"instrument":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument to be bought/sold.\n"},"amount":{"type":"string","format":"number","title":"Amount","description":"The amount of cash for a buy order, `null` for a sell order.\n**NOTE:** We may evolve the API to allow quantity-based buy orders and amount-based sell orders. We do not recommend to rely on the current behavior.\n"},"quantity":{"type":"string","format":"number","title":"Quantity","description":"The quantity of shares for a sell order, `null` for a buy order.\n**NOTE:** We may evolve the API to allow quantity-based buy orders and amount-based sell orders. We do not recommend to rely on the current behavior.\n"},"fee":{"type":"string","format":"number","minimum":0,"title":"Fee","description":"The fee that will be charged by lemon.markets on your behalf.\n"},"fees":{"$ref":"#/components/schemas/FeesResponse"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the `fee`, `fees.base_amount` and `amount` listed here. The only currently available currency is `\"EUR\"`.\n"},"history":{"items":{"$ref":"#/components/schemas/StatusChangeResponse"},"type":"array","title":"History"},"regulatory_disclosures":{"$ref":"#/components/schemas/broker__apps__api__types__RegulatoryDisclosureResponse"},"appropriateness_check":{"$ref":"#/components/schemas/AppropriatenessConsentResponse"},"sca":{"$ref":"#/components/schemas/StrongCustomerAuthenticationRequest"},"securities_account":{"type":"string","title":"Securities Account","description":"A securities account identifier.  This property indicates the securities account used for order execution and settlement.\n"}},"type":"object","required":["id","side","type","instrument","fee","fees","currency"]},"OrderStatus":{"type":"string","enum":["accepted","canceled","canceling","confirmed","created","executed","rejected"],"title":"OrderStatus","description":"A category representing the state of an order:\n<ul> <li><code>accepted</code> <li><code>canceled</code> <li><code>canceling</code> <li><code>confirmed</code> <li><code>created</code> <li><code>executed</code> <li><code>rejected</code> </ul>\n"},"OrderRejectionReason":{"type":"string","enum":["insufficient_buying_power","insufficient_available_securities","insufficient_order_amount","rejected_by_exchange","manual_rejection","unknown"],"title":"Order rejection reason","description":"The reason why an order was rejected. Only populated when the order status is `rejected`.\n<ul> <li><code>insufficient_buying_power</code> - Customer does not have enough buying power for buy order</li> <li><code>insufficient_available_securities</code> - Customer does not have enough available securities for sell order</li> <li><code>insufficient_order_amount</code> - Order amount is not enough to buy at least one unit of the instrument</li> <li><code>rejected_by_exchange</code> - Order was rejected by the exchange</li> <li><code>manual_rejection</code> - Order was manually rejected</li> <li><code>unknown</code> - Rejection reason could not be determined</li> </ul>\n","example":"insufficient_buying_power"},"OrderTradeDocumentEventContext":{"properties":{"account":{"type":"string","title":"Account"},"document":{"type":"string","title":"Document"},"batch_order":{"type":"string","title":"Batch Order"},"order":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Order"},"trade":{"type":"string","title":"Trade"},"transaction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transaction"}},"additionalProperties":false,"type":"object","required":["account","document","batch_order","trade"],"title":"OrderTradeDocumentEventContext"},"OrderType":{"type":"string","enum":["batch","market"],"title":"OrderType","description":"A category describing an order type:\n<ul> <li><code>batch</code>: A batch order.  Batch orders are collected for all customers and executed on the market as one composite order. <li><code>market</code>: A market order.  Market orders are executed immediately at the current market price. </ul>\n"},"WorkflowOrderType":{"type":"string","enum":["batch"],"title":"WorkflowOrderType","description":"The order type for a scheduled workflow.  Only <code>batch</code> is supported: orders created by workflows are collected across customers and executed as one composite order.  (Market orders are not available for scheduled workflows.)\n"},"OrderWorkflowEventContext":{"properties":{"account":{"type":"string","title":"Account"},"order":{"type":"string","title":"Order"},"workflow":{"type":"string","title":"Workflow"}},"additionalProperties":false,"type":"object","required":["account","order","workflow"],"title":"OrderWorkflowEventContext"},"PersonDataUpdateEventContext":{"properties":{"person":{"type":"string","title":"Person","description":"A person identifier. This field represents the person associated with a data update request event.\n"},"update":{"type":"string","title":"Update","description":"A person data update request identifier. This field represents the update request associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["person","update"],"title":"PersonDataUpdateEventContext"},"Page_BatchOrderResponse_":{"title":"Page of BatchOrderResponse","properties":{"data":{"items":{"$ref":"#/components/schemas/BatchOrderResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["data","pagination"]},"Page_CustomerAccountCheckResponse_":{"title":"Page of CustomerAccountCheckResponse","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","description":"The elements of the response.\n","type":"array","items":{"$ref":"#/components/schemas/CustomerAccountCheckResponse"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"Page_CustomerAccountResponse_":{"title":"Page of CustomerAccountResponse","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","description":"The elements of the response.\n","type":"array","items":{"$ref":"#/components/schemas/CustomerAccountResponse"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"Page_CustomerWorkflowResponse_":{"title":"Page of CustomerWorkflowResponse","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","description":"The elements of the response.\n","type":"array","items":{"$ref":"#/components/schemas/CustomerWorkflowResponse"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"Page_DocumentResponse_":{"title":"Page of DocumentResponse","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","description":"The elements of the response.\n","type":"array","items":{"$ref":"#/components/schemas/DocumentResponse"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"Page_EventExternal_":{"title":"Page[EventExternal]","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","description":"The elements of the response.\n","type":"array","items":{"$ref":"#/components/schemas/EventExternal"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"Page_InstrumentResponse_":{"title":"Page of InstrumentResponse","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","description":"The elements of the response.\n","type":"array","items":{"$ref":"#/components/schemas/InstrumentResponse"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"Page_SettlementAccountTransactionResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SettlementAccountTransactionResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["data","pagination"],"title":"Page[SettlementAccountTransactionResponse]"},"Page_SweepResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SweepResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["data","pagination"],"title":"Page[SweepResponse]"},"Page_TradeResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TradeResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["data","pagination"],"title":"Page of TradeResponse"},"Page_Transaction_":{"title":"Page of Transaction","properties":{"data":{"title":"Data","description":"The elements of the response.\n","items":{"$ref":"#/components/schemas/Transaction"},"type":"array"},"pagination":{"$ref":"#/components/schemas/Pagination"}},"type":"object","required":["data","pagination"]},"Page_Webhook_":{"title":"Page of Webhook","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","description":"The elements of the response.\n","type":"array","items":{"$ref":"#/components/schemas/Webhook"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}},"ConfirmPaymentInstrumentMandateRequest":{"properties":{"sca":{"$ref":"#/components/schemas/PaymentInstrumentMandateScaRequest"}},"type":"object","title":"ConfirmPaymentInstrumentMandateRequest"},"CreatePaymentInstrumentMandateRequest":{"properties":{"type":{"type":"string","const":"sepa_direct_debit","title":"Type","description":"The payment method of the mandate.  Only <code>sepa_direct_debit</code> is supported.\n"},"debtor":{"$ref":"#/components/schemas/PaymentInstrumentMandateDebtorRequest"}},"type":"object","required":["type","debtor"],"title":"CreatePaymentInstrumentMandateRequest"},"EncodedPaginatedCollectionResponse_PaymentInstrumentMandateResponse_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PaymentInstrumentMandateResponse"},"type":"array","title":"Data","description":"The elements of the response.\n"},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}},"type":"object","required":["data","pagination"],"title":"EncodedPaginatedCollectionResponse[PaymentInstrumentMandateResponse]"},"PaymentInstrumentMandateCreditorAddressResponse":{"properties":{"line_1":{"type":"string","title":"Line 1","example":"Prinzessinnenstrasse 19-20"},"line_2":{"type":"string","title":"Line 2","description":"Omitted when not available.\n"},"postal_code":{"type":"string","title":"Postal Code","example":"10969"},"city":{"type":"string","title":"City","example":"Berlin"},"country":{"type":"string","title":"Country","description":"An ISO 3166-1 alpha-2 country code.\n","example":"DE"}},"type":"object","required":["line_1","postal_code","city","country"],"title":"PaymentInstrumentMandateCreditorAddressResponse"},"PaymentInstrumentMandateCreditorResponse":{"description":"lemon.markets as the collecting party, as it must be presented to the customer.\n","properties":{"identifier":{"type":"string","title":"Identifier","description":"The SEPA Creditor Identifier.\n","example":"DE98ZZZ09999999999"},"name":{"type":"string","title":"Name","example":"lemon.markets brokerage GmbH"},"address":{"$ref":"#/components/schemas/PaymentInstrumentMandateCreditorAddressResponse"}},"type":"object","required":["identifier","name","address"],"title":"PaymentInstrumentMandateCreditorResponse"},"PaymentInstrumentMandateDebtorRequest":{"description":"The customer's bank account that the mandate authorizes collections from.\n","properties":{"iban":{"type":"string","title":"IBAN","description":"The IBAN of the debtor account.  It must be a SEPA IBAN.\n","example":"DE02120300000000202051"},"bic":{"type":"string","title":"BIC","description":"The BIC of the debtor account.\n","example":"BYLADEM1001"},"account_holder_name":{"type":"string","maxLength":70,"minLength":1,"pattern":"^[A-Za-z0-9/\\-?:().,'+ ]+$","title":"Account Holder Name","description":"The name of the account holder, in the SEPA Latin character set.\n","example":"Erika Mustermann"}},"type":"object","required":["iban","bic","account_holder_name"],"title":"PaymentInstrumentMandateDebtorRequest"},"PaymentInstrumentMandateDebtorResponse":{"description":"The customer's bank account that the mandate authorizes collections from.\n","properties":{"iban":{"type":"string","title":"IBAN","example":"DE02120300000000202051"},"bic":{"type":"string","title":"BIC","description":"Omitted when not available.\n","example":"BYLADEM1001"},"account_holder_name":{"type":"string","title":"Account Holder Name","example":"Erika Mustermann"}},"type":"object","required":["iban","account_holder_name"],"title":"PaymentInstrumentMandateDebtorResponse"},"PaymentInstrumentMandateEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"payment_instrument_mandate":{"type":"string","title":"Payment Instrument Mandate","description":"A payment instrument mandate identifier. This field represents the payment instrument mandate associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","payment_instrument_mandate"],"title":"PaymentInstrumentMandateEventContext"},"PaymentInstrumentMandateResponse":{"description":"The customer's authorization to collect SEPA Direct Debits from one bank account.  A mandate cannot be used for collections until it is confirmed.\n","properties":{"id":{"type":"string","title":"Identifier","description":"An identifier for the payment instrument mandate.\n","example":"pinst_mand_f3a42ba00cb84618a549d975662c90b3"},"type":{"$ref":"#/components/schemas/PaymentInstrumentMandateType"},"mandate_reference":{"type":"string","title":"Mandate Reference","description":"The unique mandate reference, assigned by lemon.markets.\n","example":"LM0A1B2C3D4E5F6G7H8J9K"},"debtor":{"$ref":"#/components/schemas/PaymentInstrumentMandateDebtorResponse"},"creditor":{"$ref":"#/components/schemas/PaymentInstrumentMandateCreditorResponse"},"sca":{"$ref":"#/components/schemas/PaymentInstrumentMandateScaResponse"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_PaymentInstrumentMandateStatus_"},"type":"array","title":"History","description":"The status changes of the mandate, newest first.  The current status is the first entry.\n"}},"type":"object","required":["id","type","mandate_reference","debtor","creditor","history"],"title":"PaymentInstrumentMandateResponse"},"PaymentInstrumentMandateScaRequest":{"description":"The proof of Strong Customer Authentication.  Required when the mandate was created with <code>sca.required</code> = <code>true</code>.\n","properties":{"client_credential_id":{"type":"string","minLength":1,"maxLength":255,"title":"Client Credential Identifier","description":"The credential of the customer's registered authenticator.\n","example":"cred_950eecf22d3b493b9fb47de80775ee16"},"signature":{"type":"string","maxLength":2048,"title":"Signature","description":"The customer's signature over <code>sca.challenge</code>, base64url encoded.  Capped at 2048 characters to accommodate an RSA-4096 signature.\n","example":"MEUCIQ..."}},"type":"object","required":["client_credential_id","signature"],"title":"PaymentInstrumentMandateScaRequest"},"PaymentInstrumentMandateScaResponse":{"description":"The Strong Customer Authentication configuration of the mandate.  Only present while the mandate has status <code>created</code>.\n","properties":{"required":{"type":"boolean","title":"Required","description":"Whether confirming the mandate requires a signed challenge.\n"},"challenge":{"type":"string","title":"Challenge","description":"The challenge the customer signs with a registered authenticator.  Only present when <code>required</code> is <code>true</code>.\n","example":"K7_yR-7ZpTqgeWQ4-bx7Kg=="}},"type":"object","required":["required"],"title":"PaymentInstrumentMandateScaResponse"},"PaymentInstrumentMandateStatus":{"type":"string","enum":["canceled","confirmed","created","rejected"],"description":"A category representing the status of a payment instrument mandate:\n<ul> <li><code>canceled</code>: The mandate was canceled by the customer and can no longer be used. <li><code>confirmed</code>: The mandate was confirmed and can be used for collections. <li><code>created</code>: The mandate was created and awaits confirmation. <li><code>rejected</code>: lemon.markets decided that the mandate cannot be confirmed or can no longer be used. </ul>\n","title":"PaymentInstrumentMandateStatus"},"PaymentInstrumentMandateType":{"type":"string","enum":["sepa_direct_debit"],"description":"A category representing the payment method of a payment instrument mandate:\n<ul> <li><code>sepa_direct_debit</code>: A SEPA Direct Debit (Core) mandate for recurrent collections. </ul>\n","title":"PaymentInstrumentMandateType"},"StatusChange_PaymentInstrumentMandateStatus_":{"properties":{"status":{"$ref":"#/components/schemas/PaymentInstrumentMandateStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the payment instrument mandate was updated.\n","example":"2026-10-19T09:15:00.123456+00:00"}},"type":"object","required":["status","timestamp"],"title":"StatusChange of PaymentInstrumentMandateStatus"},"Pagination":{"title":"Pagination","type":"object","properties":{"next_cursor":{"title":"Cursor for Next Page","type":"string","description":"When fetching long lists of elements, you can use our pagination feature to fetch batches of data.  If a response contains the property `pagination.next_cursor`, you can pass its value via the query item `cursor` to generate the request for the next batch of data.\n"}},"description":"Information about accessing elements beyond the ones that were returned.\n","example":{"next_cursor":"<opaque-data>"}},"PartnerTreasuryFeesResponse":{"properties":{"id":{"title":"Id","type":"string","description":"Unique identifier for the aggregated partner treasury fee."},"instrument":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) that uniquely identifies the instrument related to the fee, following ISO 6166.\n"},"total_fee_amount":{"type":"string","title":"Total Fee Amount","description":"Total amount of fees aggregated for the billing period."},"currency":{"type":"string","title":"Currency","description":"Three-letter ISO 4217 currency code (e.g., \"USD\", \"EUR\")."},"billing_period":{"$ref":"#/components/schemas/BillingPeriod","description":"Billing period information, including date range and billing month."}},"type":"object","required":["id","instrument","total_fee_amount","currency","billing_period"],"title":"PartnerTreasuryFeesResponse"},"PaymentTransactionDataResponse":{"properties":{"type":{"type":"string","enum":["payment"],"const":"payment","title":"Type","default":"payment"},"reference":{"type":"string","title":"Reference"},"sender_iban":{"type":"string","title":"Sender Iban"},"recipient_iban":{"type":"string","title":"Recipient Iban"},"booking_date":{"type":"string","format":"date","title":"Booking Date"}},"type":"object","required":["reference","sender_iban","recipient_iban","booking_date"],"title":"PaymentTransactionDataResponse"},"PendingCheckAction":{"title":"PendingCheckAction","description":"An object representing the requirement for proof of address.\n","properties":{"type":{"title":"Type","type":"string","enum":["proof_of_address","tax_identification"],"description":"A type value indicating the type of action:\n<ul> <li><code>proof_of_address</code> <li><code>tax_identification</code> </ul>\n"},"due_date":{"type":"string","format":"date","title":"Due Date","description":"The date by which this action has to be completed to avoid limitations on account capabilities.\n"}},"type":"object","required":["type","due_date"]},"PersonIdentificationMethod":{"type":"string","const":"kyc_reliance","title":"PersonIdentificationMethod","description":"A category representing the identification method used.\n<ul> <li><code>kyc_reliance</code>:  Use this for KYC reliance implementations. </ul>\n"},"PersonIdentificationStatus":{"type":"string","enum":["created","failed","started","succeeded"],"title":"PersonIdentificationStatus","description":"A category representing the status on a person identification process.\n<ul> <li><code>created</code> <li><code>failed</code> <li><code>started</code> <li><code>succeeded</code> </ul>\n"},"PersonRequest":{"properties":{"firstname":{"type":"string","maxLength":100,"minLength":1,"title":"First Name","example":"Erika","description":"A string describing the person's first name.\n"},"lastname":{"type":"string","maxLength":100,"minLength":1,"title":"Lastname","example":"Mustermann","description":"A string describing the person's lastname.\n"},"date_of_birth":{"type":"string","format":"date","title":"Date Of Birth","description":"A string describing the day of birth, like `\"1964-08-13\"`.\n","example":"1964-08-13"},"birth_name":{"type":"string","maxLength":100,"minLength":1,"title":"Birth Name","example":"Schmidt","description":"The person's last name at birth (Geburtsname), if it is different from <code>lastname</code>.\n"},"gender":{"$ref":"#/components/schemas/Gender","description":"The person's gender.  If not set, the gender is <code>unknown</code>.\n"},"registered_address":{"$ref":"#/components/schemas/AddressRequest","description":"The person's registered address.  Required for persons without roles.  Not required for persons with only subsidy application roles.\n"},"nationalities":{"items":{"type":"string","maxLength":2,"minLength":2},"type":"array","minItems":1,"title":"Nationalities","description":"A **complete** list of ISO 3166-1 alpha-2 codes, representing each country related to a user's\nnationalities/citizenships.  It is important for this data point to be complete.\n\nThis field is required when creating individual account.\n","example":["DE"]},"email":{"type":"string","format":"email","title":"Email","description":"A verified email address to contact the user.  This email address must match the one you have on record for the user.\n","example":"erika.mustermann@example.com"},"phone_number":{"type":"string","maxLength":45,"minLength":1,"title":"Mobile Phone Number","description":"A mobile phone number, including the country calling code.\n\nThis field is required when creating individual account.\n","example":"+49172997318"},"place_of_birth":{"$ref":"#/components/schemas/BusinessPersonPlaceOfBirthRequest","description":"An object representing a place of birth.\n\nThis field is required when creating individual account, and for the role\n`subsidy_application.spouse`. For the spouse, `city` is required and `country` is optional.\nFor other persons, `country` is required when this object is provided.\n"},"tax_residencies":{"items":{"$ref":"#/components/schemas/TaxResidency"},"type":"array","minItems":1,"title":"Tax Residencies","description":"A list of a person's tax residencies. It is important for this data point to be complete.\n\nThis field is required when creating individual account.  For the roles `subsidy_application.spouse`\nand `subsidy_application.child`, at least one entry with a `tax_identification_number` is required.\n"},"social_security_number":{"type":"string","minLength":12,"maxLength":12,"pattern":"^[0-9A-Z]{12}$","title":"Social Security Number","example":"65210366S011","description":"The person's German social security number (Sozialversicherungsnummer or Rentenversicherungsnummer), or the subsidy number (Zulagenummer) if the person has no social security number.  Exactly 12 characters, uppercase letters and digits only. Optional, also for the subsidy application roles.\n"},"roles":{"items":{"$ref":"#/components/schemas/PersonRole"},"type":"array","uniqueItems":true,"title":"Roles","description":"What the person is created for.  The roles decide which fields are required, see <a href=\"https://developer.lemon.markets/reference/create_person-1\" target=\"_blank\">Create Person</a>. If not set, the person has no roles.  Roles can only be set when the person is created.\n","example":["subsidy_application.spouse"]},"accepted_agreements":{"title":"Accepted Agreements","description":"A list of legal agreements that have been accepted by the person.  For persons without roles, this field is required if your account configuration requires agreements.  Persons with only subsidy application roles cannot accept agreements: the request is rejected with a <code>400</code>.\n","items":{"$ref":"#/components/schemas/broker__apps__api__endpoints__agreements__AgreementAcceptanceRequest"},"type":"array","maxItems":1,"minItems":1}},"type":"object","required":["firstname","lastname","date_of_birth"],"title":"PersonRequest"},"PersonResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"The identifier representing this person.\n"},"type":{"$ref":"#/components/schemas/PersonType"}},"type":"object","required":["id","type"],"title":"PersonResponse","description":"An object representing a person to be verified.\n"},"broker__apps__api__endpoints__persons__PersonResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"The identifier representing this person.\n"},"firstname":{"type":"string","title":"First Name","description":"A string describing the person's first name.\n"},"lastname":{"type":"string","title":"Lastname","description":"A string describing the person's lastname.\n"},"date_of_birth":{"type":"string","format":"date","title":"Date of Birth","description":"A string describing the day of birth, like `\"1964-08-13\"`.\n"},"birth_name":{"type":"string","title":"Birth Name","description":"The person's last name at birth (Geburtsname), if it is different from <code>lastname</code>.\n"},"gender":{"$ref":"#/components/schemas/Gender"},"registered_address":{"$ref":"#/components/schemas/Address","description":"The person's registered address.  Not returned for persons with only subsidy application roles that were created without an address.\n"},"roles":{"items":{"$ref":"#/components/schemas/PersonRole"},"type":"array","title":"Roles","description":"What the person was created for.  Empty for persons without roles.\n"},"social_security_number":{"type":"string","minLength":12,"maxLength":12,"title":"Social Security Number","description":"The person's German social security number (Sozialversicherungsnummer or Rentenversicherungsnummer), or the subsidy number (Zulagenummer).\n"},"nationalities":{"items":{"type":"string","maxLength":2,"minLength":2},"type":"array","title":"Nationalities","description":"A **complete** list of ISO 3166-1 alpha-2 codes, representing each country related to a user's nationalities/citizenships.  It is important for this data point to be complete.\n"},"email":{"type":"string","title":"Email","description":"A verified email address to contact the user.  This email address must match the one you have on record for the user.\n"},"phone_number":{"type":"string","title":"Phone Number","description":"A mobile phone number, including the country calling code.\n","example":"+49172997318"},"place_of_birth":{"$ref":"#/components/schemas/PlaceOfBirthRequest"},"tax_residencies":{"items":{"$ref":"#/components/schemas/TaxResidency"},"type":"array","title":"Tax Residencies","description":"A **complete** list of all of a user's tax residencies.  It is important for this data point to be complete.\n"}},"type":"object","required":["id","firstname","lastname","date_of_birth","gender","roles"],"title":"PersonResponse"},"PersonType":{"type":"string","const":"customer","title":"PersonType","description":"A category representing the relationship of a person to an account.\n<ul> <li><code>customer</code> </ul>\n"},"PersonRole":{"title":"PersonRole","type":"string","enum":["subsidy_application.spouse","subsidy_application.child"],"description":"What a person is created for.  Each role has its own required fields.\n<ul> <li><code>subsidy_application.spouse</code>: the spouse or registered partner in a subsidy application. <li><code>subsidy_application.child</code>: a child in a subsidy application. </ul>\n<strong>Preview:</strong> These roles are a preview API and may change without a deprecation period.\n"},"PersonDataUpdateAnnotatedResponse":{"title":"PersonDataUpdateAnnotatedResponse","description":"A change to one data point of a person.  <code>type</code> says which data point changes.  The object holds only the new value of that data point, and the status history of the change.\n","oneOf":[{"$ref":"#/components/schemas/PersonDataUpdateBirthNameResponse"},{"$ref":"#/components/schemas/PersonDataUpdateEmailResponse"},{"$ref":"#/components/schemas/PersonDataUpdateEmploymentResponse"},{"$ref":"#/components/schemas/PersonDataUpdatePhoneNumberResponse"},{"$ref":"#/components/schemas/PersonDataUpdateRegisteredAddressResponse"},{"$ref":"#/components/schemas/PersonDataUpdateSocialSecurityNumberResponse"},{"$ref":"#/components/schemas/PersonDataUpdateTaxResidenciesResponse"}],"discriminator":{"propertyName":"type","mapping":{"birth_name":"#/components/schemas/PersonDataUpdateBirthNameResponse","email":"#/components/schemas/PersonDataUpdateEmailResponse","employment":"#/components/schemas/PersonDataUpdateEmploymentResponse","phone_number":"#/components/schemas/PersonDataUpdatePhoneNumberResponse","registered_address":"#/components/schemas/PersonDataUpdateRegisteredAddressResponse","social_security_number":"#/components/schemas/PersonDataUpdateSocialSecurityNumberResponse","tax_residencies":"#/components/schemas/PersonDataUpdateTaxResidenciesResponse"}}},"PersonDataUpdateEmailResponse":{"title":"PersonDataUpdateEmailResponse","description":"A change to the email address of a person.\n","type":"object","required":["id","type","email","history"],"properties":{"id":{"type":"string","title":"Update Identifier","description":"A unique identifier for the person data update request.\n","example":"upd_4ffa7b6928e6466ba8c13badb49f8add"},"type":{"type":"string","const":"email","title":"Type","description":"The discriminator identifying this as an email update.\n"},"email":{"type":"string","format":"email","title":"Email","description":"The new email address for the person.\n","example":"newemail@example.com"},"history":{"type":"array","title":"History","description":"A chronological list of status changes for this update request.\n","items":{"$ref":"#/components/schemas/StatusChange_PersonDataUpdateRequestStatus_"}}}},"PersonDataUpdatePhoneNumberResponse":{"title":"PersonDataUpdatePhoneNumberResponse","description":"A change to the phone number of a person.\n","type":"object","required":["id","type","number","history"],"properties":{"id":{"type":"string","title":"Update Identifier","description":"A unique identifier for the person data update request.\n","example":"upd_4ffa7b6928e6466ba8c13badb49f8add"},"type":{"type":"string","const":"phone_number","title":"Type","description":"The discriminator identifying this as a phone number update.\n"},"number":{"type":"string","minLength":1,"maxLength":45,"title":"Phone Number","description":"The new phone number for the person in [E.164](https://www.itu.int/rec/T-REC-E.164) format: a leading `+`, the country calling code and the subscriber number, with no spaces or separators (for example `+49172997319`).\n","example":"+49172997319"},"history":{"type":"array","title":"History","description":"A chronological list of status changes for this update request.\n","items":{"$ref":"#/components/schemas/StatusChange_PersonDataUpdateRequestStatus_"}}}},"PersonDataUpdateRegisteredAddressResponse":{"title":"PersonDataUpdateRegisteredAddressResponse","description":"A change to the registered address of a person.\n","type":"object","required":["id","type","line_1","postal_code","city","country","history"],"properties":{"id":{"type":"string","title":"Update Identifier","description":"A unique identifier for the person data update request.\n","example":"upd_4ffa7b6928e6466ba8c13badb49f8add"},"type":{"type":"string","const":"registered_address","title":"Type","description":"The discriminator identifying this as a registered address update.\n"},"line_1":{"type":"string","maxLength":255,"title":"Address Line 1","description":"The first line of the address, typically containing the street name and number.\n","example":"Neue Straße 1"},"line_2":{"type":"string","maxLength":255,"title":"Address Line 2","description":"An optional second line of the address, for additional address details.\n"},"postal_code":{"type":"string","maxLength":20,"title":"Postal Code","description":"The postal code or ZIP code of the address.\n","example":"10115"},"city":{"type":"string","maxLength":255,"title":"City","description":"The city or municipality of the address.\n","example":"Berlin"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","description":"An ISO 3166-1 alpha-2 code representing the country of the address.\n","example":"DE"},"history":{"type":"array","title":"History","description":"A chronological list of status changes for this update request.\n","items":{"$ref":"#/components/schemas/StatusChange_PersonDataUpdateRequestStatus_"}}}},"PersonDataUpdateEmploymentResponse":{"title":"PersonDataUpdateEmploymentResponse","description":"A change to the employment information of a person.\n","type":"object","required":["id","type","status","annual_salary","sector","history"],"properties":{"id":{"type":"string","title":"Update Identifier","description":"A unique identifier for the person data update request.\n","example":"upd_4ffa7b6928e6466ba8c13badb49f8add"},"type":{"type":"string","const":"employment","title":"Type","description":"The discriminator identifying this as an employment information update.\n"},"status":{"$ref":"#/components/schemas/EmploymentStatus"},"annual_salary":{"$ref":"#/components/schemas/AnnualSalary"},"sector":{"$ref":"#/components/schemas/IndustrySector"},"history":{"type":"array","title":"History","description":"A chronological list of status changes for this update request.\n","items":{"$ref":"#/components/schemas/StatusChange_PersonDataUpdateRequestStatus_"}}}},"PersonDataUpdateTaxResidenciesResponse":{"title":"PersonDataUpdateTaxResidenciesResponse","description":"A change to the tax residencies (self-declared TINs) of a person.\n","type":"object","required":["id","type","residencies","history"],"properties":{"id":{"type":"string","title":"Update Identifier","description":"A unique identifier for the person data update request.\n","example":"upd_4ffa7b6928e6466ba8c13badb49f8add"},"type":{"type":"string","const":"tax_residencies","title":"Type","description":"The discriminator identifying this as a tax residency update.\n"},"residencies":{"title":"Tax Residencies","type":"array","description":"The complete list of tax residencies and TINs for the person.\n","items":{"$ref":"#/components/schemas/PersonDataUpdateTaxResidency"}},"history":{"type":"array","title":"History","description":"A chronological list of status changes for this update request.\n","items":{"$ref":"#/components/schemas/StatusChange_PersonDataUpdateRequestStatus_"}}}},"PersonDataUpdateSocialSecurityNumberResponse":{"title":"PersonDataUpdateSocialSecurityNumberResponse","description":"A change to the social security number or subsidy number (Zulagenummer) of a person.\n","type":"object","required":["id","type","social_security_number","history"],"properties":{"id":{"type":"string","title":"Update Identifier","description":"A unique identifier for the person data update request.\n","example":"upd_4ffa7b6928e6466ba8c13badb49f8add"},"type":{"type":"string","const":"social_security_number","title":"Type","description":"The discriminator identifying this as a social security number update.\n"},"social_security_number":{"type":"string","minLength":12,"maxLength":12,"pattern":"^[0-9A-Z]{12}$","title":"Social Security Number","description":"The new social security number or subsidy number (Zulagenummer) of the person.\n","example":"65210366S011"},"history":{"type":"array","title":"History","description":"A chronological list of status changes for this update request.\n","items":{"$ref":"#/components/schemas/StatusChange_PersonDataUpdateRequestStatus_"}}}},"PersonDataUpdateBirthNameResponse":{"title":"PersonDataUpdateBirthNameResponse","description":"A change to the birth name of a person.\n","type":"object","required":["id","type","birth_name","history"],"properties":{"id":{"type":"string","title":"Update Identifier","description":"A unique identifier for the person data update request.\n","example":"upd_4ffa7b6928e6466ba8c13badb49f8add"},"type":{"type":"string","const":"birth_name","title":"Type","description":"The discriminator identifying this as a birth name update.\n"},"birth_name":{"type":"string","minLength":1,"maxLength":100,"title":"Birth Name","description":"The new birth name (Geburtsname) of the person.\n","example":"Schmidt"},"history":{"type":"array","title":"History","description":"A chronological list of status changes for this update request.\n","items":{"$ref":"#/components/schemas/StatusChange_PersonDataUpdateRequestStatus_"}}}},"PersonDataUpdateRequestStatus":{"type":"string","enum":["created","processing","success","failure"],"title":"PersonDataUpdateRequestStatus","description":"A category representing the status of a person data update request.\n<ul> <li><code>created</code> - The update request has been created <li><code>processing</code> - The update request is being processed <li><code>success</code> - The update request has been successfully completed <li><code>failure</code> - The update request has failed </ul>\n"},"StatusChange_PersonDataUpdateRequestStatus_":{"title":"StatusChange[PersonDataUpdateRequestStatus]","description":"An object representing a transition to a new status.\n","required":["status","timestamp"],"type":"object","properties":{"status":{"$ref":"#/components/schemas/PersonDataUpdateRequestStatus"},"timestamp":{"title":"Timestamp","type":"string","format":"date-time","description":"The timestamp at which this status change occurred.\n"}}},"EncodedPaginatedCollectionResponse_PersonDataUpdateAnnotatedResponse_":{"title":"EncodedPaginatedCollectionResponse[PersonDataUpdateAnnotatedResponse]","description":"A paginated collection of person data update requests.\n","required":["data","pagination"],"type":"object","properties":{"data":{"title":"Data","description":"The elements of the response.\n","type":"array","items":{"$ref":"#/components/schemas/PersonDataUpdateAnnotatedResponse"}},"pagination":{"$ref":"#/components/schemas/EncodedPaginationResponse"}}},"PersonDataUpdateRequest":{"title":"PersonDataUpdateRequest","description":"A request to update a single person data field. The payload contains the type of data being updated and the new value(s).\n","oneOf":[{"$ref":"#/components/schemas/PersonDataUpdateEmailRequest"},{"$ref":"#/components/schemas/PersonDataUpdatePhoneNumberRequest"},{"$ref":"#/components/schemas/PersonDataUpdateRegisteredAddressRequest"},{"$ref":"#/components/schemas/PersonDataUpdateEmploymentRequest"},{"$ref":"#/components/schemas/PersonDataUpdateTaxResidenciesRequest"},{"$ref":"#/components/schemas/PersonDataUpdateSocialSecurityNumberRequest"},{"$ref":"#/components/schemas/PersonDataUpdateBirthNameRequest"}],"discriminator":{"propertyName":"type","mapping":{"email":"#/components/schemas/PersonDataUpdateEmailRequest","phone_number":"#/components/schemas/PersonDataUpdatePhoneNumberRequest","registered_address":"#/components/schemas/PersonDataUpdateRegisteredAddressRequest","employment":"#/components/schemas/PersonDataUpdateEmploymentRequest","tax_residencies":"#/components/schemas/PersonDataUpdateTaxResidenciesRequest","social_security_number":"#/components/schemas/PersonDataUpdateSocialSecurityNumberRequest","birth_name":"#/components/schemas/PersonDataUpdateBirthNameRequest"}}},"PersonDataUpdateEmailRequest":{"title":"PersonDataUpdateEmailRequest","description":"A request to update a person's email address.\n","required":["type","email"],"type":"object","properties":{"type":{"type":"string","const":"email","title":"Type","description":"The type discriminator identifying this as an email update request.\n"},"email":{"type":"string","format":"email","title":"Email","description":"The new email address for the person.\n","example":"newemail@example.com"}}},"PersonDataUpdatePhoneNumberRequest":{"title":"PersonDataUpdatePhoneNumberRequest","description":"A request to update a person's phone number.\n","required":["type","number"],"type":"object","properties":{"type":{"type":"string","const":"phone_number","title":"Type","description":"The type discriminator identifying this as a phone number update request.\n"},"number":{"type":"string","minLength":1,"maxLength":45,"title":"Phone Number","description":"The new phone number for the person, including the country calling code.\n","example":"+49172997319"}}},"PersonDataUpdateRegisteredAddressRequest":{"title":"PersonDataUpdateRegisteredAddressRequest","description":"A request to update a person's registered address.\n","required":["type","line_1","postal_code","city","country"],"type":"object","properties":{"type":{"type":"string","const":"registered_address","title":"Type","description":"The type discriminator identifying this as a registered address update request.\n"},"line_1":{"type":"string","maxLength":255,"title":"Address Line 1","description":"The first line of the address, typically containing the street name and number.\n","example":"Neue Straße 1"},"line_2":{"type":"string","maxLength":255,"nullable":true,"title":"Address Line 2","description":"An optional second line of the address, for additional address details.\n"},"postal_code":{"type":"string","maxLength":20,"title":"Postal Code","description":"The postal code or ZIP code of the address.\n","example":"10115"},"city":{"type":"string","maxLength":255,"title":"City","description":"The city or municipality of the address.\n","example":"Berlin"},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","description":"An ISO 3166-1 alpha-2 code representing the country of the address.\n","example":"DE"}}},"PersonDataUpdateEmploymentRequest":{"title":"PersonDataUpdateEmploymentRequest","description":"A request to update a person's employment information.\n","required":["type","status","annual_salary","sector"],"type":"object","properties":{"type":{"type":"string","const":"employment","title":"Type","description":"The type discriminator identifying this as an employment information update request.\n"},"status":{"$ref":"#/components/schemas/EmploymentStatus"},"annual_salary":{"$ref":"#/components/schemas/AnnualSalary"},"sector":{"$ref":"#/components/schemas/IndustrySector"}}},"PersonDataUpdateTaxResidency":{"title":"PersonDataUpdateTaxResidency","description":"A tax residency item for a person data update request.\n","required":["country","tax_identification_number"],"type":"object","properties":{"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","description":"An ISO 3166-1 alpha-2 code representing the tax residency country.\n","example":"DE"},"tax_identification_number":{"type":"string","minLength":1,"maxLength":255,"title":"Tax Identification Number","description":"The TIN (Tax Identification Number) for the person in the given country.\n","example":"12345"}}},"PersonDataUpdateTaxResidenciesRequest":{"title":"PersonDataUpdateTaxResidenciesRequest","description":"A request to update a person's tax residencies (self-declared TINs). Provide the complete list of tax residencies for the person (the list replaces the current set, so include all existing and new entries, not just the new one). Each country must appear at most once.\n","required":["type","residencies"],"type":"object","properties":{"type":{"type":"string","const":"tax_residencies","title":"Type","description":"The type discriminator identifying this as a tax residency update request.\n"},"residencies":{"title":"Tax Residencies","minItems":1,"type":"array","description":"The complete list of tax residencies and TINs for the person.\n","items":{"$ref":"#/components/schemas/PersonDataUpdateTaxResidency"}}}},"PersonDataUpdateSocialSecurityNumberRequest":{"title":"PersonDataUpdateSocialSecurityNumberRequest","description":"A request to set or replace a person's social security number or subsidy number (Zulagenummer).\n","required":["type","social_security_number"],"type":"object","properties":{"type":{"type":"string","const":"social_security_number","title":"Type","description":"The type discriminator identifying this as a social security number update request.\n"},"social_security_number":{"type":"string","minLength":12,"maxLength":12,"pattern":"^[0-9A-Z]{12}$","title":"Social Security Number","example":"65210366S011","description":"The person's German social security number (Sozialversicherungsnummer or Rentenversicherungsnummer), or the subsidy number (Zulagenummer) if the person has no social security number.  Exactly 12 characters, uppercase letters and digits only.\n"}}},"PersonDataUpdateBirthNameRequest":{"title":"PersonDataUpdateBirthNameRequest","description":"A request to set or replace a person's birth name.\n","required":["type","birth_name"],"type":"object","properties":{"type":{"type":"string","const":"birth_name","title":"Type","description":"The type discriminator identifying this as a birth name update request.\n"},"birth_name":{"type":"string","maxLength":100,"minLength":1,"title":"Birth Name","example":"Schmidt","description":"The person's last name at birth (Geburtsname).\n"}}},"PlaceOfBirthRequest":{"title":"PlaceOfBirthRequest","description":"An object representing a place of birth.\n","required":["city","country"],"type":"object","properties":{"city":{"title":"City","maxLength":255,"type":"string","description":"The city/municipality of the place of birth.\n","example":"Berlin"},"country":{"title":"Country","maxLength":2,"minLength":2,"type":"string","example":"DE","description":"An ISO 3166-1 alpha-2 code, representing the country related to the place of birth.\n"}}},"PositionsResponse":{"title":"PositionsResponse","description":"A position of the portfolio.  Each of these items represents an instrument for which the user owns shares at the moment.\n","required":["buy_in","currency","instrument","latest_bid","latest_price","quantity"],"type":"object","properties":{"buy_in":{"title":"Buy In","type":"string","format":"number","description":"The buy-in for this instrument. This is the average price paid for each share. Buying and selling shares will influence this value.\n"},"currency":{"title":"Currency","maxLength":3,"minLength":3,"type":"string","description":"An ISO 4217 three-letter currency code. Its value represents the currency for prices of the instrument listed here. The only currently available currency is `\"EUR\"`.\n"},"instrument":{"$ref":"#/components/schemas/Instrument"},"latest_bid":{"title":"Latest Bid","type":"string","format":"number","description":"The latest bid.  This is a price indication that can be used to determine the profit/loss on a specific position.\n"},"latest_price":{"$ref":"#/components/schemas/LatestPrice"},"quantity":{"title":"Quantity","exclusiveMinimum":0,"type":"string","format":"number","description":"The number of shares owned for a specific instrument.\n"}},"example":{"instrument":{"isin":"IE00B441G979","title":"iShares MSCI World EUR Hedged UCITS ETF (Acc)"},"quantity":"232.75210","buy_in":"71.8482","latest_bid":"71.7580","latest_price":{"amount":"71.7580","type":"quote","updated_at":"2026-04-23T10:30:00+00:00"},"currency":"EUR"}},"PriceType":{"type":"string","enum":["nav","quote"],"title":"PriceType","description":"A category representing the source of a price:\n<ul> <li><code>nav</code>:  The price indicates the most recent net asset value (NAV) per share. <li><code>quote</code>:  The price indicates the most recent market quote (bid side) for a share. </ul>\n"},"ProvideSCARecoveryCodeAction":{"title":"Provide Recovery Code","description":"This action indicates the requirement for a user to reset their authenticator using the recovery code provided by lemon.markets.\n","properties":{"type":{"const":"provide_recovery_code","title":"Type","description":"A type value indicating the type of action: `provide_recovery_code`\n"},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"Expiry date.  Provide the recovery code when setting up a new authenticator before this date.  After this point in time, the recovery code will be considered expired.\n"}},"type":"object","required":["type"]},"QuoteResponse":{"title":"Quote","description":"This response object contains the latest price information for the requested instrument instrument from the exchange.\n","required":["instrument","ask_price","bid_price","ask_size","bid_size","currency","updated_at"],"type":"object","properties":{"instrument":{"title":"Instrument","type":"string","description":"The ISIN of the instrument.\n","example":"IE00B3YLTY66"},"ask_price":{"title":"Ask Price","type":"number","description":"The ask price for the quote.  Unless there is a new quote in the mean time, this is the execution price for a market order of type `buy`.\n","example":"174.1800"},"ask_size":{"title":"Ask Size","exclusiveMinimum":0,"type":"number","description":"The ask size for the quote.  Unless there is a new quote in the mean time, this is the maximum quantity for a market order of type `buy` to be executed immediately and completely.  Placing orders with larger quantities can lead to partial execution (if permitted) or delayed execution.\n","example":"576"},"bid_price":{"title":"Bid Price","type":"number","description":"The bid price for the quote.  Unless there is a new quote in the mean time, this is the execution price for a market order of type `sell`.\n","example":"172.6400"},"bid_size":{"title":"Bid Size","exclusiveMinimum":0,"type":"number","description":"The bid size for the quote.  Unless there is a new quote in the mean time, this is the maximum quantity for a market order of type `sell` to be executed immediately and completely.  Placing orders with larger quantities can lead to partial execution (if permitted) or delayed execution.\n","example":"300"},"currency":{"title":"Currency","maxLength":3,"minLength":3,"type":"string","description":"The currency for quoted prices.  The currency will be represented using a three letter ISO 4217 currency code.  At the moment, we will only return `\"EUR\"` as a currency.\n","example":"EUR"},"updated_at":{"title":"Updated At","type":"string","format":"date-time","description":"The timestamp of the quote.  It represents the point in time at which the quote was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}},"example":{"instrument":"LU1437015735","ask_price":"80.8900","bid_price":"80.8200","ask_size":"400","bid_size":"400","currency":"EUR","updated_at":"2023-06-28T10:06:59.754000+00:00"}},"QuoteResponseWithType":{"properties":{"type":{"$ref":"#/components/schemas/PriceType"},"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument.\n"},"ask_price":{"type":"string","title":"Ask Price","description":"The ask price for the quote. Unless there is a new quote in the mean time, this is the execution price for a market order of type buy.\n"},"ask_size":{"type":"string","title":"Ask Size","description":"The ask size for the quote. Unless there is a new quote in the mean time, this is the maximum quantity for a market order of type buy to be executed immediately and completely. Placing orders with larger quantities can lead to partial execution (if permitted) or delayed execution.\n"},"bid_price":{"type":"string","title":"Bid Price","description":"The bid price for the quote. Unless there is a new quote in the mean time, this is the execution price for a market order of type sell.\n"},"bid_size":{"type":"string","title":"Bid Size","description":"The bid size for the quote. Unless there is a new quote in the mean time, this is the maximum quantity for a market order of type sell to be executed immediately and completely. Placing orders with larger quantities can lead to partial execution (if permitted) or delayed execution.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"The currency for quoted prices. The currency will be represented using a three letter ISO 4217 currency code. At the moment, we will only return \"EUR\" as a currency.\n"},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"The timestamp of the quote. It represents the point in time at which the quote was updated.\n"}},"type":"object","required":["instrument","ask_price","bid_price","ask_size","bid_size","currency","type","updated_at"],"title":"QuoteResponseWithType"},"YieldResponse":{"title":"Yield","description":"Most recent yield data available for the specified instrument.\n","required":["period_start","period_end","yield_pct","annualized_yield_pct","calculated_as_of"],"type":"object","properties":{"period_start":{"title":"Period Start","type":"string","format":"date","description":"The start date of the yield period. It represents the starting date of the period for which the yield is calculated.\n","example":"2023-10-01"},"period_end":{"title":"Period End","type":"string","format":"date","description":"The end date of the yield period. It represents the final date of the period for which the yield is calculated.\n","example":"2023-10-31"},"yield_pct":{"title":"Yield Percent","type":"number","description":"The yield of the instrument for the given period in percentage (`\"0.14\"` means 0.14%).\n","example":"0.14"},"annualized_yield_pct":{"title":"Annualized Yield Percent","type":"number","description":"Annualized yield for the specified period in percentage (`\"1.69\"` means 1.69%). Represents a simple (non-compounded) projection of that period's factor over a year. Present only after the period's final distribution is processed.\n","example":"1.69"},"calculated_as_of":{"title":"Calculated As Of","type":"string","format":"date","description":"The last date of the period for which the annualized monthly yield value applies.\n","example":"2023-10-31"}},"example":{"period_start":"2025-10-01","period_end":"2025-10-31","yield_pct":"0.14","annualized_yield_pct":"1.69","calculated_as_of":"2025-10-31"}},"broker__apps__api__endpoints__customer_workflows__RegulatoryDisclosureResponse":{"properties":{"kid":{"type":"string","title":"Kid"},"estimated_price":{"type":"string","title":"Estimated Price"},"estimated_quantity":{"type":"string","title":"Estimated Quantity"},"estimated_amount":{"type":"string","title":"Estimated Amount"},"service_costs_total":{"type":"string","title":"Service Costs Total"},"service_costs_total_pct":{"type":"string","title":"Service Costs Total Pct"},"entry_costs":{"type":"string","title":"Entry Costs"},"entry_costs_pct":{"type":"string","title":"Entry Costs Pct"},"third_party_grants":{"type":"string","title":"Third Party Grants"},"third_party_grants_pct":{"type":"string","title":"Third Party Grants Pct"},"acquisition_costs":{"type":"string","title":"Acquisition Costs"},"acquisition_costs_pct":{"type":"string","title":"Acquisition Costs Pct"},"custody_costs":{"type":"string","title":"Custody Costs"},"custody_costs_pct":{"type":"string","title":"Custody Costs Pct"},"product_costs":{"type":"string","title":"Product Costs"},"product_costs_pct":{"type":"string","title":"Product Costs Pct","description":"Relative value of `product_costs`; specified in percentage points (`\"0.23\"` means 0.23%).\nA decimal string with at least 2 decimals, for example `\"0.20\"` or `\"0.10425\"`.\n"},"running_costs":{"type":"string","title":"Running Costs"},"running_costs_pct":{"type":"string","title":"Running Costs Pct","description":"Relative value of `running_costs`; specified in percentage points (`\"0.23\"` means 0.23%).\nA decimal string with at least 2 decimals, for example `\"0.20\"` or `\"0.10425\"`.\n"},"exit_costs":{"type":"string","title":"Exit Costs"},"exit_costs_pct":{"type":"string","title":"Exit Costs Pct"},"impact_first_year":{"type":"string","title":"Impact First Year"},"impact_first_year_pct":{"type":"string","title":"Impact First Year Pct"},"impact_subsequent_year":{"type":"string","title":"Impact Subsequent Year"},"impact_subsequent_year_pct":{"type":"string","title":"Impact Subsequent Year Pct","description":"Relative value of `impact_subsequent_year`; specified in percentage points (`\"0.23\"` means 0.23%).\nA decimal string with at least 2 decimals, for example `\"0.20\"` or `\"0.10425\"`.\n"},"impact_final_year":{"type":"string","title":"Impact Final Year"},"impact_final_year_pct":{"type":"string","title":"Impact Final Year Pct"},"recurring_impact_year_1":{"type":"string","title":"Recurring Impact First Year"},"recurring_impact_year_1_pct":{"type":"string","title":"Recurring Impact First Year Pct"},"recurring_impact_year_2":{"type":"string","title":"Recurring Impact Second Year"},"recurring_impact_year_2_pct":{"type":"string","title":"Recurring Impact Second Year Pct"},"recurring_impact_year_3":{"type":"string","title":"Recurring Impact Third Year"},"recurring_impact_year_3_pct":{"type":"string","title":"Recurring Impact Third Year Pct"},"recurring_impact_year_4":{"type":"string","title":"Recurring Impact Fourth Year"},"recurring_impact_year_4_pct":{"type":"string","title":"Recurring Impact Fourth Year Pct"},"recurring_impact_year_5":{"type":"string","title":"Recurring Impact Fifth Year"},"recurring_impact_year_5_pct":{"type":"string","title":"Recurring Impact Fifth Year Pct"},"recurring_impact_total":{"type":"string","title":"Recurring Impact Total"},"recurring_impact_total_pct":{"type":"string","title":"Recurring Impact Total Pct"}},"type":"object","required":["acquisition_costs","acquisition_costs_pct","custody_costs","custody_costs_pct","entry_costs","entry_costs_pct","estimated_price","estimated_quantity","estimated_amount","exit_costs","exit_costs_pct","impact_first_year","impact_first_year_pct","impact_subsequent_year","impact_subsequent_year_pct","impact_final_year","impact_final_year_pct","product_costs","product_costs_pct","recurring_impact_year_1","recurring_impact_year_1_pct","recurring_impact_year_2","recurring_impact_year_2_pct","recurring_impact_year_3","recurring_impact_year_3_pct","recurring_impact_year_4","recurring_impact_year_4_pct","recurring_impact_year_5","recurring_impact_year_5_pct","recurring_impact_total","recurring_impact_total_pct","running_costs","running_costs_pct","service_costs_total","service_costs_total_pct","third_party_grants","third_party_grants_pct"],"title":"RegulatoryDisclosureResponse"},"broker__apps__api__types__RegulatoryDisclosureResponse":{"description":"An object describing regulatory information, such as expected prices, quantities and costs as well as links to relevant documents.\n","required":["estimated_amount","estimated_price","estimated_quantity","service_costs_total","service_costs_total_pct","third_party_grants","third_party_grants_pct","exit_costs","exit_costs_pct"],"properties":{"kid":{"type":"string","format":"uri","title":"Key Investor Document (KID)","description":"If present, a document that needs to be made available to the user.  A copy of this document will be added to the user's `/documents` eventually.\n"},"estimated_amount":{"type":"string","format":"number","title":"Estimated Amount","description":"An indication of the amount based on the most recent market data.\n**NOTE:** This information is indicative only and does not have to match the final execution price.\n"},"estimated_price":{"type":"string","format":"number","title":"Estimated Price","description":"A price indication based on the most recent market data.\n**NOTE:** This information is indicative only and does not have to match the final execution price.\n"},"estimated_quantity":{"type":"string","format":"number","exclusiveMinimum":0,"title":"Estimated Quantity","description":"A quantity indication based on the most recent market data.\n**NOTE:** This information is indicative only and does not have to match the final execution quantity.\n"},"service_costs_total":{"type":"string","format":"number","title":"Service Costs Total (absolute)","description":"Cost of investment services provided by lemon.markets; specified using the order's currency.\n"},"service_costs_total_pct":{"type":"string","format":"number","title":"Service Costs Total (relative)","description":"Relative value of `servic_costs_total` in relation to the total value of the order; specified in percentage points (`\"0.23\"` means 0.23%).\n"},"entry_costs":{"type":"string","format":"number","title":"Entry Costs (absolute)","description":"The investment service costs related to the buy order; specified using the order's currency.\n"},"entry_costs_pct":{"type":"string","format":"number","title":"Entry Costs (relative)","description":"Relative value of `entry_costs` in relation to the total value of the order; specified in percentage points (`\"0.23\"` means 0.23%).\n"},"third_party_grants":{"type":"string","format":"number","title":"Third Party Grants (absolute)","description":"Inducements paid to the broker by third parties; specified using the order's currency.\n"},"third_party_grants_pct":{"type":"string","format":"number","title":"Third Party Grants (relative)","description":"Relative value of `third_party_grants` in relation to the total value of the order; specified in percentage points (`\"0.23\"` means 0.23%).\n"},"product_costs":{"type":"string","format":"number","title":"Product Costs (absolute)","description":"The product cost associated with owning the product; specified using the order's currency.\n"},"product_costs_pct":{"type":"string","format":"number","title":"Product Costs (relative)","description":"Relative value of `product_costs` in relation to the total value of the order; specified in percentage points (`\"0.23\"` means 0.23%).\nA decimal string with at least 2 decimals, for example `\"0.20\"` or `\"0.10425\"`.\n"},"running_costs":{"type":"string","format":"number","title":"Running Costs (absolute)","description":"The investment service cost associated with owning the product; specified using the order's currency.\n"},"running_costs_pct":{"type":"string","format":"number","title":"Running Costs (relative)","description":"Relative value of `running_costs` in relation to the total value of the order; specified in percentage points (`\"0.23\"` means 0.23%).\nA decimal string with at least 2 decimals, for example `\"0.20\"` or `\"0.10425\"`.\n"},"exit_costs":{"type":"string","format":"number","title":"Exit Costs (absolute)","description":"The service costs related to a sell order; specified using the order's currency.\n**Note:** In case of a buy order, this reflects an estimate of a corresponding sell order.\n"},"exit_costs_pct":{"type":"string","format":"number","title":"Exit Costs (relative)","description":"Relative value of `exit_costs` in relation to the total value of the order; specified in percentage points (`\"0.23\"` means 0.23%).\n"},"acquisition_costs":{"type":"string","title":"Acquisition Costs"},"acquisition_costs_pct":{"type":"string","title":"Acquisition Costs Pct"},"custody_costs":{"type":"string","title":"Custody Costs"},"custody_costs_pct":{"type":"string","title":"Custody Costs Pct"},"impact_first_year":{"type":"string","format":"number","title":"Impact First Year (absolute)","description":"An indication of the costs incurred during the first year of ownership; specified using the order's currency. This includes both product and investment service costs.\n**Note:** If the security is sold during the first year, the cost might be even higher.\n"},"impact_first_year_pct":{"type":"string","format":"number","title":"Impact First Year (relative)","description":"Relative value of `impact_first_year` in relation to the total value of the order; specified in percentage points (`\"0.23\"` means 0.23%).\n"},"impact_subsequent_year":{"type":"string","format":"number","title":"Impact Subsequent Year (absolute)","description":"An indication of the costs incurred during a year of ownership without transactions; specified using the order's currency. This include both product and investment service costs.\n"},"impact_subsequent_year_pct":{"type":"string","format":"number","title":"Impact Subsequent Year (relative)","description":"Relative value of `impact_subsequent_year` in relation to the total value of the order; specified in percentage points (`\"0.23\"` means 0.23%).\nA decimal string with at least 2 decimals, for example `\"0.20\"` or `\"0.10425\"`.\n"},"impact_final_year":{"type":"string","format":"number","title":"Impact Final Year (absolute)","description":"An indication of the cost incurred during the last year of ownership; specified using the order's currency. This include both product and investment service cost.\n**Note:** If the security is sold during the first year, the cost might be even higher.\n"},"impact_final_year_pct":{"type":"string","format":"number","title":"Impact Final Year (relative)","description":"Relative value of `impact_final_year` in relation to the total value of the order; specified in percentage points (`\"0.23\"` means 0.23%).\n"}},"type":"object","title":"RegulatoryDisclosureResponse"},"RepresentationRule":{"type":"string","enum":["sole_representation","joint_representation"],"title":"RepresentationRule","description":"A category describing the representation rule for a legal representative:\n<ul> <li><code>sole_representation</code>:  The legal representative alone can represent the company. <li><code>joint_representation</code>:  The legal representative needs at least one more legal representative to represent the company. </ul>\n"},"SCAConfirmation":{"title":"Strong Customer Authentication","description":"An object representing the confirmation for strong customer authentication.\n","properties":{"client_credential_id":{"type":"string","title":"Client Credential Identifier","description":"The client-side identifier of the authenticator used to generate the signature.\n"},"signature":{"type":"string","title":"Signature","description":"The base64-url encoded DER form of the signature for `challenge` using the private key for the public key that was registered as an authenticator.\n"}},"type":"object","required":["client_credential_id","signature"]},"SCAResponse":{"properties":{"required":{"type":"boolean","title":"Required"},"challenge":{"type":"string","title":"Challenge"}},"type":"object","required":["required","challenge"],"title":"SCAResponse"},"ScheduledCadenceType":{"type":"string","enum":["monthly","weekly","daily"],"title":"ScheduledCadenceType","description":"A category describing the cadence for scheduled workflows:\n<ul> <li><code>daily</code>: Execute every Trading Day (Sandbox-only) <li><code>weekly</code>: Execute weekly on a set day. Use <code>day_of_week</code> to set a custom execution day; otherwise defaults to the first trading day of the week. <li><code>monthly</code>: Execute monthly on a set day. Use <code>day_of_month</code> to set a custom execution day; otherwise defaults to the first trading day of the month. </ul>\n"},"SecuritiesAccountEventContext":{"properties":{"account":{"type":"string","title":"Customer Account","description":"An account identifier. This field represents the customer account associated with an event.\n"},"securities_account":{"type":"string","title":"Securities Account","description":"A securities account identifier. This field represents the securities account associated with an event.\n"},"product":{"type":"string","title":"Product","description":"The identifier of the product the securities account belongs to, used to retrieve its details via `GET /accounts/{account_id}/products/{id}`.  `null` when the securities account does not belong to a product.\n"}},"additionalProperties":false,"type":"object","required":["account","securities_account"],"title":"SecuritiesAccountEventContext","description":"The context of the `securities_account.created`, `securities_account.opened`, `securities_account.rejected` and `securities_account.closed` events.\n","example":{"account":"cusa_c2c3f89ec0524b6e818ce00c16e4897f","securities_account":"sec_ac_00e49aeab85844c89de57929bcb0f76a","product":"brok_c4ad0c3244bb4a7d97ee760290627dc2"}},"broker__apps__api__endpoints__accounts__SecuritiesAccountResponse":{"description":"An object representing the account information for the customer's securities account.\n","properties":{"number":{"title":"Account Number","type":"string","description":"A string representing the account number for the securities account.\n"}},"type":"object","required":["number"],"title":"SecuritiesAccountResponse"},"broker__apps__api__endpoints__securities_accounts__SecuritiesAccountResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"A value identifiying a securities account.  Use this as a technical identifier for the securities account.\n"},"account_number":{"type":"string","title":"Account Number","description":"A string representing the account number for the securities account.  Use this is a user-visible identifier for the securities account.\n"},"cash_account":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cash Account","description":"The identifier of the cash account mapped to this securities account, used to retrieve its details via `GET /accounts/{account_id}/cash_accounts/{cash_account_id}`.  `null` when no cash account is mapped.\n"},"product":{"type":"string","title":"Product","description":"The identifier of the product the securities account belongs to, used to retrieve its details via `GET /accounts/{account_id}/products/{id}`.  `null` when the securities account does not belong to a product.\n"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_CustomerAccountStatus_"},"type":"array","title":"History","description":"A history of the status changes for the security account.\n"}},"type":"object","required":["id","account_number","created_at","history"],"title":"SecuritiesAccountResponse"},"SecuritiesAccountStatus":{"type":"string","enum":["created","opened","rejected","closed"],"title":"SecuritiesAccountStatus"},"SecuritiesTransferEventContext":{"description":"An object representing the context of an event.\n","type":"object","properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with the event.\n"},"transaction":{"type":"string","title":"Transaction","description":"A transaction identifier. This field represents the transaction associated with the event.\n"},"securities_transfer":{"type":"string","title":"Securities Transfer","description":"A securities transfer identifier. You can use this field to correlate different events relating to the same securities transfer.\n"}},"additionalProperties":false,"required":["account","transaction","securities_transfer"],"title":"SecuritiesTransferEventContext"},"SecuritiesComponent":{"title":"Securities Component","description":"An object representing an instrument-related component of a transaction.\n","properties":{"type":{"$ref":"#/components/schemas/TransactionComponentType"},"direction":{"$ref":"#/components/schemas/TransactionComponentDirection"},"instrument":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument of this component.\n"},"quantity":{"type":"number","exclusiveMinimum":0,"title":"Quantity","description":"The number of shares affected by this component.\n"}},"type":"object","required":["type","direction","instrument","quantity"]},"SettlementAccountResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"A string representing the unique identifier of this settlement account.\n","example":"psa_2323"},"name":{"type":"string","title":"Name","description":"Logical name for the bank account, e.g. “Funds Trading” or “Brokerage Pooling”.\n","example":"Funds Trading"},"inpayment_bank_account":{"$ref":"#/components/schemas/BankAccountResponse"},"currency":{"type":"string","title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount and fee listed here. The only currently available currency is `\"EUR\"`.\n"},"balance":{"type":"string","title":"Balance","example":"123.45","description":"Current account balance, excluding `withdrawals_in_progress`.  A positive amount is caused by funds to be paid out to customers, a negative amount would be caused by funds pending transfer to the lemon.markets pooling account.\n"},"withdrawals_in_progress":{"type":"string","title":"Withdrawals In Progress","example":"12.34","description":"Withdrawals in progress to be paid out to the partner. Already deducted from `balance`.\n"}},"type":"object","required":["id","name","inpayment_bank_account","currency","balance","withdrawals_in_progress"],"title":"SettlementAccountResponse"},"SettlementAccountTransactionDirection":{"type":"string","enum":["credit","debit"],"title":"SettlementAccountTransactionDirection"},"SettlementAccountTransactionResponse":{"oneOf":[{"$ref":"#/components/schemas/SettlementAccountTransactionResponse1"},{"$ref":"#/components/schemas/SettlementAccountTransactionResponse2"}],"discriminator":{"propertyName":"type","mapping":{"payment":"#/components/schemas/SettlementAccountTransactionResponse1","settlement":"#/components/schemas/SettlementAccountTransactionResponse2"}}},"SettlementAccountTransactionResponse1":{"properties":{"id":{"type":"string","title":"Identifier","description":"A string representing the unique identifier of this settlement transaction.\n"},"type":{"type":"string","const":"payment","title":"Type","description":"The value `\"payment\"` for a payment transaction.\n"},"amount":{"type":"string","title":"Amount","description":"The value of the transaction, expressed using `currency`.\n"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"A timestamp representing the point in time when the transaction was created.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount and fee listed here. The only currently available currency is `\"EUR\"`.\n"},"direction":{"$ref":"#/components/schemas/SettlementAccountTransactionDirection"},"payment_details":{"type":"object","properties":{"reference":{"type":"string","title":"Reference","description":"The reference text for the transaction.\n"},"sender_iban":{"type":"string","title":"Sender","description":"The bank account sending the amount using IBAN (International Bank Account Number) according to ISO 13616-1:2020.\n"},"recipient_iban":{"type":"string","title":"Recipient","description":"The bank account receiving the amount using IBAN (International Bank Account Number) according to ISO 13616-1:2020.\n"},"booking_date":{"type":"string","title":"Booking Date"}},"required":["reference","sender_iban","recipient_iban","booking_date"]}},"type":"object","required":["id","amount","currency","created_at","direction","payment_details","type"],"title":"SettlementAccountTransactionResponse"},"SettlementAccountTransactionResponse2":{"properties":{"id":{"type":"string","title":"Identifier","description":"A string representing the unique identifier of this settlement transaction.\n"},"type":{"type":"string","const":"settlement","title":"Type","description":"The value `\"settlement\"` for a settlement transaction.\n"},"amount":{"type":"string","title":"Amount","description":"The value of the transaction, expressed using `currency`.\n"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"A timestamp representing the point in time when the transaction was created.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount and fee listed here. The only currently available currency is `\"EUR\"`.\n"},"direction":{"$ref":"#/components/schemas/SettlementAccountTransactionDirection"},"settlement":{"type":"string","title":"Settlement Identifier","description":"A reference to the corresponding settlement.\n"}},"type":"object","required":["id","amount","created_at","currency","direction","settlement","type"],"title":"SettlementAccountTransactionResponse"},"SettlementDirection":{"type":"string","enum":["credit","debit"],"title":"SettlementDirection","description":"A category representing the direction of settlement:\n<ul> <li><code>credit</code>:  The settlement results in funds being credited (net-sell day). <li><code>debit</code>: The settlement results in funds being debited (net-buy day). </ul>\n"},"SubsidyApplicationEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"subsidy_application":{"type":"string","title":"Subsidy Application","description":"A subsidy application identifier. This field represents the subsidy application associated with an event.\n"},"product":{"type":"string","title":"Product","description":"A product identifier. This field represents the product that the subsidy application belongs to.\n"}},"additionalProperties":false,"type":"object","required":["account","subsidy_application","product"],"title":"SubsidyApplicationEventContext"},"SettlementEventContext":{"type":"object","properties":{"settlement":{"type":"string","title":"Settlement","description":"A settlement identifier. This field represents the settlement associated with an event.\n"},"settlement_account":{"type":"string","title":"Settlement Account","description":"A settlement account identifier. This field represents the settlement account associated with an event.\n"}}},"SettlementItemResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"A value identifying the settlement item.\n"},"account":{"type":"string","title":"Account","description":"The account identifier for this source (`cusa_…`).\n"},"amount":{"type":"string","title":"Amount","description":"The amount for the settlement.\n"},"currency":{"type":"string","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount property. The only currently available currency is `\"EUR\"`.\n"},"direction":{"$ref":"#/components/schemas/SettlementDirection"},"source":{"type":"string","title":"Source","description":"The identifier of the underlying source of the item.\n<ul> <li>When <code>type</code> is <code>trade</code>, this is a reference to a trade. </ul>\n"},"type":{"$ref":"#/components/schemas/SettlementItemType"}},"type":"object","required":["id","account","amount","currency","direction","source","type"],"title":"SettlementItemResponse","description":"An object representing a settlement item.\n"},"SettlementItemType":{"type":"string","enum":["income_distribution","order","trade"],"title":"SettlementItemType","description":"A category describing the type of a settlement item.\n<ul> <li><code>income_distribution</code>:  The transaction was caused by a distribution <li><code>order</code>:  The transaction was caused by an order <li><code>trade</code>:  The transaction was caused by a trade </ul>\n"},"SettlementResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"A value identifying the settlement.\n"},"amount":{"type":"string","title":"Amount","description":"The amount for the settlement.\n"},"currency":{"type":"string","title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for prices of the instrument listed here. The only currently available currency is \"EUR\".\n"},"cutoff_timestamp":{"type":"string","format":"date-time","title":"Cutoff Timestamp","description":"The point in time at which `debit` settlements have to be delivered and the point in time for cash distribution for `credit` settlements.\n"},"direction":{"$ref":"#/components/schemas/SettlementDirection"}},"type":"object","required":["id","amount","currency","cutoff_timestamp","direction"],"title":"SettlementResponse"},"Side":{"type":"string","enum":["buy","sell"],"title":"Side","description":"A category to represent the side of a customer's order:\n<ul> <li><code>buy</code>: Buy shares of an instrument and pay with cash. <li><code>sell</code>: Sell shares of an instrument and receive cash. </ul>\n"},"StatusChange_CustomerAccountStatus_":{"title":"StatusChange[CustomerAccountStatus]","description":"An object representing a change in the user account.\n","required":["status","timestamp"],"type":"object","properties":{"status":{"$ref":"#/components/schemas/CustomerAccountStatus"},"timestamp":{"title":"Timestamp","type":"string","format":"date-time","description":"The timestamp of the event.  It represents the point in time at which the account was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}}},"StatusChange_CustomerWorkflowStatus_":{"properties":{"status":{"$ref":"#/components/schemas/CustomerWorkflowStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the workflow was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}},"type":"object","required":["status","timestamp"],"title":"StatusChange[CustomerWorkflowStatus]"},"StatusChange_OnboardingCheckStatus_":{"title":"StatusChange of OnboardingCheckStatus","required":["status","timestamp"],"type":"object","properties":{"status":{"$ref":"#/components/schemas/CustomerAccountCheckStatus"},"timestamp":{"title":"Timestamp","type":"string","format":"date-time","description":"The timestamp of the event.  It represents the point in time at which the account check was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}}},"StatusChangeResponse":{"description":"An object representing a change in an order.\n","properties":{"status":{"$ref":"#/components/schemas/OrderStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the order was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"},"actor":{"$ref":"#/components/schemas/ActorResponse"},"reason":{"allOf":[{"$ref":"#/components/schemas/OrderRejectionReason"}],"nullable":true,"description":"The reason why this order was rejected. Only populated when the order status is `rejected`.\n"}},"type":"object","required":["status","timestamp"],"title":"StatusChange[OrderStatus]"},"StatusChange_PersonIdentificationStatus_":{"properties":{"status":{"$ref":"#/components/schemas/PersonIdentificationStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the onboarding status was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}},"type":"object","required":["status","timestamp"],"title":"StatusChange[PersonIdentificationStatus]"},"StatusChange_SweepStatus_":{"properties":{"status":{"$ref":"#/components/schemas/SweepStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the sweep was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}},"type":"object","required":["status","timestamp"],"title":"StatusChange[SweepStatus]"},"StatusChange_TaxExemptionOrderStatus_":{"properties":{"status":{"$ref":"#/components/schemas/TaxExemptionOrderStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the tax exemption was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}},"type":"object","required":["status","timestamp"],"title":"StatusChange of TaxExemptionOrderStatus"},"StatusChange_TransactionStatus_":{"title":"StatusChange of TransactionStatus","properties":{"status":{"$ref":"#/components/schemas/TransactionStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the transaction was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}},"type":"object","required":["status","timestamp"]},"StatusChange_TreasuryMandateStatus_":{"properties":{"status":{"$ref":"#/components/schemas/TreasuryMandateStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the treasury mandate was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}},"type":"object","required":["status","timestamp"],"title":"StatusChange of TreasuryMandateStatus"},"StatusChange_TreasuryTransferStatus_":{"properties":{"status":{"$ref":"#/components/schemas/TreasuryTransferStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the treasury transfer was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}},"type":"object","required":["status","timestamp"],"title":"StatusChange[TreasuryTransferStatus]"},"StatusChange_WithdrawalStatus_":{"properties":{"status":{"$ref":"#/components/schemas/WithdrawalStatus"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp","description":"The timestamp of the event.  It represents the point in time at which the withdrawal was updated.\n","example":"2023-06-23T07:29:55.465000+00:00"}},"type":"object","required":["status","timestamp"],"title":"StatusChange[WithdrawalStatus]"},"StrongCustomerAuthenticationRequest":{"title":"StrongCustomerAuthenticationRequest","description":"An object representing a strong customer authentication challenge.\n","properties":{"required":{"type":"boolean","title":"Required","description":"Indication of strong customer authentication requirement.  If this value is `true`, the next request needs to include a solution to the challege (e.g. in the `sca` property for batch order confirmation).\n"},"challenge":{"type":"string","title":"Challenge","description":"A base64-url encoded blob of data.  Sign the decoded data using a registered authenticator and include the signature in the next request (e.g. in the `sca` property for batch order confirmation).\n"}},"type":"object","required":["required","challenge"]},"SubmitDocumentAction":{"properties":{"type":{"type":"string","enum":["submit_document"],"const":"submit_document","title":"Type"},"document":{"$ref":"#/components/schemas/BusinessDocumentType"}},"type":"object","required":["type","document"],"title":"SubmitDocumentAction"},"SubmitKycRelianceDataRequest":{"properties":{"reference":{"type":"string","minLength":1,"maxLength":255,"title":"Reference","description":"A reference to the ID+V process previously completed.  The string must neither be empty and nor contain only whitespace characters.\n"},"completed_at":{"type":"string","format":"date-time","title":"Completed At","description":"The point in time at which the ID+V process referenced by `reference` has been completed.\n"},"id_document":{"$ref":"#/components/schemas/IdentificationDocument"},"politically_exposed_person":{"type":"boolean","title":"Politically Exposed Person","description":"Indicate whether or not the person was identified as a politically exposed person (PEP).\n"}},"type":"object","required":["reference","completed_at","id_document"],"title":"SubmitKycRelianceDataRequest","description":"An object describing a previously completed ID+V process for a person in the context of KYC reliance.\n"},"SweepEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"cash_account":{"type":"string","title":"Cash Account","description":"A cash account identifier. This field represents the cash account associated with an event.\n"},"sweep":{"type":"string","title":"Sweep","description":"A sweep identifier. This field represents the sweep associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","cash_account","sweep"],"title":"SweepEventContext"},"SweepResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"A unique value identifying this sweep.\n"},"status":{"$ref":"#/components/schemas/SweepStatus"},"amount":{"type":"string","title":"Amount","description":"The amount of money to be withdrawn during the balance sweep.\n"},"cash_account":{"type":"string","title":"Cash Account","description":"The identifier of the cash account associated with this sweep.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount listed here. The only currently available currency is `\"EUR\"`.\n"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_SweepStatus_"},"type":"array","title":"History"}},"type":"object","required":["id","status","amount","cash_account","currency","history"],"title":"SweepResponse"},"SweepStatus":{"type":"string","enum":["canceled","created","processed","rejected","started"],"title":"SweepStatus","description":"A category describing the status of a balance sweep:\n<ul> <li><code>canceled</code> <li><code>created</code> <li><code>processed</code> <li><code>rejected</code> <li><code>started</code> </ul>\n"},"SweepTransactionEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"cash_account":{"type":"string","title":"Cash Account","description":"A cash account identifier. This field represents the cash account associated with an event.\n"},"sweep":{"type":"string","title":"Sweep","description":"A sweep identifier. This field represents the sweep associated with an event.\n"},"transaction":{"type":"string","title":"Transaction","description":"A transaction identifier. This field represents the transaction associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","cash_account","sweep","transaction"],"title":"SweepTransactionEventContext"},"TaxExemptionOrderEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"tax_exemption_order":{"type":"string","title":"Tax Exemption Order","description":"A tax exemption order identifier. This field represents the tax exemption order associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","tax_exemption_order"],"title":"TaxExemptionOrderEventContext"},"TaxExemptionOrderResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"A string representing the unique identifier of this tax exemption order.\n"},"amount_total":{"type":"string","title":"Amount Total","description":"The amount to be exempt from taxation using the value from `currency`.\n"},"type":{"$ref":"#/components/schemas/TaxExemptionType"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the `amount` listed here. The only currently available currency is \"EUR\".\n"},"valid_from":{"type":"string","title":"Valid From","description":"A string specifying the first year for this tax exemption order to be effective.\n","example":"2025"},"valid_until":{"type":"string","title":"Valid Until","description":"A string specifying the last year to consider this tax exemtption.\nThis is either be the same value as `valid_from` (to restrict the tax exemption to one year) or `null` (valid until the next tax exemption will be submitted).\n"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_TaxExemptionOrderStatus_"},"type":"array","title":"History"}},"type":"object","required":["id","amount_total","type","currency","valid_from","history"],"title":"TaxExemptionOrderResponse"},"TaxExemptionOrderStatus":{"type":"string","enum":["accepted","canceled","canceling","created","rejected"],"title":"TaxExemptionOrderStatus","description":"A category describing the status of a tax exemption order:\n<ul> <li><code>accepted</code> <li><code>canceled</code> <li><code>canceling</code> <li><code>created</code> <li><code>rejected</code> </ul>\n"},"TaxExemptionUsageResponse":{"properties":{"year":{"type":"string","title":"Year","description":"The year for the tax exemption usage.\n"},"amount_total":{"type":"string","title":"Amount Total","description":"The total amount of the corresponding tax exemption order.\n"},"amount_used":{"type":"string","title":"Amount Used","description":"The utilized amount of the corresponding tax exemption order.  Use the difference between `amount_total - amount_used` to determine the amount still available.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the `amount_total` and `amount_used` listed here. The only currently available currency is `\"EUR\"`.\n"}},"type":"object","required":["year","amount_total","amount_used","currency"],"title":"TaxExemptionUsageResponse"},"TaxExemptionType":{"type":"string","enum":["individual"],"const":"individual","title":"TaxExemptionType","description":"A category describing the type of a tax exemption order:\n<ul> <li><code>individual</code>:  Tax exemption limits for individuals apply to this order. </ul>\n"},"TaxGeneralEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"tax":{"type":"string","title":"Tax Payment","description":"A tax payment identifier. This field represents the tax payment associated with an event.\n"},"transaction":{"type":"string","title":"Transaction","description":"A transaction identifier. This field represents the transaction associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","tax","transaction"],"title":"TaxGeneralEventContext"},"TaxInstrumentTransactionEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"instrument":{"type":"string","title":"Tax Payment","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This field represents the instrument associated with an event.\n"},"tax":{"type":"string","title":"Tax Payment","description":"A tax payment identifier. This field represents the tax payment associated with an event.\n"},"transaction":{"type":"string","title":"Transaction","description":"A transaction identifier. This field represents the transaction associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","instrument","tax","transaction"],"title":"TaxInstrumentTransactionEventContext"},"TaxResidency":{"title":"TaxResidency","description":"An object representing a tax residency.\n","required":["country"],"type":"object","properties":{"country":{"title":"Country","maxLength":2,"minLength":2,"type":"string","description":"An ISO 3166-1 alpha-2 code, representing a country considering the user one of its tax payers.\n","example":"DE"},"tax_identification_number":{"title":"Tax Identification Number","type":"string","maxLength":255,"minLength":1,"description":"The TIN (Tax Identification Number) related to the user within the taxation regime within `country`.\n"}}},"TaxResponseField":{"properties":{"type":{"type":"string","title":"Type","description":"A string identifying the type of tax that was withheld for a trade:\n<ul> <li><code>capital_gains</code> <li><code>church_tax</code> <li><code>solidarity_surcharge</code> </ul>\n<strong>NOTE:</strong> This list can be extended in the future.  Prepare your code to accept other values, too.\n"},"amount":{"type":"string","title":"Amount","description":"The monetary amount representing this tax.\n"},"direction":{"$ref":"#/components/schemas/Direction"}},"type":"object","required":["type","amount","direction"],"title":"TaxResponseField"},"TradeSettledEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"order":{"type":"string","title":"Order","description":"An order identifier. This field represents the order associated with an event.\n"},"trade":{"type":"string","title":"Trade","description":"A trade identifier. This field represents the trade associated with an event.\n"},"transaction":{"type":"string","title":"Transaction","description":"A transaction identifier. This field represents the transaction associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","order","trade","transaction"],"title":"TradeSettledEventContext"},"TradeResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"A string representing the unique identifier of this transaction.\n"},"side":{"$ref":"#/components/schemas/Side"},"instrument":{"type":"string","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument that was traded.\n"},"quantity":{"type":"string","title":"Quantity","format":"number","description":"The quantity of shares traded.\n"},"price":{"type":"string","title":"Price","format":"number","description":"The execution price of the trade (indicated per one share).\n"},"amount":{"type":"string","title":"Amount","format":"number","description":"The monetary value of the trade.\n"},"taxes":{"items":{"$ref":"#/components/schemas/TaxResponseField"},"type":"array","title":"Taxes"},"fee":{"type":"string","format":"number","title":"Fee","description":"The fee that was be charged by lemon.markets on your behalf.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount listed here. The only currently available currency is `\"EUR\"`.\n"},"order":{"type":"string","title":"Order","description":"An identifier referencing the order triggering the trade.\n"},"execution_venue":{"type":"string","title":"Execution Venue","description":"An ISO-10383 four-letter code.  Its value represents the market on which the trade took place.  May be `null` for small trades that did not cause a trade on a public market.\n"},"securities_account":{"type":"string","title":"Securities Account","description":"A securities account identifier. This field represents the securities account associated with a trade.\n"},"executed_at":{"type":"string","format":"date-time","title":"Executed At","example":"2023-06-29T14:39:29+00:00","description":"The venue execution timestamp: the point in time at which the trade was executed on the trading venue\n"}},"type":"object","required":["id","side","instrument","quantity","price","amount","fee","currency","order","execution_venue","securities_account","executed_at"],"title":"TradeResponse"},"Transaction":{"properties":{"id":{"type":"string","title":"Identifier","description":"A string representing the unique identifier of this transaction.\n"},"status":{"$ref":"#/components/schemas/TransactionStatus"},"type":{"$ref":"#/components/schemas/TransactionType"},"source":{"type":"string","title":"Source","description":"An opaque identifier referencing the source of the transaction.\n"},"components":{"items":{"$ref":"#/components/schemas/TransactionComponent"},"type":"array","title":"Components"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_TransactionStatus_"},"type":"array","title":"History","description":"A history of the status changes for a transaction.\n"}},"type":"object","required":["id","status","type","source","components","history"],"title":"Transaction"},"TransactionComponent":{"title":"Transaction Component","description":"A component of a transaction.  It indicates changes to the positions or funds affected by a transaction.\n","anyOf":[{"$ref":"#/components/schemas/CashComponent"},{"$ref":"#/components/schemas/SecuritiesComponent"}],"discriminator":{"propertyName":"type","mapping":{"cash":"#/components/schemas/CashComponent","securities":"#/components/schemas/SecuritiesComponent"}}},"TransactionComponentDirection":{"type":"string","enum":["debit","credit"],"title":"TransactionComponentDirection","description":"A category representing a component direction:\n<ul> <li><code>credit</code>: Assets for the customer.  The amount/quanity will be added to the balance/position. <li><code>debit</code>: Liabilities for the customer.  The amount/quantity will be subtracted from the balance/position. </ul>\n"},"TransactionComponentType":{"type":"string","enum":["cash","securities"],"title":"TransactionComponentType","description":"A category representing a component type:\n<ul> <li><code>cash</code>: Cash component; this component modifies the customer's cash balance. <li><code>securities</code>: Securities component; this component modified a customer's position. </ul>\n"},"TransactionStatus":{"type":"string","enum":["canceled","created","settled"],"title":"TransactionStatus","description":"A category representing a transaction status:\n<ul> <li><code>canceled</code>: The transaction was canceled. <li><code>created</code>: The transaction was created and is not settled yet. <li><code>settled</code>: The transaction is settled. </ul>\n"},"TransactionType":{"type":"string","enum":["corporate_action","deposit","income_distribution","securities_transfer","sweep","tax","trade","withdrawal"],"title":"TransactionType","description":"A category representing a transaction type:\n<ul> <li><code>corporate_action</code>: Corporate Action (eg. a Cash Dividend) <li><code>deposit</code>: Cash Deposit <li><code>income_distribution</code>: Income Distribution <li><code>securities_transfer</code>: Securities Transfer <li><code>sweep</code>: Balance Sweep <li><code>tax</code>: Tax Payment <!--or Credit--> <li><code>trade</code>: Trade <li><code>withdrawal</code>: Cash Withdrawal </ul>\n"},"TreasuryMandateCreationResponse":{"description":"An object representing a treasury mandate.\n","properties":{"id":{"type":"string","title":"Identifier","description":"An identifier for the treasury mandate.\n"},"instrument":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument to be bought/sold via the mandate.\n"},"widget_styling":{"type":{"$ref":"#/components/schemas/WidgetStyling"},"title":"Widget Styling","description":"The styling configuration applied to the treasury mandate widget, if provided during creation.\n"},"redirect_success":{"type":"string","title":"Redirect Success","description":"The redirect target that will be opened after successful acceptance of a mandate.\n"},"redirect_failure":{"type":"string","title":"Redirect Failure","description":"The redirect target that will be opened after failure to accept a mandate.\n"},"widget_url":{"type":"string","title":"Widget URL","format":"uri","description":"A web URL.  Use this URL to present the user flow for mandate acceptance.\n"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_TreasuryMandateStatus_"},"type":"array","title":"History"}},"type":"object","required":["id","instrument","redirect_success","redirect_failure","widget_url","history"],"title":"TreasuryMandateCreationResponse"},"TreasuryMandateEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"treasury_mandate":{"type":"string","title":"Treasury Mandate","description":"A treasury mandate identifier. This field represents the treasury mandate associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","treasury_mandate"],"title":"TreasuryMandateEventContext"},"TreasuryMandateResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"An identifier for the treasury mandate.\n"},"instrument":{"type":"string","pattern":"^[A-Z]{2}[0-9A-Z]{9}[0-9]$","title":"Instrument","description":"An ISIN (International Securities Identification Number) according to ISO 6166. This value uniquely identifies the instrument to be bought/sold via the mandate.\n"},"redirect_success":{"type":"string","title":"Redirect Success","description":"The redirect target that will be opened after successful acceptance of a mandate.\n"},"redirect_failure":{"type":"string","title":"Redirect Failure","description":"The redirect target that will be opened after failure to accept a mandate.\n"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_TreasuryMandateStatus_"},"type":"array","title":"History"}},"type":"object","required":["id","instrument","redirect_success","redirect_failure","history"],"title":"TreasuryMandateResponse"},"WidgetStyling":{"description":"Optional styling configuration for the treasury mandate widget. All fields are optional and allow customization of the widget's appearance to match your application's design.\n","properties":{"background_color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","title":"Background Color","description":"The background color of the widget in hex format (e.g., <code>#FFFFFF</code>). Defaults to <code>#f9f9f9</code>.\n"},"text_color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","title":"Text Color","description":"The color of the text in the widget in hex format (e.g., <code>#000000</code>). Defaults to <code>#444444</code>.\n"},"text_size":{"type":"string","pattern":"^\\d+(\\.\\d+)?px$","title":"Text Size","description":"The size of the text in pixel format (e.g., <code>16px</code>). Defaults to <code>16px</code>.\n"},"text_line_height":{"type":"string","pattern":"^\\d+(\\.\\d+)?$","title":"Text Line Height","description":"The line height of the text as a numeric value (e.g., <code>1.5</code>). Defaults to <code>1.75</code>.\n"},"logo_color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","title":"Logo Color","description":"The color of the lemon.markets logo in the footer in hex format (e.g., <code>#000000</code>). When provided, this overrides the logo with a monochrome version in your specified color. Otherwise, it defaults to the standard lemon.markets logo colors.\n"},"button_text_color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","title":"Button Text Color","description":"The color of the button text in hex format (e.g., <code>#FFFFFF</code>). Defaults to <code>#ffffff</code> (white).\n"},"button_background_color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","title":"Button Background Color","description":"The background color of the button in hex format (e.g., <code>#007AFF</code>). Defaults to <code>#111111</code>.\n"},"button_text_color_hover":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","title":"Button Text Color Hover","description":"The color of the button text on hover in hex format (e.g., <code>#FFFFFF</code>). Defaults to <code>#ffffff</code> (white).\n"},"button_background_color_hover":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$","title":"Button Background Color Hover","description":"The background color of the button on hover in hex format (e.g., <code>#0051D5</code>). Defaults to <code>#222222</code>.\n"},"button_corner_radius":{"type":"string","pattern":"^\\d+(\\.\\d+)?px$","title":"Button Corner Radius","description":"The corner radius of the button in pixel format (e.g., <code>8px</code>). Defaults to <code>100px</code>.\n"}},"type":"object","title":"WidgetStyling"},"TreasuryMandateStatus":{"type":"string","enum":["accepted","canceled","canceling","confirmed","created","rejected"],"description":"A category representing the status of a treasury mandate:\n<ul> <li><code>accepted</code> <li><code>canceled</code> <li><code>canceling</code> <li><code>confirmed</code> <li><code>created</code> <li><code>rejected</code> </ul>\n","title":"TreasuryMandateStatus"},"TreasuryTransferEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"order":{"type":"string","title":"Order","description":"An order identifier. This field represents the order associated with an event.\n"},"treasury_transfer":{"type":"string","title":"Treasury Transfer","description":"An treasury transfer identifier. This field represents the treasury transfer associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","order","treasury_transfer"],"title":"TreasuryTransferEventContext"},"TreasuryTransferResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"The unique identifier for this treasury transfer.\n"},"treasury_mandate":{"type":"string","title":"Treasury Mandate Identifier","description":"A treasury mandate identifier.  This field indicates which treasury mandate will be used to perform the transaction.\n"},"order":{"type":"string","title":"Order Identifier","description":"A treasury mandate identifier.  This field indicates the underlying order used to perform the transaction.\n"},"type":{"$ref":"#/components/schemas/TreasuryTransferType"},"amount":{"type":"string","title":"Amount","description":"The amount of money to transfer.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the `amount` listed here. The only currently available currency is `\"EUR\"`.\n"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_TreasuryTransferStatus_"},"type":"array","title":"History"}},"type":"object","required":["id","treasury_mandate","order","type","amount","currency","history"],"title":"TreasuryTransferResponse"},"TreasuryTransferSettlementEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"order":{"type":"string","title":"Order","description":"An order identifier. This field represents the order associated with an event.\n"},"trade":{"type":"string","title":"Trade","description":"A trade identifier. This field represents the trade associated with an event.\n"},"treasury_transfer":{"type":"string","title":"Treasury Transfer","description":"A treasury transfer identifier. This field represents the treasury transfer associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","order","treasury_transfer","trade"],"title":"TreasuryTransferSettlementEventContext"},"TreasuryTransferStatus":{"type":"string","enum":["canceled","created","pending","processed","rejected","settled"],"title":"TreasuryTransferStatus","description":"A category describing the a treasury transfer status:\n<ul> <li><code>canceled</code>: The treasury transfer is canceled. <li><code>created</code>: The treasury transfer is created and waiting for confirmation. <li><code>pending</code>: The treasury transfer is pending execution and waiting to be processed. <li><code>processed</code>: The treasury transfer is processed and waiting to be settled. <li><code>rejected</code>: The treasury transfer is rejected. <li><code>settled</code>: The treasury transfer is settled. </ul>\n"},"TreasuryTransferType":{"type":"string","enum":["deposit","withdrawal"],"title":"TreasuryTransferType","description":"A category describing the a treasury transfer direction:\n<ul> <li><code>deposit</code> <li><code>withdrawal</code> </ul>\n"},"ScheduleTriggerRequest":{"properties":{"type":{"type":"string","const":"schedule","title":"Type"},"cadence":{"$ref":"#/components/schemas/ScheduledCadenceType"},"start_after":{"type":"string","format":"date","title":"Start After","description":"Block workflow execution until the date specified here.  This date specifies the last day that the trigger should not be activated.  If you want to block a workflow for July 2025, you can pass 2025-07-31 and the trigger will not be activated before 2025-08-01.\n"},"day_of_month":{"type":"integer","minimum":1,"maximum":31,"title":"Day of Month","description":"The day of the month on which the workflow executes. Optional; only applicable to a <code>monthly</code> cadence. Valid range 1-31; if the chosen day exceeds the number of days in a month it is clamped to the last day of that month (e.g. 31 in February -> 28/29). If the resolved day falls on a weekend or trading holiday, execution rolls forward to the next trading day. When omitted, the workflow executes on the first trading day of the month.\n"},"day_of_week":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday"],"title":"Day of Week","description":"The weekday on which the workflow executes. Optional; only applicable to a <code>weekly</code> cadence. If the resolved day falls on a trading holiday, execution rolls forward to the next trading day. When omitted, the workflow executes on the first trading day of the week.\n"}},"type":"object","required":["type","cadence"],"title":"ScheduleTriggerRequest"},"BuyingPowerAvailableTriggerRequest":{"properties":{"type":{"type":"string","const":"buying_power_available","title":"Type"}},"type":"object","required":["type"],"title":"BuyingPowerAvailableTriggerRequest"},"TriggerRequest":{"oneOf":[{"$ref":"#/components/schemas/ScheduleTriggerRequest"},{"$ref":"#/components/schemas/BuyingPowerAvailableTriggerRequest"}],"discriminator":{"propertyName":"type","mapping":{"schedule":"#/components/schemas/ScheduleTriggerRequest","buying_power_available":"#/components/schemas/BuyingPowerAvailableTriggerRequest"}},"title":"TriggerRequest","description":"A workflow trigger.  This structure represents the way that the workflow is started.  The <code>type</code> field selects the trigger: <ul>\n  <li><code>schedule</code>: starts the workflow on a recurring schedule.</li>\n  <li><code>buying_power_available</code>: starts the workflow when there is at least 1 EUR available\n  on the cash account mapped to the securities account, and invests it according to the configured allocations.  It carries no further parameters.  Sending <code>cadence</code>,\n  <code>start_after</code>, <code>day_of_month</code> or <code>day_of_week</code> with this trigger is\n  rejected with a 400.</li>\n</ul>\n"},"ScheduleTriggerResponse":{"properties":{"type":{"type":"string","const":"schedule","title":"Type"},"cadence":{"$ref":"#/components/schemas/ScheduledCadenceType"},"start_after":{"type":"string","format":"date","title":"Start After","description":"Block workflow execution until the date specified here.  This date specifies the last day that the trigger should not be activated.  If you want to block a workflow for July 2025, you can pass 2025-07-31 and the trigger will not be activated before 2025-08-01.\n"},"next_run_date":{"type":"string","format":"date","title":"Next Run Date","description":"The next scheduled execution date for this workflow (adjusted for non-trading days). Calculated when the workflow is confirmed; omitted for workflows in <code>created</code> status.\n"},"day_of_month":{"type":"integer","minimum":1,"maximum":31,"title":"Day of Month","description":"The day of the month on which the workflow executes. Optional; only applicable to a <code>monthly</code> cadence. Valid range 1-31; if the chosen day exceeds the number of days in a month it is clamped to the last day of that month (e.g. 31 in February -> 28/29). If the resolved day falls on a weekend or trading holiday, execution rolls forward to the next trading day. When omitted, the workflow executes on the first trading day of the month.\n"},"day_of_week":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday"],"title":"Day of Week","description":"The weekday on which the workflow executes. Optional; only applicable to a <code>weekly</code> cadence. If the resolved day falls on a trading holiday, execution rolls forward to the next trading day. When omitted, the workflow executes on the first trading day of the week.\n"}},"type":"object","required":["type","cadence"],"title":"ScheduleTriggerResponse"},"BuyingPowerAvailableTriggerResponse":{"properties":{"type":{"type":"string","const":"buying_power_available","title":"Type"}},"type":"object","required":["type"],"title":"BuyingPowerAvailableTriggerResponse"},"TriggerResponse":{"oneOf":[{"$ref":"#/components/schemas/ScheduleTriggerResponse"},{"$ref":"#/components/schemas/BuyingPowerAvailableTriggerResponse"}],"discriminator":{"propertyName":"type","mapping":{"schedule":"#/components/schemas/ScheduleTriggerResponse","buying_power_available":"#/components/schemas/BuyingPowerAvailableTriggerResponse"}},"title":"TriggerResponse"},"TriggerType":{"type":"string","enum":["schedule","buying_power_available"],"title":"TriggerType","description":"A category representing the type of the trigger:\n<ul> <li><code>schedule</code> - the workflow runs on a recurring schedule. <li><code>buying_power_available</code> - the workflow runs when there is available cash to invest. </ul>\n"},"VerificationRequest":{"description":"An object representing proof of ownership of the private key associated with the public key being registered.\n","properties":{"nonce":{"type":"string","title":"Nonce","description":"The base64-url encoded form of random data used to create `signature`.\n"},"signature":{"type":"string","title":"Signature","description":"The base64-url encoded DER form of the signature for `nonce` using the private key for the public key that's being registered as an authenticator.\n"}},"type":"object","required":["nonce","signature"],"title":"VerificationRequest"},"Webhook":{"title":"Webhook","description":"An object representing a registered webhook.\n","required":["id","url","events","signature_secret"],"type":"object","properties":{"id":{"title":"Webhook Identifier","type":"string","example":"wbh_0953534cf20f414098533680abd6b1c6","description":"A string representing a webhook's unique identifier.\n"},"url":{"title":"Web URL","type":"string","format":"uri","description":"The URL registered to receive webhook notifications.\n"},"events":{"type":"array","items":{"$ref":"#/components/schemas/EventType"}},"signature_secret":{"title":"Signature Secret","type":"string","description":"Shared secret used to calculate the signature in the HTTP header Lemon-Markets-Signature for requests posted to the webhook URL.\n"}}},"WithdrawalEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"cash_account":{"type":"string","title":"Cash Account","description":"A cash account identifier. This field represents the cash account associated with an event.\n"},"withdrawal":{"type":"string","title":"Withdrawal","description":"A withdrawal identifier. This field represents the withdrawal associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","cash_account","withdrawal"],"title":"WithdrawalEventContext"},"WithdrawalResponse":{"properties":{"id":{"type":"string","title":"Identifier","description":"A string representing the unique identifier of this transaction.\n"},"status":{"$ref":"#/components/schemas/WithdrawalStatus"},"amount":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"string"}],"title":"Amount","description":"The amount of money to withdraw.\n"},"cash_account":{"type":"string","title":"Cash Account","description":"The identifier of the cash account associated with this withdrawal.\n"},"currency":{"type":"string","maxLength":3,"minLength":3,"title":"Currency","example":"EUR","description":"An ISO 4217 three-letter currency code. Its value represents the currency for the amount listed here. The only currently available currency is `\"EUR\"`.\n"},"receiving_account":{"$ref":"#/components/schemas/BankAccountResponse"},"sca":{"$ref":"#/components/schemas/StrongCustomerAuthenticationRequest"},"history":{"items":{"$ref":"#/components/schemas/StatusChange_WithdrawalStatus_"},"type":"array","title":"History","description":"A history of the status changes for a withdrawal.\n"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"The timestamp of the withdrawal.  It represents the point in time at which the withdrawal was created.\n**NOTE:**  Deprecated as of 2024-06, use `history` to query this information.\n"}},"type":"object","required":["id","status","amount","cash_account","currency","receiving_account","history"],"title":"WithdrawalResponse"},"WithdrawalStatus":{"type":"string","enum":["accepted","canceled","confirmed","created","processed","rejected"],"title":"Withdrawal Status","description":"A category representing a withdrawal's status:\n<ul> <li><code>accepted</code> <li><code>canceled</code> <li><code>confirmed</code> <li><code>created</code> <li><code>processed</code> <li><code>rejected</code> </ul>\n"},"WithdrawalTransactionEventContext":{"properties":{"account":{"type":"string","title":"Account","description":"An account identifier. This field represents the account associated with an event.\n"},"cash_account":{"type":"string","title":"Cash Account","description":"A cash account identifier. This field represents the cash account associated with an event.\n"},"transaction":{"type":"string","title":"Transaction","description":"A transaction identifier. This field represents the transaction associated with an event.\n"},"withdrawal":{"type":"string","title":"Withdrawal","description":"A withdrawal identifier. This field represents the withdrawal associated with an event.\n"}},"additionalProperties":false,"type":"object","required":["account","cash_account","withdrawal","transaction"],"title":"WithdrawalTransactionEventContext"}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"bearerAuth":[]}]}