Policy Terms API
| Action | Endpoint |
|---|---|
| Fetch a Term | GET/policy/{tenantLocator}/terms/{locator} |
| Fetch Multiple Terms | GET/policy/{tenantLocator}/policies/{locator}/terms/list |
| Fetch Payable Amounts for a Policy Term | GET/policy/{tenantLocator}/terms/{locator}/payable |
| Fetch Term Charges | GET/policy/{tenantLocator}/terms/{locator}/charges |
| Fetch Term Summary By Term Locator | GET/policy/{tenantLocator}/terms/{locator}/summary |
| Fetch Term Summary By Term Number | GET/policy/{tenantLocator}/policies/{locator}/summary |
| Fetch Terms With Number | GET/policy/{tenantLocator}/terms/numbers/{termNumber} |
| Set Term Number | POST/policy/{tenantLocator}/terms/{locator}/number/set |
| Generate Term Number | POST/policy/{tenantLocator}/terms/{locator}/number/generate |
Fetch
Fetch a Term
fetchTerm/policy/{tenantLocator}/terms/{locator}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
TermResponsetermsreadRequired properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
staticLocator | ulid | |
policyLocator | ulid | |
startTime | datetime | |
endTime | datetime | |
number | integer |
Optional properties
| Property | Type | Description |
|---|---|---|
autoRenewalLocator | ulid? | |
previousTermLocator | ulid? | |
supersedesTermLocator | ulid? | |
termNumber | string? |
Fetch Multiple Terms
fetchMultipleTerms/policy/{tenantLocator}/policies/{locator}/terms/listParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
offset | query | integer? | No | |
count | query | integer? | No | |
extended | query | boolean? | No | When false, returns a bare array. |
TermListResponsepoliciesread,listRequired properties
| Property | Type | Description |
|---|---|---|
listCompleted | boolean | |
items | TermResponse[] |
Fetch Payable Amounts for a Policy Term
fetchTermPayableAmounts/policy/{tenantLocator}/terms/{locator}/payableParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
TermPayableResponsetermsreadRequired properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
staticLocator | ulid | |
policyLocator | ulid | |
startTime | datetime | |
endTime | datetime | |
amount | number | |
number | integer |
Fetch Term Charges
fetchTermCharges/policy/{tenantLocator}/terms/{locator}/chargesParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
map<string, PolicyChargeResponse[]>termsreadTerm Summaries
Term Summaries are views of the term based on issued transactions, showing in-force coverage only. This essentially flattens the transactions that affect the term into a single series of segments, such that the segments cover the entire term without overlaps or time periods without segments. This is useful to understand the state of the term without constructing it from the transaction stack.
Fetch Term Summary By Term Locator
fetchTermSummaryByTermLocator/policy/{tenantLocator}/terms/{locator}/summaryParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
TermSummarytermsreadFetch Term Summary By Term Number
fetchTermSummaryByTermNumber/policy/{tenantLocator}/policies/{locator}/summaryParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
termNumber | query | integer? | No |
TermSummarypoliciesreadIf the term has been created by a renewal transaction that is not yet issued, the TermSummary will not contain any segments.
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
staticLocator | ulid | |
policyLocator | ulid | |
startTime | datetime | |
endTime | datetime | |
duration | number | |
durationBasis | Enum years | months | weeks | days | hours | |
termNumber | integer | |
subsegments | SubsegmentSummary[] |
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
startTime | datetime | |
endTime | datetime | |
duration | number | |
basedOn | ulid | |
type | Enum coverage | gap | |
documentSummary | DocumentSummary[] | |
elements | ElementSummary[] |
Optional properties
| Property | Type | Description |
|---|---|---|
producerInfo | ProducerInfo? |
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
staticLocator | ulid | |
type | string | |
data | map<string, object> | |
chargeSummaries | map<string, number> |
Required properties
| Property | Type | Description |
|---|---|---|
locator | ulid | |
documentInstanceState | Enum draft | dataReady | ready | dataError | renderError | conversionError | |
referenceType | Enum quote | policy | invoice | transaction | segment | term | |
state | Enum draft | dataReady | ready | dataError | renderError | conversionErrorDeprecated |
Optional properties
| Property | Type | Description |
|---|---|---|
staticName | string? | |
name | string? |
Numbering
Fetch Terms With Number
fetchTermsWithNumber/policy/{tenantLocator}/terms/numbers/{termNumber}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
termNumber | path | string | Yes |
TermResponse[]termsread,listSet Term Number
setTermNumber/policy/{tenantLocator}/terms/{locator}/number/setParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes | |
termNumber | query | string | Yes |
TermResponsetermswriteGenerate Term Number
generateTermNumber/policy/{tenantLocator}/terms/{locator}/number/generateParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenantLocator | path | uuid | Yes | |
locator | path | ulid | Yes |
TermResponsetermswrite