API cookbook
GraphQL: pricing + drill-down in one call
GraphQL shines when you want the quotes and the per-rule trace from a single round-trip. Schema introspection works against /graphql.
intermediateGraphQL · TypeScript
query Price($input: LoanInput!) {
pricing(input: $input, mode: BEST_EX) {
quotes {
id
investorName
productCode
noteRate
basePrice
finalPrice
ratesheetVersion
adjustments {
ruleId
description
condition
combineStrategy
amount
runningCumulative
}
}
correlationId
}
}One round-trip; the trace is part of the same response object. Useful when your front-end wants to render the drill-down without a second call.