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.
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.
| Scope | Allows |
|---|---|
rating.read | GET /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.quote | POST /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.read | GET /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.read | The governed reads: /standard-programs, /programs/{programCode}/configuration, /organization/programs, /publish-requests, /product-access. |
execution.read | GET /executions/{executionId}. |
quote.organization.read | Integration 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.link | Integration access: set the external references on such a quote - nothing else of it. |
quote.organization.transact | Integration 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.
| Header | Use |
|---|---|
Authorization | Bearer <access_token> on every call except POST /token. |
Idempotency-Key | OPTIONAL 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-Replayed | Response header 'true' when a stored response was replayed for a repeated key. |
X-Correlation-Id | Optional request header (at most 100 characters), returned on the response and present as correlationId in every error; generated when omitted. |
| Status | Meaning |
|---|---|
200 | Every successful call, including every business outcome of a rating (Rated, Referred, not yet effective ...): read the result's status and message. |
400 | ValidationFailed (the members at fault under fieldErrors) or InvalidRequest. Nothing was saved. |
401 | Unauthorized: no bearer token of an active API client. |
403 | Forbidden: the client lacks the scope, or the program. |
404 | NotFound: unknown, or not a quote or policy this client may see (both answer alike). |
409 | A 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 / 504 | SharedQuoteApiUnavailable / SharedQuoteApiNotConfigured or RatingPlatformUnavailable / SharedQuoteApiTimeout: the service behind the public address did not answer. Repeat a changing request with the same Idempotency-Key. |
| Error field | Content |
|---|---|
error | <stable code> |
detail | <a sentence for a person> |
correlationId | <id> |
fieldErrors | with ValidationFailed: { member: reason } |
currentRevision | with QuoteRevisionConflict |
reference | with 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.
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).GET/api/rating/v1/programs?product=<productCode>
The client's granted programs; optional filters product= and carrier=.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).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.
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.GET/api/rating/v1/quotes/<reference>/validation
Whether the saved quote can be rated as it stands, with every finding, without rating anything.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.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.GET/api/rating/v1/quotes/by-external-id/<system>/<externalQuoteId>
The quote that answers for an external system's quote id (externalReferences.system + quoteId).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.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.
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.
PATCH/api/rating/v1/quotes/<reference>
Update dates, jurisdiction, applicant and / or risk; omitted members change nothing. expectedRevision is required.POST/api/rating/v1/quotes/<reference>/ratings
Rate the new revision.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.
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.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.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.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.
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.PATCH/api/rating/v1/quotes/<workingReference>
Change the working quote's risk (the endorsement's change).POST/api/rating/v1/quotes/<workingReference>/ratings
Rate the working quote: the endorsement premium is calculated by the rating platform.POST/api/rating/v1/quotes/<workingReference>/transaction/accept
Accept the rated endorsement into its policy (or POST .../transaction/discard).POST/api/rating/v1/policies/<policyTermId>/cancellation/calculate
Calculate a cancellation (the return premium and the method the rating platform applied); nothing is recorded.POST/api/rating/v1/policies/<policyTermId>/cancellation
Confirm the cancellation as calculated.POST/api/rating/v1/policies/<policyTermId>/reinstatement/calculate
Calculate the reinstatement of the cancelled policy; nothing is recorded.POST/api/rating/v1/policies/<policyTermId>/reinstatement
Confirm the reinstatement; the policy is in force again.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.
| Group | Method | Path | Operation |
|---|---|---|---|
| Authentication | POST | /api/rating/v1/token | Obtain a bearer token |
| Discovery | GET | /api/platform/location/postal-code | Look up the city and county of a ZIP Code |
| Discovery | GET | /api/rating/v1/products | List the products the client may rate |
| Discovery | GET | /api/rating/v1/client | The calling client |
| Discovery | GET | /api/rating/v1/programs | List the programs the client is granted |
| Discovery | GET | /api/rating/v1/products/{productCode}/schema | Read a product's risk schema |
| Governed reads | GET | /api/rating/v1/standard-programs | Standard Program readiness, every product |
| Governed reads | GET | /api/rating/v1/standard-programs/{productCode} | Standard Program readiness, one product |
| Governed reads | GET | /api/rating/v1/programs/{programCode}/configuration | Read a program's effective configuration |
| Governed reads | GET | /api/rating/v1/executions/{executionId} | Read one rating execution |
| Governed reads | GET | /api/rating/v1/product-access | Read the organization's product access |
| Governed reads | GET | /api/rating/v1/organization/programs | List the organization's programs |
| Governed reads | GET | /api/rating/v1/publish-requests | List the organization's publication requests |
| Quotes | POST | /api/rating/v1/quotes | Create a quote |
| Quotes | GET | /api/rating/v1/quotes | List quotes |
| Quotes | GET | /api/rating/v1/quotes/by-external-id/{system}/{externalQuoteId} | Read a quote by its external quote id |
| Quotes | GET | /api/rating/v1/quotes/{reference} | Read a quote |
| Quotes | PATCH | /api/rating/v1/quotes/{reference} | Update a quote |
| Quotes | GET | /api/rating/v1/quotes/{reference}/validation | Check whether a quote can be rated |
| Rating and selection | GET | /api/rating/v1/quotes/{reference}/ratings | List every rating of a quote |
| Rating and selection | POST | /api/rating/v1/quotes/{reference}/ratings | Rate a quote |
| Rating and selection | GET | /api/rating/v1/quotes/{reference}/ratings/{ratingRunId}/worksheet | Read the rating worksheet of one result |
| Rating and selection | POST | /api/rating/v1/quotes/{reference}/selection | Select one rated result |
| Policies and policy transactions | POST | /api/rating/v1/quotes/{reference}/bound | Record that the quote was bound |
| Policies and policy transactions | POST | /api/rating/v1/quotes/{reference}/transaction/accept | Accept an endorsement or premium audit into its policy |
| Policies and policy transactions | POST | /api/rating/v1/quotes/{reference}/transaction/discard | Discard the working quote of a policy transaction |
| Policies and policy transactions | GET | /api/rating/v1/policies | List policies |
| Policies and policy transactions | GET | /api/rating/v1/policies/{policyTermId} | Read a policy |
| Policies and policy transactions | POST | /api/rating/v1/policies/{policyTermId}/renewal | Start a renewal |
| Policies and policy transactions | POST | /api/rating/v1/policies/{policyTermId}/rewrite | Start a rewrite |
| Policies and policy transactions | POST | /api/rating/v1/policies/{policyTermId}/endorsement | Start an endorsement |
| Policies and policy transactions | POST | /api/rating/v1/policies/{policyTermId}/audit | Start a premium audit |
| Policies and policy transactions | POST | /api/rating/v1/policies/{policyTermId}/cancellation/calculate | Calculate a cancellation |
| Policies and policy transactions | POST | /api/rating/v1/policies/{policyTermId}/cancellation | Confirm a cancellation |
| Policies and policy transactions | POST | /api/rating/v1/policies/{policyTermId}/reinstatement/calculate | Calculate a reinstatement |
| Policies and policy transactions | POST | /api/rating/v1/policies/{policyTermId}/reinstatement | Confirm a reinstatement |
| Policies and policy transactions | POST | /api/rating/v1/policies/{policyTermId}/extension/calculate | Calculate an extension |
| Policies and policy transactions | POST | /api/rating/v1/policies/{policyTermId}/extension | Confirm 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.
| Code | Product | Bureau |
|---|---|---|
GL | Commercial General Liability | ISO |
COP | Commercial Output Program | AAIS |
MTC | Motor Truck Cargo | AAIS |
ED | Equipment Dealers | AAIS |
IF | Installation Floater | AAIS |
ART | Fine Arts Floater | AAIS |
FLT | Miscellaneous Floaters | AAIS |
WLL | Warehouse Legal Liability | AAIS |
BR | Builders Risk | AAIS |
CE | Contractors Equipment | AAIS |
CP | Commercial Property | ISO |
BOP | Businessowners | ISO |
AUTO | Commercial Auto | ISO |
AR | Accounts Receivable | AAIS |
WC | Workers' Compensation | WCIRB requirements |
Policy transaction codes
Stable codes returned when a policy transaction cannot proceed.
| Code | Meaning |
|---|---|
QuoteFrozen | The quote is bound or belongs to a completed transaction and no longer changes. |
SelectedExecutionRequired | The bind names no selected result, or the selected result is not Rated. |
ExpirationDateRequired | The bind carries no policy expiration date. |
PolicyNumberConflict | The policy number is already used in the organization. |
PolicyTermRequired | The working quote has no policy term behind it. |
PolicyNotInForce | The transaction needs an in-force policy. |
PolicyNotCancelled | The transaction needs a cancelled policy (reinstatement, rewrite). |
TransactionOpen | Another transaction is open on the policy. |
TransactionNotComputed | The transaction has no calculation to accept: it was discarded, or its working quote is not rated and selected. |
TransactionClosed | The transaction is already accepted or confirmed. |
TransactionDateOutsideTerm | The transaction date is outside the policy term. |
TransactionDateBeforePrior | The transaction date is before the last accepted transaction. |
EndorsementProgramLocked | A policy transaction rates only against the program the policy is bound to. |
EndorsementTermLocked | An endorsement cannot change the policy term's dates. |
UnsupportedCalculationMethod | The requested cancellation method is not the program's governed method for that cancellation. |
ConfigurationRequired | The program's lifecycle rules do not decide this transaction: it is referred to the company, never approximated. |
ReinstatementLapse | The reinstatement date must be the cancellation effective date. |
PriorTermAlreadyRenewed | The policy term already has a renewal. |
ConcurrentUpdate | The record was changed at the same moment. |
ExtensionExpirationInvalid | The new expiration is not later than the current one, or is more than one term away. |
PriorTermAlreadyRewritten | A cancelled term is rewritten once. |
RewriteDateBeforeCancellation | The 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.