lemon.markets Treasury Mandates API

The Treasury Mandates API from lemon.markets — 9 operation(s) for treasury mandates.

Operations 11

POST /accounts/{account_id}/treasury_mandates/{mandate_id}/cancel Cancel Treasury Mandate #
POST /accounts/{account_id}/treasury_mandates Create Treasury Mandate #
GET /accounts/{account_id}/treasury_mandates List Treasury Mandates #
POST /accounts/{account_id}/treasury_transfers Create Treasury Transfer #
GET /accounts/{account_id}/treasury_transfers List Treasury Transfers #
GET /treasury_fees/{fee_id} Get Treasury Fee By Id #
GET /accounts/{account_id}/treasury_financials Get Treasury Financials #
GET /accounts/{account_id}/treasury_mandates/{mandate_id} Get Treasury Mandate #
GET /accounts/{account_id}/treasury_transfers/{treasury_transfer_id} Get Treasury Transfer #
GET /treasury_fees/{fee_id}/customer_fees Get Customer Fee Composition for a Treasury Fee #
GET /treasury_fees List Treasury Fees #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lemonmarkets-treasury-mandates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lemonmarkets-treasury-mandates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 'lemon.markets Brokerage API 🍋 Accounts: General Treasury Mandates API'
  version: 0.1.0
servers:
- url: https://sandbox.api.lemon.markets/v1
  description: Sandbox
tags:
- name: Treasury Mandates
paths:
  /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.

          '
      - 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_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.

          '
      - 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.

          '
      - 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.

          A cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.

          '
        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.

          '
        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_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.

          '
      - 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.

          '
      - 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.

          A cursor will include filter parameters, so there is not need to specify both the `cursor` and any other filter parameter.

          '
        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.

          '
        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
  /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.

        '
      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
  /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.

          '
      - 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/{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.

          '
      - 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_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.

          '
      - name: treasury_transfer_id
        in: path
        required: true
        schema:
          type: string
          title: Treasury Transfer Identifier
        description: 'A treasury transfer 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/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
  /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.

        '
      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.

          A cursor will include filter parameters, so there is no need to specify both the `cursor` and any other filter parameter.

          '
        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.

          '
        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
  /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.

          A cursor will include filter parameters, so there is no need to specify both the `cursor` and any other filter parameter.

          '
      - 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.

          '
        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
components:
  schemas:
    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.

            '
          example: '2023-06-23T07:29:55.465000+00:00'
      type: object
      required:
      - status
      - timestamp
      title: StatusChange[TreasuryTransferStatus]
    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

            '
        available_balance:
          type: string
          format: number
          title: Available Balance
          description: 'The available portfolio balance for withdrawals

            '
        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 wi

# --- truncated at 32 KB (50 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/lemonmarkets/refs/heads/main/openapi/lemonmarkets-treasury-mandates-api-openapi.yml