Flat Charges API

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
charges ChargeCreateRequest[]

optional
policyLocator string?
currency string?
invoicing Enum? immediate | next | scheduled

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[]

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