# Client preset fees

## Returns the list of preset fees for a client.

> The preset fees are sorted by creation date, with the most recent preset fee appearing first.\<br /> The preset fee of the associated manager are not returned.\<br /> A client preset fee overrides the manager preset fee for the same transaction path.<br>

```json
{"openapi":"3.1.0","info":{"title":"Rialto Manager API","version":"1.0.0"},"servers":[{"url":"https://api.rialtobridge.xyz/api/manager/v1","description":"Main (production) server for the Rialto Manager API"},{"url":"https://staging.api.rialtobridge.xyz/api/manager/v1","description":"Test (staging) server for the Rialto Manager API"},{"url":"http://localhost:3002/api/manager/v1","description":"Development server for the Rialto Manager API"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"RIALTO_API_KEY","in":"header"}},"responses":{"PresetFees":{"description":"A JSON array of preset fees.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PresetFee"}}}}}},"schemas":{"PresetFee":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier of the preset fee."},"feeDirection":{"type":"string","description":"The type of the fee. Possible values are:\n  - OFFRAMP: The fee only concerns off-ramping of blockchain asset to fiat currency,\n  - ONRAMP: The fee only concerns on-ramping of fiat currency to blockchain asset.\n  - ONOFFRAMP: The fee concerns both on-ramping and off-ramping.\n","enum":["OFFRAMP","ONRAMP","ONOFFRAMP"]},"fiatFeeGroup":{"type":"string","description":"The fiat fee group of the preset fee. See [the list of supported](https://docs.rialtobridge.xyz/concepts) fiat fee groups."},"blockchainFeeGroup":{"type":"string","description":"The blockchain fee group of the preset fee. See [the list of supported](https://docs.rialtobridge.xyz/concepts) blockchain fee groups."},"configuration":{"type":"object","description":"The configuration of the preset fee.","oneOf":[{"type":"object","description":"The same fee is applied to all transactions.","properties":{"type":{"type":"string","enum":["FLAT"]},"fee":{"type":"number","format":"uint32","description":"The fee in BPS (basis points) applied to any transaction for this path.<br />. The value is always positive.\n"},"fixedFee":{"type":"object","additionalProperties":{"type":"string"},"description":"A fixed fee amount denominated in origin currency applied to any transaction for this path.<br />. The property is an object for which keys are currencies or assets, and values are the applied fixed fee.<br />. Fixed fees are always positive.\n"}}},{"type":"object","description":"The fee is computed based on the monthly volume of the transactions for this path. The reference date is using the UTC timezone.","properties":{"type":{"type":"string","enum":["MONTHLY_VOLUME"]},"fixedFee":{"type":"object","additionalProperties":{"type":"string"},"description":"A fixed fee amount denominated in origin currency applied to any transaction for this path.<br />. The property is an object for which keys are currencies or assets, and values are the applied fixed fee.<br />. Fixed fees are always positive.\n"},"intermediaryLimits":{"type":"array","items":{"type":"object","properties":{"to":{"type":"number","format":"float","description":"The upper limit for this range of monthly volume.<br /> The value is always positive. Only two decimal places are allowed.\n"},"fee":{"type":"number","format":"uint32","description":"The fee in BPS (basis points) applied in this range.<br /> The value is always positive.\n"}}}},"upperLimitFee":{"type":"number","format":"uint32","description":"The fee in BPS (basis points) applied to any transaction for this path above the last range.<br /> The value is always positive.\n"}}},{"type":"object","description":"The fee is computed based on the daily volume of the transactions for this path. The reference date is using the UTC timezone.","properties":{"type":{"type":"string","enum":["DAILY_VOLUME"]},"intermediaryLimits":{"type":"array","items":{"type":"object","properties":{"to":{"type":"number","format":"float","description":"The upper limit for this range of monthly volume.<br /> The value is always positive. Only two decimal places are allowed.\n"},"fee":{"type":"number","format":"uint32","description":"The fee in BPS (basis points) applied in this range.<br /> The value is always positive.\n"}}}},"upperLimitFee":{"type":"number","format":"uint32","description":"The fee in BPS (basis points) applied to any transaction for this path above the last range.<br /> The value is always positive.\n"}}}]},"createdAt":{"type":"string","format":"date-time","description":"The creation date of the preset fee."}}}}},"paths":{"/clients/{clientId}/preset-fees":{"get":{"summary":"Returns the list of preset fees for a client.","description":"The preset fees are sorted by creation date, with the most recent preset fee appearing first.<br /> The preset fee of the associated manager are not returned.<br /> A client preset fee overrides the manager preset fee for the same transaction path.\n","operationId":"getClientPresetFees","tags":["Client preset fees"],"parameters":[{"name":"clientId","in":"path","required":true,"description":"The unique identifier of the client.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"$ref":"#/components/responses/PresetFees"},"401":{"description":"Invalid API key"},"404":{"description":"Client not found."},"500":{"description":"An unexpected error occurred."}}}}}}
```

## Returns a preset fee by ID for a client.

> Returns a preset fee by its unique identifier.\<br /> If matching a preset fee for an associated manager, it is not returned.\<br /> A client preset fee overrides the manager preset fee for the same transaction path.<br>

```json
{"openapi":"3.1.0","info":{"title":"Rialto Manager API","version":"1.0.0"},"servers":[{"url":"https://api.rialtobridge.xyz/api/manager/v1","description":"Main (production) server for the Rialto Manager API"},{"url":"https://staging.api.rialtobridge.xyz/api/manager/v1","description":"Test (staging) server for the Rialto Manager API"},{"url":"http://localhost:3002/api/manager/v1","description":"Development server for the Rialto Manager API"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"type":"apiKey","name":"RIALTO_API_KEY","in":"header"}},"responses":{"PresetFeeById":{"description":"A preset fee.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresetFee"}}}}},"schemas":{"PresetFee":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"The unique identifier of the preset fee."},"feeDirection":{"type":"string","description":"The type of the fee. Possible values are:\n  - OFFRAMP: The fee only concerns off-ramping of blockchain asset to fiat currency,\n  - ONRAMP: The fee only concerns on-ramping of fiat currency to blockchain asset.\n  - ONOFFRAMP: The fee concerns both on-ramping and off-ramping.\n","enum":["OFFRAMP","ONRAMP","ONOFFRAMP"]},"fiatFeeGroup":{"type":"string","description":"The fiat fee group of the preset fee. See [the list of supported](https://docs.rialtobridge.xyz/concepts) fiat fee groups."},"blockchainFeeGroup":{"type":"string","description":"The blockchain fee group of the preset fee. See [the list of supported](https://docs.rialtobridge.xyz/concepts) blockchain fee groups."},"configuration":{"type":"object","description":"The configuration of the preset fee.","oneOf":[{"type":"object","description":"The same fee is applied to all transactions.","properties":{"type":{"type":"string","enum":["FLAT"]},"fee":{"type":"number","format":"uint32","description":"The fee in BPS (basis points) applied to any transaction for this path.<br />. The value is always positive.\n"},"fixedFee":{"type":"object","additionalProperties":{"type":"string"},"description":"A fixed fee amount denominated in origin currency applied to any transaction for this path.<br />. The property is an object for which keys are currencies or assets, and values are the applied fixed fee.<br />. Fixed fees are always positive.\n"}}},{"type":"object","description":"The fee is computed based on the monthly volume of the transactions for this path. The reference date is using the UTC timezone.","properties":{"type":{"type":"string","enum":["MONTHLY_VOLUME"]},"fixedFee":{"type":"object","additionalProperties":{"type":"string"},"description":"A fixed fee amount denominated in origin currency applied to any transaction for this path.<br />. The property is an object for which keys are currencies or assets, and values are the applied fixed fee.<br />. Fixed fees are always positive.\n"},"intermediaryLimits":{"type":"array","items":{"type":"object","properties":{"to":{"type":"number","format":"float","description":"The upper limit for this range of monthly volume.<br /> The value is always positive. Only two decimal places are allowed.\n"},"fee":{"type":"number","format":"uint32","description":"The fee in BPS (basis points) applied in this range.<br /> The value is always positive.\n"}}}},"upperLimitFee":{"type":"number","format":"uint32","description":"The fee in BPS (basis points) applied to any transaction for this path above the last range.<br /> The value is always positive.\n"}}},{"type":"object","description":"The fee is computed based on the daily volume of the transactions for this path. The reference date is using the UTC timezone.","properties":{"type":{"type":"string","enum":["DAILY_VOLUME"]},"intermediaryLimits":{"type":"array","items":{"type":"object","properties":{"to":{"type":"number","format":"float","description":"The upper limit for this range of monthly volume.<br /> The value is always positive. Only two decimal places are allowed.\n"},"fee":{"type":"number","format":"uint32","description":"The fee in BPS (basis points) applied in this range.<br /> The value is always positive.\n"}}}},"upperLimitFee":{"type":"number","format":"uint32","description":"The fee in BPS (basis points) applied to any transaction for this path above the last range.<br /> The value is always positive.\n"}}}]},"createdAt":{"type":"string","format":"date-time","description":"The creation date of the preset fee."}}}}},"paths":{"/clients/{clientId}/preset-fees/{presetFeeId}":{"get":{"summary":"Returns a preset fee by ID for a client.","description":"Returns a preset fee by its unique identifier.<br /> If matching a preset fee for an associated manager, it is not returned.<br /> A client preset fee overrides the manager preset fee for the same transaction path.\n","operationId":"getClientPresetFeeById","tags":["Client preset fees"],"parameters":[{"name":"clientId","in":"path","required":true,"description":"The unique identifier of the client.","schema":{"type":"string","format":"uuid"}},{"name":"presetFeeId","in":"path","required":true,"description":"The unique identifier of the preset fee.","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"$ref":"#/components/responses/PresetFeeById"},"401":{"description":"Invalid API key"},"404":{"description":"Client or preset fee not found."},"500":{"description":"An unexpected error occurred."}}}}}}
```
