Flat Charges API

Endpoint Index

ActionEndpoint
Add ChargesPOST /billing/{tenantLocator}/accounts/{accountLocator}/charges
Reverse ChargesPOST /billing/{tenantLocator}/accounts/{accountLocator}/charges/reverse
Add or update invoice fee on a quotePATCH /policy/{tenantLocator}/quotes/{locator}/invoiceFeeAmount
Add or update invoice fee on a policyPATCH /policy/{tenantLocator}/policies/{locator}/invoiceFeeAmount
Fetch Charges by AccountGET /billing/{tenantLocator}/accounts/{accountLocator}/charges/list
Fetch Charges by PolicyGET /billing/{tenantLocator}/policies/{policyLocator}/charges/list
Fetch Charges by TransactionGET /billing/{tenantLocator}/transactions/{transactionLocator}/charges/list

Create and Reverse

Add Charges
addCharges
POST /billing/{tenantLocator}/accounts/{accountLocator}/charges
    Request Parameters:
    NamePositionTypeRequired
    tenantLocatorpathuuidrequired
    accountLocatorpathstringrequired
    Response:ChargeResponse[]
    Security Group:charges   Permission:write
ChargesCreateRequest
required

optional
policyLocator string?
currency string?
invoicing Enum? immediate | next | scheduled
ChargeCreateRequest
required
amount number
chargeType string

optional
transactionLocator string?
elementLocator string?
elementStaticLocator string?
tag string?

Since charges are created with reference to an account, any policyLocator or transactionLocator in the charge creation request must belong to the account. If transactionLocator and elementLocator are provided, the elementLocator must belong to the transaction specified by transactionLocator.

ChargeResponse
required
locator string
elementLocator string
elementStaticLocator string
amount number
chargeCategory Enum cededPremium | commission | credit | fee | flatCededPremium | flatCommission | flatFee | flatPremium | flatTax | invoiceFee | none | nonFinancial | premium | surcharge | tax
chargeType string
handling Enum flat | normal
invoicing Enum immediate | next | scheduled
rate number
referenceRate number

optional
reversalOfLocator string?
rateDifference number?
tag string?
Reverse Charges
reverseCharges
POST /billing/{tenantLocator}/accounts/{accountLocator}/charges/reverse
    Request Parameters:
    NamePositionTypeRequired
    tenantLocatorpathuuidrequired
    accountLocatorpathstringrequired
    Response:ChargeResponse[]
    Security Group:charges   Permission:write
ChargesReversalRequest
required
invoicing Enum immediate | next | scheduled
charges string[]

Add Invoice Fee to Policy or Quote

Add or update invoice fee on a quote
updateInvoiceFeeAmount
PATCH /policy/{tenantLocator}/quotes/{locator}/invoiceFeeAmount
Add or update invoice fee on a policy
updatePolicyInvoiceFeeAmount
PATCH /policy/{tenantLocator}/policies/{locator}/invoiceFeeAmount
UpdateInvoiceFeeAmountRequest
required
invoiceFeeAmount number

Fetch

Fetch Charges by Account
fetchChargesByAccount
GET /billing/{tenantLocator}/accounts/{accountLocator}/charges/list
    Request Parameters:
    NamePositionTypeRequired
    tenantLocatorpathuuidrequired
    accountLocatorpathstringrequired
    offsetqueryint?optional
    countqueryint?optional
    Security Group:charges   Permissions:read,list
ListPageResponseChargeResponse
required
listCompleted boolean
Fetch Charges by Policy
fetchChargesByPolicy
GET /billing/{tenantLocator}/policies/{policyLocator}/charges/list
    Request Parameters:
    NamePositionTypeRequired
    tenantLocatorpathuuidrequired
    policyLocatorpathstringrequired
    offsetqueryint?optional
    countqueryint?optional
    Security Group:charges   Permissions:read,list
Fetch Charges by Transaction
fetchChargesByTransaction
GET /billing/{tenantLocator}/transactions/{transactionLocator}/charges/list
    Request Parameters:
    NamePositionTypeRequired
    tenantLocatorpathuuidrequired
    transactionLocatorpathstringrequired
    includeAllqueryboolean?optional
    offsetqueryint?optional
    countqueryint?optional
    Security Group:charges   Permissions:read,list