fixed-routes
Validate if a fixed route can be created
Changed onChecks if a fixed route configuration is valid before creating it. Returns validation result with any errors.
post/v1/fixed-routes/validate
Request
- Base URLhttps://sandbox.api.infinite.dev
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-API-Keystring
API key
Request body
Example request
{
"sweepTargetAccountId": "ewa_abc123",
"fixedRouteType": "FIAT_TO_CRYPTO",
"sourceRail": "ACH",
"sourceRails": [
"ACH",
"WIRE"
],
"sourceCurrency": "USD",
"destinationRail": "BASE",
"destinationCurrency": "USDC"
}Response
Validation result
Example response
{
"valid": true,
"error": "FIAT_TO_CRYPTO route requires a wallet as sweep target",
"minimumAmount": {
"currency": "USD",
"exponent": 2,
"value": "12345",
"displayValue": "123.45"
}
}Changes
- info
added the new
CNAPSenum value to the request property/
- info
- info
added the new
CRYPTO_TO_BALANCEenum value to the request property
- info