Socotra
API ReferencePolicy Management API

Policies API

ActionEndpoint
Fetch a PolicyGET/policy/{tenantLocator}/policies/{locator}
Add Static Data to a PolicyPOST/policy/{tenantLocator}/policies/{locator}/static
Update Static Data on a PolicyPATCH/policy/{tenantLocator}/policies/{locator}/static
Replace All Static Data on a PolicyPUT/policy/{tenantLocator}/policies/{locator}/static
Fetch Static Data for a PolicyGET/policy/{tenantLocator}/policies/{locator}/static
List Static Data for a PolicyGET/policy/{tenantLocator}/policies/{locator}/static/history/list
Fetch a Policy SnapshotGET/policy/{tenantLocator}/policies/{locator}/snapshot
Fetch Multiple SnapshotsGET/policy/{tenantLocator}/policies/snapshot/list
Update Billing Level For APolicyPATCH/policy/{tenantLocator}/policies/{locator}/billingLevel
Fetch Policies With NumberGET/policy/{tenantLocator}/policies/numbers/{policyNumber}
Set Policy NumberPOST/policy/{tenantLocator}/policies/{locator}/number/set
Set Reserved Policy NumberPOST/policy/{tenantLocator}/quotes/{locator}/reservedPolicyNumber/set
Generate Policy NumberPOST/policy/{tenantLocator}/policies/{locator}/number/generate
Add policy contactPOST/policy/{tenantLocator}/policies/{policyLocator}/contacts
Delete policy contactDELETE/policy/{tenantLocator}/policies/{policyLocator}/contacts/{contactLocator}
Fetch policy contactsGET/policy/{tenantLocator}/policies/{policyLocator}/contacts
Update policy contactPATCH/policy/{tenantLocator}/policies/{policyLocator}/contacts/{contactLocator}
Update Policy JurisdictionPATCH/policy/{tenantLocator}/policies/{locator}/jurisdiction
Create Quote From PolicyPOST/policy/{tenantLocator}/policies/{locator}/quote

Fetch

Fetch a Policy

Fetch a PolicyfetchPolicy
GET/policy/{tenantLocator}/policies/{locator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:policies
Permission:
read
PolicyResponse

Required properties

PropertyTypeDescription
locatorulid
accountLocatorulid
issuedTransactionLocatorulidThe locator of the latest issued transaction for the policy.
latestSegmentLocatorulidThe last segment on the policy, based on issued transactions only
latestTermLocatorulid
productNamestring
startTimedatetimeThe start time, based on issued transactions only
endTimedatetimeThe end time based on issued transactions only.
currencystring
durationBasisEnum years | months | weeks | days | hours
timezonestring
billingLevelEnum account | inherit | policy
staticmap<string, object>
createdAtdatetime
createdByuuid
contactsContactRoles[]
moratoriumElectionsmap<string, string>
statusesEnum[] pending | expired | cancelled | cancelPending | onRisk | delinquent | doNotRenew

Optional properties

PropertyTypeDescription
regionstring?
autoRenewalPlanNamestring?
delinquencyPlanNamestring?
anonymizedAtdatetime?
coverageEndTimedatetime?
invoiceFeeAmountnumber?
jurisdictionstring?
policyNumberstring?
producerCodestring?
producerCodeOfRecordstring?
validationResultValidationResult?
branchHeadTransactionLocatorsulid[]?The locators of all the top-level transactions on the policy, one per branch

Fetch all Policies for an Account

Fetch all Policies for an AccountfetchPoliciesForAccount
GET/policy/{tenantLocator}/accounts/{locator}/policies/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
offsetqueryinteger?No
countqueryinteger?No
includeStaticDataqueryboolean?No
extendedqueryboolean?NoWhen false, returns a bare array.
Security Group:accounts
Permissions:
read,list
PolicyListResponse

Required properties

PropertyTypeDescription
listCompletedboolean
itemsPolicyResponse[]

Static Data

Add Static Data to a Policy

Add Static Data to a PolicyaddStaticDataForPolicy
POST/policy/{tenantLocator}/policies/{locator}/static

Set the static extension data on a policy

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Request:map<string, object>
Security Group:policies
Permission:
write

Update Static Data on a Policy

Update Static Data on a PolicyupdateStaticDataForPolicy
PATCH/policy/{tenantLocator}/policies/{locator}/static

Updates some of the static data on a policy

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:policies
Permission:
write
StaticDataUpdateRequest

Required properties

PropertyTypeDescription
removeDatamap<string, object>
setDatamap<string, object>

Replace All Static Data on a Policy

Replace All Static Data on a PolicyreplaceAllStaticDataForPolicy
PUT/policy/{tenantLocator}/policies/{locator}/static

Replaces all of the static data on a policy

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Request:map<string, object>
Security Group:policies
Permission:
write

Fetch Static Data for a Policy

Fetch Static Data for a PolicyfetchStaticDataForPolicy
GET/policy/{tenantLocator}/policies/{locator}/static

Gets the static data on a policy

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:map<string, object>
Security Group:policies
Permission:
read

List Static Data for a Policy

List Static Data for a PolicylistStaticDataForPolicy
GET/policy/{tenantLocator}/policies/{locator}/static/history/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
offsetqueryinteger?No
countqueryinteger?No
Security Group:policies
Permission:
read
ListPageResponseStaticDataHistoryResponse

Required properties

PropertyTypeDescription
listCompletedboolean
itemsStaticDataHistoryResponse[]
StaticDataHistoryResponse

Required properties

PropertyTypeDescription
historyLocatorulid
updatedAtdatetime
updatedByuuid
staticDatamap<string, object>

Snapshots

Fetch a Policy Snapshot

Fetch a Policy SnapshotfetchPolicySnapshot
GET/policy/{tenantLocator}/policies/{locator}/snapshot

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
datequerydatetimeYes
byIssuedTimequeryboolean?No
Security Group:policies
Permission:
read

Fetch Multiple Snapshots

Fetch Multiple SnapshotsfetchMultipleSnapshotsDeprecated
GET/policy/{tenantLocator}/policies/snapshot/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
offsetqueryinteger?No
countqueryinteger?No
Security Group:policies
Permissions:
read,list
PolicySnapshotListResponse

Required properties

PropertyTypeDescription
listCompletedboolean
itemsPolicySnapshotResponse[]
PolicySnapshotResponse

Required properties

PropertyTypeDescription
locatorulid
accountLocatorulid
regionstring
productNamestring
currencystring
timezonestring
transactionTransactionSnapshotResponse
staticmap<string, object>

Optional properties

PropertyTypeDescription
delinquencyPlanNamestring?
TransactionSnapshotResponse

Required properties

PropertyTypeDescription
locatorulid
effectiveTimedatetime
issuedTimedatetime
preferencesPreferencesResponse
segmentSegmentResponse
transactionCategoryEnum issuance | change | renewal | cancellation | reinstatement | reversal | aggregate
transactionTypestring

Billing

Update Billing Level For APolicy

Update Billing Level For A PolicyupdateBillingLevelForAPolicy
PATCH/policy/{tenantLocator}/policies/{locator}/billingLevel

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:policies
Permission:
write
UpdateBillingLevelRequest

Required properties

PropertyTypeDescription
billingLevelEnum account | inherit | policy

Update the Delinquency Plan Assigned to a Policy

Update the Delinquency Plan Assigned to a PolicyupdatePolicyDelinquencyPlan
PATCH/policy/{tenantLocator}/policies/{locator}/delinquencyPlan

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:policies
Permission:
write

Numbering

Fetch Policies With Number

Fetch Policies With NumberfetchPoliciesWithNumber
GET/policy/{tenantLocator}/policies/numbers/{policyNumber}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
policyNumberpathstringYes
Response:PolicyResponse[]
Security Group:policies
Permissions:
read,list

Set Policy Number

Set Policy NumbersetPolicyNumber
POST/policy/{tenantLocator}/policies/{locator}/number/set

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
policyNumberquerystringYes
Security Group:policies
Permission:
write

Set Reserved Policy Number

Set Reserved Policy NumbersetReservedPolicyNumber
POST/policy/{tenantLocator}/quotes/{locator}/reservedPolicyNumber/set

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
reservedPolicyNumberquerystringYes
Response:QuoteResponse
Security Group:quotes
Permissions:
write,reserve-policy-number-set

Generate Policy Number

Generate Policy NumbergeneratePolicyNumber
POST/policy/{tenantLocator}/policies/{locator}/number/generate

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:policies
Permission:
write

Contacts

Add policy contact

Add policy contactaddPolicyContact
POST/policy/{tenantLocator}/policies/{policyLocator}/contacts

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
policyLocatorpathulidYes
Request:ContactRoles
Security Group:policies
Permission:
write
ContactRoles

Required properties

PropertyTypeDescription
contactLocatorulid
rolesstring[]

Delete policy contact

Delete policy contactdeletePolicyContact
DELETE/policy/{tenantLocator}/policies/{policyLocator}/contacts/{contactLocator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
policyLocatorpathulidYes
contactLocatorpathulidYes
Security Group:policies
Permission:
write

Fetch policy contacts

Fetch policy contactsfetchPolicyContacts
GET/policy/{tenantLocator}/policies/{policyLocator}/contacts

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
policyLocatorpathulidYes
Response:ContactRoles[]
Security Group:policies
Permission:
write

Update policy contact

Update policy contactupdatePolicyContact
PATCH/policy/{tenantLocator}/policies/{policyLocator}/contacts/{contactLocator}

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
policyLocatorpathulidYes
contactLocatorpathulidYes
Security Group:policies
Permission:
write

Holds

Fetch Policy Holds

Fetch Policy HoldsfetchPolicyHolds
GET/policy/{tenantLocator}/policies/{locator}/holds

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Response:EntityHold[]
Security Group:policies
Permission:
read

Jurisdictions

Update Policy Jurisdiction

Update Policy JurisdictionupdatePolicyJurisdiction
PATCH/policy/{tenantLocator}/policies/{locator}/jurisdiction

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
Security Group:policies
Permission:
write
UpdateJurisdictionRequest

Properties

PropertyTypeDescription
jurisdictionstring?

Create Quote from Policy

Create Quote From Policy

Create Quote From PolicycreateQuoteFromPolicy
POST/policy/{tenantLocator}/policies/{locator}/quote

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
locatorpathulidYes
datequerydatetime?No
byIssuedTimequeryboolean?No
includeStaticDataqueryboolean?No
Response:QuoteResponse
Security Group:policies
Permissions:
write,create-quote

The date parameter specifies the point in time used to identify which policy segment to copy. If a date is not provided, the generated quote will be based on the segment created by the policy's issuance transaction. The byIssuedTime parameter determines whether the provided date is evaluated against the segment's issued time or effective time, and includeStaticData controls whether policy-level static data is included in the generated quote.

On this page