API cookbook
Wire RateStack to Encompass via MISMO 3.4
The integration recipe: import loans from Encompass, price them, return rates back. Round-trip safety and the field map.
intermediateTypeScript · MISMO
The standard Encompass integration round-trips MISMO 3.4 between systems. RateStack's loan-import endpoint accepts MISMO 3.4 XML natively; pricing returns flow back to Encompass via webhook or pull.
# Import a loan from Encompass into RateStack
curl -X POST "https://api.ratestack.com/v1/loans/import?\
ownerUserId=$OWNER&importedByUserId=$ME&sourceSystem=encompass" \
-H "X-API-Key: $RATESTACK_KEY" \
-H "Content-Type: application/xml" \
--data-binary @loan-from-encompass.mismo.xml
# Returns { loanId, fingerprint, normalized: {...}, warnings: [] }
# Price the imported loan
curl -X POST https://api.ratestack.com/v1/pricing/mode \
-H "X-API-Key: $RATESTACK_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d "{\"loanId\": \"$LOAN_ID\", \"pricingMode\": \"BEST_EX\"}"On the return path, subscribe to the pricing.computed webhook and map the returned quotes back to your Encompass loan's rate-and-pricing fields. Idempotency ensures retries are safe.