Socotra
API ReferenceBilling API

Installments API

ActionEndpoint
Fetch Installments for a QuoteGET/billing/{tenantLocator}/installments/quotes/{quoteLocator}/list
Fetch Installments for a PolicyGET/billing/{tenantLocator}/installments/policies/{policyLocator}/list
Fetch Installments for a Policy TransactionGET/billing/{tenantLocator}/installments/transactions/{transactionLocator}/list
Preview Installments for a Stateless QuoteGET/billing/{tenantLocator}/installments/quotes/statelessPreview
Update InstallmentsPATCH/billing/{tenantLocator}/installments

Fetch Installments for a Quote

Fetch Installments for a QuotefetchInstallmentsForQuote
GET/billing/{tenantLocator}/installments/quotes/{quoteLocator}/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
quoteLocatorpathulidYes
offsetqueryinteger?No
countqueryinteger?No
extendedqueryboolean?No
Security Group:installments
Permissions:
read,list

Fetch Installments for a Policy

Fetch Installments for a PolicyfetchInstallmentsForPolicy
GET/billing/{tenantLocator}/installments/policies/{policyLocator}/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
policyLocatorpathulidYes
offsetqueryinteger?No
countqueryinteger?No
extendedqueryboolean?No
Security Group:installments
Permissions:
read,list

Fetch Installments for a Policy Transaction

Fetch Installments for a Policy TransactionfetchInstallmentsForPolicyTransaction
GET/billing/{tenantLocator}/installments/transactions/{transactionLocator}/list

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
transactionLocatorpathulidYes
offsetqueryinteger?No
countqueryinteger?No
extendedqueryboolean?No
Security Group:installments
Permissions:
read,list
InstallmentListResponse

Required properties

PropertyTypeDescription
listCompletedboolean
itemsInstallment[]
Installment

Required properties

PropertyTypeDescription
locatorulid
accountLocatorulid
installmentLatticeLocatorulid
dueTimedatetime
generateTimedatetime
currencystring
timezonestring
coverageDurationnumber
coverageEndTimedatetime
coverageStartTimedatetime
installmentDurationnumber
installmentEndTimedatetime
installmentFrameIndexinteger
installmentStartTimedatetime
updatedAtdatetime
updatedByuuid
createdAtdatetime
createdByuuid
installmentItemsInstallmentItem[]

Optional properties

PropertyTypeDescription
policyLocatorulid?
termLocatorulid?
transactionLocatorulid?
invoiceLocatorulid?
migratedFromInstallmentLocatorulid?
quoteLocatorulid?
reversalOfInstallmentLocatorulid?
autopayTimedatetime?
enhancedByPluginboolean?
InstallmentItem

Required properties

PropertyTypeDescription
locatorulid
chargeLocatorulid
elementLocatorulid
elementStaticLocatorulid
installmentLocatorulid
amountnumber
chargeCategorystring
chargeTypestring
createdAtdatetime
createdByuuid

Optional properties

PropertyTypeDescription
invoiceItemLocatorulid?
reversalOfInstallmentItemLocatorulid?

Preview Installments for a Stateless Quote

Preview Installments for a Stateless QuotepreviewInstallmentsForStatelessQuote
GET/billing/{tenantLocator}/installments/quotes/statelessPreview

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
quotePreviewRequestqueryQuoteBillingPreviewRequestYes
Security Group:installments
Permission:
read
QuoteBillingPreviewRequest

Required properties

PropertyTypeDescription
accountLocatorulid
productNamestring
termEndTimedatetime
termStartTimedatetime
chargesPreviewChargeRequest[]

Optional properties

PropertyTypeDescription
currencystring?
durationBasisEnum? years | months | weeks | days | hours
timezonestring?
installmentPreferencesInstallmentPreferences?
invoiceFeeAmountnumber?
PreviewChargeRequest

Required properties

PropertyTypeDescription
amountnumber
chargeTypestring

Optional properties

PropertyTypeDescription
elementLocatorulid?
elementStaticLocatorulid?
InstallmentsPreview

Required properties

PropertyTypeDescription
accountLocatorulid
durationBasisEnum years | months | weeks | days | hours
settingsSettings
installmentsInstallment[]
persistedInstallmentLocatorsulid[]
queuedPolicyChargesChargeQueueItem[]

Optional properties

PropertyTypeDescription
policyLocatorulid?
transactionLocatorulid?
quoteLocatorulid?
ChargeQueueItem

Required properties

PropertyTypeDescription
accountLocatorulid
chargeLocatorulid
currencystring
amountnumber
chargeMetadataChargeMetadata
chargeSourceEnum billing | policy
chargeTypestring

Optional properties

PropertyTypeDescription
invoiceItemLocatorulid?
ChargeMetadata

Properties

PropertyTypeDescription
policyLocatorulid?
transactionLocatorulid?
elementStaticLocatorulid?
timezonestring?
invoicingEnum? scheduled | next | immediate
Settings

Required properties

PropertyTypeDescription
locatorulid
installmentSettingsInstallmentSettings
createdAtdatetime
createdByuuid

Update Installments

Update InstallmentsupdateInstallments
PATCH/billing/{tenantLocator}/installments

Parameters

NameInTypeRequiredDescription
tenantLocatorpathuuidYes
Response:Installment[]
Security Group:installments
Permission:
write
PatchInstallmentsRequest

Required properties

PropertyTypeDescription
installmentLocatorsulid[]

Optional properties

PropertyTypeDescription
dueTimedatetime?
generateTimedatetime?
autopayTimedatetime?

On this page