Rating API documentation

Rating API documentation

The SelectRate Rating API rates ISO, AAIS and California workers' compensation programs from your own systems: discover what a client may rate, create and rate quotes against every granted program, select and bind a result, and carry the policy through endorsement, premium audit, extension, cancellation, reinstatement, rewrite and renewal. It runs the same engine as the Underwriter Workbench.

AuthenticateOAuth2 client credentials; scopes and program grantsToken
Quote and rateOne shared quote, rated against every granted programQuotes
Bind and serviceSelection, bind and every policy transactionPolicies
OpenAPI 3.1 definitionPublic

Overview

A quote is one shared record with a stable reference (SRQ-...), visible to your underwriters in the Underwriter Workbench at once. Rating a quote rates it against every program the client is granted for the product, state and effective date, and returns one result per program with its own status and worksheet. The result to bind is selected explicitly. Binding creates the policy term, and later transactions rate on the versions locked at the term's start.

Base path: /api/rating/v1. All rating is synchronous JSON over HTTPS. The machine-readable definition is public: openapi.yaml (OpenAPI 3.1, 38 operations).

Authentication and scopes

OAuth2 client credentials. Each API client has its own credential; send the bearer token on every call as Authorization: Bearer <access_token>. In production, tokens are issued by the identity provider configured for your client; sandbox hosts issue them at POST /api/rating/v1/token. Tokens expire after an hour and are simply requested again.

Scopes decide which operations a client may call; program grants decide which programs it may rate. Another organization's data answers 404.

ScopeAllows
rating.readGET /client, /products, /programs, /products/{code}/schema; GET /quotes, /quotes/{reference}, /quotes/by-external-id/{system}/{externalQuoteId}, /quotes/{reference}/validation, /quotes/{reference}/ratings; GET /policies, /policies/{policyTermId}. It does not read a worksheet.
rating.quotePOST /quotes, PATCH /quotes/{reference}, POST /quotes/{reference}/ratings, /selection, /bound, /transaction/accept, /transaction/discard, and the policy transactions (renewal, rewrite, endorsement, audit, cancellation, reinstatement, extension).
worksheet.readGET /quotes/{reference}/ratings/{ratingRunId}/worksheet. Required for every worksheet, in addition to rating.read: a client without it is refused with 403 Forbidden, while it still reads the quote and its results with rating.read.
program.readThe governed reads: /standard-programs, /programs/{programCode}/configuration, /organization/programs, /publish-requests, /product-access.
execution.readGET /executions/{executionId}.
quote.organization.readIntegration access: read every quote and policy of the organizations that own the client's granted programs, for the products it is granted (?scope=organization).
quote.organization.linkIntegration access: set the external references on such a quote - nothing else of it.
quote.organization.transactIntegration access: record the bind confirmation of such a quote and run the certified policy transactions of such a policy.

Conventions

Headers, status codes and the error envelope are the same on every operation.

HeaderUse
AuthorizationBearer <access_token> on every call except POST /token.
Idempotency-KeyOPTIONAL and honoured on every POST that changes something (create, rate, select, bound, accept, discard, and the confirming policy transactions). An opaque string of at most 200 characters. The same key with the same request answers with the stored first response; the same key with a different request is 409 IdempotencyConflict; a request still running is 409 IdempotencyInProgress. A failed request remembers nothing. Not used on PATCH (expectedRevision guards it), on the calculate operations or on reads.
Idempotency-ReplayedResponse header 'true' when a stored response was replayed for a repeated key.
X-Correlation-IdOptional request header (at most 100 characters), returned on the response and present as correlationId in every error; generated when omitted.
StatusMeaning
200Every successful call, including every business outcome of a rating (Rated, Referred, not yet effective ...): read the result's status and message.
400ValidationFailed (the members at fault under fieldErrors) or InvalidRequest. Nothing was saved.
401Unauthorized: no bearer token of an active API client.
403Forbidden: the client lacks the scope, or the program.
404NotFound: unknown, or not a quote or policy this client may see (both answer alike).
409A stable code: QuoteRevisionConflict, QuoteFrozen, ExternalQuoteAlreadyLinked, ExternalQuoteIdentityFixed, RatingResultMismatch, RatingResultStale, RatingResultNotSelectable, SelectedResultRequired, IdempotencyConflict, IdempotencyInProgress, or the rating platform's own code when it refuses or refers a policy transaction (for example ConfigurationRequired).
502 / 503 / 504SharedQuoteApiUnavailable / SharedQuoteApiNotConfigured or RatingPlatformUnavailable / SharedQuoteApiTimeout: the service behind the public address did not answer. Repeat a changing request with the same Idempotency-Key.
Error fieldContent
error<stable code>
detail<a sentence for a person>
correlationId<id>
fieldErrorswith ValidationFailed: { member: reason }
currentRevisionwith QuoteRevisionConflict
referencewith ExternalQuoteAlreadyLinked: the client's own existing quote

Typical flows

Program catalog

Discover what this client may rate: the entitled products, the exact granted programs (with carrier, owner, availability floor and jurisdictions) and the product's request contract.

  1. GET /api/rating/v1/products
    The products the client holds at least one active program grant for (and, when the client acts for an organization, that the organization holds).
  2. GET /api/rating/v1/programs?product=<productCode>
    The client's granted programs; optional filters product= and carrier=.
  3. GET /api/rating/v1/products/GL/schema
    The risk-document contract. ISO GL: the typed policy contract. AAIS / shared-platform products: the governed field map for ?jurisdiction=XX&effectiveDate=YYYY-MM-DD (fields[] with code, type, required, options, visibleWhen, help, min, max, default; groups[] for repeating input groups).
  4. GET /api/rating/v1/products/MTC/schema?jurisdiction=MO&effectiveDate=2026-06-01
    An AAIS governed schema: the questions this state asks on this date.

New business rating

New Business: create the quote from the risk document (it is in the organization's quote list in the Underwriter Workbench at once), check that it can be rated, rate it against every granted program, read the quote and its rating history.

  1. POST /api/rating/v1/quotes
    Create a Draft quote. Only product and effectiveDate are required; the answer carries the SRQ reference, the revision and issues (what this request supplied that is missing or not valid). The request names no program.
  2. GET /api/rating/v1/quotes/<reference>/validation
    Whether the saved quote can be rated as it stands, with every finding, without rating anything.
  3. POST /api/rating/v1/quotes/<reference>/ratings
    Rate the quote against every program the client is granted for the product: one result per program in ratings[], each named by its ratingRunId. Send no body. A business outcome (Rated, Referred ...) is always 200. No result is selected by rating.
  4. GET /api/rating/v1/quotes/<reference>
    Read the quote as it stands: the same record the Underwriter Workbench shows. ratingsCurrent is false once the quote changed after its latest rating; launchPath opens it in the Workbench.
  5. GET /api/rating/v1/quotes/by-external-id/<system>/<externalQuoteId>
    The quote that answers for an external system's quote id (externalReferences.system + quoteId).
  6. GET /api/rating/v1/quotes/<reference>/ratings
    Every rating of the quote, latest first: one result per program and rating, with the revision it was rated on; current marks the latest rating.
  7. GET /api/rating/v1/quotes
    The quotes this client created, latest first (product, status, updatedSince, take 1-100).

Worksheet

Retrieve the stored rating worksheet of one result: the result's ratingRunId from the rating response names it.

  1. GET /api/rating/v1/quotes/<reference>/ratings/<ratingRunId>/worksheet
    The worksheet JSON exactly as persisted at rating time (never rebuilt against today's configuration). 404 when the result kept no worksheet. 403 without the worksheet.read scope.

Quote revision

Change a quote before it is bound: PATCH states the revision it was based on; the revision advances when the applicant, the risk or the dates change (whoever changed them, the client or an underwriter); the next rating rates the new revision.

  1. PATCH /api/rating/v1/quotes/<reference>
    Update dates, jurisdiction, applicant and / or risk; omitted members change nothing. expectedRevision is required.
  2. POST /api/rating/v1/quotes/<reference>/ratings
    Rate the new revision.
  3. PATCH /api/rating/v1/quotes/<reference>
    External references alone: no expectedRevision is needed and the revision does not advance. A supplied member replaces the saved one; system and quoteId cannot be changed once set.

Policy bind

Select one rated result explicitly, record that the administering system bound it (which creates the policy term), then read the policy. The policy is named by its policyTermId; the policy number is the administering system's.

  1. POST /api/rating/v1/quotes/<reference>/selection
    Select one result of the current rating by its ratingRunId and its programCode (both must belong together). Nothing is ever selected by order, default or carrier name. selection.result carries the Final Quoted Premium.
  2. POST /api/rating/v1/quotes/<reference>/bound
    Record that the administering system bound the quote under its policy number. Without ratingRunId + programCode the quote's explicit, still current selection is bound; with neither the answer is 409 SelectedResultRequired. The same confirmation again is the same fact.
  3. GET /api/rating/v1/policies/<policyTermId>
    The policy: term, status, premium, rate basis and locked rating versions, every transaction with its calculation, and actions - the transactions the product is certified for right now. Use only the actions listed there.
  4. GET /api/rating/v1/policies
    The policies bound from this client's quotes (policyNumber, status, take).

Policy transactions

The policy transactions on the General Liability example policy. A transaction that is rated (endorsement, premium audit, renewal, rewrite) opens a working quote that is edited and rated through the quote operations; cancellation, reinstatement and extension are calculated and confirmed directly. A transaction the product is not certified for, or one the governing rules refer to the company, is refused with the rating platform's own code - recorded here exactly as answered.

  1. POST /api/rating/v1/policies/<policyTermId>/endorsement
    Start an endorsement as of transactionEffectiveDate: opens its working quote, a quote like any other with its own SRQ reference.
  2. PATCH /api/rating/v1/quotes/<workingReference>
    Change the working quote's risk (the endorsement's change).
  3. POST /api/rating/v1/quotes/<workingReference>/ratings
    Rate the working quote: the endorsement premium is calculated by the rating platform.
  4. POST /api/rating/v1/quotes/<workingReference>/transaction/accept
    Accept the rated endorsement into its policy (or POST .../transaction/discard).
  5. POST /api/rating/v1/policies/<policyTermId>/cancellation/calculate
    Calculate a cancellation (the return premium and the method the rating platform applied); nothing is recorded.
  6. POST /api/rating/v1/policies/<policyTermId>/cancellation
    Confirm the cancellation as calculated.
  7. POST /api/rating/v1/policies/<policyTermId>/reinstatement/calculate
    Calculate the reinstatement of the cancelled policy; nothing is recorded.
  8. POST /api/rating/v1/policies/<policyTermId>/reinstatement
    Confirm the reinstatement; the policy is in force again.
  9. POST /api/rating/v1/policies/<policyTermId>/renewal
    Start the renewal: opens the next term's working quote with its own SRQ reference; rate, select and bind it like new business.

Operations

Every public operation, grouped as in the definition. Request and response schemas are in the OpenAPI file.

GroupMethodPathOperation
AuthenticationPOST/api/rating/v1/tokenObtain a bearer token
DiscoveryGET/api/platform/location/postal-codeLook up the city and county of a ZIP Code
DiscoveryGET/api/rating/v1/productsList the products the client may rate
DiscoveryGET/api/rating/v1/clientThe calling client
DiscoveryGET/api/rating/v1/programsList the programs the client is granted
DiscoveryGET/api/rating/v1/products/{productCode}/schemaRead a product's risk schema
Governed readsGET/api/rating/v1/standard-programsStandard Program readiness, every product
Governed readsGET/api/rating/v1/standard-programs/{productCode}Standard Program readiness, one product
Governed readsGET/api/rating/v1/programs/{programCode}/configurationRead a program's effective configuration
Governed readsGET/api/rating/v1/executions/{executionId}Read one rating execution
Governed readsGET/api/rating/v1/product-accessRead the organization's product access
Governed readsGET/api/rating/v1/organization/programsList the organization's programs
Governed readsGET/api/rating/v1/publish-requestsList the organization's publication requests
QuotesPOST/api/rating/v1/quotesCreate a quote
QuotesGET/api/rating/v1/quotesList quotes
QuotesGET/api/rating/v1/quotes/by-external-id/{system}/{externalQuoteId}Read a quote by its external quote id
QuotesGET/api/rating/v1/quotes/{reference}Read a quote
QuotesPATCH/api/rating/v1/quotes/{reference}Update a quote
QuotesGET/api/rating/v1/quotes/{reference}/validationCheck whether a quote can be rated
Rating and selectionGET/api/rating/v1/quotes/{reference}/ratingsList every rating of a quote
Rating and selectionPOST/api/rating/v1/quotes/{reference}/ratingsRate a quote
Rating and selectionGET/api/rating/v1/quotes/{reference}/ratings/{ratingRunId}/worksheetRead the rating worksheet of one result
Rating and selectionPOST/api/rating/v1/quotes/{reference}/selectionSelect one rated result
Policies and policy transactionsPOST/api/rating/v1/quotes/{reference}/boundRecord that the quote was bound
Policies and policy transactionsPOST/api/rating/v1/quotes/{reference}/transaction/acceptAccept an endorsement or premium audit into its policy
Policies and policy transactionsPOST/api/rating/v1/quotes/{reference}/transaction/discardDiscard the working quote of a policy transaction
Policies and policy transactionsGET/api/rating/v1/policiesList policies
Policies and policy transactionsGET/api/rating/v1/policies/{policyTermId}Read a policy
Policies and policy transactionsPOST/api/rating/v1/policies/{policyTermId}/renewalStart a renewal
Policies and policy transactionsPOST/api/rating/v1/policies/{policyTermId}/rewriteStart a rewrite
Policies and policy transactionsPOST/api/rating/v1/policies/{policyTermId}/endorsementStart an endorsement
Policies and policy transactionsPOST/api/rating/v1/policies/{policyTermId}/auditStart a premium audit
Policies and policy transactionsPOST/api/rating/v1/policies/{policyTermId}/cancellation/calculateCalculate a cancellation
Policies and policy transactionsPOST/api/rating/v1/policies/{policyTermId}/cancellationConfirm a cancellation
Policies and policy transactionsPOST/api/rating/v1/policies/{policyTermId}/reinstatement/calculateCalculate a reinstatement
Policies and policy transactionsPOST/api/rating/v1/policies/{policyTermId}/reinstatementConfirm a reinstatement
Policies and policy transactionsPOST/api/rating/v1/policies/{policyTermId}/extension/calculateCalculate an extension
Policies and policy transactionsPOST/api/rating/v1/policies/{policyTermId}/extensionConfirm an extension

Products

The products a client can be granted. GET /products lists the ones your client may rate, and the product schema operation returns each one's risk contract.

CodeProductBureau
GLCommercial General LiabilityISO
COPCommercial Output ProgramAAIS
MTCMotor Truck CargoAAIS
EDEquipment DealersAAIS
IFInstallation FloaterAAIS
ARTFine Arts FloaterAAIS
FLTMiscellaneous FloatersAAIS
WLLWarehouse Legal LiabilityAAIS
BRBuilders RiskAAIS
CEContractors EquipmentAAIS
CPCommercial PropertyISO
BOPBusinessownersISO
AUTOCommercial AutoISO
ARAccounts ReceivableAAIS
WCWorkers' CompensationWCIRB requirements

Policy transaction codes

Stable codes returned when a policy transaction cannot proceed.

CodeMeaning
QuoteFrozenThe quote is bound or belongs to a completed transaction and no longer changes.
SelectedExecutionRequiredThe bind names no selected result, or the selected result is not Rated.
ExpirationDateRequiredThe bind carries no policy expiration date.
PolicyNumberConflictThe policy number is already used in the organization.
PolicyTermRequiredThe working quote has no policy term behind it.
PolicyNotInForceThe transaction needs an in-force policy.
PolicyNotCancelledThe transaction needs a cancelled policy (reinstatement, rewrite).
TransactionOpenAnother transaction is open on the policy.
TransactionNotComputedThe transaction has no calculation to accept: it was discarded, or its working quote is not rated and selected.
TransactionClosedThe transaction is already accepted or confirmed.
TransactionDateOutsideTermThe transaction date is outside the policy term.
TransactionDateBeforePriorThe transaction date is before the last accepted transaction.
EndorsementProgramLockedA policy transaction rates only against the program the policy is bound to.
EndorsementTermLockedAn endorsement cannot change the policy term's dates.
UnsupportedCalculationMethodThe requested cancellation method is not the program's governed method for that cancellation.
ConfigurationRequiredThe program's lifecycle rules do not decide this transaction: it is referred to the company, never approximated.
ReinstatementLapseThe reinstatement date must be the cancellation effective date.
PriorTermAlreadyRenewedThe policy term already has a renewal.
ConcurrentUpdateThe record was changed at the same moment.
ExtensionExpirationInvalidThe new expiration is not later than the current one, or is more than one term away.
PriorTermAlreadyRewrittenA cancelled term is rewritten once.
RewriteDateBeforeCancellationThe rewrite effective date is before the cancellation effective date.

Idempotency and limits

Idempotency-Key is optional. Sent on a POST that changes something, it makes the operation run once per key: a repeated request with the same key and the same request answers with the stored response of the first (header Idempotency-Replayed: true) instead of a second quote, rating or transaction; the same key with a different request is 409 IdempotencyConflict; a request still running is 409 IdempotencyInProgress. A failed request remembers nothing, so its key may be used again. After a 502 or 504 at the public address, repeat the request with the same key.

GET /quotes and GET /policies return at most 100 rows (take, default 25). Idempotency-Key and X-Correlation-Id are at most 200 and 100 characters. A client reads and changes only the quotes and policies it created unless it holds the quote.organization.* integration scopes. The client's granted programs of one product must belong to one organization. Premium audit, extension, rewrite and the other policy transactions are offered per policy in its actions; a transaction the product is not certified for is refused, never approximated.

Common questions

Can the API and the underwriting screen return different premiums?

No. They run the same engine against the same published versions. Identical inputs, program and effective date produce an identical premium and worksheet.

Can we rate against several carrier programs in one call?

Yes. Rating a quote rates it against every program the client is granted for the product, state and date, each with its own result.

Which policy transactions are available?

Endorsement, premium audit, extension, cancellation, reinstatement, rewrite and renewal, as offered for the policy in its actions.

Where is the definition?

The OpenAPI 3.1 definition is public at /openapi.yaml.

Planning an integration?

Tell us what your system needs to rate and we will walk through the API with you.